diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..7e5124e --- /dev/null +++ b/.clang-format @@ -0,0 +1,21 @@ +Language: 'Proto' +BasedOnStyle: 'LLVM' +AccessModifierOffset: '-1' +AlignAfterOpenBracket: 'Align' +AlignConsecutiveAssignments: 'true' +AlignConsecutiveDeclarations: 'true' +AlignEscapedNewlinesLeft: 'true' +AlignOperands: 'true' +AlignTrailingComments: 'true' +AllowAllParametersOfDeclarationOnNextLine: 'true' +AllowShortBlocksOnASingleLine: 'true' +AllowShortCaseLabelsOnASingleLine: 'true' +ColumnLimit: '200' +IndentWidth: '4' +ContinuationIndentWidth: '4' +TabWidth: '4' +TabWidth: '4' +ReflowComments: 'true' +SortIncludes: 'true' +AllowShortFunctionsOnASingleLine: 'Empty' +AllowShortIfStatementsOnASingleLine: 'true' diff --git a/.gitignore b/.gitignore index e106cab..a507fdb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,13 @@ /target/ /bin/ - -.git .settings .classpath -.project \ No newline at end of file +.project +.DS_Store +target/ +log +.idea +*.iml +.metals +.bloop +.bsp diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a4f4a28 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +build: + mvn compile + #mvn test-compile + +assembly: + mvn compile assembly:single -Dmaven.test.skip=true + +#jar: +# mvn jar:jar + +package: + mvn clean package -Dmaven.test.skip=true + +clean: + mvn clean + +fmt: + mvn formatter:format + +fmt_proto: ## go fmt protobuf file + find . -name '*.proto' -not -path "./vendor/*" | xargs clang-format -i + +proto:build + +check: + mvn formatter:validate +# mvn verify + +test: + mvn test + + +benchmark: + diff --git a/README.md b/README.md index ff1be39..92e556d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,23 @@ Chain33的Java SDK提供交易构造、交易签名、数据加密、发送交 支持原生存证、积分发行和转账等能力。 支持EVM合约部署,调用能力 +## 编译 + +**环境要求**: + +- [JDK8](https://www.oracle.com/java/technologies/javase-downloads.html) + +**编译命令**: +```shell +make build +``` + +**打包命令**: + +```shell +make package +``` + # 使用 1.下载最新的JAVA-SDK版本 下载地址:https://github.com/33cn/chain33-sdk-java/releases/download/1.0.15/chain33-sdk-java-1.0.15.zip diff --git a/pom.xml b/pom.xml index 04b3d93..4b73176 100644 --- a/pom.xml +++ b/pom.xml @@ -107,6 +107,24 @@ jackson-databind 2.12.4 + + + + + + + + + + + + + + + + + + @@ -120,6 +138,93 @@ 1.8 + + + + + + + + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + + + make-assembly + package + + single + + + + + + src/resources/assembly.xml + + + + + + + net.revelc.code.formatter + formatter-maven-plugin + 2.16.0 + + + + format + + + + + + UTF-8 + + + + + com.github.os72 + protoc-jar-maven-plugin + 3.11.4 + + + generate-sources + + run + + + com.google.protobuf:protoc:3.17.0 + all + direct + + src/main/proto + src/main/java/cn/chain33/javasdk/model/protobuf + + + + java + none + src/main/java + + + grpc-java + io.grpc:protoc-gen-grpc-java:1.39.0 + none + src/main/java + + + + + + + + diff --git a/src/main/java/cn/chain33/javasdk/client/Account.java b/src/main/java/cn/chain33/javasdk/client/Account.java index acc8336..d724e59 100644 --- a/src/main/java/cn/chain33/javasdk/client/Account.java +++ b/src/main/java/cn/chain33/javasdk/client/Account.java @@ -13,178 +13,180 @@ public class Account { /** + * + * @description 在本地创建账户信息 * - * @description ڱش˻Ϣ - * @return ˻Ϣ(˽ԿԿַ) + * @return 账户信息(私钥,公钥,地址) * */ public AccountInfo newAccountLocal() { - AccountInfo accountInfo = new AccountInfo(); - - // ˽Կ - String privateKey = TransactionUtil.generatorPrivateKeyString(); - accountInfo.setPrivateKey(privateKey); - // ɹԿ - String publicKey = TransactionUtil.getHexPubKeyFromPrivKey(privateKey); - accountInfo.setPublicKey(publicKey); - byte[] publicKeyByte = HexUtil.fromHexString(publicKey); - // ɵַ - accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); + AccountInfo accountInfo = new AccountInfo(); + + // 生成私钥匙 + String privateKey = TransactionUtil.generatorPrivateKeyString(); + accountInfo.setPrivateKey(privateKey); + // 生成公钥匙 + String publicKey = TransactionUtil.getHexPubKeyFromPrivKey(privateKey); + accountInfo.setPublicKey(publicKey); + byte[] publicKeyByte = HexUtil.fromHexString(publicKey); + // 生成地址 + accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); + return accountInfo; + } + + /** + * 本地创建账户信息,加密输出到指定路径 + */ + public AccountInfo newAccountLocal(String name, String passwd, String path) throws IOException { + AccountInfo accountInfo = new AccountInfo(); + accountInfo.setName(name); + + // 生成私钥匙 + String privateKey = TransactionUtil.generatorPrivateKeyString(); + accountInfo.setPrivateKey(privateKey); + + // 导出到文件 + File file = new File(path); + if (!file.exists()) { + file.createNewFile(); + } + FileOutputStream fos = new FileOutputStream(file); + if (StringUtil.isEmpty(passwd)) { + fos.write(privateKey.getBytes()); + } else { + fos.write(DesUtil.encrypt(privateKey.getBytes(), DesUtil.padding(passwd))); + } + fos.close(); + + // 生成公钥匙 + String publicKey = TransactionUtil.getHexPubKeyFromPrivKey(privateKey); + accountInfo.setPublicKey(publicKey); + byte[] publicKeyByte = HexUtil.fromHexString(publicKey); + // 生成地址 + accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); + return accountInfo; + } + + /** + * 导出本地账户信息 + */ + public AccountInfo loadAccountLocal(String name, String passwd, String path) throws Exception { + File file = new File(path); + if (!file.exists()) { + return null; + } + + FileInputStream fis = new FileInputStream(file); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + + byte buffer[] = new byte[64]; + int size; + while ((size = fis.read(buffer)) != -1) { + baos.write(buffer, 0, size); + } + fis.close(); + + String privateKey; + if (StringUtil.isEmpty(passwd)) { + privateKey = baos.toString(); + } else { + privateKey = new String(DesUtil.decrypt(baos.toByteArray(), DesUtil.padding(passwd))); + } + AccountInfo accountInfo = new AccountInfo(); + accountInfo.setName(name); + accountInfo.setPrivateKey(privateKey); + // 生成公钥匙 + String publicKey = TransactionUtil.getHexPubKeyFromPrivKey(privateKey); + accountInfo.setPublicKey(publicKey); + byte[] publicKeyByte = HexUtil.fromHexString(publicKey); + // 生成地址 + accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); return accountInfo; } - /** - * ش˻Ϣָ· - */ - public AccountInfo newAccountLocal(String name, String passwd, String path) throws IOException { - AccountInfo accountInfo = new AccountInfo(); - accountInfo.setName(name); - - // ˽Կ - String privateKey = TransactionUtil.generatorPrivateKeyString(); - accountInfo.setPrivateKey(privateKey); - - // ļ - File file = new File(path); - if (!file.exists()) { - file.createNewFile(); - } - FileOutputStream fos = new FileOutputStream(file); - if(StringUtil.isEmpty(passwd)){ - fos.write(privateKey.getBytes()); - } else { - fos.write(DesUtil.encrypt(privateKey.getBytes(), DesUtil.padding(passwd))); - } - fos.close(); - - // ɹԿ - String publicKey = TransactionUtil.getHexPubKeyFromPrivKey(privateKey); - accountInfo.setPublicKey(publicKey); - byte[] publicKeyByte = HexUtil.fromHexString(publicKey); - // ɵַ - accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); - return accountInfo; - } - - /** - * ˻Ϣ - */ - public AccountInfo loadAccountLocal(String name, String passwd, String path) throws Exception { - File file = new File(path); - if (!file.exists()) { - return null; - } - - FileInputStream fis = new FileInputStream(file); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - - byte buffer[] = new byte[64]; - int size; - while ((size = fis.read(buffer)) != -1) { - baos.write(buffer, 0, size); - } - fis.close(); - - String privateKey; - if(StringUtil.isEmpty(passwd)) { - privateKey = baos.toString(); - } else{ - privateKey = new String(DesUtil.decrypt(baos.toByteArray(), DesUtil.padding(passwd))); - } - AccountInfo accountInfo = new AccountInfo(); - accountInfo.setName(name); - accountInfo.setPrivateKey(privateKey); - // ɹԿ - String publicKey = TransactionUtil.getHexPubKeyFromPrivKey(privateKey); - accountInfo.setPublicKey(publicKey); - byte[] publicKeyByte = HexUtil.fromHexString(publicKey); - // ɵַ - accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); - return accountInfo; - } - - /** - * - * @description ڱش˻Ϣ - * @return ˻Ϣ(˽ԿԿַ) - * - */ - public AccountInfo newGMAccountLocal() { - AccountInfo accountInfo = new AccountInfo(); - - SM2KeyPair keyPair = SM2Util.generateKeyPair(); - accountInfo.setPrivateKey(keyPair.getPrivateKeyString()); - accountInfo.setPublicKey(keyPair.getPublicKeyString()); - - byte[] publicKeyByte = HexUtil.fromHexString(accountInfo.getPublicKey()); - accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); - - return accountInfo; - } - - /** - * ش˻Ϣָ· - */ - public AccountInfo newGMAccountLocal(String name, String passwd, String path) throws IOException { - AccountInfo accountInfo = new AccountInfo(); - accountInfo.setName(name); - - SM2KeyPair keyPair = SM2Util.generateKeyPair(); - accountInfo.setPrivateKey(keyPair.getPrivateKeyString()); - accountInfo.setPublicKey(keyPair.getPublicKeyString()); - - // ļ - File file = new File(path); - if (!file.exists()) { - file.createNewFile(); - } - FileOutputStream fos = new FileOutputStream(file); - if(StringUtil.isEmpty(passwd)){ - fos.write(accountInfo.getPrivateKey().getBytes()); - } else { - fos.write(DesUtil.encrypt(accountInfo.getPrivateKey().getBytes(), DesUtil.padding(passwd))); - } - fos.close(); - - byte[] publicKeyByte = HexUtil.fromHexString(accountInfo.getPublicKey()); - // ɵַ - accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); - return accountInfo; - } - - /** - * ˻Ϣ - */ - public AccountInfo loadGMAccountLocal(String name, String passwd, String path) throws Exception { - File file = new File(path); - if (!file.exists()) { - return null; - } - - FileInputStream fis = new FileInputStream(file); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - - byte buffer[] = new byte[64]; - int size; - while ((size = fis.read(buffer)) != -1) { - baos.write(buffer, 0, size); - } - fis.close(); - - byte[] privateKey; - if(StringUtil.isEmpty(passwd)) { - privateKey = baos.toByteArray(); - } else{ - privateKey = DesUtil.decrypt(baos.toByteArray(), DesUtil.padding(passwd)); - } - - SM2KeyPair keyPair = SM2Util.fromPrivateKey(HexUtil.fromHexString(new String(privateKey))); - AccountInfo accountInfo = new AccountInfo(); - accountInfo.setPrivateKey(keyPair.getPrivateKeyString()); - accountInfo.setPublicKey(keyPair.getPublicKeyString()); - - byte[] publicKeyByte = HexUtil.fromHexString(accountInfo.getPublicKey()); - accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); - return accountInfo; - } + /** + * + * @description 在本地创建账户信息 + * + * @return 账户信息(私钥,公钥,地址) + * + */ + public AccountInfo newGMAccountLocal() { + AccountInfo accountInfo = new AccountInfo(); + + SM2KeyPair keyPair = SM2Util.generateKeyPair(); + accountInfo.setPrivateKey(keyPair.getPrivateKeyString()); + accountInfo.setPublicKey(keyPair.getPublicKeyString()); + + byte[] publicKeyByte = HexUtil.fromHexString(accountInfo.getPublicKey()); + accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); + + return accountInfo; + } + + /** + * 本地创建账户信息,加密输出到指定路径 + */ + public AccountInfo newGMAccountLocal(String name, String passwd, String path) throws IOException { + AccountInfo accountInfo = new AccountInfo(); + accountInfo.setName(name); + + SM2KeyPair keyPair = SM2Util.generateKeyPair(); + accountInfo.setPrivateKey(keyPair.getPrivateKeyString()); + accountInfo.setPublicKey(keyPair.getPublicKeyString()); + + // 导出到文件 + File file = new File(path); + if (!file.exists()) { + file.createNewFile(); + } + FileOutputStream fos = new FileOutputStream(file); + if (StringUtil.isEmpty(passwd)) { + fos.write(accountInfo.getPrivateKey().getBytes()); + } else { + fos.write(DesUtil.encrypt(accountInfo.getPrivateKey().getBytes(), DesUtil.padding(passwd))); + } + fos.close(); + + byte[] publicKeyByte = HexUtil.fromHexString(accountInfo.getPublicKey()); + // 生成地址 + accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); + return accountInfo; + } + + /** + * 导出本地账户信息 + */ + public AccountInfo loadGMAccountLocal(String name, String passwd, String path) throws Exception { + File file = new File(path); + if (!file.exists()) { + return null; + } + + FileInputStream fis = new FileInputStream(file); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + + byte buffer[] = new byte[64]; + int size; + while ((size = fis.read(buffer)) != -1) { + baos.write(buffer, 0, size); + } + fis.close(); + + byte[] privateKey; + if (StringUtil.isEmpty(passwd)) { + privateKey = baos.toByteArray(); + } else { + privateKey = DesUtil.decrypt(baos.toByteArray(), DesUtil.padding(passwd)); + } + + SM2KeyPair keyPair = SM2Util.fromPrivateKey(HexUtil.fromHexString(new String(privateKey))); + AccountInfo accountInfo = new AccountInfo(); + accountInfo.setPrivateKey(keyPair.getPrivateKeyString()); + accountInfo.setPublicKey(keyPair.getPublicKeyString()); + + byte[] publicKeyByte = HexUtil.fromHexString(accountInfo.getPublicKey()); + accountInfo.setAddress(TransactionUtil.genAddress(publicKeyByte)); + return accountInfo; + } } diff --git a/src/main/java/cn/chain33/javasdk/client/GrpcClient.java b/src/main/java/cn/chain33/javasdk/client/GrpcClient.java index a6ddec4..42d319f 100644 --- a/src/main/java/cn/chain33/javasdk/client/GrpcClient.java +++ b/src/main/java/cn/chain33/javasdk/client/GrpcClient.java @@ -15,7 +15,7 @@ public class GrpcClient { private final ManagedChannel channel; private final chain33Grpc.chain33BlockingStub blockingStub; - private GrpcClient(ManagedChannel channel,List addresses) { + private GrpcClient(ManagedChannel channel, List addresses) { this.channel = channel; NameResolverRegistry nameResolverRegistry = NameResolverRegistry.getDefaultRegistry(); NameResolverProvider nameResolverFactory = new MultipleResolverProvider(addresses); @@ -23,11 +23,9 @@ private GrpcClient(ManagedChannel channel,List addresses blockingStub = chain33Grpc.newBlockingStub(channel); } - public GrpcClient(String targetURI,List addresses) { - this(ManagedChannelBuilder.forTarget(targetURI) - .defaultLoadBalancingPolicy("round_robin") //pick_first,grpclb,round_robin,HealthCheckingRoundRobin - .usePlaintext() - .build(),addresses); + public GrpcClient(String targetURI, List addresses) { + this(ManagedChannelBuilder.forTarget(targetURI).defaultLoadBalancingPolicy("round_robin") // pick_first,grpclb,round_robin,HealthCheckingRoundRobin + .usePlaintext().build(), addresses); } private GrpcClient(ManagedChannel channel) { @@ -36,15 +34,11 @@ private GrpcClient(ManagedChannel channel) { } public GrpcClient(String host, int port) { - this(ManagedChannelBuilder.forAddress(host, port) - .usePlaintext() - .build()); + this(ManagedChannelBuilder.forAddress(host, port).usePlaintext().build()); } public GrpcClient(String host) { - this(ManagedChannelBuilder.forTarget(host) - .usePlaintext() - .build()); + this(ManagedChannelBuilder.forTarget(host).usePlaintext().build()); } public void shutdown() throws InterruptedException { @@ -52,14 +46,15 @@ public void shutdown() throws InterruptedException { } /** - * @description ȡµͷ getLastHeader - * @return Ϣ + * @description 获取最新的区块头 getLastHeader + * + * @return 最新区块信息 */ public BlockchainProtobuf.Header getLastHeader() { CommonProtobuf.ReqNil request = CommonProtobuf.ReqNil.newBuilder().build(); BlockchainProtobuf.Header response; try { - //ʹ stub + // 使用阻塞 stub调用 response = blockingStub.getLastHeader(request); logger.info(response.toString()); return response; @@ -70,15 +65,17 @@ public BlockchainProtobuf.Header getLastHeader() { } /** - * @description ѯ queryTransaction - * @return Ϣ + * @description 查询交易 queryTransaction + * + * @return 交易信息 */ public TransactionAllProtobuf.TransactionDetail queryTransaction(String hash) { byte[] hashBytes = HexUtil.fromHexString(hash); - CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)).build(); + CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)) + .build(); TransactionAllProtobuf.TransactionDetail response; try { - //ʹ stub + // 使用阻塞 stub调用 response = blockingStub.queryTransaction(request); logger.info(response.toString()); return response; @@ -88,10 +85,8 @@ public TransactionAllProtobuf.TransactionDetail queryTransaction(String hash) { } } - public Result run(Chain33Functional functional) - { - chain33Grpc.chain33BlockingStub blockingStub = - chain33Grpc.newBlockingStub(channel); + public Result run(Chain33Functional functional) { + chain33Grpc.chain33BlockingStub blockingStub = chain33Grpc.newBlockingStub(channel); return functional.run(blockingStub); } diff --git a/src/main/java/cn/chain33/javasdk/client/GrpcClientTLS.java b/src/main/java/cn/chain33/javasdk/client/GrpcClientTLS.java index 1ec76f0..d4e16bb 100644 --- a/src/main/java/cn/chain33/javasdk/client/GrpcClientTLS.java +++ b/src/main/java/cn/chain33/javasdk/client/GrpcClientTLS.java @@ -21,9 +21,8 @@ public class GrpcClientTLS { private final ManagedChannel channel; private final chain33Grpc.chain33BlockingStub blockingStub; - private static SslContext buildSslContext(String trustCertCollectionFilePath, - String clientCertChainFilePath, - String clientPrivateKeyFilePath) throws SSLException { + private static SslContext buildSslContext(String trustCertCollectionFilePath, String clientCertChainFilePath, + String clientPrivateKeyFilePath) throws SSLException { SslContextBuilder builder = GrpcSslContexts.forClient(); if (trustCertCollectionFilePath != null) { builder.trustManager(new File(trustCertCollectionFilePath)); @@ -34,7 +33,7 @@ private static SslContext buildSslContext(String trustCertCollectionFilePath, return builder.build(); } - private GrpcClientTLS(ManagedChannel channel,List addresses) { + private GrpcClientTLS(ManagedChannel channel, List addresses) { NameResolverRegistry nameResolverRegistry = NameResolverRegistry.getDefaultRegistry(); NameResolverProvider nameResolverFactory = new MultipleResolverProvider(addresses); nameResolverRegistry.register(nameResolverFactory); @@ -42,12 +41,10 @@ private GrpcClientTLS(ManagedChannel channel,List addres blockingStub = chain33Grpc.newBlockingStub(channel); } - public GrpcClientTLS(String targetURI,SslContext sslContext,List addresses) { - this(NettyChannelBuilder.forTarget(targetURI) - .negotiationType(NegotiationType.TLS) - .defaultLoadBalancingPolicy("round_robin") //pick_first,grpclb,round_robin,HealthCheckingRoundRobin - .sslContext(sslContext) - .build(),addresses); + public GrpcClientTLS(String targetURI, SslContext sslContext, List addresses) { + this(NettyChannelBuilder.forTarget(targetURI).negotiationType(NegotiationType.TLS) + .defaultLoadBalancingPolicy("round_robin") // pick_first,grpclb,round_robin,HealthCheckingRoundRobin + .sslContext(sslContext).build(), addresses); } public void shutdown() throws InterruptedException { @@ -55,14 +52,15 @@ public void shutdown() throws InterruptedException { } /** - * @description ȡµͷ getLastHeader - * @return Ϣ + * @description 获取最新的区块头 getLastHeader + * + * @return 最新区块信息 */ public BlockchainProtobuf.Header getLastHeader() { CommonProtobuf.ReqNil request = CommonProtobuf.ReqNil.newBuilder().build(); BlockchainProtobuf.Header response; try { - //ʹ stub + // 使用阻塞 stub调用 response = blockingStub.getLastHeader(request); logger.info(response.toString()); return response; @@ -73,15 +71,17 @@ public BlockchainProtobuf.Header getLastHeader() { } /** - * @description ѯ queryTransaction - * @return Ϣ + * @description 查询交易 queryTransaction + * + * @return 交易信息 */ public TransactionAllProtobuf.TransactionDetail queryTransaction(String hash) { byte[] hashBytes = HexUtil.fromHexString(hash); - CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)).build(); + CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)) + .build(); TransactionAllProtobuf.TransactionDetail response; try { - //ʹ stub + // 使用阻塞 stub调用 response = blockingStub.queryTransaction(request); logger.info(response.toString()); return response; @@ -91,12 +91,9 @@ public TransactionAllProtobuf.TransactionDetail queryTransaction(String hash) { } } - public Result run(Chain33Functional functional) - { - chain33Grpc.chain33BlockingStub blockingStub = - chain33Grpc.newBlockingStub(channel); + public Result run(Chain33Functional functional) { + chain33Grpc.chain33BlockingStub blockingStub = chain33Grpc.newBlockingStub(channel); return functional.run(blockingStub); } } - diff --git a/src/main/java/cn/chain33/javasdk/client/MultipleResolverProvider.java b/src/main/java/cn/chain33/javasdk/client/MultipleResolverProvider.java index d3d1173..64c5777 100644 --- a/src/main/java/cn/chain33/javasdk/client/MultipleResolverProvider.java +++ b/src/main/java/cn/chain33/javasdk/client/MultipleResolverProvider.java @@ -13,9 +13,9 @@ public class MultipleResolverProvider extends NameResolverProvider { final List addresses; MultipleResolverProvider(List addresses) { -// this.addresses = Arrays.stream(addresses) -// .map(EquivalentAddressGroup::new) -// .collect(Collectors.toList()); + // this.addresses = Arrays.stream(addresses) + // .map(EquivalentAddressGroup::new) + // .collect(Collectors.toList()); this.addresses = addresses; } @@ -25,9 +25,12 @@ public NameResolver newNameResolver(URI notUsedUri, NameResolver.Args args) { public String getServiceAuthority() { return "mideaChain"; } + public void start(Listener2 listener) { - listener.onResult(ResolutionResult.newBuilder().setAddresses(addresses).setAttributes(Attributes.EMPTY).build()); + listener.onResult( + ResolutionResult.newBuilder().setAddresses(addresses).setAttributes(Attributes.EMPTY).build()); } + public void shutdown() { } }; diff --git a/src/main/java/cn/chain33/javasdk/client/RpcClient.java b/src/main/java/cn/chain33/javasdk/client/RpcClient.java index e38dd9f..d9936ce 100644 --- a/src/main/java/cn/chain33/javasdk/client/RpcClient.java +++ b/src/main/java/cn/chain33/javasdk/client/RpcClient.java @@ -29,17 +29,17 @@ import cn.chain33.javasdk.utils.StringUtil; /** - * Զ̽ӿ - * - * @author logan 2018516 + * 调用远程接口 + * + * @author logan 2018年5月16日 */ public class RpcClient { private static Logger logger = LoggerFactory.getLogger(RpcClient.class); - // ͨļʽURL + // 通过配置文件或者其他方式设置URL private String BASE_URL; - + public static final Integer TX_EXEC_RESULT_OK = 0; public static final Integer TX_EXEC_RESULT_FAIL = 1; @@ -72,11 +72,13 @@ public void setUrl(String url) { } /** - * @description ͽ - * + * @description 发送交易 + * * @param transactionJsonResult + * * @return - * @throws IOException + * + * @throws IOException */ public String submitTransaction(RpcRequest transactionJsonResult) throws IOException { transactionJsonResult.setMethod(RpcMethod.SEND_TRANSACTION); @@ -92,11 +94,14 @@ public String submitTransaction(RpcRequest transactionJsonResult) throws IOExcep } /** - * @description ͽ + * @description 发送交易 + * + * @param data + * 签名后的交易 + * + * @return 交易hash * - * @param data ǩĽ - * @return hash - * @throws IOException + * @throws IOException */ public String submitTransaction(String data) throws IOException { JSONObject jsonObject = new JSONObject(); @@ -115,10 +120,12 @@ public String submitTransaction(String data) throws IOException { } /** + * + * @description 查询节点是否同步 + * + * @return 同步结果 * - * @description ѯڵǷͬ - * @return ͬ - * @throws IOException + * @throws IOException * */ public Boolean isSync() throws IOException { @@ -137,10 +144,14 @@ public Boolean isSync() throws IOException { } /** - * @description ݽ׹ϣѯϢ - * @param hash hash - * @return Ϣ - * @throws IOException + * @description 根据交易哈希查询交易信息 + * + * @param hash + * 交易hash + * + * @return 交易信息 + * + * @throws IOException */ public QueryTransactionResult queryTransaction(String hash) throws IOException { if (StringUtil.isNotEmpty(hash) && hash.startsWith("0x")) { @@ -164,12 +175,16 @@ public QueryTransactionResult queryTransaction(String hash) throws IOException { } return null; } - + /** - * @description ݽ׹ϣѯϢ - * @param hash hash - * @return Ϣ - * @throws IOException + * @description 根据交易哈希查询交易信息 + * + * @param hash + * 交易hash + * + * @return 交易信息 + * + * @throws IOException */ public String queryTx(String hash) throws IOException { if (StringUtil.isNotEmpty(hash) && hash.startsWith("0x")) { @@ -187,11 +202,14 @@ public String queryTx(String hash) throws IOException { } return null; } - + /** - * @description ݽ׹ϣѯϢ - * @param hash hash - * @return Ϣ + * @description 根据交易哈希查询交易信息 + * + * @param hash + * 交易hash + * + * @return 交易信息 */ public Integer queryTransactionStat(String hash) throws IOException { if (StringUtil.isNotEmpty(hash) && hash.startsWith("0x")) { @@ -213,18 +231,19 @@ public Integer queryTransactionStat(String hash) throws IOException { JSONObject resultJson = jsonObjectResult.getJSONObject("result"); QueryTransactionResult transactionResult = resultJson.toJavaObject(QueryTransactionResult.class); - if("ExecOk".equals(transactionResult.getReceipt().getTyname())) { + if ("ExecOk".equals(transactionResult.getReceipt().getTyname())) { return TX_EXEC_RESULT_OK; } return TX_EXEC_RESULT_FAIL; } - - + /** - * @description ѯevmԼͳϢ + * @description 查询evm合约统计信息 * - * @param address: ѯĵַ + * @param address: + * 查询的地址 + * * @return */ public JSONObject queryEVMStatResult(String address) throws IOException { @@ -240,12 +259,15 @@ public JSONObject queryEVMStatResult(String address) throws IOException { return JSONObject.parseObject(requestResult); } - + /** - * @description ѯԼABI + * @description 查询合约ABI结果 * - * @param address: ѯĵַ - * @param abiPack: ѯabiʽ + * @param address: + * 查询的地址 + * @param abiPack: + * 查询参数的abi格式 + * * @return */ public JSONObject callEVMAbi(String address, String abiPack) throws IOException { @@ -264,11 +286,14 @@ public JSONObject callEVMAbi(String address, String abiPack) throws IOException } /** - * @description ݹϣȡϢ GetTxByHashes + * @description 根据哈希数组批量获取交易信息 GetTxByHashes + * + * @param hashIdList + * 交易ID列表 * - * @param hashIdList IDб - * @return ׽б - * @throws IOException + * @return 交易结果对象列表 + * + * @throws IOException */ public List GetTxByHashes(List hashIdList) throws IOException { if (hashIdList != null && !hashIdList.isEmpty()) { @@ -302,11 +327,14 @@ public List GetTxByHashes(List hashIdList) throw } /** - * @description ݹϣȡ׵ַ GetHexTxByHash + * @description 根据哈希获取交易的字符串 GetHexTxByHash + * + * @param hash + * 交易hash + * + * @return 交易字符串 * - * @param hash hash - * @return ַ - * @throws IOException + * @throws IOException */ public String getHexTxByHash(String hash) throws IOException { if (StringUtil.isNotEmpty(hash) && hash.startsWith("0x")) { @@ -328,13 +356,17 @@ public String getHexTxByHash(String hash) throws IOException { } /** - * @description ȡ GetBlocks - * - * @param start 鿪ʼ߶ - * @param end ߶ - * @param isDetail Ƿȡ - * @throws IOException + * @description 获取区间区块 GetBlocks + * + * @param start + * 区块开始高度 + * @param end + * 区块结束高度 + * @param isDetail + * 是否获取详情 * + * @throws IOException + * */ public List getBlocks(Long start, Long end, boolean isDetail) throws IOException { JSONObject jsonObject = new JSONObject(); @@ -362,9 +394,11 @@ public List getBlocks(Long start, Long end, boolean isDetail) thro } /** - * @description ȡµͷ GetLastHeader - * @return Ϣ - * @throws IOException + * @description 获取最新的区块头 GetLastHeader + * + * @return 最新区块信息 + * + * @throws IOException */ public BlockResult getLastHeader() throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_LAST_HEADER); @@ -383,12 +417,16 @@ public BlockResult getLastHeader() throws IOException { } /** - * @description ȡͷ GetHeaders ýӿڻȡָ߶ͷϢ + * @description 获取区间区块头 GetHeaders 该接口用于获取指定高度区间的区块头部信息 + * + * @param start + * 开始区块高度 + * @param end + * 结束区块高度 + * @param isDetail + * 是否打印区块详细信息 * - * @param start ʼ߶ - * @param end ߶ - * @param isDetail ǷӡϸϢ - * @throws IOException + * @throws IOException */ public List getHeaders(Long start, Long end, boolean isDetail) throws IOException { JSONObject jsonObject = new JSONObject(); @@ -415,30 +453,37 @@ public List getHeaders(Long start, Long end, boolean isDetail) thro } return null; } - + /** - * ȡƽʱ + * 取平均出块时间 + * * @return - * @throws IOException + * + * @throws IOException */ public int getBlockAverageTime() throws IOException { - - // ʱļжȡ Թ˵ - List blockResultList = getHeaders(1l, 1l, false); - BlockResult resultFirst = blockResultList.get(0); - - BlockResult resultLast = getLastHeader(); - - long averageSecond = (resultLast.getBlockTime().getTime() - resultFirst.getBlockTime().getTime())/((resultLast.getHeight() -1) * 1000); - - return (int)averageSecond ; + + // 创世块的时间从配置文件中读取, 所以过滤掉 + List blockResultList = getHeaders(1l, 1l, false); + BlockResult resultFirst = blockResultList.get(0); + + BlockResult resultLast = getLastHeader(); + + long averageSecond = (resultLast.getBlockTime().getTime() - resultFirst.getBlockTime().getTime()) + / ((resultLast.getHeight() - 1) * 1000); + + return (int) averageSecond; } /** - * @description ȡij߶ hash ֵ GetBlockHash ýӿڻȡָ߶ͷϢ - * @param height ߶ - * @return hash - * @throws IOException + * @description 获取某高度区块的 hash 值 GetBlockHash 该接口用于获取指定高度区间的区块头部信息 + * + * @param height + * 区块高度 + * + * @return 区块hash + * + * @throws IOException */ public String getBlockHash(Long height) throws IOException { JSONObject jsonObject = new JSONObject(); @@ -458,11 +503,14 @@ public String getBlockHash(Long height) throws IOException { } /** - * @description ȡϸϢ + * @description 获取区块的详细信息 + * + * @param hash + * 区块hash * - * @param hash hash - * @return Ϣ - * @throws IOException + * @return 区块信息 + * + * @throws IOException */ public BlockOverViewResult getBlockOverview(String hash) throws IOException { if (StringUtil.isNotEmpty(hash) && hash.startsWith("0x")) { @@ -483,13 +531,16 @@ public BlockOverViewResult getBlockOverview(String hash) throws IOException { } return null; } - + /** - * @description ݹϣбȡϸϢ + * @description 根据哈希列表获取区块的详细信息 + * + * @param hash + * 区块hash * - * @param hash hash - * @return Ϣ - * @throws IOException + * @return 区块信息 + * + * @throws IOException */ public List getBlockByHashes(String[] hashes, boolean disableDetail) throws IOException { if (hashes == null || hashes.length == 0) { @@ -501,7 +552,7 @@ public List getBlockByHashes(String[] hashes, boolean disableDetail RpcRequest postData = getPostData(RpcMethod.GET_BLOCK_BY_HASHS); postData.addJsonParams(jsonObject); String result = HttpUtil.httpPost(getUrl(), postData.toJsonString()); - + if (StringUtil.isNotEmpty(result)) { JSONObject parseObject = JSONObject.parseObject(result); if (messageValidate(parseObject)) @@ -518,13 +569,15 @@ public List getBlockByHashes(String[] hashes, boolean disableDetail return blockResultList; } return null; - - } + + } /** - * @description ȡԶ̽ڵб - * @return ڵϢ - * @throws IOException + * @description 获取远程节点列表 + * + * @return 节点信息 + * + * @throws IOException */ public List getPeerInfo() throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_PEER_INFO); @@ -545,12 +598,13 @@ public List getPeerInfo() throws IOException { } return null; } - - + /** - * @description ѯڵ״̬ - * @return ڵ״̬ - * @throws IOException + * @description 查询节点状态 + * + * @return 节点状态 + * + * @throws IOException */ public NetResult getNetInfo() throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_NET_INFO); @@ -565,11 +619,13 @@ public NetResult getNetInfo() throws IOException { } return null; } - + /** - * @description ȡϵͳ֧ǩ - * @return ǩб - * @throws IOException + * @description 获取系统支持签名类型 + * + * @return 签名类型列表 + * + * @throws IOException */ public List getCryptoResult() throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_CRYPTO_INFO); @@ -590,7 +646,7 @@ public List getCryptoResult() throws IOException { } return null; } - + private RpcRequest getPostData(RpcMethod method) { RpcRequest postJsonData = new RpcRequest(); postJsonData.setMethod(method); @@ -610,13 +666,17 @@ private Boolean messageValidate(JSONObject parseObject) { } return false; } - + /** + * + * @description 根据哈希数组批量获取交易信息 + * + * @param hashIdList + * 交易ID列表,用逗号“,”分割 + * + * @return 交易信息列表 * - * @description ݹϣȡϢ - * @param hashIdList IDбöš,ָ - * @return Ϣб - * @throws IOException + * @throws IOException */ public List getTxByHashes(String hashIdList) throws IOException { if (StringUtil.isEmpty(hashIdList)) { @@ -658,10 +718,12 @@ public List getTxByHashes(String hashIdList) throws IOEx } /** + * + * @description 查询钱包状态 + * + * @return 钱包状态 * - * @description ѯǮ״̬ - * @return Ǯ״̬ - * @throws IOException + * @throws IOException * */ public WalletStatusResult getWalletStatus() throws IOException { @@ -679,10 +741,11 @@ public WalletStatusResult getWalletStatus() throws IOException { } /** - * @description Lock + * @description 上锁 Lock + * + * @return 结果 * - * @return - * @throws IOException + * @throws IOException */ public BooleanResult lock() throws IOException { RpcRequest postData = getPostData(RpcMethod.LOCK_WALLET); @@ -699,13 +762,18 @@ public BooleanResult lock() throws IOException { } /** - * @description Unlock + * @description 解锁 Unlock + * + * @param passwd + * 解锁密码 + * @param walletorticket + * true,只解锁ticket买票功能,false:解锁整个钱包。 + * @param timeout + * 解锁时间,默认 0,表示永远解锁;非 0 值,表示超时之后继续锁住钱包,单位:秒。 + * + * @return 结果 * - * @param passwd - * @param walletorticket trueֻticketƱܣfalseǮ - * @param timeout ʱ䣬Ĭ 0ʾԶ 0 ֵʾʱ֮סǮλ롣 - * @return - * @throws IOException + * @throws IOException */ public BooleanResult unlock(String passwd, boolean walletorticket, int timeout) throws IOException { RpcRequest postData = getPostData(RpcMethod.UNLOCK_WALLET); @@ -727,11 +795,15 @@ public BooleanResult unlock(String passwd, boolean walletorticket, int timeout) } /** + * + * @description 在节点钱包中创建账户地址 + * + * @param label + * 标签 * - * @description ڽڵǮд˻ַ - * @param label ǩ - * @return ˻Ϣ - * @throws IOException + * @return 账户信息 + * + * @throws IOException * */ public AccountResult newAccount(String label) throws IOException { @@ -751,14 +823,16 @@ public AccountResult newAccount(String label) throws IOException { } return null; } - /** - * @description seed + * @description 生成随机的seed + * + * @param lang + * lang=0:英语,lang=1:简体汉字 * - * @param lang lang=0:Ӣlang=1:庺 * @return seed - * @throws IOException + * + * @throws IOException */ public String seedGen(Integer lang) throws IOException { RpcRequest postData = getPostData(RpcMethod.GEN_SEED); @@ -778,12 +852,16 @@ public String seedGen(Integer lang) throws IOException { } /** - * @description seed + * @description 保存seed并用密码加密 + * + * @param seed + * 种子要求16个单词或者汉字,参考genseed输出格式,需要空格隔开 + * @param passwd + * 加密密码,必须大于或等于8个字符的字母和数字组合 * - * @param seed Ҫ16ʻߺ֣οgenseedʽҪո - * @param passwd 룬ڻ8ַĸ * @return - * @throws IOException + * + * @throws IOException */ public BooleanResult seedSave(String seed, String passwd) throws IOException { RpcRequest postData = getPostData(RpcMethod.SAVE_SEED); @@ -804,11 +882,14 @@ public BooleanResult seedSave(String seed, String passwd) throws IOException { } /** - * @description ͨȡseed + * @description 通过密码获取seed + * + * @param passwd + * 密码 * - * @param passwd - * @return seed - * @throws IOException + * @return seed + * + * @throws IOException */ public String seedGet(String passwd) throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_SEED); @@ -828,11 +909,14 @@ public String seedGet(String passwd) throws IOException { } /** - * @description ԼתΪַ + * @description 将合约转换为地址 + * + * @param execername + * 例如user.p.xxchain.xxx * - * @param execername user.p.xxchain.xxx - * @return Լַ - * @throws IOException + * @return 合约地址 + * + * @throws IOException */ public String convertExectoAddr(String execername) throws IOException { RpcRequest postData = getPostData(RpcMethod.CONVERT_EXECER_TO_ADDRESS); @@ -851,12 +935,16 @@ public String convertExectoAddr(String execername) throws IOException { } /** - * @description õַǩ + * @description 设置地址标签 + * + * @param addr + * 例如 13TbfAPJRmekQxYVEyyGWgfvLwTa8DJW6U + * @param label + * 例如 macAddrlabel * - * @param addr 13TbfAPJRmekQxYVEyyGWgfvLwTa8DJW6U - * @param label macAddrlabel - * @return - * @throws IOException + * @return 结果 + * + * @throws IOException */ public AccountResult setlabel(String addr, String label) throws IOException { RpcRequest postData = getPostData(RpcMethod.SET_LABEL); @@ -877,10 +965,11 @@ public AccountResult setlabel(String addr, String label) throws IOException { } /** - * @description ȡ˻б GetAccounts + * @description 获取账户列表 GetAccounts + * + * @return 账号列表 * - * @return ˺б - * @throws IOException + * @throws IOException */ public List getAccountList() throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_ACCOUNT_LIST); @@ -898,12 +987,17 @@ public List getAccountList() throws IOException { } /** - * EVMԼ CreateTransaction * 11.9 Ԥtoken Ľ + * 创建EVM合约交易 CreateTransaction * 11.9 生成预创建token 的交易 + * + * @param execer + * 执行器名称,这里固定为evm + * @param actionName + * 操作名称,这里固定为CreateCall + * @param payload + * https://chain.33.cn/document/108#1.1%20%E5%88%9B%E5%BB%BAEVM%E5%90%88%E7%BA%A6%E4%BA%A4%E6%98%93%20CreateTransaction * - * @param execer ִƣ̶Ϊevm - * @param actionName ƣ̶ΪCreateCall - * @param payload https://chain.33.cn/document/108#1.1%20%E5%88%9B%E5%BB%BAEVM%E5%90%88%E7%BA%A6%E4%BA%A4%E6%98%93%20CreateTransaction * @return + * * @throws Exception */ public String createTransaction(String execer, String actionName, JSONObject payload) throws Exception { @@ -923,90 +1017,109 @@ public String createTransaction(String execer, String actionName, JSONObject pay } return null; } - + /** - * ùԼ token-finisher - * + * 调用管理合约(创建黑名单, 创建token-finisher) + * * @param execer * @param actionName * @param superManager + * * @return - * @throws Exception + * + * @throws Exception */ - public String createManageTransaction(String execer, String actionName, String key, String value, String op, String superManager) throws Exception { - JSONObject blackListPayload = new JSONObject(); - blackListPayload.put("key", key); - blackListPayload.put("value", value); - blackListPayload.put("op", op); - String managerResult = createTransaction(execer, actionName, blackListPayload); - return managerResult; + public String createManageTransaction(String execer, String actionName, String key, String value, String op, + String superManager) throws Exception { + JSONObject blackListPayload = new JSONObject(); + blackListPayload.put("key", key); + blackListPayload.put("value", value); + blackListPayload.put("op", op); + String managerResult = createTransaction(execer, actionName, blackListPayload); + return managerResult; } - /** - * ˺ + * 创建账号 + * * @param execer * @param actionName * @param accountId + * * @return + * * @throws Exception */ public String registeAccount(String execer, String actionName, String accountId) throws Exception { - JSONObject accountPayload = new JSONObject(); - accountPayload.put("accountID", accountId); - String accountResult = createTransaction(execer, actionName, accountPayload); - return accountResult; + JSONObject accountPayload = new JSONObject(); + accountPayload.put("accountID", accountId); + String accountResult = createTransaction(execer, actionName, accountPayload); + return accountResult; } - + /** - * ˺ŽȨ + * 对账号进行授权 + * * @param execer * @param actionName * @param accountIds + * * @return + * * @throws Exception */ - public String authAccount(String execer, String actionName, String[] accountIds, String op, String level) throws Exception { - JSONObject accountPayload = new JSONObject(); - accountPayload.put("accountIDs", accountIds); - accountPayload.put("op", op); - if (StringUtil.isNotEmpty(level)) { - accountPayload.put("level", level); - } - String accountResult = createTransaction(execer, actionName, accountPayload); - return accountResult; + public String authAccount(String execer, String actionName, String[] accountIds, String op, String level) + throws Exception { + JSONObject accountPayload = new JSONObject(); + accountPayload.put("accountIDs", accountIds); + accountPayload.put("op", op); + if (StringUtil.isNotEmpty(level)) { + accountPayload.put("level", level); + } + String accountResult = createTransaction(execer, actionName, accountPayload); + return accountResult; } - + /** - * ӹʶڵ - * + * 增加共识节点 + * * @param execer * @param actionName + * * @return + * * @throws Exception */ public String addConsensusNode(String execer, String actionName, String pubKey, int power) throws Exception { - JSONObject nodePayload = new JSONObject(); - nodePayload.put("pubKey", pubKey); - nodePayload.put("power", power); - String nodeResult = createTransaction(execer, actionName, nodePayload); - return nodeResult; + JSONObject nodePayload = new JSONObject(); + nodePayload.put("pubKey", pubKey); + nodePayload.put("power", power); + String nodeResult = createTransaction(execer, actionName, nodePayload); + return nodeResult; } - /** - * @description ԤtokenĽ + * @description 生成预创建token的交易 + * + * @param name + * token的全名,最大长度是128个字符。 + * @param symbol + * token标记符,最大长度是16个字符,且必须为大写字符。 + * @param introduction + * token介绍,最大长度为1024个字节。 + * @param ownerAddr + * token拥有者地址 + * @param total + * 发行总量,需要乘以10的8次方,比如要发行100个币,需要100*1e8 + * @param price + * 发行该token愿意承担的费用 * - * @param name tokenȫ󳤶128ַ - * @param symbol tokenǷ󳤶16ַұΪдַ - * @param introduction tokenܣ󳤶Ϊ1024ֽڡ - * @param ownerAddr tokenӵߵַ - * @param total ,Ҫ108ηҪ100ңҪ100*1e8 - * @param price иtokenԸеķ - * @return ʮƱַ - * @throws IOException + * @return 交易十六进制编码后的字符串 + * + * @throws IOException */ - public String createRawTokenPreCreateTx(String name,String symbol,String introduction,String ownerAddr,long total,long price,Integer category) throws IOException { + public String createRawTokenPreCreateTx(String name, String symbol, String introduction, String ownerAddr, + long total, long price, Integer category) throws IOException { RpcRequest postData = getPostData(RpcMethod.TOKEN_CREATE_PRE_CREATE_TX); JSONObject requestParam = new JSONObject(); requestParam.put("name", name); @@ -1020,7 +1133,8 @@ public String createRawTokenPreCreateTx(String name,String symbol,String introdu String requestResult = HttpUtil.httpPost(getUrl(), postData.toJsonString()); if (StringUtil.isNotEmpty(requestResult)) { JSONObject parseObject = JSONObject.parseObject(requestResult); - if (messageValidate(parseObject)) return null; + if (messageValidate(parseObject)) + return null; String result = parseObject.getString("result"); return result; } @@ -1028,15 +1142,20 @@ public String createRawTokenPreCreateTx(String name,String symbol,String introdu } /** - * @description ɴtokenĽףδǩ + * @description 生成完成创建token的交易(未签名) + * + * @param symbol: + * token标记符,最大长度是16个字符,且必须为大写字符。 + * @param ownerAddr: + * token拥有者地址 + * @param fee: + * 交易的手续费 + * + * @return 交易十六进制编码后的字符串 * - * @param symbol: tokenǷ󳤶16ַұΪдַ - * @param ownerAddr: tokenӵߵַ - * @param fee: ׵ - * @return ʮƱַ - * @throws IOException + * @throws IOException */ - public String createRawTokenFinishTx(long fee,String symbol,String ownerAddr) throws IOException { + public String createRawTokenFinishTx(long fee, String symbol, String ownerAddr) throws IOException { RpcRequest postData = getPostData(RpcMethod.TOKEN_CREATE_FINISH_TX); JSONObject requestParam = new JSONObject(); requestParam.put("fee", fee); @@ -1046,7 +1165,8 @@ public String createRawTokenFinishTx(long fee,String symbol,String ownerAddr) th String requestResult = HttpUtil.httpPost(getUrl(), postData.toJsonString()); if (StringUtil.isNotEmpty(requestResult)) { JSONObject parseObject = JSONObject.parseObject(requestResult); - if (messageValidate(parseObject)) return null; + if (messageValidate(parseObject)) + return null; String result = parseObject.getString("result"); return result; } @@ -1054,18 +1174,23 @@ public String createRawTokenFinishTx(long fee,String symbol,String ownerAddr) th } /** - * @description 콻 + * @description 构造交易 + * + * @param to:目标地址。 + * @param amount:发送金额,注意基础货币单位为10^8 + * @param fee:手续费,注意基础货币单位为10^8 + * @param note:备注。非必须 + * @param isToken:是否是token类型的转账 + * (非token转账这个不用填) + * @param isWithdraw:是否为取款交易 + * @param tokenSymbol:token + * 的 symbol (非token转账这个不用填) + * @param execName:TransferToExec(转到合约) + * 或 Withdraw(从合约中提款),如果要构造平行链上的转账,此参数置空 + * + * @return 备注:如果result 不为nil,则为构造后的交易16进制字符串编码。解码通过hex decode。 * - * @param to:Ŀַ - * @param amount:ͽעҵλΪ10^8 - * @param fee:ѣעҵλΪ10^8 - * @param note:עDZ - * @param isToken:Ƿtoken͵ת tokenת - * @param isWithdraw:ǷΪȡ - * @param tokenSymbol:token symbol tokenת - * @param execName:TransferToExecתԼ WithdrawӺԼҪƽϵתˣ˲ÿ - * @return עresult Ϊnil,ΪĽ16ַ롣ͨhex decode - * @throws IOException + * @throws IOException */ public String createRawTransaction(String to, long amount, long fee, String note, boolean isToken, boolean isWithdraw, String tokenSymbol, String execName) throws IOException { @@ -1092,14 +1217,20 @@ public String createRawTransaction(String to, long amount, long fee, String note } /** - * @description 콻(ƽϻõ) + * @description 构造交易(平行链上会用到) + * + * @param txHex: + * 由上一步的createRawTx生成的交易再传入(比如,CreateRawTokenPreCreateTx:token预创建;CreateRawTokenFinishTx:token完成;CreateRawTransaction:转移token) + * @param payAddr: + * 用于付费的地址,这个地址要在主链上存在,并且里面有比特元用于支付手续费。 + * @param Privkey: + * 对应于payAddr的私钥。如果payAddr已经导入到平行链,那么这个私钥可以不传(建议做法是在平行链上导入地址,保证私钥安全) + * @param expire: + * 超时时间 * - * @param txHex: һcreateRawTxɵĽٴ루磬CreateRawTokenPreCreateTxtokenԤCreateRawTokenFinishTxtokenɣCreateRawTransactionתtoken - * @param payAddr: ڸѵĵַַҪϴڣбԪ֧ѡ - * @param Privkey ӦpayAddr˽ԿpayAddrѾ뵽ƽô˽ԿԲƽϵַ֤˽Կȫ - * @param expire: ʱʱ * @return hash - * @throws IOException + * + * @throws IOException */ public String createRawTransaction(String txHex, String payAddr, String Privkey, String expire) throws IOException { RpcRequest postData = getPostData(RpcMethod.TOKEN_CREATE_RAW_TX); @@ -1119,17 +1250,24 @@ public String createRawTransaction(String txHex, String payAddr, String Privkey, } return null; } - + /** - * @description ǩ + * @description 交易签名 + * + * @param addr + * 与key可以只输入其一 + * @param key + * 私钥 + * @param expire + * 过期时间可输入如"300ms","-1.5h"或者"2h45m"的字符串,有效时间单位为"ns", "us" (or "μs"), "ms","s", "m","h" + * @param index + * 若是签名交易组,则为要签名的交易序号,从1开始,小于等于0则为签名组内全部交易 + * @param index + * 固定填写2(这里是一个交易组,第1笔none的交易已经用pay address签过名了,此处签index=2的交易) * - * @param addr keyֻһ - * @param key ˽Կ - * @param expire ʱ"300ms""-1.5h""2h45m"ַЧʱ䵥λΪ"ns", "us" (or "s"), "ms","s", "m","h" - * @param index ǩ飬ΪҪǩĽţ1ʼСڵ0Ϊǩȫ - * @param index ̶д2(һ飬1noneĽѾpay addressǩˣ˴ǩindex=2Ľ) * @return txhex - * @throws IOException + * + * @throws IOException */ public String signRawTx(String addr, String key, String txhex, String expire, int index) throws IOException { RpcRequest postData = getPostData(RpcMethod.SIGN_RAW_TRANSACTION); @@ -1152,15 +1290,21 @@ public String signRawTx(String addr, String key, String txhex, String expire, in } /** - * @description ѯַtoken + * @description 查询地址token余额 + * + * @param addresses + * 地址列表 + * @param execer + * token 查询可用的余额 ,trade 查询正在交易合约里的token,如果是查询平行链上余额,则需要指定具体平行链的执行器execer,例如:user.p.xxx.token . + * @param tokenSymbol + * token符号名称 * - * @param addresses ַб - * @param execer token ѯõ trade ѯڽ׺Լtoken,DzѯƽҪָƽִexecer,磺user.p.xxx.token . - * @param tokenSymbol token - * @return ˺б - * @throws IOException + * @return 账号余额列表 + * + * @throws IOException */ - public List getTokenBalance(List addresses, String execer, String tokenSymbol) throws IOException { + public List getTokenBalance(List addresses, String execer, String tokenSymbol) + throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_TOKEN_BALANCE); JSONObject requestParam = new JSONObject(); requestParam.put("addresses", addresses); @@ -1180,12 +1324,16 @@ public List getTokenBalance(List addresses, String exe } /** - * @description ѯ + * @description 查询主代币余额 + * + * @param addresses + * 地址列表 + * @param execer + * coins * - * @param addresses ַб - * @param execer coins - * @return б - * @throws IOException + * @return 余额列表 + * + * @throws IOException */ public List getCoinsBalance(List addresses, String execer) throws IOException { RpcRequest postJsonData = new RpcRequest(); @@ -1207,11 +1355,14 @@ public List getCoinsBalance(List addresses, String exe } /** - * @description ˽Կ + * @description 导出私钥 + * + * @param addr + * 导出私钥的地址 + * + * @return 私钥 * - * @param addr ˽Կĵַ - * @return ˽Կ - * @throws IOException + * @throws IOException */ public String dumpPrivkey(String addr) throws IOException { RpcRequest postData = getPostData(RpcMethod.DUMP_PRIVKEY); @@ -1231,12 +1382,16 @@ public String dumpPrivkey(String addr) throws IOException { } /** - * @description ˽Կ + * @description 导入私钥 + * + * @param privateKey + * 私钥 + * @param label + * 地址label + * + * @return 导入结果 * - * @param privateKey ˽Կ - * @param label ַlabel - * @return - * @throws IOException + * @throws IOException */ public String importPrivatekey(String privateKey, String label) throws IOException { RpcRequest postData = getPostData(RpcMethod.IMPORT_PRIVKEY); @@ -1257,13 +1412,18 @@ public String importPrivatekey(String privateKey, String label) throws IOExcepti } /** - * @description ݵַȡϢhash + * @description 根据地址获取交易信息hash + * + * @param flag: + * 0:addr 的所有交易;1:当 addr 为发送方时的交易;2:当 addr 为接收方时的交易。 + * @param height: + * 交易所在的block高度,-1:表示从最新的开始向后取;大于等于0的值,从具体的高度+具体index开始取。 + * @param index: + * 交易所在block中的索引,取值0--100000。 * - * @param flag: 0addr нף1 addr ΪͷʱĽף2 addr ΪշʱĽס - * @param height: ڵblock߶ȣ-1ʾµĿʼȡڵ0ֵӾĸ߶+indexʼȡ - * @param index: blockеȡֵ0--100000 - * @return б - * @throws IOException + * @return 交易列表 + * + * @throws IOException */ public List getTxByAddr(String addr, Integer flag, Integer count, Integer direction, Long height, Integer index) throws IOException { @@ -1290,13 +1450,16 @@ public List getTxByAddr(String addr, Integer flag, Integer count, Inte } /** - * @description ѯԤtoken򴴽ɹtoken + * @description 查询所有预创建的token或创建成功的token + * + * @param status + * 0:预创建 1:创建成功 的token * - * @param status 0:Ԥ 1:ɹ token - * @return tokenϢб - * @throws IOException + * @return token信息列表 + * + * @throws IOException */ - public List queryCreateTokens(Integer status,String execer) throws IOException { + public List queryCreateTokens(Integer status, String execer) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); JSONObject requestParam = new JSONObject(); requestParam.put("execer", execer); @@ -1320,12 +1483,16 @@ public List queryCreateTokens(Integer status,String execer) throws } /** - * @description ѯַµtoken/traceԼµtokenʲ + * @description 查询地址下的token/trace合约下的token资产 + * + * @param address: + * 查询的地址 + * @param payloadExecer: + * token 或 trade * - * @param address: ѯĵַ - * @param payloadExecer: token trade * @return TokenBalanceResult - * @throws IOException + * + * @throws IOException */ public List queryAccountBalance(String address, String payloadExecer) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); @@ -1349,15 +1516,22 @@ public List queryAccountBalance(String address, String paylo } return null; } - + /** - * @description ѯԼĵGAS - * @param execer: ִ - * @param tx δǩĽhex - * @param address: ѯĵַ - * @param funcName: + * @description 查询合约消耗的GAS + * + * @param execer: + * 执行器名称 + * @param tx + * 未签名的交易hex + * @param address: + * 查询的地址 + * @param funcName: + * 方法名 + * * @return TokenBalanceResult - * @throws IOException + * + * @throws IOException */ public long queryEVMGas(String execer, String tx, String address) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); @@ -1379,15 +1553,20 @@ public long queryEVMGas(String execer, String tx, String address) throws IOExcep } return 0; } - + /** - * @description ѯԼ󶨵ABIϢ + * @description 查询合约绑定的ABI信息 + * + * @param address: + * 查询的地址 + * @param execer: + * 执行器名称 + * @param funcName: + * 方法名 * - * @param address: ѯĵַ - * @param execer: ִ - * @param funcName: * @return TokenBalanceResult - * @throws IOException + * + * @throws IOException */ public JSONArray queryEVMABIInfo(String address, String execer) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); @@ -1409,15 +1588,20 @@ public JSONArray queryEVMABIInfo(String address, String execer) throws IOExcepti } return null; } - + /** - * @description ѯԼABI + * @description 查询合约ABI结果 + * + * @param address: + * 查询的地址 + * @param execer: + * 执行器名称 + * @param funcName: + * 方法名 * - * @param address: ѯĵַ - * @param execer: ִ - * @param funcName: * @return TokenBalanceResult - * @throws IOException + * + * @throws IOException */ public JSONArray queryEVMABIResult(String address, String execer, String abiFunc) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); @@ -1442,12 +1626,16 @@ public JSONArray queryEVMABIResult(String address, String execer, String abiFunc } /** - * @description ѯַ + * @description 查询地址余额 + * + * @param addressList + * 地址 + * @param execer + * coins * - * @param addressList ַ - * @param execer coins * @return - * @throws IOException + * + * @throws IOException */ public List queryBalance(List addressList, String execer) throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_BALANCE); @@ -1472,15 +1660,23 @@ public String getUrl() { } /** - * @description ǩĽ - * @param unsignTx δǩtx - * @param sign sign:˽Կunsigntxǩõ - * @param pubkey ˽ԿӦĹԿ - * @param signType ǩ + * @description 发送签名后的交易 + * + * @param unsignTx + * 未签名的tx + * @param sign + * sign:用私钥对unsigntx签名好的数据 + * @param pubkey + * 私钥对应的公钥 + * @param signType + * 签名类型 + * * @return hash - * @throws IOException + * + * @throws IOException */ - public String submitRawTransaction(String unsignTx, String sign, String pubkey, SignType signType) throws IOException { + public String submitRawTransaction(String unsignTx, String sign, String pubkey, SignType signType) + throws IOException { RpcRequest postData = getPostData(RpcMethod.SEND_RAW_TRANSACTION); JSONObject requestParam = new JSONObject(); requestParam.put("unsignTx", unsignTx); @@ -1500,19 +1696,28 @@ public String submitRawTransaction(String unsignTx, String sign, String pubkey, } /** - * @description tokenת - * - * @param from: Դַ - * @param to: ͵ַ - * @param amount: ͽ - * @param note: ע - * @param isToken: ͵Ƿtokenfalse ·͵bt + * @description token转账 + * + * @param from: + * 来源地址。 + * @param to: + * 发送到地址。 + * @param amount: + * 发送金额。 + * @param note: + * 备注。 + * @param isToken: + * 发送的是否是token。false 的情况下发送的bt + * + * @param tokenSymbol: + * token标记符,最大长度是16个字符,且必须为大写字符。 * - * @param tokenSymbol: tokenǷ󳤶16ַұΪдַ * @return - * @throws IOException + * + * @throws IOException */ - public String sendToAddress(String from, String to, Long amount, String note, boolean isToken, String tokenSymbol) throws IOException { + public String sendToAddress(String from, String to, Long amount, String note, boolean isToken, String tokenSymbol) + throws IOException { RpcRequest postData = getPostData(RpcMethod.SEND_TO_ADDRESS); JSONObject requestParam = new JSONObject(); requestParam.put("from", from); @@ -1534,41 +1739,45 @@ public String sendToAddress(String from, String to, Long amount, String note, bo } /** + * + * @param userAddr + * 用户地址 + * @param reqStr + * 请求参数 + * @param signAddr + * sys_sign_addr 系统签名地址? * - * @param userAddr ûַ - * @param reqStr - * @param signAddr sys_sign_addr ϵͳǩַ * @return - * @throws IOException + * + * @throws IOException */ public String processTxGroup(String userAddr, String reqStr, String signAddr) throws IOException { String response = HttpUtil.httpPost(getUrl(), reqStr); RpcResponse rep = parseResponse(response, reqStr); if (rep == null) { - logger.error("ʧ"); + logger.error("构建交易组失败"); return ""; } String rawTxHex = String.valueOf(rep.getResult()); - // ѽ + // 构建代扣手续费交易 String withholdTxHex = createNoBalanceTx(rawTxHex, signAddr); - // Դ۽ǩ + // 对代扣交易签名 String signedTxHex = signRawTx(userAddr, null, withholdTxHex, "1h", 2); if ("".equals(signedTxHex)) { - logger.error("ǩʧ"); + logger.error("交易签名失败"); return ""; } - // ͽ + // 发送交易组 String txHash = submitTransaction(signedTxHex); if ("".equals(txHash)) { - logger.error("鷢ͽʧ"); + logger.error("交易组发送交易失败"); return ""; } return txHash; } - public List decodeRawTransaction(String rawTx) throws IOException { RpcRequest postData = getPostData(RpcMethod.DECODE_RAW_TX); @@ -1588,14 +1797,17 @@ public List decodeRawTransaction(String rawTx) throws IOEx return null; } - /** - * @descprition ԭеĽ׻ϹһѴ۽ףԤȽpayAddrӦ˽Կ뵽ƽ + * @descprition 在原有的交易基础上构建一个手续费代扣交易,需预先将payAddr对应的私钥导入到平行链 + * + * @param txHex + * 划转交易的16进制字符串 + * @param payAddr + * 代扣账户的地址 + * + * @return 包含原有划转交易与代扣交易的交易组16进制字符串 * - * @param txHex ת׵16ַ - * @param payAddr ˻ĵַ - * @return ԭлת۽׵Ľ16ַ - * @throws IOException + * @throws IOException */ public final String createNoBalanceTx(String txHex, String payAddr) throws IOException { RpcRequest postData = getPostData(RpcMethod.CREATE_NO_BALANCE_TX); @@ -1616,12 +1828,18 @@ public final String createNoBalanceTx(String txHex, String payAddr) throws IOExc } /** - * @descprition RPCؽַ + * @descprition 处理RPC返回结果字符串 + * * @author lyz + * * @create 2018/11/19 18:20 - * @param response RPC󷵻ؽַ - * @param reqParam Ҫڳʱʾ־ - * @return RPC + * + * @param response + * RPC请求返回结果字符串 + * @param reqParam + * 请求参数,主要是在出错的时候,显示到日志 + * + * @return RPC结果对象 */ public static RpcResponse parseResponse(String response, String reqParam) { RpcResponse rep = null; @@ -1632,21 +1850,25 @@ public static RpcResponse parseResponse(String response, String reqParam) { return rep; } } - logger.error("RPCʧܣϢ" + rep == null ? "" : rep.getError() + " , " + reqParam); + logger.error("RPC请求失败,错误信息:" + rep == null ? "" : rep.getError() + " , 请求参数:" + reqParam); return null; } - - + /** + * + * @description 创建撤销预创建token交易 + * + * @param symbol + * 积分symbol + * @param owner + * 积分拥有者地址 * - * @description Ԥtoken - * @param symbol symbol - * @param owner ӵߵַ * @return - * @throws IOException + * + * @throws IOException * */ - public String CreateRawTokenRevokeTx(String symbol,String owner) throws IOException { + public String CreateRawTokenRevokeTx(String symbol, String owner) throws IOException { RpcRequest postData = getPostData(RpcMethod.TOKEN_CREATE_RAW_TOKEN_REVOKE_TX); JSONObject requestParam = new JSONObject(); requestParam.put("symbol", symbol); @@ -1655,20 +1877,23 @@ public String CreateRawTokenRevokeTx(String symbol,String owner) throws IOExcept String requestResult = HttpUtil.httpPost(getUrl(), postData.toJsonString()); if (StringUtil.isNotEmpty(requestResult)) { JSONObject parseObject = JSONObject.parseObject(requestResult); - if (messageValidate(parseObject)) return null; + if (messageValidate(parseObject)) + return null; String result = parseObject.getString("result"); return result; } return null; } - - + /** - * @description ѯ֤Ϣ + * @description 查询存证信息 + * + * @param hash: + * hash * - * @param hash: hash * @return TokenBalanceResult - * @throws IOException + * + * @throws IOException */ public JSONObject queryStorage(String hash) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); @@ -1689,13 +1914,16 @@ public JSONObject queryStorage(String hash) throws IOException { } return null; } - + /** - * @description AccountId˻Ϣ + * @description 根据AccountId查账户信息 + * + * @param accountId: + * accountId * - * @param accountId: accountId * @return TokenBalanceResult - * @throws IOException + * + * @throws IOException */ public JSONObject queryAccountById(String accountId) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); @@ -1716,13 +1944,16 @@ public JSONObject queryAccountById(String accountId) throws IOException { } return null; } - + /** - * @description ˻״̬˻Ϣ + * @description 根据账户状态查账户信息 + * + * @param status: + * status * - * @param status: status * @return TokenBalanceResult - * @throws IOException + * + * @throws IOException */ public JSONObject queryAccountByStatus(String status) throws IOException { RpcRequest postData = getPostData(RpcMethod.QUERY); @@ -1746,20 +1977,29 @@ public JSONObject queryAccountByStatus(String status) throws IOException { /** * - * @description ؼԿƬؼܽڵ + * @description 发送重加秘钥分片给重加密节点 * - * @param pubOwner ݹ߹Կ - * @param pubRecipient ݽ߹Կ - * @param pubProofR ؼԿR - * @param pubProofU ؼԿU - * @param expire ʱʱ - * @param dhProof ֤ - * @param frag ؼԿƬ + * @param pubOwner + * 数据共享者公钥 + * @param pubRecipient + * 数据接收者公钥 + * @param pubProofR + * 重加密随机公钥R + * @param pubProofU + * 重加密随机公钥U + * @param expire + * 超时时间 + * @param dhProof + * 身份证明 + * @param frag + * 重加密秘钥分片 + * * @return true/false - * @throws IOException + * + * @throws IOException */ public boolean sendKeyFragment(String pubOwner, String pubRecipient, String pubProofR, String pubProofU, int expire, - String dhProof, KeyFrag frag) throws IOException { + String dhProof, KeyFrag frag) throws IOException { RpcRequest postData = getPostData(RpcMethod.PRE_SEND_KEY_FRAGMENT); JSONObject requestParam = new JSONObject(); @@ -1788,12 +2028,16 @@ public boolean sendKeyFragment(String pubOwner, String pubRecipient, String pubP /** * - * @description ؼ + * @description 申请重加密 * - * @param pubOwner ݹ߹Կ - * @param pubRecipient ݽ߹Կ - * @return ؼƬ - * @throws IOException + * @param pubOwner + * 数据共享者公钥 + * @param pubRecipient + * 数据接收者公钥 + * + * @return 重加密片段 + * + * @throws IOException */ public ReKeyFrag reencrypt(String pubOwner, String pubRecipient) throws IOException { RpcRequest postData = getPostData(RpcMethod.PRE_RE_ENCRYPT); @@ -1821,16 +2065,23 @@ public ReKeyFrag reencrypt(String pubOwner, String pubRecipient) throws IOExcept /** * - * @description ֤ûע + * @description 证书用户注册 * - * @param userName û - * @param identity ûid - * @param userPub ûԿ - * @param adminKey Ա˽Կ - * @return ע - * @throws IOException + * @param userName + * 用户名 + * @param identity + * 用户id + * @param userPub + * 用户公钥 + * @param adminKey + * 管理员私钥 + * + * @return 注册结果 + * + * @throws IOException */ - public boolean certUserRegister(String userName, String identity, String userPub, String adminKey) throws IOException { + public boolean certUserRegister(String userName, String identity, String userPub, String adminKey) + throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_USER_REGISTER); JSONObject requestParam = new JSONObject(); @@ -1867,12 +2118,16 @@ public boolean certUserRegister(String userName, String identity, String userPub /** * - * @description ֤ûע + * @description 证书用户注销 * - * @param identity ûid - * @param adminKey Ա˽Կ - * @return ע - * @throws IOException + * @param identity + * 用户id + * @param adminKey + * 管理员私钥 + * + * @return 注销结果 + * + * @throws IOException */ public boolean certUserRevoke(String identity, String adminKey) throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_USER_REVOKE); @@ -1907,12 +2162,16 @@ public boolean certUserRevoke(String identity, String adminKey) throws IOExcepti /** * - * @description û֤ + * @description 用户证书申请 * - * @param identity ûid - * @param key û˽Կ - * @return ע - * @throws IOException + * @param identity + * 用户id + * @param key + * 用户私钥 + * + * @return 注销结果 + * + * @throws IOException */ public CertObject.CertEnroll certEnroll(String identity, String key) throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_ENROLL); @@ -1952,12 +2211,16 @@ public CertObject.CertEnroll certEnroll(String identity, String key) throws IOEx /** * - * @description û֤룬û֤鱻ע + * @description 用户证书重新申请,用于用户证书被注销后 * - * @param identity ûid - * @param adminKey Ա˽Կ - * @return ע - * @throws IOException + * @param identity + * 用户id + * @param adminKey + * 管理员私钥 + * + * @return 注销结果 + * + * @throws IOException */ public CertObject.CertEnroll certReEnroll(String identity, String adminKey) throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_REENROLL); @@ -1997,12 +2260,16 @@ public CertObject.CertEnroll certReEnroll(String identity, String adminKey) thro /** * - * @description û֤ע + * @description 用户证书注销 * - * @param serial ֤к - * @param identity ûid - * @return ע - * @throws IOException + * @param serial + * 证书序序列号 + * @param identity + * 用户id + * + * @return 注销结果 + * + * @throws IOException */ public boolean certRevoke(String serial, String identity, String key) throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_REVOKE); @@ -2039,11 +2306,14 @@ public boolean certRevoke(String serial, String identity, String key) throws IOE /** * - * @description ȡcrl + * @description 获取crl * - * @param identity ûid + * @param identity + * 用户id + * * @return crl - * @throws IOException + * + * @throws IOException */ public byte[] certGetCRL(String identity, String key) throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_GET_CRL); @@ -2078,11 +2348,14 @@ public byte[] certGetCRL(String identity, String key) throws IOException { /** * - * @description ȡûϢ + * @description 获取用户信息 * - * @param identity ûid - * @return ûϢ - * @throws IOException + * @param identity + * 用户id + * + * @return 用户信息 + * + * @throws IOException */ public CertObject.UserInfo certGetUserInfo(String identity, String key) throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_GET_USERINFO); @@ -2121,11 +2394,14 @@ public CertObject.UserInfo certGetUserInfo(String identity, String key) throws I /** * - * @description ȡ֤Ϣ + * @description 获取证书信息 * - * @param serial ֤к - * @return ֤Ϣ - * @throws IOException + * @param serial + * 证书序列号 + * + * @return 证书信息 + * + * @throws IOException */ public CertObject.CertInfo certGetCertInfo(String serial, String key) throws IOException { RpcRequest postData = getPostData(RpcMethod.CERT_GET_CERTINFO); @@ -2163,20 +2439,31 @@ public CertObject.CertInfo certGetCertInfo(String serial, String key) throws IOE } /** - * @description ͽ + * @description 发送交易 * - * @param name string ע Ȳܳ 128 - * @param url string ͵ URLȲܳ 1024 - * @param encode string ݱ뷽ʽjson proto - * @param lastSequence int Ϳʼк - * @param lastHeight int Ϳʼ߶ - * @param lastBlockHash String Ϳʼϣ - * @param type int ͵ͣ0:飻1:ͷϢ2׻ִ - * @param contract map[string]bool ĵĺԼƣtype=2ʱЧ硰coins=true + * @param name + * string 注册名称 长度不能超过 128 + * @param url + * string 接受推送的 URL,长度不能超过 1024; + * @param encode + * string 数据编码方式;json 或者 proto + * @param lastSequence + * int 推送开始序列号 + * @param lastHeight + * int 推送开始高度 + * @param lastBlockHash + * String 推送开始块哈希 + * @param type + * int 推送的数据类型;0:代表区块;1:代表区块头信息;2:代表交易回执 + * @param contract + * map[string]bool 订阅的合约名称,当type=2的时候起效,比如“coins=true” + * * @return - * @throws IOException + * + * @throws IOException */ - public BooleanResult addPushSubscribe(String name, String url, String encode, int lastSequence, int lastHeight, String lastBlockHash, int type, Map contract) throws IOException { + public BooleanResult addPushSubscribe(String name, String url, String encode, int lastSequence, int lastHeight, + String lastBlockHash, int type, Map contract) throws IOException { RpcRequest postData = getPostData(RpcMethod.ADD_PUSH_SUBSCRIBE); JSONObject requestParam = new JSONObject(); requestParam.put("name", name); @@ -2201,9 +2488,11 @@ public BooleanResult addPushSubscribe(String name, String url, String encode, in } /** - * @description ȡб listPushes - * @return б - * @throws IOException + * @description 获取推送列表 listPushes + * + * @return 推送列表 + * + * @throws IOException */ public ListPushesResult listPushes() throws IOException { RpcRequest postData = getPostData(RpcMethod.LIST_PUSHES); @@ -2220,9 +2509,11 @@ public ListPushesResult listPushes() throws IOException { } /** - * @description ȡijͷкŵֵ getPushSeqLastNum - * @return ȡijͷкŵֵ - * @throws IOException + * @description 获取某推送服务最新序列号的值 getPushSeqLastNum + * + * @return 获取某推送服务最新序列号的值 + * + * @throws IOException */ public Int64Result getPushSeqLastNum(String name) throws IOException { RpcRequest postData = getPostData(RpcMethod.GET_PUSH_SEQ_LAST_NUM); @@ -2240,12 +2531,14 @@ public Int64Result getPushSeqLastNum(String name) throws IOException { } return null; } - + /** + * + * @description 获取版本号 + * + * @return 版本号 * - * @description ȡ汾 - * @return 汾 - * @throws IOException + * @throws IOException * */ public VersionResult getVersion() throws IOException { @@ -2265,6 +2558,5 @@ public VersionResult getVersion() throws IOException { } return null; } - - + } diff --git a/src/main/java/cn/chain33/javasdk/model/AccountInfo.java b/src/main/java/cn/chain33/javasdk/model/AccountInfo.java index 396b32e..f6775d0 100644 --- a/src/main/java/cn/chain33/javasdk/model/AccountInfo.java +++ b/src/main/java/cn/chain33/javasdk/model/AccountInfo.java @@ -1,44 +1,44 @@ package cn.chain33.javasdk.model; public class AccountInfo { - private String name; + private String name; - private String privateKey; - - private String publicKey; - - private String address; + private String privateKey; - public String getName() { - return name; - } + private String publicKey; - public void setName(String name) { - this.name = name; - } + private String address; - public String getPrivateKey() { - return privateKey; - } + public String getName() { + return name; + } - public void setPrivateKey(String privateKey) { - this.privateKey = privateKey; - } + public void setName(String name) { + this.name = name; + } - public String getPublicKey() { - return publicKey; - } + public String getPrivateKey() { + return privateKey; + } - public void setPublicKey(String publicKey) { - this.publicKey = publicKey; - } + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } - public String getAddress() { - return address; - } + public String getPublicKey() { + return publicKey; + } - public void setAddress(String address) { - this.address = address; - } + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } } diff --git a/src/main/java/cn/chain33/javasdk/model/Address.java b/src/main/java/cn/chain33/javasdk/model/Address.java index fa9bf7d..5e17b14 100644 --- a/src/main/java/cn/chain33/javasdk/model/Address.java +++ b/src/main/java/cn/chain33/javasdk/model/Address.java @@ -2,54 +2,54 @@ public class Address { - private byte version; - - private byte[] hash160; - - private byte[] checkSum; - - private byte[] pubkey; - - private String Enc58Str; - - public byte getVersion() { - return version; - } - - public void setVersion(byte version) { - this.version = version; - } - - public byte[] getHash160() { - return hash160; - } - - public void setHash160(byte[] hash160) { - this.hash160 = hash160; - } - - public byte[] getCheckSum() { - return checkSum; - } - - public void setCheckSum(byte[] checkSum) { - this.checkSum = checkSum; - } - - public byte[] getPubkey() { - return pubkey; - } - - public void setPubkey(byte[] pubkey) { - this.pubkey = pubkey; - } - - public String getEnc58Str() { - return Enc58Str; - } - - public void setEnc58Str(String enc58Str) { - Enc58Str = enc58Str; - } - + private byte version; + + private byte[] hash160; + + private byte[] checkSum; + + private byte[] pubkey; + + private String Enc58Str; + + public byte getVersion() { + return version; + } + + public void setVersion(byte version) { + this.version = version; + } + + public byte[] getHash160() { + return hash160; + } + + public void setHash160(byte[] hash160) { + this.hash160 = hash160; + } + + public byte[] getCheckSum() { + return checkSum; + } + + public void setCheckSum(byte[] checkSum) { + this.checkSum = checkSum; + } + + public byte[] getPubkey() { + return pubkey; + } + + public void setPubkey(byte[] pubkey) { + this.pubkey = pubkey; + } + + public String getEnc58Str() { + return Enc58Str; + } + + public void setEnc58Str(String enc58Str) { + Enc58Str = enc58Str; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/RpcRequest.java b/src/main/java/cn/chain33/javasdk/model/RpcRequest.java index 43d4e5e..f7efa56 100644 --- a/src/main/java/cn/chain33/javasdk/model/RpcRequest.java +++ b/src/main/java/cn/chain33/javasdk/model/RpcRequest.java @@ -7,78 +7,78 @@ import cn.chain33.javasdk.model.enums.RpcMethod; -public class RpcRequest implements Serializable{ - - private static final long serialVersionUID = 1L; - - private String jsonrpc; - - private Integer id; - - private String method; - - private JSONArray params; - - private transient String privateKey; - - public RpcRequest(){ - this.jsonrpc = "2.0"; - this.id = 2; - params = new JSONArray(); - } - - public JSONArray getParams() { - return params; - } - - public void setParams(JSONArray params) { - this.params = params; - } - - public String getJsonrpc() { - return jsonrpc; - } - - public void setJsonrpc(String jsonrpc) { - this.jsonrpc = jsonrpc; - } - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getMethod() { - return method; - } - - public void setMethod(RpcMethod method) { - this.method = method.toString(); - } - - public void addParams(String data) { - JSONObject json = new JSONObject(); - json.put("data", data); - this.params.add(json); - } - - public void addJsonParams(JSONObject jsonParams) { - this.params.add(jsonParams); - } - - public String getPrivateKey() { - return privateKey; - } - - public void setPrivateKey(String privateKey) { - this.privateKey = privateKey; - } - - public String toJsonString() { - return JSONObject.toJSONString(this); - } - +public class RpcRequest implements Serializable { + + private static final long serialVersionUID = 1L; + + private String jsonrpc; + + private Integer id; + + private String method; + + private JSONArray params; + + private transient String privateKey; + + public RpcRequest() { + this.jsonrpc = "2.0"; + this.id = 2; + params = new JSONArray(); + } + + public JSONArray getParams() { + return params; + } + + public void setParams(JSONArray params) { + this.params = params; + } + + public String getJsonrpc() { + return jsonrpc; + } + + public void setJsonrpc(String jsonrpc) { + this.jsonrpc = jsonrpc; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getMethod() { + return method; + } + + public void setMethod(RpcMethod method) { + this.method = method.toString(); + } + + public void addParams(String data) { + JSONObject json = new JSONObject(); + json.put("data", data); + this.params.add(json); + } + + public void addJsonParams(JSONObject jsonParams) { + this.params.add(jsonParams); + } + + public String getPrivateKey() { + return privateKey; + } + + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public String toJsonString() { + return JSONObject.toJSONString(this); + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/RpcResponse.java b/src/main/java/cn/chain33/javasdk/model/RpcResponse.java index c98cebe..a98b296 100644 --- a/src/main/java/cn/chain33/javasdk/model/RpcResponse.java +++ b/src/main/java/cn/chain33/javasdk/model/RpcResponse.java @@ -4,48 +4,50 @@ /** * @author lyz + * * @mail lyz@disanbo.com + * * @create 2018/11/14 15:45 + * * @description */ public class RpcResponse implements Serializable { - private static final long serialVersionUID = 1L; - - private int id; + private static final long serialVersionUID = 1L; + + private int id; private String error; private Object result; - public boolean isValid(){ - if(this.error == null || "".equals(this.error) || "null".equals(this.error)){ + public boolean isValid() { + if (this.error == null || "".equals(this.error) || "null".equals(this.error)) { return true; } return false; } - public int getId() { - return id; - } + public int getId() { + return id; + } - public void setId(int id) { - this.id = id; - } + public void setId(int id) { + this.id = id; + } - public String getError() { - return error; - } + public String getError() { + return error; + } - public void setError(String error) { - this.error = error; - } + public void setError(String error) { + this.error = error; + } - public Object getResult() { - return result; - } + public Object getResult() { + return result; + } - public void setResult(Object result) { - this.result = result; - } + public void setResult(Object result) { + this.result = result; + } - } diff --git a/src/main/java/cn/chain33/javasdk/model/Signature.java b/src/main/java/cn/chain33/javasdk/model/Signature.java index edadcda..0a47278 100644 --- a/src/main/java/cn/chain33/javasdk/model/Signature.java +++ b/src/main/java/cn/chain33/javasdk/model/Signature.java @@ -2,39 +2,38 @@ import java.io.Serializable; -public class Signature implements Serializable{ - - private static final long serialVersionUID = 1L; - - private int Ty; - - private byte[] Pubkey; - - private byte[] Signature; - - public int getTy() { - return Ty; - } - - public void setTy(int ty) { - Ty = ty; - } - - public byte[] getPubkey() { - return Pubkey; - } - - public void setPubkey(byte[] pubkey) { - Pubkey = pubkey; - } - - public byte[] getSignature() { - return Signature; - } - - public void setSignature(byte[] signature) { - Signature = signature; - } - - +public class Signature implements Serializable { + + private static final long serialVersionUID = 1L; + + private int Ty; + + private byte[] Pubkey; + + private byte[] Signature; + + public int getTy() { + return Ty; + } + + public void setTy(int ty) { + Ty = ty; + } + + public byte[] getPubkey() { + return Pubkey; + } + + public void setPubkey(byte[] pubkey) { + Pubkey = pubkey; + } + + public byte[] getSignature() { + return Signature; + } + + public void setSignature(byte[] signature) { + Signature = signature; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/Transaction.java b/src/main/java/cn/chain33/javasdk/model/Transaction.java index 322b2e5..df50bf4 100644 --- a/src/main/java/cn/chain33/javasdk/model/Transaction.java +++ b/src/main/java/cn/chain33/javasdk/model/Transaction.java @@ -4,71 +4,71 @@ public class Transaction implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; - private byte[] execer; - private byte[] payload; - private long fee; - private long expire; - private long nonce; - private String to; + private byte[] execer; + private byte[] payload; + private long fee; + private long expire; + private long nonce; + private String to; - private Signature signature; + private Signature signature; - public byte[] getExecer() { - return execer; - } + public byte[] getExecer() { + return execer; + } - public void setExecer(byte[] execer) { - this.execer = execer; - } + public void setExecer(byte[] execer) { + this.execer = execer; + } - public byte[] getPayload() { - return payload; - } + public byte[] getPayload() { + return payload; + } - public void setPayload(byte[] payload) { - this.payload = payload; - } + public void setPayload(byte[] payload) { + this.payload = payload; + } - public long getFee() { - return fee; - } + public long getFee() { + return fee; + } - public void setFee(long fee) { - this.fee = fee; - } + public void setFee(long fee) { + this.fee = fee; + } - public long getExpire() { - return expire; - } + public long getExpire() { + return expire; + } - public void setExpire(long expire) { - this.expire = expire; - } + public void setExpire(long expire) { + this.expire = expire; + } - public long getNonce() { - return nonce; - } + public long getNonce() { + return nonce; + } - public void setNonce(long nonce) { - this.nonce = nonce; - } + public void setNonce(long nonce) { + this.nonce = nonce; + } - public String getTo() { - return to; - } + public String getTo() { + return to; + } - public void setTo(String to) { - this.to = to; - } + public void setTo(String to) { + this.to = to; + } - public Signature getSignature() { - return signature; - } + public Signature getSignature() { + return signature; + } - public void setSignature(Signature signature) { - this.signature = signature; - } + public void setSignature(Signature signature) { + this.signature = signature; + } } diff --git a/src/main/java/cn/chain33/javasdk/model/TransferBalanceRequest.java b/src/main/java/cn/chain33/javasdk/model/TransferBalanceRequest.java index 038342c..4f16924 100644 --- a/src/main/java/cn/chain33/javasdk/model/TransferBalanceRequest.java +++ b/src/main/java/cn/chain33/javasdk/model/TransferBalanceRequest.java @@ -3,109 +3,109 @@ import cn.chain33.javasdk.model.enums.SignType; public class TransferBalanceRequest { - - /** - * 转账说明 - */ - private String note; - - /** - * 积分名称 - */ - private String coinToken; - - /** - * 转账金额 - */ - private Long amount; - - /** - * 转向的地址 - */ - private String to; - - /** - * 转账地址私钥 - */ - private String fromPrivateKey; - - /** - * 签名类型 - */ - private SignType signType; - - /** - * 手续费 - */ - private long fee; - - /** - * 执行器名称 - */ - private String execer; - - public String getNote() { - return note; - } - - public void setNote(String note) { - this.note = note; - } - - public String getCoinToken() { - return coinToken; - } - - public void setCoinToken(String coinToken) { - this.coinToken = coinToken; - } - - public Long getAmount() { - return amount; - } - - public void setAmount(Long amount) { - this.amount = amount; - } - - public String getTo() { - return to; - } - - public void setTo(String to) { - this.to = to; - } - - public String getFromPrivateKey() { - return fromPrivateKey; - } - - public void setFromPrivateKey(String fromPrivateKey) { - this.fromPrivateKey = fromPrivateKey; - } - - public String getExecer() { - return execer; - } - - public void setExecer(String execer) { - this.execer = execer; - } - - public SignType getSignType() { - return signType; - } - - public void setSignType(SignType signType) { - this.signType = signType; - } - - public long getFee() { - return fee; - } - - public void setFee(long fee) { - this.fee = fee; - } - + + /** + * 转账说明 + */ + private String note; + + /** + * 积分名称 + */ + private String coinToken; + + /** + * 转账金额 + */ + private Long amount; + + /** + * 转向的地址 + */ + private String to; + + /** + * 转账地址私钥 + */ + private String fromPrivateKey; + + /** + * 签名类型 + */ + private SignType signType; + + /** + * 手续费 + */ + private long fee; + + /** + * 执行器名称 + */ + private String execer; + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public String getCoinToken() { + return coinToken; + } + + public void setCoinToken(String coinToken) { + this.coinToken = coinToken; + } + + public Long getAmount() { + return amount; + } + + public void setAmount(Long amount) { + this.amount = amount; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getFromPrivateKey() { + return fromPrivateKey; + } + + public void setFromPrivateKey(String fromPrivateKey) { + this.fromPrivateKey = fromPrivateKey; + } + + public String getExecer() { + return execer; + } + + public void setExecer(String execer) { + this.execer = execer; + } + + public SignType getSignType() { + return signType; + } + + public void setSignType(SignType signType) { + this.signType = signType; + } + + public long getFee() { + return fee; + } + + public void setFee(long fee) { + this.fee = fee; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/cert/CertObject.java b/src/main/java/cn/chain33/javasdk/model/cert/CertObject.java index 6d786ab..242d129 100644 --- a/src/main/java/cn/chain33/javasdk/model/cert/CertObject.java +++ b/src/main/java/cn/chain33/javasdk/model/cert/CertObject.java @@ -63,9 +63,9 @@ public String getSerial() { public static final class CertInfo { public String serial; - public int status; - public long exipreTime; - public long revokeTime; + public int status; + public long exipreTime; + public long revokeTime; public byte[] cert; public String identity; diff --git a/src/main/java/cn/chain33/javasdk/model/decode/DecodePayLoad.java b/src/main/java/cn/chain33/javasdk/model/decode/DecodePayLoad.java index 93c89f1..31e6921 100644 --- a/src/main/java/cn/chain33/javasdk/model/decode/DecodePayLoad.java +++ b/src/main/java/cn/chain33/javasdk/model/decode/DecodePayLoad.java @@ -1,9 +1,9 @@ package cn.chain33.javasdk.model.decode; public class DecodePayLoad { - + private DecodeTransfer transfer; - + private Integer ty; public DecodeTransfer getTransfer() { @@ -26,6 +26,5 @@ public void setTy(Integer ty) { public String toString() { return "DecodePayLoad [transfer=" + transfer + ", ty=" + ty + "]"; } - - + } diff --git a/src/main/java/cn/chain33/javasdk/model/decode/DecodeRawTransaction.java b/src/main/java/cn/chain33/javasdk/model/decode/DecodeRawTransaction.java index ed3d97a..9414bd7 100644 --- a/src/main/java/cn/chain33/javasdk/model/decode/DecodeRawTransaction.java +++ b/src/main/java/cn/chain33/javasdk/model/decode/DecodeRawTransaction.java @@ -1,33 +1,33 @@ package cn.chain33.javasdk.model.decode; public class DecodeRawTransaction { - + private String rawPayload; - + private Long fee; - + private DecodeSignature signature; - + private String feefmt; - + private Long nonce; - + private Integer groupCount; - + private DecodePayLoad payload; - + private Long expire; - + private String header; - + private String from; - + private String to; - + private String execer; - + private String hash; - + private String next; public String getRawPayload() { @@ -141,6 +141,5 @@ public String getNext() { public void setNext(String next) { this.next = next; } - - + } diff --git a/src/main/java/cn/chain33/javasdk/model/decode/DecodeSignature.java b/src/main/java/cn/chain33/javasdk/model/decode/DecodeSignature.java index 3e0178b..48d4d87 100644 --- a/src/main/java/cn/chain33/javasdk/model/decode/DecodeSignature.java +++ b/src/main/java/cn/chain33/javasdk/model/decode/DecodeSignature.java @@ -1,11 +1,11 @@ package cn.chain33.javasdk.model.decode; public class DecodeSignature { - + private Integer ty; - + private String signature; - + private String pubkey; public Integer getTy() { @@ -36,6 +36,5 @@ public void setPubkey(String pubkey) { public String toString() { return "DecodeSignature [ty=" + ty + ", signature=" + signature + ", pubkey=" + pubkey + "]"; } - - + } diff --git a/src/main/java/cn/chain33/javasdk/model/decode/DecodeTransfer.java b/src/main/java/cn/chain33/javasdk/model/decode/DecodeTransfer.java index b0a1f79..be5512c 100644 --- a/src/main/java/cn/chain33/javasdk/model/decode/DecodeTransfer.java +++ b/src/main/java/cn/chain33/javasdk/model/decode/DecodeTransfer.java @@ -1,11 +1,11 @@ package cn.chain33.javasdk.model.decode; public class DecodeTransfer { - + private Long amount; - + private String cointoken; - + private String to; public Long getAmount() { @@ -36,5 +36,5 @@ public void setTo(String to) { public String toString() { return "DecodeTransfer [amount=" + amount + ", cointoken=" + cointoken + ", to=" + to + "]"; } - + } diff --git a/src/main/java/cn/chain33/javasdk/model/enums/RpcMethod.java b/src/main/java/cn/chain33/javasdk/model/enums/RpcMethod.java index 6d064a8..941a1ed 100644 --- a/src/main/java/cn/chain33/javasdk/model/enums/RpcMethod.java +++ b/src/main/java/cn/chain33/javasdk/model/enums/RpcMethod.java @@ -1,128 +1,128 @@ package cn.chain33.javasdk.model.enums; public enum RpcMethod { - - QUERY_TRANSACTION("Chain33.QueryTransaction"), - - BLOCKCHAIN_IS_SYNC("Chain33.IsSync"), - - SEND_TRANSACTION("Chain33.SendTransaction"), - - GET_TX_BY_HASHES("Chain33.GetTxByHashes"), - - GET_HEX_TX_BY_HASH("Chain33.GetHexTxByHash"), - - GET_BLOCKS("Chain33.GetBlocks"), - - GET_LAST_HEADER("Chain33.GetLastHeader"), - - GET_HEADERS("Chain33.GetHeaders"), - - GET_BLOCK_HASH("Chain33.GetBlockHash"), - - GET_BLOCK_BY_HASHS("Chain33.GetBlockByHashes"), - - GET_BLOCK_DETAIL("Chain33.GetBlockOverview"), - - GET_PEER_INFO("Chain33.GetPeerInfo"), - - GET_NET_INFO("Chain33.GetNetInfo"), - - GET_CRYPTO_INFO("Chain33.GetCryptoList"), - - GET_WALLET_STUATUS("Chain33.GetWalletStatus"), - - LOCK_WALLET("Chain33.Lock"), - - UNLOCK_WALLET("Chain33.UnLock"), - - NEW_ACCOUNT("Chain33.NewAccount"), - - GEN_SEED("Chain33.GenSeed"), - - SAVE_SEED("Chain33.SaveSeed"), - - GET_SEED("Chain33.GetSeed"), - - SET_LABEL("Chain33.SetLabl"), - - GET_ACCOUNT_LIST("Chain33.GetAccounts"), - - TOKEN_CREATE_PRE_CREATE_TX("token.CreateRawTokenPreCreateTx"), - - TOKEN_CREATE_FINISH_TX("token.CreateRawTokenFinishTx"), - - TOKEN_CREATE_RAW_TX("Chain33.CreateRawTransaction"), - - SIGN_RAW_TRANSACTION("Chain33.SignRawTx"), - - GET_TOKEN_BALANCE("token.GetTokenBalance"), - - QUERY("Chain33.Query"), - - GET_TX_BY_ADDR("Chain33.GetTxByAddr"), - - SEND_RAW_TRANSACTION("Chain33.SendRawTransaction"), - - SEND_TO_ADDRESS("Chain33.SendToAddress"), - - GET_BALANCE("Chain33.GetBalance"), - - CREATE_TRASACTION("Chain33.CreateTransaction"), - - DUMP_PRIVKEY("Chain33.DumpPrivkey"), - - IMPORT_PRIVKEY("Chain33.ImportPrivkey"), - - CREATE_NO_BALANCE_TX("Chain33.CreateNoBalanceTransaction"), - - CONVERT_EXECER_TO_ADDRESS("Chain33.ConvertExectoAddr"), - - DECODE_RAW_TX("Chain33.DecodeRawTransaction"), - - TOKEN_CREATE_RAW_TOKEN_REVOKE_TX("token.CreateRawTokenRevokeTx"), - - PRE_SEND_KEY_FRAGMENT("Pre.CollectFragment"), - - PRE_RE_ENCRYPT("Pre.Reencrypt"), - - CERT_USER_REGISTER("chain33-ca-server.RegisterUser"), - - CERT_USER_REVOKE("chain33-ca-server.RevokeUser"), - - CERT_ENROLL("chain33-ca-server.Enroll"), - - CERT_REENROLL("chain33-ca-server.ReEnroll"), - - CERT_REVOKE("chain33-ca-server.RevokeCert"), - - CERT_GET_CRL("chain33-ca-server.GetCRL"), - - CERT_GET_USERINFO("chain33-ca-server.GetUserInfo"), - - CERT_GET_CERTINFO("chain33-ca-server.GetCertInfo"), - - ADD_PUSH_SUBSCRIBE("Chain33.AddPushSubscribe"), - - LIST_PUSHES("Chain33.ListPushes"), - - GET_PUSH_SEQ_LAST_NUM("Chain33.GetPushSeqLastNum"), - - VERSION("Chain33.Version"); - - private String method; - - private RpcMethod(String method) { - this.method = method; - } - - public String getMethod() { - return method; - } - - @Override - public String toString() { - return getMethod(); - } - + + QUERY_TRANSACTION("Chain33.QueryTransaction"), + + BLOCKCHAIN_IS_SYNC("Chain33.IsSync"), + + SEND_TRANSACTION("Chain33.SendTransaction"), + + GET_TX_BY_HASHES("Chain33.GetTxByHashes"), + + GET_HEX_TX_BY_HASH("Chain33.GetHexTxByHash"), + + GET_BLOCKS("Chain33.GetBlocks"), + + GET_LAST_HEADER("Chain33.GetLastHeader"), + + GET_HEADERS("Chain33.GetHeaders"), + + GET_BLOCK_HASH("Chain33.GetBlockHash"), + + GET_BLOCK_BY_HASHS("Chain33.GetBlockByHashes"), + + GET_BLOCK_DETAIL("Chain33.GetBlockOverview"), + + GET_PEER_INFO("Chain33.GetPeerInfo"), + + GET_NET_INFO("Chain33.GetNetInfo"), + + GET_CRYPTO_INFO("Chain33.GetCryptoList"), + + GET_WALLET_STUATUS("Chain33.GetWalletStatus"), + + LOCK_WALLET("Chain33.Lock"), + + UNLOCK_WALLET("Chain33.UnLock"), + + NEW_ACCOUNT("Chain33.NewAccount"), + + GEN_SEED("Chain33.GenSeed"), + + SAVE_SEED("Chain33.SaveSeed"), + + GET_SEED("Chain33.GetSeed"), + + SET_LABEL("Chain33.SetLabl"), + + GET_ACCOUNT_LIST("Chain33.GetAccounts"), + + TOKEN_CREATE_PRE_CREATE_TX("token.CreateRawTokenPreCreateTx"), + + TOKEN_CREATE_FINISH_TX("token.CreateRawTokenFinishTx"), + + TOKEN_CREATE_RAW_TX("Chain33.CreateRawTransaction"), + + SIGN_RAW_TRANSACTION("Chain33.SignRawTx"), + + GET_TOKEN_BALANCE("token.GetTokenBalance"), + + QUERY("Chain33.Query"), + + GET_TX_BY_ADDR("Chain33.GetTxByAddr"), + + SEND_RAW_TRANSACTION("Chain33.SendRawTransaction"), + + SEND_TO_ADDRESS("Chain33.SendToAddress"), + + GET_BALANCE("Chain33.GetBalance"), + + CREATE_TRASACTION("Chain33.CreateTransaction"), + + DUMP_PRIVKEY("Chain33.DumpPrivkey"), + + IMPORT_PRIVKEY("Chain33.ImportPrivkey"), + + CREATE_NO_BALANCE_TX("Chain33.CreateNoBalanceTransaction"), + + CONVERT_EXECER_TO_ADDRESS("Chain33.ConvertExectoAddr"), + + DECODE_RAW_TX("Chain33.DecodeRawTransaction"), + + TOKEN_CREATE_RAW_TOKEN_REVOKE_TX("token.CreateRawTokenRevokeTx"), + + PRE_SEND_KEY_FRAGMENT("Pre.CollectFragment"), + + PRE_RE_ENCRYPT("Pre.Reencrypt"), + + CERT_USER_REGISTER("chain33-ca-server.RegisterUser"), + + CERT_USER_REVOKE("chain33-ca-server.RevokeUser"), + + CERT_ENROLL("chain33-ca-server.Enroll"), + + CERT_REENROLL("chain33-ca-server.ReEnroll"), + + CERT_REVOKE("chain33-ca-server.RevokeCert"), + + CERT_GET_CRL("chain33-ca-server.GetCRL"), + + CERT_GET_USERINFO("chain33-ca-server.GetUserInfo"), + + CERT_GET_CERTINFO("chain33-ca-server.GetCertInfo"), + + ADD_PUSH_SUBSCRIBE("Chain33.AddPushSubscribe"), + + LIST_PUSHES("Chain33.ListPushes"), + + GET_PUSH_SEQ_LAST_NUM("Chain33.GetPushSeqLastNum"), + + VERSION("Chain33.Version"); + + private String method; + + private RpcMethod(String method) { + this.method = method; + } + + public String getMethod() { + return method; + } + + @Override + public String toString() { + return getMethod(); + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/enums/SignType.java b/src/main/java/cn/chain33/javasdk/model/enums/SignType.java index 17fb684..a256be5 100644 --- a/src/main/java/cn/chain33/javasdk/model/enums/SignType.java +++ b/src/main/java/cn/chain33/javasdk/model/enums/SignType.java @@ -1,16 +1,16 @@ package cn.chain33.javasdk.model.enums; public enum SignType { - - SECP256K1(1),ED25519(2),SM2(258); - - private Integer type; - - private SignType(Integer type) { - this.type = type; - } - - public Integer getType() { - return type; - } + + SECP256K1(1), ED25519(2), SM2(258); + + private Integer type; + + private SignType(Integer type) { + this.type = type; + } + + public Integer getType() { + return type; + } } diff --git a/src/main/java/cn/chain33/javasdk/model/enums/StorageEnum.java b/src/main/java/cn/chain33/javasdk/model/enums/StorageEnum.java index 6ab2da6..b750bd0 100644 --- a/src/main/java/cn/chain33/javasdk/model/enums/StorageEnum.java +++ b/src/main/java/cn/chain33/javasdk/model/enums/StorageEnum.java @@ -1,20 +1,16 @@ package cn.chain33.javasdk.model.enums; public enum StorageEnum { - - ContentOnlyNotaryStorage(1), - HashOnlyNotaryStorage(2), - LinkNotaryStorage(3), - EncryptNotaryStorage(4), - EncryptShareNotaryStorage (5), - EncryptNotaryAdd(6); - + + ContentOnlyNotaryStorage(1), HashOnlyNotaryStorage(2), LinkNotaryStorage(3), EncryptNotaryStorage(4), + EncryptShareNotaryStorage(5), EncryptNotaryAdd(6); + private int ty; - + private StorageEnum(int ty) { this.ty = ty; } - + public int getTy() { return ty; } diff --git a/src/main/java/cn/chain33/javasdk/model/enums/WasmEnum.java b/src/main/java/cn/chain33/javasdk/model/enums/WasmEnum.java index 9817eb7..6e59db6 100644 --- a/src/main/java/cn/chain33/javasdk/model/enums/WasmEnum.java +++ b/src/main/java/cn/chain33/javasdk/model/enums/WasmEnum.java @@ -2,7 +2,7 @@ public enum WasmEnum { - WasmCreate(1),WasmUpdate(2),WasmCall(3); + WasmCreate(1), WasmUpdate(2), WasmCall(3); private int ty; diff --git a/src/main/java/cn/chain33/javasdk/model/evm/Abi.java b/src/main/java/cn/chain33/javasdk/model/evm/Abi.java index 0fb9407..7719552 100644 --- a/src/main/java/cn/chain33/javasdk/model/evm/Abi.java +++ b/src/main/java/cn/chain33/javasdk/model/evm/Abi.java @@ -41,10 +41,9 @@ import java.util.List; public class Abi extends ArrayList { - private static final ObjectMapper DEFAULT_MAPPER = - new ObjectMapper() - .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) - .enable(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL); + private static final ObjectMapper DEFAULT_MAPPER = new ObjectMapper() + .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + .enable(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL); public static Abi fromJson(String json) { try { @@ -62,11 +61,8 @@ public String toJson() { } } - private T find( - Class resultClass, final Entry.Type type, final Predicate searchPredicate) { - return (T) - CollectionUtils.find( - this, entry -> entry.type == type && searchPredicate.evaluate((T) entry)); + private T find(Class resultClass, final Entry.Type type, final Predicate searchPredicate) { + return (T) CollectionUtils.find(this, entry -> entry.type == type && searchPredicate.evaluate((T) entry)); } public Function findFunction(Predicate searchPredicate) { @@ -90,10 +86,7 @@ public String toString() { public abstract static class Entry { public enum Type { - constructor, - function, - event, - fallback + constructor, function, event, fallback } @JsonInclude(Include.NON_NULL) @@ -107,11 +100,9 @@ public static List decodeList(List params, byte[] encoded) { int offset = 0; for (Param param : params) { - Object decoded = - param.type.isDynamicType() - ? param.type.decode( - encoded, decodeInt(encoded, offset).intValue()) - : param.type.decode(encoded, offset); + Object decoded = param.type.isDynamicType() + ? param.type.decode(encoded, decodeInt(encoded, offset).intValue()) + : param.type.decode(encoded, offset); result.add(decoded); offset += param.type.getFixedSize(); @@ -122,10 +113,7 @@ encoded, decodeInt(encoded, offset).intValue()) @Override public String toString() { - return format( - "%s%s%s", - type.getCanonicalName(), - (indexed != null && indexed) ? " indexed " : " ", + return format("%s%s%s", type.getCanonicalName(), (indexed != null && indexed) ? " indexed " : " ", name); } } @@ -138,14 +126,8 @@ public String toString() { public final Type type; public final Boolean payable; - public Entry( - Boolean anonymous, - Boolean constant, - String name, - List inputs, - List outputs, - Type type, - Boolean payable) { + public Entry(Boolean anonymous, Boolean constant, String name, List inputs, List outputs, + Type type, Boolean payable) { this.anonymous = anonymous; this.constant = constant; this.name = name; @@ -173,27 +155,23 @@ public byte[] encodeSignature() { } @JsonCreator - public static Entry create( - @JsonProperty("anonymous") boolean anonymous, - @JsonProperty("constant") boolean constant, - @JsonProperty("name") String name, - @JsonProperty("inputs") List inputs, - @JsonProperty("outputs") List outputs, + public static Entry create(@JsonProperty("anonymous") boolean anonymous, + @JsonProperty("constant") boolean constant, @JsonProperty("name") String name, + @JsonProperty("inputs") List inputs, @JsonProperty("outputs") List outputs, @JsonProperty("type") Type type, - @JsonProperty(value = "payable", required = false, defaultValue = "false") - Boolean payable) { + @JsonProperty(value = "payable", required = false, defaultValue = "false") Boolean payable) { Entry result = null; switch (type) { - case constructor: - result = new Constructor(inputs, outputs); - break; - case function: - case fallback: - result = new Function(constant, name, inputs, outputs, payable); - break; - case event: - result = new Event(anonymous, name, inputs, outputs); - break; + case constructor: + result = new Constructor(inputs, outputs); + break; + case function: + case fallback: + result = new Function(constant, name, inputs, outputs, payable); + break; + case event: + result = new Event(anonymous, name, inputs, outputs); + break; } return result; @@ -216,8 +194,7 @@ public String formatSignature(String contractName) { public byte[] encode(Object... args) { if (args.length > inputs.size()) - throw new RuntimeException( - "Too many arguments: " + args.length + " > " + inputs.size()); + throw new RuntimeException("Too many arguments: " + args.length + " > " + inputs.size()); int staticSize = 0; int dynamicCnt = 0; @@ -253,12 +230,7 @@ public static class Function extends Entry { private static final int ENCODED_SIGN_LENGTH = 4; - public Function( - boolean constant, - String name, - List inputs, - List outputs, - Boolean payable) { + public Function(boolean constant, String name, List inputs, List outputs, Boolean payable) { super(null, constant, name, inputs, outputs, Type.function, payable); } @@ -268,8 +240,7 @@ public byte[] encode(Object... args) { private byte[] encodeArguments(Object... args) { if (args.length > inputs.size()) - throw new RuntimeException( - "Too many arguments: " + args.length + " > " + inputs.size()); + throw new RuntimeException("Too many arguments: " + args.length + " > " + inputs.size()); int staticSize = 0; int dynamicCnt = 0; diff --git a/src/main/java/cn/chain33/javasdk/model/evm/ObjectMapperFactory.java b/src/main/java/cn/chain33/javasdk/model/evm/ObjectMapperFactory.java index 05985b5..cda9d9f 100644 --- a/src/main/java/cn/chain33/javasdk/model/evm/ObjectMapperFactory.java +++ b/src/main/java/cn/chain33/javasdk/model/evm/ObjectMapperFactory.java @@ -7,6 +7,6 @@ public class ObjectMapperFactory { private static final ObjectMapper DEFAULT_OBJECT_MAPPER = new ObjectMapper(); public static ObjectMapper getObjectMapper() { - return DEFAULT_OBJECT_MAPPER; + return DEFAULT_OBJECT_MAPPER; } } diff --git a/src/main/java/cn/chain33/javasdk/model/evm/SolidityType.java b/src/main/java/cn/chain33/javasdk/model/evm/SolidityType.java index 2c6a3b0..69e181f 100644 --- a/src/main/java/cn/chain33/javasdk/model/evm/SolidityType.java +++ b/src/main/java/cn/chain33/javasdk/model/evm/SolidityType.java @@ -43,8 +43,7 @@ public String getName() { } /** - * The canonical type name (used for the method signature creation) E.g. 'int' - canonical - * 'int256' + * The canonical type name (used for the method signature creation) E.g. 'int' - canonical 'int256' */ @JsonValue public String getCanonicalName() { @@ -53,15 +52,24 @@ public String getCanonicalName() { @JsonCreator public static SolidityType getType(String typeName) { - if (typeName.contains("[")) return ArrayType.getType(typeName); - if ("bool".equals(typeName)) return new BoolType(); - if (typeName.startsWith("int")) return new IntType(typeName); - if (typeName.startsWith("uint")) return new UnsignedIntType(typeName); - if ("address".equals(typeName)) return new AddressType(); - if ("string".equals(typeName)) return new StringType(); - if ("bytes".equals(typeName)) return new BytesType(); - if ("function".equals(typeName)) return new FunctionType(); - if (typeName.startsWith("bytes")) return new Bytes32Type(typeName); + if (typeName.contains("[")) + return ArrayType.getType(typeName); + if ("bool".equals(typeName)) + return new BoolType(); + if (typeName.startsWith("int")) + return new IntType(typeName); + if (typeName.startsWith("uint")) + return new UnsignedIntType(typeName); + if ("address".equals(typeName)) + return new AddressType(); + if ("string".equals(typeName)) + return new StringType(); + if ("bytes".equals(typeName)) + return new BytesType(); + if ("function".equals(typeName)) + return new FunctionType(); + if (typeName.startsWith("bytes")) + return new Bytes32Type(typeName); throw new RuntimeException("Unknown type: " + typeName); } @@ -79,8 +87,8 @@ public Object decode(byte[] encoded) { } /** - * @return fixed size in bytes. For the dynamic types returns IntType.getFixedSize() which is - * effectively the int offset to dynamic data + * @return fixed size in bytes. For the dynamic types returns IntType.getFixedSize() which is effectively the int + * offset to dynamic data */ public int getFixedSize() { return 32; @@ -171,11 +179,7 @@ public String getCanonicalName() { if (elementType instanceof ArrayType) { String elementTypeName = elementType.getCanonicalName(); int idx1 = elementTypeName.indexOf("["); - return elementTypeName.substring(0, idx1) - + "[" - + size - + "]" - + elementTypeName.substring(idx1); + return elementTypeName.substring(0, idx1) + "[" + size + "]" + elementTypeName.substring(idx1); } else { return elementType.getCanonicalName() + "[" + size + "]"; } @@ -189,8 +193,7 @@ protected String getCanonicalDimension() { @Override public byte[] encodeList(List l) { if (l.size() != size) - throw new RuntimeException( - "List size (" + l.size() + ") != " + size + " for type " + getName()); + throw new RuntimeException("List size (" + l.size() + ") != " + size + " for type " + getName()); byte[][] elems = new byte[size][]; for (int i = 0; i < l.size(); i++) { elems[i] = elementType.encode(l.get(i)); @@ -269,10 +272,7 @@ public Object decode(byte[] encoded, int origOffset) { for (int i = 0; i < len; i++) { if (elementType.isDynamicType()) { - ret[i] = - elementType.decode( - encoded, - origOffset + IntType.decodeInt(encoded, offset).intValue()); + ret[i] = elementType.decode(encoded, origOffset + IntType.decodeInt(encoded, offset).intValue()); } else { ret[i] = elementType.decode(encoded, offset); } @@ -315,7 +315,8 @@ public byte[] encode(Object value) { @Override public Object decode(byte[] encoded, int offset) { int len = IntType.decodeInt(encoded, offset).intValue(); - if (len == 0) return new byte[0]; + if (len == 0) + return new byte[0]; offset += 32; return Arrays.copyOfRange(encoded, offset, offset + len); } @@ -366,8 +367,7 @@ public byte[] encode(Object value) { return ret; } - throw new RuntimeException( - "Can't encode java type " + value.getClass() + " to bytes32"); + throw new RuntimeException("Can't encode java type " + value.getClass() + " to bytes32"); } @Override @@ -413,11 +413,7 @@ BigInteger encodeInternal(Object value) { if (s.startsWith("0x")) { s = s.substring(2); radix = 16; - } else if (s.contains("a") - || s.contains("b") - || s.contains("c") - || s.contains("d") - || s.contains("e") + } else if (s.contains("a") || s.contains("b") || s.contains("c") || s.contains("d") || s.contains("e") || s.contains("f")) { radix = 16; } @@ -430,13 +426,7 @@ BigInteger encodeInternal(Object value) { bigInt = ByteUtil.bytesToBigInteger((byte[]) value); } else { throw new RuntimeException( - "Invalid value for type '" - + this - + "': " - + value - + " (" - + value.getClass() - + ")"); + "Invalid value for type '" + this + "': " + value + " (" + value.getClass() + ")"); } return bigInt; } @@ -449,7 +439,8 @@ public IntType(String name) { @Override public String getCanonicalName() { - if (getName().equals("int")) return "int256"; + if (getName().equals("int")) + return "int256"; return super.getCanonicalName(); } @@ -484,7 +475,8 @@ public UnsignedIntType(String name) { @Override public String getCanonicalName() { - if (getName().equals("uint")) return "uint256"; + if (getName().equals("uint")) + return "uint256"; return super.getCanonicalName(); } diff --git a/src/main/java/cn/chain33/javasdk/model/evm/compiler/CompilationResult.java b/src/main/java/cn/chain33/javasdk/model/evm/compiler/CompilationResult.java index ca8cb78..e56cbff 100644 --- a/src/main/java/cn/chain33/javasdk/model/evm/compiler/CompilationResult.java +++ b/src/main/java/cn/chain33/javasdk/model/evm/compiler/CompilationResult.java @@ -34,9 +34,11 @@ public static CompilationResult parse(String rawJson) throws IOException { } /** - * @param contractName The contract name - * @return the first contract found for a given contract name; use {@link #getContract(Path, - * String)} if this compilation result contains more than one contract with the same name + * @param contractName + * The contract name + * + * @return the first contract found for a given contract name; use {@link #getContract(Path, String)} if this + * compilation result contains more than one contract with the same name */ public ContractMetadata getContract(String contractName) { @@ -47,19 +49,17 @@ public ContractMetadata getContract(String contractName) { return entry.getValue(); } } - throw new UnsupportedOperationException( - "No contract found with name '" - + contractName - + "'. Please specify a valid contract name. Available keys (" - + getContractKeys() - + ")."); + throw new UnsupportedOperationException("No contract found with name '" + contractName + + "'. Please specify a valid contract name. Available keys (" + getContractKeys() + ")."); } /** - * @param contractPath The contract path - * @param contractName The contract name - * @return the contract with key {@code contractPath:contractName} if it exists; {@code null} - * otherwise + * @param contractPath + * The contract path + * @param contractName + * The contract name + * + * @return the contract with key {@code contractPath:contractName} if it exists; {@code null} otherwise */ public ContractMetadata getContract(Path contractPath, String contractName) { return contracts.get(contractPath.toAbsolutePath().toString() + ':' + contractName); diff --git a/src/main/java/cn/chain33/javasdk/model/evm/compiler/Solc.java b/src/main/java/cn/chain33/javasdk/model/evm/compiler/Solc.java index 9f456d3..84fd038 100644 --- a/src/main/java/cn/chain33/javasdk/model/evm/compiler/Solc.java +++ b/src/main/java/cn/chain33/javasdk/model/evm/compiler/Solc.java @@ -31,10 +31,7 @@ private void initPropertyBundled() { String propertyName = "solc.path"; String propertyValue = System.getProperty(propertyName, ""); if (!"".equals(propertyValue)) { - logger.info( - "initBundled from property, propertyName: {}, propertyValue: {}", - propertyName, - propertyValue); + logger.info("initBundled from property, propertyName: {}, propertyValue: {}", propertyName, propertyValue); solc = new File(propertyValue); solc.setExecutable(true); } @@ -50,13 +47,13 @@ private void initDefaultBundled(String version) throws IOException { tmpDir.mkdirs(); String solcDir = getSolcDir(version); - try (InputStream is = getClass().getResourceAsStream(solcDir + "file.list"); ) { + try (InputStream is = getClass().getResourceAsStream(solcDir + "file.list");) { try (Scanner scanner = new Scanner(is)) { while (scanner.hasNext()) { String s = scanner.next(); File targetFile = new File(tmpDir, s); - try (InputStream fis = getClass().getResourceAsStream(solcDir + s); ) { + try (InputStream fis = getClass().getResourceAsStream(solcDir + s);) { Files.copy(fis, targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING); if (solc == null) { if (logger.isTraceEnabled()) { diff --git a/src/main/java/cn/chain33/javasdk/model/evm/compiler/SolidityCompiler.java b/src/main/java/cn/chain33/javasdk/model/evm/compiler/SolidityCompiler.java index 019d1a5..6328c86 100644 --- a/src/main/java/cn/chain33/javasdk/model/evm/compiler/SolidityCompiler.java +++ b/src/main/java/cn/chain33/javasdk/model/evm/compiler/SolidityCompiler.java @@ -36,7 +36,9 @@ public class SolidityCompiler { * @param version * @param combinedJson * @param options + * * @return + * * @throws IOException */ public static Result compile(byte[] source, String version, boolean combinedJson, Option... options) @@ -45,8 +47,8 @@ public static Result compile(byte[] source, String version, boolean combinedJson } /** - * This class is mainly here for backwards compatibility; however we are now reusing it making - * it the solely public interface listing all the supported options. + * This class is mainly here for backwards compatibility; however we are now reusing it making it the solely public + * interface listing all the supported options. */ public static final class Options { public static final OutputOption AST = OutputOption.AST; @@ -92,20 +94,14 @@ public String getValue() { StringBuilder result = new StringBuilder(); for (Object value : values) { if (OutputOption.class.isAssignableFrom(value.getClass())) { - result.append( - (result.length() == 0) - ? ((OutputOption) value).getName() - : ',' + ((OutputOption) value).getName()); + result.append((result.length() == 0) ? ((OutputOption) value).getName() + : ',' + ((OutputOption) value).getName()); } else if (Path.class.isAssignableFrom(value.getClass())) { - result.append( - (result.length() == 0) - ? ((Path) value).toAbsolutePath().toString() - : ',' + ((Path) value).toAbsolutePath().toString()); + result.append((result.length() == 0) ? ((Path) value).toAbsolutePath().toString() + : ',' + ((Path) value).toAbsolutePath().toString()); } else if (File.class.isAssignableFrom(value.getClass())) { - result.append( - (result.length() == 0) - ? ((File) value).getAbsolutePath() - : ',' + ((File) value).getAbsolutePath()); + result.append((result.length() == 0) ? ((File) value).getAbsolutePath() + : ',' + ((File) value).getAbsolutePath()); } else if (String.class.isAssignableFrom(value.getClass())) { result.append((result.length() == 0) ? value : "," + value); } else { @@ -128,8 +124,7 @@ public String toString() { } private enum NameOnlyOption implements Option { - OPTIMIZE("optimize"), - VERSION("version"); + OPTIMIZE("optimize"), VERSION("version"); private String name; @@ -154,12 +149,7 @@ public String toString() { } private enum OutputOption implements Option { - AST("ast"), - BIN("bin"), - INTERFACE("interface"), - ABI("abi"), - METADATA("metadata"), - ASTJSON("ast-json"); + AST("ast"), BIN("bin"), INTERFACE("interface"), ABI("abi"), METADATA("metadata"), ASTJSON("ast-json"); private String name; @@ -288,9 +278,7 @@ public void run() { } } - - private List prepareCommandOptions( - Solc solc, boolean optimize, boolean combinedJson, Option... options) + private List prepareCommandOptions(Solc solc, boolean optimize, boolean combinedJson, Option... options) throws IOException { List commandParts = new ArrayList<>(); commandParts.add(solc.getExecutable().getCanonicalPath()); @@ -298,8 +286,7 @@ private List prepareCommandOptions( commandParts.add("--" + Options.OPTIMIZE.getName()); } if (combinedJson) { - Option combinedJsonOption = - new Options.CombinedJson(getElementsOf(OutputOption.class, options)); + Option combinedJsonOption = new Options.CombinedJson(getElementsOf(OutputOption.class, options)); commandParts.add("--" + combinedJsonOption.getName()); commandParts.add(combinedJsonOption.getValue()); } else { @@ -334,17 +321,14 @@ private static List getElementsOf(Class clazz, Option... options) { return Arrays.stream(options).filter(clazz::isInstance).map(clazz::cast).collect(toList()); } - private Result compileSrc( - byte[] source, String version, boolean optimize, boolean combinedJson, Option... options) + private Result compileSrc(byte[] source, String version, boolean optimize, boolean combinedJson, Option... options) throws IOException { Solc tmpSolc = getInstance().getSolc(version); List commandParts = prepareCommandOptions(tmpSolc, optimize, combinedJson, options); - ProcessBuilder processBuilder = - new ProcessBuilder(commandParts).directory(tmpSolc.getExecutable().getParentFile()); - processBuilder - .environment() - .put("LD_LIBRARY_PATH", tmpSolc.getExecutable().getParentFile().getCanonicalPath()); + ProcessBuilder processBuilder = new ProcessBuilder(commandParts) + .directory(tmpSolc.getExecutable().getParentFile()); + processBuilder.environment().put("LD_LIBRARY_PATH", tmpSolc.getExecutable().getParentFile().getCanonicalPath()); Process process = processBuilder.start(); @@ -375,11 +359,9 @@ public static String runGetVersionOutput(String version) throws IOException { commandParts.add(tmpSolc.getExecutable().getCanonicalPath()); commandParts.add("--" + Options.VERSION.getName()); - ProcessBuilder processBuilder = - new ProcessBuilder(commandParts).directory(tmpSolc.getExecutable().getParentFile()); - processBuilder - .environment() - .put("LD_LIBRARY_PATH", tmpSolc.getExecutable().getParentFile().getCanonicalPath()); + ProcessBuilder processBuilder = new ProcessBuilder(commandParts) + .directory(tmpSolc.getExecutable().getParentFile()); + processBuilder.environment().put("LD_LIBRARY_PATH", tmpSolc.getExecutable().getParentFile().getCanonicalPath()); Process process = processBuilder.start(); @@ -402,21 +384,21 @@ public static String runGetVersionOutput(String version) throws IOException { } public Solc getSolc(String version) { - if(VERSION06.equals(version)) { + if (VERSION06.equals(version)) { if (solc06 == null) { solc06 = new Solc(version); } return solc06; } - if(VERSION07.equals(version)) { + if (VERSION07.equals(version)) { if (solc07 == null) { solc07 = new Solc(version); } return solc07; } - if(VERSION08.equals(version)) { + if (VERSION08.equals(version)) { if (solc08 == null) { solc08 = new Solc(version); } diff --git a/src/main/java/cn/chain33/javasdk/model/exception/Chain33Exception.java b/src/main/java/cn/chain33/javasdk/model/exception/Chain33Exception.java index 6e92f3f..8596fdb 100644 --- a/src/main/java/cn/chain33/javasdk/model/exception/Chain33Exception.java +++ b/src/main/java/cn/chain33/javasdk/model/exception/Chain33Exception.java @@ -2,9 +2,9 @@ public class Chain33Exception extends Exception { - private static final long serialVersionUID = 1L; - - public Chain33Exception(String message) { - super(message); - } + private static final long serialVersionUID = 1L; + + public Chain33Exception(String message) { + super(message); + } } diff --git a/src/main/java/cn/chain33/javasdk/model/gm/SM2KeyPair.java b/src/main/java/cn/chain33/javasdk/model/gm/SM2KeyPair.java index 2854bb9..6e66e09 100644 --- a/src/main/java/cn/chain33/javasdk/model/gm/SM2KeyPair.java +++ b/src/main/java/cn/chain33/javasdk/model/gm/SM2KeyPair.java @@ -7,32 +7,33 @@ /** * SM2密钥对Bean + * * @author Potato * */ public class SM2KeyPair { - private final ECPoint publicKey; - private final BigInteger privateKey; + private final ECPoint publicKey; + private final BigInteger privateKey; - SM2KeyPair(ECPoint publicKey, BigInteger privateKey) { - this.publicKey = publicKey; - this.privateKey = privateKey; - } + SM2KeyPair(ECPoint publicKey, BigInteger privateKey) { + this.publicKey = publicKey; + this.privateKey = privateKey; + } - public ECPoint getPublicKey() { - return publicKey; - } + public ECPoint getPublicKey() { + return publicKey; + } - public BigInteger getPrivateKey() { - return privateKey; - } + public BigInteger getPrivateKey() { + return privateKey; + } - public String getPublicKeyString() { - return HexUtil.toHexString(publicKey.getEncoded(true)); - } + public String getPublicKeyString() { + return HexUtil.toHexString(publicKey.getEncoded(true)); + } - public String getPrivateKeyString() { - return HexUtil.toHexString(privateKey.toByteArray()); - } + public String getPrivateKeyString() { + return HexUtil.toHexString(privateKey.toByteArray()); + } } diff --git a/src/main/java/cn/chain33/javasdk/model/gm/SM2Util.java b/src/main/java/cn/chain33/javasdk/model/gm/SM2Util.java index ef61bda..bdfed15 100644 --- a/src/main/java/cn/chain33/javasdk/model/gm/SM2Util.java +++ b/src/main/java/cn/chain33/javasdk/model/gm/SM2Util.java @@ -29,418 +29,433 @@ * */ public class SM2Util { - private static BigInteger n = new BigInteger( - "FFFFFFFE" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "7203DF6B" + "21C6052B" + "53BBF409" + "39D54123", 16); - private static BigInteger p = new BigInteger( - "FFFFFFFE" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "00000000" + "FFFFFFFF" + "FFFFFFFF", 16); - private static BigInteger a = new BigInteger( - "FFFFFFFE" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "00000000" + "FFFFFFFF" + "FFFFFFFC", 16); - private static BigInteger b = new BigInteger( - "28E9FA9E" + "9D9F5E34" + "4D5A9E4B" + "CF6509A7" + "F39789F5" + "15AB8F92" + "DDBCBD41" + "4D940E93", 16); - private static BigInteger gx = new BigInteger( - "32C4AE2C" + "1F198119" + "5F990446" + "6A39C994" + "8FE30BBF" + "F2660BE1" + "715A4589" + "334C74C7", 16); - private static BigInteger gy = new BigInteger( - "BC3736A2" + "F4F6779C" + "59BDCEE3" + "6B692153" + "D0A9877C" + "C62A4740" + "02DF32E5" + "2139F0A0", 16); - - private static int w = (int) Math.ceil(n.bitLength() * 1.0 / 2) - 1; - private static BigInteger _2w = new BigInteger("2").pow(w); - private static final int DIGEST_LENGTH = 32; - - private static byte[] default_uid = {0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38}; - public static final byte[] Default_Uid = {0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38}; - private static SecureRandom random = new SecureRandom(); - private static ECCurve.Fp curve = new ECCurve.Fp(p, a, b, n, null); - private static ECPoint G= curve.createPoint(gx, gy); + private static BigInteger n = new BigInteger( + "FFFFFFFE" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "7203DF6B" + "21C6052B" + "53BBF409" + "39D54123", 16); + private static BigInteger p = new BigInteger( + "FFFFFFFE" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "00000000" + "FFFFFFFF" + "FFFFFFFF", 16); + private static BigInteger a = new BigInteger( + "FFFFFFFE" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "FFFFFFFF" + "00000000" + "FFFFFFFF" + "FFFFFFFC", 16); + private static BigInteger b = new BigInteger( + "28E9FA9E" + "9D9F5E34" + "4D5A9E4B" + "CF6509A7" + "F39789F5" + "15AB8F92" + "DDBCBD41" + "4D940E93", 16); + private static BigInteger gx = new BigInteger( + "32C4AE2C" + "1F198119" + "5F990446" + "6A39C994" + "8FE30BBF" + "F2660BE1" + "715A4589" + "334C74C7", 16); + private static BigInteger gy = new BigInteger( + "BC3736A2" + "F4F6779C" + "59BDCEE3" + "6B692153" + "D0A9877C" + "C62A4740" + "02DF32E5" + "2139F0A0", 16); + + private static int w = (int) Math.ceil(n.bitLength() * 1.0 / 2) - 1; + private static BigInteger _2w = new BigInteger("2").pow(w); + private static final int DIGEST_LENGTH = 32; + + private static byte[] default_uid = { 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x31, 0x32, 0x33, 0x34, 0x35, + 0x36, 0x37, 0x38 }; + public static final byte[] Default_Uid = { 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x31, 0x32, 0x33, 0x34, + 0x35, 0x36, 0x37, 0x38 }; + private static SecureRandom random = new SecureRandom(); + private static ECCurve.Fp curve = new ECCurve.Fp(p, a, b, n, null); + private static ECPoint G = curve.createPoint(gx, gy); private static ECDomainParameters ecc_bc_spec = new ECDomainParameters(curve, G, n); - /** - * 以16进制打印字节数组 - * - * @param b - */ - public static void printHexString(byte[] b) { - for (int i = 0; i < b.length; i++) { - String hex = Integer.toHexString(b[i] & 0xFF); - if (hex.length() == 1) { - hex = '0' + hex; - } - System.out.print(hex.toUpperCase()); - } - System.out.println(); - } - - /** - * 随机数生成器 - * - * @param max - * @return - */ - private static BigInteger random(BigInteger max) { - - BigInteger r = new BigInteger(256, random); - while (r.compareTo(max) >= 0 || r.compareTo(BigInteger.ONE) <= 0) { - r = new BigInteger(128, random); - } - - return r; - } - - /** - * 判断字节数组是否全0 - * - * @param buffer - * @return - */ - private static boolean allZero(byte[] buffer) { - for (int i = 0; i < buffer.length; i++) { - if (buffer[i] != 0) - return false; - } - return true; - } - - /** - * 公钥加密 - * - * @param input - * 加密原文 - * @param publicKey - * 公钥 - * @return - */ - public static byte[] encrypt(String input, ECPoint publicKey) { - - byte[] inputBuffer = input.getBytes(); - byte[] C1Buffer; - ECPoint kpb; - byte[] t; - do { - /* 1 产生随机数k,k属于[1, n-1] */ - BigInteger k = random(n); - - /* 2 计算椭圆曲线点C1 = [k]G = (x1, y1) */ - ECPoint C1 = G.multiply(k); - C1Buffer = C1.getEncoded(false); - - /* - * 3 计算椭圆曲线点 S = [h]Pb - */ - BigInteger h = ecc_bc_spec.getH(); - if (h != null) { - ECPoint S = publicKey.multiply(h); - if (S.isInfinity()) - throw new IllegalStateException(); - } - - /* 4 计算 [k]PB = (x2, y2) */ - kpb = publicKey.multiply(k).normalize(); - - /* 5 计算 t = KDF(x2||y2, klen) */ - byte[] kpbBytes = kpb.getEncoded(false); - t = KDF(kpbBytes, inputBuffer.length); - } while (allZero(t)); - - /* 6 计算C2=M^t */ - byte[] C2 = new byte[inputBuffer.length]; - for (int i = 0; i < inputBuffer.length; i++) { - C2[i] = (byte) (inputBuffer[i] ^ t[i]); - } - - /* 7 计算C3 = Hash(x2 || M || y2) */ - byte[] C3 = sm3hash(kpb.getXCoord().toBigInteger().toByteArray(), inputBuffer, - kpb.getYCoord().toBigInteger().toByteArray()); - - /* 8 输出密文 C=C1 || C2 || C3 */ - - byte[] encryptResult = new byte[C1Buffer.length + C2.length + C3.length]; - - System.arraycopy(C1Buffer, 0, encryptResult, 0, C1Buffer.length); - System.arraycopy(C2, 0, encryptResult, C1Buffer.length, C2.length); - System.arraycopy(C3, 0, encryptResult, C1Buffer.length + C2.length, C3.length); - - return encryptResult; - } - - /** - * 私钥解密 - * - * @param encryptData - * 密文数据字节数组 - * @param privateKey - * 解密私钥 - * @return - */ - public static String decrypt(byte[] encryptData, BigInteger privateKey) { - byte[] C1Byte = new byte[65]; - System.arraycopy(encryptData, 0, C1Byte, 0, C1Byte.length); - - ECPoint C1 = curve.decodePoint(C1Byte).normalize(); - - /* - * 计算椭圆曲线点 S = [h]C1 是否为无穷点 - */ - BigInteger h = ecc_bc_spec.getH(); - if (h != null) { - ECPoint S = C1.multiply(h); - if (S.isInfinity()) - throw new IllegalStateException(); - } - /* 计算[dB]C1 = (x2, y2) */ - ECPoint dBC1 = C1.multiply(privateKey).normalize(); - - /* 计算t = KDF(x2 || y2, klen) */ - byte[] dBC1Bytes = dBC1.getEncoded(false); - int klen = encryptData.length - 65 - DIGEST_LENGTH; - byte[] t = KDF(dBC1Bytes, klen); - - if (allZero(t)) { - System.err.println("all zero"); - throw new IllegalStateException(); - } - - /* 5 计算M'=C2^t */ - byte[] M = new byte[klen]; - for (int i = 0; i < M.length; i++) { - M[i] = (byte) (encryptData[C1Byte.length + i] ^ t[i]); - } - - /* 6 计算 u = Hash(x2 || M' || y2) 判断 u == C3是否成立 */ - byte[] C3 = new byte[DIGEST_LENGTH]; - - System.arraycopy(encryptData, encryptData.length - DIGEST_LENGTH, C3, 0, DIGEST_LENGTH); - byte[] u = sm3hash(dBC1.getXCoord().toBigInteger().toByteArray(), M, - dBC1.getYCoord().toBigInteger().toByteArray()); - if (Arrays.equals(u, C3)) { - try { - return new String(M, "UTF8"); - } catch (UnsupportedEncodingException e) { - e.printStackTrace(); - } - return null; - } else { - return null; - } - } - - /** - * 判断是否在范围内 - * - * @param param - * @param min - * @param max - * @return - */ - private static boolean between(BigInteger param, BigInteger min, BigInteger max) { - if (param.compareTo(min) >= 0 && param.compareTo(max) < 0) { - return true; - } else { - return false; - } - } - - /** - * 判断生成的公钥是否合法 - * - * @param publicKey - * @return - */ - private static boolean checkPublicKey(ECPoint publicKey) { - - if (!publicKey.isInfinity()) { - - BigInteger x = publicKey.getXCoord().toBigInteger(); - BigInteger y = publicKey.getYCoord().toBigInteger(); - - if (between(x, new BigInteger("0"), p) && between(y, new BigInteger("0"), p)) { - - BigInteger xResult = x.pow(3).add(a.multiply(x)).add(b).mod(p); - BigInteger yResult = y.pow(2).mod(p); - - if (yResult.equals(xResult) && publicKey.multiply(n).isInfinity()) { - return true; - } - } - } - return false; - } - - /** - * 通过私钥创建公钥 - * @param privateKey - * @return - */ - public ECPoint generatePublicKey(BigInteger privateKey) { - return G.multiply(privateKey).normalize(); - } - - public static SM2KeyPair fromPrivateKey(byte[] privateKey) { - BigInteger privateKeyInteger = new BigInteger(privateKey); - ECPoint publicKey = G.multiply(privateKeyInteger).normalize(); - return new SM2KeyPair(publicKey, privateKeyInteger); - } - - /** - * 生成密钥对 - * - * @return - */ - public static SM2KeyPair generateKeyPair() { - - BigInteger d = random(n.subtract(new BigInteger("1")).shiftRight(1)); - - SM2KeyPair keyPair = new SM2KeyPair(G.multiply(d).normalize(), d); - - if (checkPublicKey(keyPair.getPublicKey())) { - return keyPair; - } else { - return null; - } - } - - /** - * 导出公钥到本地 - * - * @param publicKey - * @param path - */ - public void exportPublicKey(ECPoint publicKey, String path) { - File file = new File(path); - try { - if (!file.exists()) - file.createNewFile(); - byte buffer[] = publicKey.getEncoded(false); - FileOutputStream fos = new FileOutputStream(file); - fos.write(buffer); - fos.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } - - /** - * 从本地导入公钥 - * - * @param path - * @return - */ - public ECPoint importPublicKey(String path) { - File file = new File(path); - try { - if (!file.exists()) - return null; - FileInputStream fis = new FileInputStream(file); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - - byte buffer[] = new byte[16]; - int size; - while ((size = fis.read(buffer)) != -1) { - baos.write(buffer, 0, size); - } - fis.close(); - return curve.decodePoint(baos.toByteArray()); - } catch (IOException e) { - e.printStackTrace(); - } - return null; - } - - /** - * 导出私钥到本地 - * - * @param privateKey - * @param path - */ - public void exportPrivateKey(BigInteger privateKey, String path) { - File file = new File(path); - try { - if (!file.exists()) - file.createNewFile(); - ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)); - oos.writeObject(privateKey); - oos.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } - - /** - * 从本地导入私钥 - * - * @param path - * @return - */ - public BigInteger importPrivateKey(String path) { - File file = new File(path); - try { - if (!file.exists()) - return null; - FileInputStream fis = new FileInputStream(file); - ObjectInputStream ois = new ObjectInputStream(fis); - BigInteger res = (BigInteger) (ois.readObject()); - ois.close(); - fis.close(); - return res; - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } - - /** - * 字节数组拼接 - * - * @param params - * @return - */ - private static byte[] join(byte[]... params) { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - byte[] res = null; - try { - for (int i = 0; i < params.length; i++) { - baos.write(params[i]); - } - res = baos.toByteArray(); - } catch (IOException e) { - e.printStackTrace(); - } - return res; - } - - /** - * sm3摘要 - * - * @param params - * @return - */ - private static byte[] sm3hash(byte[]... params) { - byte[] res = null; - try { - res = SM3Util.hash(join(params)); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - return res; - } - - /** - * 取得用户标识字节数组 - * - * @param idaBytes - * @param aPublicKey - * @return - */ - private static byte[] ZA(byte[] idaBytes, ECPoint aPublicKey) { - int entlenA = idaBytes.length * 8; - byte[] ENTLA = new byte[] { (byte) (entlenA & 0xFF00), (byte) (entlenA & 0x00FF) }; - byte[] ZA = sm3hash(ENTLA, idaBytes, HexUtil.byteConvert32Bytes(a), HexUtil.byteConvert32Bytes(b), - HexUtil.byteConvert32Bytes(gx), HexUtil.byteConvert32Bytes(gy), - HexUtil.byteConvert32Bytes(aPublicKey.getXCoord().toBigInteger()), - HexUtil.byteConvert32Bytes(aPublicKey.getYCoord().toBigInteger())); - return ZA; - } - - private static ByteArrayOutputStream derByteStream(BigInteger r,BigInteger s) throws IOException { + /** + * 以16进制打印字节数组 + * + * @param b + */ + public static void printHexString(byte[] b) { + for (int i = 0; i < b.length; i++) { + String hex = Integer.toHexString(b[i] & 0xFF); + if (hex.length() == 1) { + hex = '0' + hex; + } + System.out.print(hex.toUpperCase()); + } + System.out.println(); + } + + /** + * 随机数生成器 + * + * @param max + * + * @return + */ + private static BigInteger random(BigInteger max) { + + BigInteger r = new BigInteger(256, random); + while (r.compareTo(max) >= 0 || r.compareTo(BigInteger.ONE) <= 0) { + r = new BigInteger(128, random); + } + + return r; + } + + /** + * 判断字节数组是否全0 + * + * @param buffer + * + * @return + */ + private static boolean allZero(byte[] buffer) { + for (int i = 0; i < buffer.length; i++) { + if (buffer[i] != 0) + return false; + } + return true; + } + + /** + * 公钥加密 + * + * @param input + * 加密原文 + * @param publicKey + * 公钥 + * + * @return + */ + public static byte[] encrypt(String input, ECPoint publicKey) { + + byte[] inputBuffer = input.getBytes(); + byte[] C1Buffer; + ECPoint kpb; + byte[] t; + do { + /* 1 产生随机数k,k属于[1, n-1] */ + BigInteger k = random(n); + + /* 2 计算椭圆曲线点C1 = [k]G = (x1, y1) */ + ECPoint C1 = G.multiply(k); + C1Buffer = C1.getEncoded(false); + + /* + * 3 计算椭圆曲线点 S = [h]Pb + */ + BigInteger h = ecc_bc_spec.getH(); + if (h != null) { + ECPoint S = publicKey.multiply(h); + if (S.isInfinity()) + throw new IllegalStateException(); + } + + /* 4 计算 [k]PB = (x2, y2) */ + kpb = publicKey.multiply(k).normalize(); + + /* 5 计算 t = KDF(x2||y2, klen) */ + byte[] kpbBytes = kpb.getEncoded(false); + t = KDF(kpbBytes, inputBuffer.length); + } while (allZero(t)); + + /* 6 计算C2=M^t */ + byte[] C2 = new byte[inputBuffer.length]; + for (int i = 0; i < inputBuffer.length; i++) { + C2[i] = (byte) (inputBuffer[i] ^ t[i]); + } + + /* 7 计算C3 = Hash(x2 || M || y2) */ + byte[] C3 = sm3hash(kpb.getXCoord().toBigInteger().toByteArray(), inputBuffer, + kpb.getYCoord().toBigInteger().toByteArray()); + + /* 8 输出密文 C=C1 || C2 || C3 */ + + byte[] encryptResult = new byte[C1Buffer.length + C2.length + C3.length]; + + System.arraycopy(C1Buffer, 0, encryptResult, 0, C1Buffer.length); + System.arraycopy(C2, 0, encryptResult, C1Buffer.length, C2.length); + System.arraycopy(C3, 0, encryptResult, C1Buffer.length + C2.length, C3.length); + + return encryptResult; + } + + /** + * 私钥解密 + * + * @param encryptData + * 密文数据字节数组 + * @param privateKey + * 解密私钥 + * + * @return + */ + public static String decrypt(byte[] encryptData, BigInteger privateKey) { + byte[] C1Byte = new byte[65]; + System.arraycopy(encryptData, 0, C1Byte, 0, C1Byte.length); + + ECPoint C1 = curve.decodePoint(C1Byte).normalize(); + + /* + * 计算椭圆曲线点 S = [h]C1 是否为无穷点 + */ + BigInteger h = ecc_bc_spec.getH(); + if (h != null) { + ECPoint S = C1.multiply(h); + if (S.isInfinity()) + throw new IllegalStateException(); + } + /* 计算[dB]C1 = (x2, y2) */ + ECPoint dBC1 = C1.multiply(privateKey).normalize(); + + /* 计算t = KDF(x2 || y2, klen) */ + byte[] dBC1Bytes = dBC1.getEncoded(false); + int klen = encryptData.length - 65 - DIGEST_LENGTH; + byte[] t = KDF(dBC1Bytes, klen); + + if (allZero(t)) { + System.err.println("all zero"); + throw new IllegalStateException(); + } + + /* 5 计算M'=C2^t */ + byte[] M = new byte[klen]; + for (int i = 0; i < M.length; i++) { + M[i] = (byte) (encryptData[C1Byte.length + i] ^ t[i]); + } + + /* 6 计算 u = Hash(x2 || M' || y2) 判断 u == C3是否成立 */ + byte[] C3 = new byte[DIGEST_LENGTH]; + + System.arraycopy(encryptData, encryptData.length - DIGEST_LENGTH, C3, 0, DIGEST_LENGTH); + byte[] u = sm3hash(dBC1.getXCoord().toBigInteger().toByteArray(), M, + dBC1.getYCoord().toBigInteger().toByteArray()); + if (Arrays.equals(u, C3)) { + try { + return new String(M, "UTF8"); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + return null; + } else { + return null; + } + } + + /** + * 判断是否在范围内 + * + * @param param + * @param min + * @param max + * + * @return + */ + private static boolean between(BigInteger param, BigInteger min, BigInteger max) { + if (param.compareTo(min) >= 0 && param.compareTo(max) < 0) { + return true; + } else { + return false; + } + } + + /** + * 判断生成的公钥是否合法 + * + * @param publicKey + * + * @return + */ + private static boolean checkPublicKey(ECPoint publicKey) { + + if (!publicKey.isInfinity()) { + + BigInteger x = publicKey.getXCoord().toBigInteger(); + BigInteger y = publicKey.getYCoord().toBigInteger(); + + if (between(x, new BigInteger("0"), p) && between(y, new BigInteger("0"), p)) { + + BigInteger xResult = x.pow(3).add(a.multiply(x)).add(b).mod(p); + BigInteger yResult = y.pow(2).mod(p); + + if (yResult.equals(xResult) && publicKey.multiply(n).isInfinity()) { + return true; + } + } + } + return false; + } + + /** + * 通过私钥创建公钥 + * + * @param privateKey + * + * @return + */ + public ECPoint generatePublicKey(BigInteger privateKey) { + return G.multiply(privateKey).normalize(); + } + + public static SM2KeyPair fromPrivateKey(byte[] privateKey) { + BigInteger privateKeyInteger = new BigInteger(privateKey); + ECPoint publicKey = G.multiply(privateKeyInteger).normalize(); + return new SM2KeyPair(publicKey, privateKeyInteger); + } + + /** + * 生成密钥对 + * + * @return + */ + public static SM2KeyPair generateKeyPair() { + + BigInteger d = random(n.subtract(new BigInteger("1")).shiftRight(1)); + + SM2KeyPair keyPair = new SM2KeyPair(G.multiply(d).normalize(), d); + + if (checkPublicKey(keyPair.getPublicKey())) { + return keyPair; + } else { + return null; + } + } + + /** + * 导出公钥到本地 + * + * @param publicKey + * @param path + */ + public void exportPublicKey(ECPoint publicKey, String path) { + File file = new File(path); + try { + if (!file.exists()) + file.createNewFile(); + byte buffer[] = publicKey.getEncoded(false); + FileOutputStream fos = new FileOutputStream(file); + fos.write(buffer); + fos.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + /** + * 从本地导入公钥 + * + * @param path + * + * @return + */ + public ECPoint importPublicKey(String path) { + File file = new File(path); + try { + if (!file.exists()) + return null; + FileInputStream fis = new FileInputStream(file); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + + byte buffer[] = new byte[16]; + int size; + while ((size = fis.read(buffer)) != -1) { + baos.write(buffer, 0, size); + } + fis.close(); + return curve.decodePoint(baos.toByteArray()); + } catch (IOException e) { + e.printStackTrace(); + } + return null; + } + + /** + * 导出私钥到本地 + * + * @param privateKey + * @param path + */ + public void exportPrivateKey(BigInteger privateKey, String path) { + File file = new File(path); + try { + if (!file.exists()) + file.createNewFile(); + ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)); + oos.writeObject(privateKey); + oos.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + /** + * 从本地导入私钥 + * + * @param path + * + * @return + */ + public BigInteger importPrivateKey(String path) { + File file = new File(path); + try { + if (!file.exists()) + return null; + FileInputStream fis = new FileInputStream(file); + ObjectInputStream ois = new ObjectInputStream(fis); + BigInteger res = (BigInteger) (ois.readObject()); + ois.close(); + fis.close(); + return res; + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + + /** + * 字节数组拼接 + * + * @param params + * + * @return + */ + private static byte[] join(byte[]... params) { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + byte[] res = null; + try { + for (int i = 0; i < params.length; i++) { + baos.write(params[i]); + } + res = baos.toByteArray(); + } catch (IOException e) { + e.printStackTrace(); + } + return res; + } + + /** + * sm3摘要 + * + * @param params + * + * @return + */ + private static byte[] sm3hash(byte[]... params) { + byte[] res = null; + try { + res = SM3Util.hash(join(params)); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return res; + } + + /** + * 取得用户标识字节数组 + * + * @param idaBytes + * @param aPublicKey + * + * @return + */ + private static byte[] ZA(byte[] idaBytes, ECPoint aPublicKey) { + int entlenA = idaBytes.length * 8; + byte[] ENTLA = new byte[] { (byte) (entlenA & 0xFF00), (byte) (entlenA & 0x00FF) }; + byte[] ZA = sm3hash(ENTLA, idaBytes, HexUtil.byteConvert32Bytes(a), HexUtil.byteConvert32Bytes(b), + HexUtil.byteConvert32Bytes(gx), HexUtil.byteConvert32Bytes(gy), + HexUtil.byteConvert32Bytes(aPublicKey.getXCoord().toBigInteger()), + HexUtil.byteConvert32Bytes(aPublicKey.getYCoord().toBigInteger())); + return ZA; + } + + private static ByteArrayOutputStream derByteStream(BigInteger r, BigInteger s) throws IOException { // Usually 70-72 bytes. ByteArrayOutputStream bos = new ByteArrayOutputStream(72); DERSequenceGenerator seq = new DERSequenceGenerator(bos); @@ -450,40 +465,41 @@ private static ByteArrayOutputStream derByteStream(BigInteger r,BigInteger s) th return bos; } - /** - * 签名 - * - * @param M - * 签名信息 - * @param IDA - * 签名方唯一标识 - * @param keyPair - * 签名方密钥对 - * @return 签名 - */ - public static byte[] sign(byte[] M, byte[] IDA, SM2KeyPair keyPair) throws IOException { - if (IDA == null) { - IDA = default_uid; - } - byte[] ZA = ZA(IDA, keyPair.getPublicKey()); - byte[] M_ = join(ZA, M); - BigInteger e = new BigInteger(1, sm3hash(M_)); - BigInteger k; - BigInteger r; - do { - k = random(n); - ECPoint p1 = G.multiply(k).normalize(); - BigInteger x1 = p1.getXCoord().toBigInteger(); - r = e.add(x1); - r = r.mod(n); - } while (r.equals(BigInteger.ZERO) || r.add(k).equals(n)); - - BigInteger s = ((keyPair.getPrivateKey().add(BigInteger.ONE).modInverse(n)) - .multiply((k.subtract(r.multiply(keyPair.getPrivateKey()))).mod(n))).mod(n); + /** + * 签名 + * + * @param M + * 签名信息 + * @param IDA + * 签名方唯一标识 + * @param keyPair + * 签名方密钥对 + * + * @return 签名 + */ + public static byte[] sign(byte[] M, byte[] IDA, SM2KeyPair keyPair) throws IOException { + if (IDA == null) { + IDA = default_uid; + } + byte[] ZA = ZA(IDA, keyPair.getPublicKey()); + byte[] M_ = join(ZA, M); + BigInteger e = new BigInteger(1, sm3hash(M_)); + BigInteger k; + BigInteger r; + do { + k = random(n); + ECPoint p1 = G.multiply(k).normalize(); + BigInteger x1 = p1.getXCoord().toBigInteger(); + r = e.add(x1); + r = r.mod(n); + } while (r.equals(BigInteger.ZERO) || r.add(k).equals(n)); + + BigInteger s = ((keyPair.getPrivateKey().add(BigInteger.ONE).modInverse(n)) + .multiply((k.subtract(r.multiply(keyPair.getPrivateKey()))).mod(n))).mod(n); byte[] derSignBytes = SM2Util.derByteStream(r, s).toByteArray(); return derSignBytes; - } + } private static SM2Signature decodeFromDER(byte[] bytes) { ASN1InputStream decoder = null; @@ -491,7 +507,7 @@ private static SM2Signature decodeFromDER(byte[] bytes) { SM2Signature var5; try { decoder = new ASN1InputStream(bytes); - DLSequence seq = (DLSequence)decoder.readObject(); + DLSequence seq = (DLSequence) decoder.readObject(); if (seq == null) { throw new RuntimeException("Reached past end of ASN.1 stream."); } @@ -499,8 +515,8 @@ private static SM2Signature decodeFromDER(byte[] bytes) { ASN1Integer r; ASN1Integer s; try { - r = (ASN1Integer)seq.getObjectAt(0); - s = (ASN1Integer)seq.getObjectAt(1); + r = (ASN1Integer) seq.getObjectAt(0); + s = (ASN1Integer) seq.getObjectAt(1); } catch (ClassCastException var15) { throw new IllegalArgumentException(var15); } @@ -522,249 +538,257 @@ private static SM2Signature decodeFromDER(byte[] bytes) { } /** - * 验签 - * - * @param M - * 签名信息 - * @param signatureByte - * 签名 - * @param IDA - * 签名方唯一标识 - * @param aPublicKey - * 签名方公钥 - * @return true or false - */ - public static boolean verify(byte[] M, byte[] signatureByte, byte[] IDA, ECPoint aPublicKey) { + * 验签 + * + * @param M + * 签名信息 + * @param signatureByte + * 签名 + * @param IDA + * 签名方唯一标识 + * @param aPublicKey + * 签名方公钥 + * + * @return true or false + */ + public static boolean verify(byte[] M, byte[] signatureByte, byte[] IDA, ECPoint aPublicKey) { SM2Signature signature = decodeFromDER(signatureByte); - if (!between(signature.r, BigInteger.ONE, n)) - return false; - if (!between(signature.s, BigInteger.ONE, n)) - return false; - - byte[] M_ = join(ZA(IDA, aPublicKey), M); - - BigInteger e = new BigInteger(1, sm3hash(M_)); - BigInteger t = signature.r.add(signature.s).mod(n); - - if (t.equals(BigInteger.ZERO)) - return false; - - ECPoint p1 = G.multiply(signature.s).normalize(); - ECPoint p2 = aPublicKey.multiply(t).normalize(); - BigInteger x1 = p1.add(p2).normalize().getXCoord().toBigInteger(); - BigInteger R = e.add(x1).mod(n); - if (R.equals(signature.r)) - return true; - return false; - } - - /** - * 密钥派生函数 - * - * @param Z - * @param klen - * 生成klen字节数长度的密钥 - * @return - */ - private static byte[] KDF(byte[] Z, int klen) { - int ct = 1; - int end = (int) Math.ceil(klen * 1.0 / 32); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - try { - for (int i = 1; i < end; i++) { - baos.write(sm3hash(Z, SM3Util.toByteArray(ct))); - ct++; - } - byte[] last = sm3hash(Z, SM3Util.toByteArray(ct)); - if (klen % 32 == 0) { - baos.write(last); - } else - baos.write(last, 0, klen % 32); - return baos.toByteArray(); - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } - - /** - * 传输实体类 - * - * @author Potato - * - */ - public static class TransportEntity implements Serializable { - private static final long serialVersionUID = 1L; - final byte[] R; //R点 - final byte[] S; //验证S - final byte[] Z; //用户标识 - final byte[] K; //公钥 - - public TransportEntity(byte[] r, byte[] s,byte[] z,ECPoint pKey) { - R = r; - S = s; - Z=z; - K=pKey.getEncoded(false); - } - } - - /** - * 密钥协商辅助类 - * - * @author Potato - * - */ - public static class KeyExchange { - BigInteger rA; - ECPoint RA; - ECPoint V; - byte[] Z; - byte[] key; - - byte[] ID; - SM2KeyPair keyPair; - - public KeyExchange(byte[] ID,SM2KeyPair keyPair) { - this.ID=ID; - this.keyPair = keyPair; - this.Z=ZA(ID, keyPair.getPublicKey()); - } - - /** - * 密钥协商发起方发起 - * - * @return 发送给响应方的传输实体 - */ - public TransportEntity InitiatorInit() { - rA = random(n); - RA = G.multiply(rA).normalize(); - return new TransportEntity(RA.getEncoded(false), null,Z,keyPair.getPublicKey()); - } - - /** - * 密钥协商响应方交换 - * - * @param entity 传输实体 - * @return 返回给发起方的传输实体 - */ - public TransportEntity ResponderExchange(TransportEntity entity) { - BigInteger rB = random(n); - ECPoint RB = G.multiply(rB).normalize(); - - this.rA=rB; - this.RA=RB; - - BigInteger x2 = RB.getXCoord().toBigInteger(); - x2 = _2w.add(x2.and(_2w.subtract(BigInteger.ONE))); - - BigInteger tB = keyPair.getPrivateKey().add(x2.multiply(rB)).mod(n); - ECPoint RA = curve.decodePoint(entity.R).normalize(); - - BigInteger x1 = RA.getXCoord().toBigInteger(); - x1 = _2w.add(x1.and(_2w.subtract(BigInteger.ONE))); - - ECPoint aPublicKey=curve.decodePoint(entity.K).normalize(); - ECPoint temp = aPublicKey.add(RA.multiply(x1).normalize()).normalize(); - ECPoint V = temp.multiply(ecc_bc_spec.getH().multiply(tB)).normalize(); - if (V.isInfinity()) - throw new IllegalStateException(); - this.V=V; - - byte[] xV = V.getXCoord().toBigInteger().toByteArray(); - byte[] yV = V.getYCoord().toBigInteger().toByteArray(); - byte[] KB = KDF(join(xV, yV, entity.Z, this.Z), 16); - key = KB; - - byte[] sB = sm3hash(new byte[] { 0x02 }, yV, - sm3hash(xV, entity.Z, this.Z, RA.getXCoord().toBigInteger().toByteArray(), - RA.getYCoord().toBigInteger().toByteArray(), RB.getXCoord().toBigInteger().toByteArray(), - RB.getYCoord().toBigInteger().toByteArray())); - return new TransportEntity(RB.getEncoded(false), sB,this.Z,keyPair.getPublicKey()); - } - - /** - * 密钥协商发起方交换 - * - * @param entity 传输实体 - * @return 发起方检验后的传输实体(null:检验失败) - */ - public TransportEntity InitiatorExchange(TransportEntity entity) { - BigInteger x1 = RA.getXCoord().toBigInteger(); - x1 = _2w.add(x1.and(_2w.subtract(BigInteger.ONE))); - - BigInteger tA = keyPair.getPrivateKey().add(x1.multiply(rA)).mod(n); - ECPoint RB = curve.decodePoint(entity.R).normalize(); - - BigInteger x2 = RB.getXCoord().toBigInteger(); - x2 = _2w.add(x2.and(_2w.subtract(BigInteger.ONE))); - - ECPoint bPublicKey=curve.decodePoint(entity.K).normalize(); - ECPoint temp = bPublicKey.add(RB.multiply(x2).normalize()).normalize(); - ECPoint U = temp.multiply(ecc_bc_spec.getH().multiply(tA)).normalize(); - if (U.isInfinity()) - throw new IllegalStateException(); - this.V=U; - - byte[] xU = U.getXCoord().toBigInteger().toByteArray(); - byte[] yU = U.getYCoord().toBigInteger().toByteArray(); - byte[] KA = KDF(join(xU, yU, - this.Z, entity.Z), 16); - key = KA; - - byte[] s1= sm3hash(new byte[] { 0x02 }, yU, - sm3hash(xU, this.Z, entity.Z, RA.getXCoord().toBigInteger().toByteArray(), - RA.getYCoord().toBigInteger().toByteArray(), RB.getXCoord().toBigInteger().toByteArray(), - RB.getYCoord().toBigInteger().toByteArray())); - - if(!Arrays.equals(entity.S, s1)) { - return null; - } - - byte[] sA = sm3hash(new byte[]{0x03}, yU, - sm3hash(xU, this.Z, entity.Z, RA.getXCoord().toBigInteger().toByteArray(), - RA.getYCoord().toBigInteger().toByteArray(), RB.getXCoord().toBigInteger().toByteArray(), - RB.getYCoord().toBigInteger().toByteArray())); - - return new TransportEntity(RA.getEncoded(false), sA, this.Z, keyPair.getPublicKey()); - } - - /** - * 密钥确认响应方校验 - * - * @param entity 传输实体 - * @return true 检验成功; false 检验失败 - */ - public boolean ResponderValidate(TransportEntity entity) { - byte[] xV = V.getXCoord().toBigInteger().toByteArray(); - byte[] yV = V.getYCoord().toBigInteger().toByteArray(); - ECPoint RA = curve.decodePoint(entity.R).normalize(); - byte[] s2= sm3hash(new byte[] { 0x03 }, yV, - sm3hash(xV, entity.Z, this.Z, RA.getXCoord().toBigInteger().toByteArray(), - RA.getYCoord().toBigInteger().toByteArray(), this.RA.getXCoord().toBigInteger().toByteArray(), - this.RA.getYCoord().toBigInteger().toByteArray())); - if(!Arrays.equals(entity.S, s2)) { - return false; - } - return true; - } - } - - public static class SM2Signature { - BigInteger r; - BigInteger s; - - public SM2Signature(BigInteger r, BigInteger s) { - this.r = r; - this.s = s; - } - - public BigInteger getR() { - return r; - } - - public BigInteger getS() { - return s; - } - } + if (!between(signature.r, BigInteger.ONE, n)) + return false; + if (!between(signature.s, BigInteger.ONE, n)) + return false; + + byte[] M_ = join(ZA(IDA, aPublicKey), M); + + BigInteger e = new BigInteger(1, sm3hash(M_)); + BigInteger t = signature.r.add(signature.s).mod(n); + + if (t.equals(BigInteger.ZERO)) + return false; + + ECPoint p1 = G.multiply(signature.s).normalize(); + ECPoint p2 = aPublicKey.multiply(t).normalize(); + BigInteger x1 = p1.add(p2).normalize().getXCoord().toBigInteger(); + BigInteger R = e.add(x1).mod(n); + if (R.equals(signature.r)) + return true; + return false; + } + + /** + * 密钥派生函数 + * + * @param Z + * @param klen + * 生成klen字节数长度的密钥 + * + * @return + */ + private static byte[] KDF(byte[] Z, int klen) { + int ct = 1; + int end = (int) Math.ceil(klen * 1.0 / 32); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + try { + for (int i = 1; i < end; i++) { + baos.write(sm3hash(Z, SM3Util.toByteArray(ct))); + ct++; + } + byte[] last = sm3hash(Z, SM3Util.toByteArray(ct)); + if (klen % 32 == 0) { + baos.write(last); + } else + baos.write(last, 0, klen % 32); + return baos.toByteArray(); + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + + /** + * 传输实体类 + * + * @author Potato + * + */ + public static class TransportEntity implements Serializable { + private static final long serialVersionUID = 1L; + final byte[] R; // R点 + final byte[] S; // 验证S + final byte[] Z; // 用户标识 + final byte[] K; // 公钥 + + public TransportEntity(byte[] r, byte[] s, byte[] z, ECPoint pKey) { + R = r; + S = s; + Z = z; + K = pKey.getEncoded(false); + } + } + + /** + * 密钥协商辅助类 + * + * @author Potato + * + */ + public static class KeyExchange { + BigInteger rA; + ECPoint RA; + ECPoint V; + byte[] Z; + byte[] key; + + byte[] ID; + SM2KeyPair keyPair; + + public KeyExchange(byte[] ID, SM2KeyPair keyPair) { + this.ID = ID; + this.keyPair = keyPair; + this.Z = ZA(ID, keyPair.getPublicKey()); + } + + /** + * 密钥协商发起方发起 + * + * @return 发送给响应方的传输实体 + */ + public TransportEntity InitiatorInit() { + rA = random(n); + RA = G.multiply(rA).normalize(); + return new TransportEntity(RA.getEncoded(false), null, Z, keyPair.getPublicKey()); + } + + /** + * 密钥协商响应方交换 + * + * @param entity + * 传输实体 + * + * @return 返回给发起方的传输实体 + */ + public TransportEntity ResponderExchange(TransportEntity entity) { + BigInteger rB = random(n); + ECPoint RB = G.multiply(rB).normalize(); + + this.rA = rB; + this.RA = RB; + + BigInteger x2 = RB.getXCoord().toBigInteger(); + x2 = _2w.add(x2.and(_2w.subtract(BigInteger.ONE))); + + BigInteger tB = keyPair.getPrivateKey().add(x2.multiply(rB)).mod(n); + ECPoint RA = curve.decodePoint(entity.R).normalize(); + + BigInteger x1 = RA.getXCoord().toBigInteger(); + x1 = _2w.add(x1.and(_2w.subtract(BigInteger.ONE))); + + ECPoint aPublicKey = curve.decodePoint(entity.K).normalize(); + ECPoint temp = aPublicKey.add(RA.multiply(x1).normalize()).normalize(); + ECPoint V = temp.multiply(ecc_bc_spec.getH().multiply(tB)).normalize(); + if (V.isInfinity()) + throw new IllegalStateException(); + this.V = V; + + byte[] xV = V.getXCoord().toBigInteger().toByteArray(); + byte[] yV = V.getYCoord().toBigInteger().toByteArray(); + byte[] KB = KDF(join(xV, yV, entity.Z, this.Z), 16); + key = KB; + + byte[] sB = sm3hash(new byte[] { 0x02 }, yV, + sm3hash(xV, entity.Z, this.Z, RA.getXCoord().toBigInteger().toByteArray(), + RA.getYCoord().toBigInteger().toByteArray(), RB.getXCoord().toBigInteger().toByteArray(), + RB.getYCoord().toBigInteger().toByteArray())); + return new TransportEntity(RB.getEncoded(false), sB, this.Z, keyPair.getPublicKey()); + } + + /** + * 密钥协商发起方交换 + * + * @param entity + * 传输实体 + * + * @return 发起方检验后的传输实体(null:检验失败) + */ + public TransportEntity InitiatorExchange(TransportEntity entity) { + BigInteger x1 = RA.getXCoord().toBigInteger(); + x1 = _2w.add(x1.and(_2w.subtract(BigInteger.ONE))); + + BigInteger tA = keyPair.getPrivateKey().add(x1.multiply(rA)).mod(n); + ECPoint RB = curve.decodePoint(entity.R).normalize(); + + BigInteger x2 = RB.getXCoord().toBigInteger(); + x2 = _2w.add(x2.and(_2w.subtract(BigInteger.ONE))); + + ECPoint bPublicKey = curve.decodePoint(entity.K).normalize(); + ECPoint temp = bPublicKey.add(RB.multiply(x2).normalize()).normalize(); + ECPoint U = temp.multiply(ecc_bc_spec.getH().multiply(tA)).normalize(); + if (U.isInfinity()) + throw new IllegalStateException(); + this.V = U; + + byte[] xU = U.getXCoord().toBigInteger().toByteArray(); + byte[] yU = U.getYCoord().toBigInteger().toByteArray(); + byte[] KA = KDF(join(xU, yU, this.Z, entity.Z), 16); + key = KA; + + byte[] s1 = sm3hash(new byte[] { 0x02 }, yU, + sm3hash(xU, this.Z, entity.Z, RA.getXCoord().toBigInteger().toByteArray(), + RA.getYCoord().toBigInteger().toByteArray(), RB.getXCoord().toBigInteger().toByteArray(), + RB.getYCoord().toBigInteger().toByteArray())); + + if (!Arrays.equals(entity.S, s1)) { + return null; + } + + byte[] sA = sm3hash(new byte[] { 0x03 }, yU, + sm3hash(xU, this.Z, entity.Z, RA.getXCoord().toBigInteger().toByteArray(), + RA.getYCoord().toBigInteger().toByteArray(), RB.getXCoord().toBigInteger().toByteArray(), + RB.getYCoord().toBigInteger().toByteArray())); + + return new TransportEntity(RA.getEncoded(false), sA, this.Z, keyPair.getPublicKey()); + } + + /** + * 密钥确认响应方校验 + * + * @param entity + * 传输实体 + * + * @return true 检验成功; false 检验失败 + */ + public boolean ResponderValidate(TransportEntity entity) { + byte[] xV = V.getXCoord().toBigInteger().toByteArray(); + byte[] yV = V.getYCoord().toBigInteger().toByteArray(); + ECPoint RA = curve.decodePoint(entity.R).normalize(); + byte[] s2 = sm3hash(new byte[] { 0x03 }, yV, + sm3hash(xV, entity.Z, this.Z, RA.getXCoord().toBigInteger().toByteArray(), + RA.getYCoord().toBigInteger().toByteArray(), + this.RA.getXCoord().toBigInteger().toByteArray(), + this.RA.getYCoord().toBigInteger().toByteArray())); + if (!Arrays.equals(entity.S, s2)) { + return false; + } + return true; + } + } + + public static class SM2Signature { + BigInteger r; + BigInteger s; + + public SM2Signature(BigInteger r, BigInteger s) { + this.r = r; + this.s = s; + } + + public BigInteger getR() { + return r; + } + + public BigInteger getS() { + return s; + } + } } diff --git a/src/main/java/cn/chain33/javasdk/model/gm/SM3Util.java b/src/main/java/cn/chain33/javasdk/model/gm/SM3Util.java index 1bb66bb..9ce704d 100644 --- a/src/main/java/cn/chain33/javasdk/model/gm/SM3Util.java +++ b/src/main/java/cn/chain33/javasdk/model/gm/SM3Util.java @@ -7,20 +7,20 @@ /** * SM3杂凑算法实现 + * * @author Potato * */ public class SM3Util { - private static char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', - '9', 'A', 'B', 'C', 'D', 'E', 'F'}; + private static char[] hexDigits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', + 'F' }; private static final String ivHexStr = "7380166f 4914b2b9 172442d7 da8a0600 a96f30bc 163138aa e38dee4d b0fb0e4e"; - private static final BigInteger IV = new BigInteger(ivHexStr.replaceAll(" ", - ""), 16); + private static final BigInteger IV = new BigInteger(ivHexStr.replaceAll(" ", ""), 16); private static final Integer Tj15 = Integer.valueOf("79cc4519", 16); private static final Integer Tj63 = Integer.valueOf("7a879d8a", 16); - private static final byte[] FirstPadding = {(byte) 0x80}; - private static final byte[] ZeroPadding = {(byte) 0x00}; + private static final byte[] FirstPadding = { (byte) 0x80 }; + private static final byte[] ZeroPadding = { (byte) 0x00 }; private static int T(int j) { if (j >= 0 && j <= 15) { @@ -36,9 +36,8 @@ private static Integer FF(Integer x, Integer y, Integer z, int j) { if (j >= 0 && j <= 15) { return Integer.valueOf(x.intValue() ^ y.intValue() ^ z.intValue()); } else if (j >= 16 && j <= 63) { - return Integer.valueOf((x.intValue() & y.intValue()) - | (x.intValue() & z.intValue()) - | (y.intValue() & z.intValue())); + return Integer.valueOf( + (x.intValue() & y.intValue()) | (x.intValue() & z.intValue()) | (y.intValue() & z.intValue())); } else { throw new RuntimeException("data invalid"); } @@ -48,23 +47,20 @@ private static Integer GG(Integer x, Integer y, Integer z, int j) { if (j >= 0 && j <= 15) { return Integer.valueOf(x.intValue() ^ y.intValue() ^ z.intValue()); } else if (j >= 16 && j <= 63) { - return Integer.valueOf((x.intValue() & y.intValue()) - | (~x.intValue() & z.intValue())); + return Integer.valueOf((x.intValue() & y.intValue()) | (~x.intValue() & z.intValue())); } else { throw new RuntimeException("data invalid"); } } private static Integer P0(Integer x) { - return Integer.valueOf(x.intValue() - ^ Integer.rotateLeft(x.intValue(), 9) - ^ Integer.rotateLeft(x.intValue(), 17)); + return Integer + .valueOf(x.intValue() ^ Integer.rotateLeft(x.intValue(), 9) ^ Integer.rotateLeft(x.intValue(), 17)); } private static Integer P1(Integer x) { - return Integer.valueOf(x.intValue() - ^ Integer.rotateLeft(x.intValue(), 15) - ^ Integer.rotateLeft(x.intValue(), 23)); + return Integer + .valueOf(x.intValue() ^ Integer.rotateLeft(x.intValue(), 15) ^ Integer.rotateLeft(x.intValue(), 23)); } private static byte[] padding(byte[] source) throws IOException { @@ -127,8 +123,8 @@ private static byte[] CF(byte[] vi, byte[] bi) throws IOException { w[i] = toInteger(bi, i); } for (int j = 16; j < 68; j++) { - w[j] = P1(w[j - 16] ^ w[j - 9] ^ Integer.rotateLeft(w[j - 3], 15)) - ^ Integer.rotateLeft(w[j - 13], 7) ^ w[j - 6]; + w[j] = P1(w[j - 16] ^ w[j - 9] ^ Integer.rotateLeft(w[j - 3], 15)) ^ Integer.rotateLeft(w[j - 13], 7) + ^ w[j - 6]; } for (int j = 0; j < 64; j++) { w1[j] = w[j] ^ w[j + 4]; @@ -165,8 +161,7 @@ private static int toInteger(byte[] source, int index) { } - private static byte[] toByteArray(int a, int b, int c, int d, int e, int f, - int g, int h) throws IOException { + private static byte[] toByteArray(int a, int b, int c, int d, int e, int f, int g, int h) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(32); baos.write(toByteArray(a)); baos.write(toByteArray(b)); @@ -187,16 +182,17 @@ public static byte[] toByteArray(int i) { byteArray[3] = (byte) (i & 0xFF); return byteArray; } + private static String byteToHexString(byte b) { int n = b; if (n < 0) n = 256 + n; int d1 = n / 16; int d2 = n % 16; - return ""+hexDigits[d1] + hexDigits[d2]; + return "" + hexDigits[d1] + hexDigits[d2]; } - public static String byteArrayToHexString(byte[] b) { + public static String byteArrayToHexString(byte[] b) { StringBuffer resultSb = new StringBuffer(); for (int i = 0; i < b.length; i++) { resultSb.append(byteToHexString(b[i])); diff --git a/src/main/java/cn/chain33/javasdk/model/gm/SM4Util.java b/src/main/java/cn/chain33/javasdk/model/gm/SM4Util.java index 13278da..3cbe163 100644 --- a/src/main/java/cn/chain33/javasdk/model/gm/SM4Util.java +++ b/src/main/java/cn/chain33/javasdk/model/gm/SM4Util.java @@ -30,6 +30,7 @@ public class SM4Util { /** * 生成SM4密钥,默认128位 + * * @return 密钥 */ public static byte[] generateKey() { @@ -49,9 +50,14 @@ public static byte[] generateKey(int keySize) { /** * ECB模式加密 - * @param key 加密秘钥 - * @param data 明文 + * + * @param key + * 加密秘钥 + * @param data + * 明文 + * * @return 密文 + * * @throws InvalidKeyException */ public static byte[] encryptECB(byte[] key, byte[] data) throws InvalidKeyException { @@ -78,15 +84,20 @@ public static byte[] encryptECB(byte[] key, byte[] data) throws InvalidKeyExcept /** * ECB模式解密 - * @param key 解密密钥 - * @param cipherText 密文 + * + * @param key + * 解密密钥 + * @param cipherText + * 密文 + * * @return 明文 + * * @throws InvalidKeyException */ public static byte[] decryptECB(byte[] key, byte[] cipherText) throws InvalidKeyException { try { - Cipher cipher = generateECBCipher(ALGORITHM_NAME_ECB_PADDING, Cipher.DECRYPT_MODE, key); - return cipher.doFinal(cipherText); + Cipher cipher = generateECBCipher(ALGORITHM_NAME_ECB_PADDING, Cipher.DECRYPT_MODE, key); + return cipher.doFinal(cipherText); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); return null; @@ -107,18 +118,24 @@ public static byte[] decryptECB(byte[] key, byte[] cipherText) throws InvalidKey /** * CBC模式加密 - * @param key 加密密钥 - * @param iv 初始化向量 - * @param data 明文 + * + * @param key + * 加密密钥 + * @param iv + * 初始化向量 + * @param data + * 明文 + * * @return 密文 + * * @throws InvalidKeyException * @throws InvalidAlgorithmParameterException */ public static byte[] encryptCBC(byte[] key, byte[] iv, byte[] data) throws InvalidKeyException, InvalidAlgorithmParameterException { try { - Cipher cipher = generateCBCCipher(ALGORITHM_NAME_CBC_PADDING, Cipher.ENCRYPT_MODE, key, iv); - return cipher.doFinal(data); + Cipher cipher = generateCBCCipher(ALGORITHM_NAME_CBC_PADDING, Cipher.ENCRYPT_MODE, key, iv); + return cipher.doFinal(data); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); return null; @@ -139,18 +156,24 @@ public static byte[] encryptCBC(byte[] key, byte[] iv, byte[] data) /** * CBC模式解密 - * @param key 解密密钥 - * @param iv 初始化向量 - * @param cipherText 密文 + * + * @param key + * 解密密钥 + * @param iv + * 初始化向量 + * @param cipherText + * 密文 + * * @return 明文 + * * @throws InvalidKeyException * @throws InvalidAlgorithmParameterException */ public static byte[] decryptCBC(byte[] key, byte[] iv, byte[] cipherText) throws InvalidKeyException, InvalidAlgorithmParameterException { try { - Cipher cipher = generateCBCCipher(ALGORITHM_NAME_CBC_PADDING, Cipher.DECRYPT_MODE, key, iv); - return cipher.doFinal(cipherText); + Cipher cipher = generateCBCCipher(ALGORITHM_NAME_CBC_PADDING, Cipher.DECRYPT_MODE, key, iv); + return cipher.doFinal(cipherText); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); return null; @@ -170,8 +193,7 @@ public static byte[] decryptCBC(byte[] key, byte[] iv, byte[] cipherText) } private static Cipher generateECBCipher(String algorithmName, int mode, byte[] key) - throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, - InvalidKeyException { + throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, InvalidKeyException { Cipher cipher = Cipher.getInstance(algorithmName, BouncyCastleProvider.PROVIDER_NAME); Key sm4Key = new SecretKeySpec(key, ALGORITHM_NAME); cipher.init(mode, sm4Key); diff --git a/src/main/java/cn/chain33/javasdk/model/paillier/BytesUtils.java b/src/main/java/cn/chain33/javasdk/model/paillier/BytesUtils.java index 8dd1c15..b4b573f 100644 --- a/src/main/java/cn/chain33/javasdk/model/paillier/BytesUtils.java +++ b/src/main/java/cn/chain33/javasdk/model/paillier/BytesUtils.java @@ -3,7 +3,8 @@ import java.math.BigInteger; public class BytesUtils { - public BytesUtils() {} + public BytesUtils() { + } public static byte[] unsignedShortToByte2(int s) { byte[] targets = new byte[2]; diff --git a/src/main/java/cn/chain33/javasdk/model/paillier/PaillierCipher.java b/src/main/java/cn/chain33/javasdk/model/paillier/PaillierCipher.java index 5e21d2e..2406656 100644 --- a/src/main/java/cn/chain33/javasdk/model/paillier/PaillierCipher.java +++ b/src/main/java/cn/chain33/javasdk/model/paillier/PaillierCipher.java @@ -23,8 +23,7 @@ public static byte[] encryptAsBytes(BigInteger m, PublicKey publicKey) { } BigInteger nsquare = publicKey.getnSquared(); - BigInteger ciphertext = - publicKey.getG().modPow(m, nsquare).multiply(random.modPow(n, nsquare)).mod(nsquare); + BigInteger ciphertext = publicKey.getG().modPow(m, nsquare).multiply(random.modPow(n, nsquare)).mod(nsquare); byte[] nBytes = BytesUtils.asUnsignedByteArray(n); byte[] nLenBytes = BytesUtils.unsignedShortToByte2(nBytes.length); @@ -32,8 +31,7 @@ public static byte[] encryptAsBytes(BigInteger m, PublicKey publicKey) { byte[] data = new byte[nLenBytes.length + nBytes.length + cipherBytes.length]; System.arraycopy(nLenBytes, 0, data, 0, nLenBytes.length); System.arraycopy(nBytes, 0, data, nLenBytes.length, nBytes.length); - System.arraycopy( - cipherBytes, 0, data, nLenBytes.length + nBytes.length, cipherBytes.length); + System.arraycopy(cipherBytes, 0, data, nLenBytes.length + nBytes.length, cipherBytes.length); return data; } @@ -58,13 +56,8 @@ public static BigInteger decrypt(byte[] ciphertext, PrivateKey privateKey) { System.arraycopy(ciphertext, 2 + nLen, data, 0, ciphertext.length - nLen - 2); BigInteger intCiphertext = BytesUtils.fromUnsignedByteArray(data); - BigInteger message = - intCiphertext - .modPow(lambda, privateKey.getnSquared()) - .subtract(BigInteger.ONE) - .divide(n) - .multiply(privateKey.getMu()) - .mod(n); + BigInteger message = intCiphertext.modPow(lambda, privateKey.getnSquared()).subtract(BigInteger.ONE).divide(n) + .multiply(privateKey.getMu()).mod(n); BigInteger maxValue = BigInteger.ONE.shiftLeft(n.bitLength() / 2); if (message.compareTo(maxValue) > 0) { return message.subtract(n); @@ -76,8 +69,8 @@ public static BigInteger decrypt(byte[] ciphertext, PrivateKey privateKey) { public static String ciphertextAdd(String ciphertext1, String ciphertext2) { byte[] data = ciphertextAdd(HexUtil.fromHexString(ciphertext1), HexUtil.fromHexString(ciphertext2)); if (data == null) { - System.err.println("Ciphertext add error"); - return null; + System.err.println("Ciphertext add error"); + return null; } return HexUtil.toHexString(data); } @@ -112,8 +105,7 @@ public static byte[] ciphertextAdd(byte[] ciphertext1, byte[] ciphertext2) { byte[] data = new byte[nLenBytes.length + nBytes1.length + cipherBytes.length]; System.arraycopy(nLenBytes, 0, data, 0, nLenBytes.length); System.arraycopy(nBytes1, 0, data, nLenBytes.length, nBytes1.length); - System.arraycopy( - cipherBytes, 0, data, nLenBytes.length + nBytes1.length, cipherBytes.length); + System.arraycopy(cipherBytes, 0, data, nLenBytes.length + nBytes1.length, cipherBytes.length); return data; } } diff --git a/src/main/java/cn/chain33/javasdk/model/paillier/PaillierKeyPair.java b/src/main/java/cn/chain33/javasdk/model/paillier/PaillierKeyPair.java index 0788690..1248e79 100644 --- a/src/main/java/cn/chain33/javasdk/model/paillier/PaillierKeyPair.java +++ b/src/main/java/cn/chain33/javasdk/model/paillier/PaillierKeyPair.java @@ -38,7 +38,8 @@ public static PaillierKeyPair generateKeyPair(int len) { BigInteger lambda = pMinusOne.multiply(qMinusOne); - BigInteger g = n.add(BigInteger.ONE);; + BigInteger g = n.add(BigInteger.ONE); + ; BigInteger mu = lambda.modInverse(n); PublicKey publicKey = new PublicKey(n, nSquared, g); diff --git a/src/main/java/cn/chain33/javasdk/model/pre/EncryptKey.java b/src/main/java/cn/chain33/javasdk/model/pre/EncryptKey.java index e890b27..a96cbcb 100644 --- a/src/main/java/cn/chain33/javasdk/model/pre/EncryptKey.java +++ b/src/main/java/cn/chain33/javasdk/model/pre/EncryptKey.java @@ -8,9 +8,9 @@ public class EncryptKey { private String PubProofU; public EncryptKey(byte[] shareKey, String pubProofR, String pubProofU) { - this.PubProofR = pubProofR; - this.PubProofU = pubProofU; - this.shareKey = shareKey; + this.PubProofR = pubProofR; + this.PubProofU = pubProofU; + this.shareKey = shareKey; } public byte[] getShareKey() { diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/AccountProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/AccountProtobuf.java index 5b6fe13..e16001f 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/AccountProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/AccountProtobuf.java @@ -4,9949 +4,10317 @@ package cn.chain33.javasdk.model.protobuf; public final class AccountProtobuf { - private AccountProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:Account) - com.google.protobuf.MessageOrBuilder { + private AccountProtobuf() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface AccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:Account) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * coins标识,目前只有0 一个值
+         * 
+ * + * int32 currency = 1; + * + * @return The currency. + */ + int getCurrency(); + + /** + *
+         * 账户可用余额
+         * 
+ * + * int64 balance = 2; + * + * @return The balance. + */ + long getBalance(); + + /** + *
+         * 账户冻结余额
+         * 
+ * + * int64 frozen = 3; + * + * @return The frozen. + */ + long getFrozen(); + + /** + *
+         * 账户的地址
+         * 
+ * + * string addr = 4; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + *
+         * 账户的地址
+         * 
+ * + * string addr = 4; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + } /** *
-     * coins标识,目前只有0 一个值
+     * Account 的信息
      * 
* - * int32 currency = 1; - * @return The currency. + * Protobuf type {@code Account} */ - int getCurrency(); + public static final class Account extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Account) + AccountOrBuilder { + private static final long serialVersionUID = 0L; - /** - *
-     *账户可用余额
-     * 
- * - * int64 balance = 2; - * @return The balance. - */ - long getBalance(); + // Use Account.newBuilder() to construct. + private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - *
-     *账户冻结余额
-     * 
- * - * int64 frozen = 3; - * @return The frozen. - */ - long getFrozen(); + private Account() { + addr_ = ""; + } - /** - *
-     *账户的地址
-     * 
- * - * string addr = 4; - * @return The addr. - */ - java.lang.String getAddr(); - /** - *
-     *账户的地址
-     * 
- * - * string addr = 4; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); - } - /** - *
-   * Account 的信息
-   * 
- * - * Protobuf type {@code Account} - */ - public static final class Account extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Account) - AccountOrBuilder { - private static final long serialVersionUID = 0L; - // Use Account.newBuilder() to construct. - private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Account() { - addr_ = ""; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Account(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Account(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Account( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - currency_ = input.readInt32(); - break; - } - case 16: { - - balance_ = input.readInt64(); - break; - } - case 24: { - - frozen_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_descriptor; - } + private Account(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + currency_ = input.readInt32(); + break; + } + case 16: { + + balance_ = input.readInt64(); + break; + } + case 24: { + + frozen_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder.class); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder.class); + } + + public static final int CURRENCY_FIELD_NUMBER = 1; + private int currency_; + + /** + *
+         * coins标识,目前只有0 一个值
+         * 
+ * + * int32 currency = 1; + * + * @return The currency. + */ + @java.lang.Override + public int getCurrency() { + return currency_; + } + + public static final int BALANCE_FIELD_NUMBER = 2; + private long balance_; + + /** + *
+         * 账户可用余额
+         * 
+ * + * int64 balance = 2; + * + * @return The balance. + */ + @java.lang.Override + public long getBalance() { + return balance_; + } + + public static final int FROZEN_FIELD_NUMBER = 3; + private long frozen_; + + /** + *
+         * 账户冻结余额
+         * 
+ * + * int64 frozen = 3; + * + * @return The frozen. + */ + @java.lang.Override + public long getFrozen() { + return frozen_; + } + + public static final int ADDR_FIELD_NUMBER = 4; + private volatile java.lang.Object addr_; + + /** + *
+         * 账户的地址
+         * 
+ * + * string addr = 4; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } - public static final int CURRENCY_FIELD_NUMBER = 1; - private int currency_; - /** - *
-     * coins标识,目前只有0 一个值
-     * 
- * - * int32 currency = 1; - * @return The currency. - */ - public int getCurrency() { - return currency_; - } + /** + *
+         * 账户的地址
+         * 
+ * + * string addr = 4; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int BALANCE_FIELD_NUMBER = 2; - private long balance_; - /** - *
-     *账户可用余额
-     * 
- * - * int64 balance = 2; - * @return The balance. - */ - public long getBalance() { - return balance_; - } + private byte memoizedIsInitialized = -1; - public static final int FROZEN_FIELD_NUMBER = 3; - private long frozen_; - /** - *
-     *账户冻结余额
-     * 
- * - * int64 frozen = 3; - * @return The frozen. - */ - public long getFrozen() { - return frozen_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static final int ADDR_FIELD_NUMBER = 4; - private volatile java.lang.Object addr_; - /** - *
-     *账户的地址
-     * 
- * - * string addr = 4; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - *
-     *账户的地址
-     * 
- * - * string addr = 4; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + memoizedIsInitialized = 1; + return true; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (currency_ != 0) { + output.writeInt32(1, currency_); + } + if (balance_ != 0L) { + output.writeInt64(2, balance_); + } + if (frozen_ != 0L) { + output.writeInt64(3, frozen_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); + } + unknownFields.writeTo(output); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (currency_ != 0) { - output.writeInt32(1, currency_); - } - if (balance_ != 0L) { - output.writeInt64(2, balance_); - } - if (frozen_ != 0L) { - output.writeInt64(3, frozen_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); - } - unknownFields.writeTo(output); - } + size = 0; + if (currency_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, currency_); + } + if (balance_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, balance_); + } + if (frozen_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, frozen_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (currency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, currency_); - } - if (balance_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, balance_); - } - if (frozen_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, frozen_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); - } - 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 cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account) obj; + + if (getCurrency() != other.getCurrency()) + return false; + if (getBalance() != other.getBalance()) + return false; + if (getFrozen() != other.getFrozen()) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBalance()); + hash = (37 * hash) + FROZEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFrozen()); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account) obj; - - if (getCurrency() - != other.getCurrency()) return false; - if (getBalance() - != other.getBalance()) return false; - if (getFrozen() - != other.getFrozen()) return false; - if (!getAddr() - .equals(other.getAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CURRENCY_FIELD_NUMBER; - hash = (53 * hash) + getCurrency(); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBalance()); - hash = (37 * hash) + FROZEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFrozen()); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Account 的信息
-     * 
- * - * Protobuf type {@code Account} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Account) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - currency_ = 0; - - balance_ = 0L; - - frozen_ = 0L; - - addr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account(this); - result.currency_ = currency_; - result.balance_ = balance_; - result.frozen_ = frozen_; - result.addr_ = addr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance()) return this; - if (other.getCurrency() != 0) { - setCurrency(other.getCurrency()); - } - if (other.getBalance() != 0L) { - setBalance(other.getBalance()); - } - if (other.getFrozen() != 0L) { - setFrozen(other.getFrozen()); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int currency_ ; - /** - *
-       * coins标识,目前只有0 一个值
-       * 
- * - * int32 currency = 1; - * @return The currency. - */ - public int getCurrency() { - return currency_; - } - /** - *
-       * coins标识,目前只有0 一个值
-       * 
- * - * int32 currency = 1; - * @param value The currency to set. - * @return This builder for chaining. - */ - public Builder setCurrency(int value) { - - currency_ = value; - onChanged(); - return this; - } - /** - *
-       * coins标识,目前只有0 一个值
-       * 
- * - * int32 currency = 1; - * @return This builder for chaining. - */ - public Builder clearCurrency() { - - currency_ = 0; - onChanged(); - return this; - } - - private long balance_ ; - /** - *
-       *账户可用余额
-       * 
- * - * int64 balance = 2; - * @return The balance. - */ - public long getBalance() { - return balance_; - } - /** - *
-       *账户可用余额
-       * 
- * - * int64 balance = 2; - * @param value The balance to set. - * @return This builder for chaining. - */ - public Builder setBalance(long value) { - - balance_ = value; - onChanged(); - return this; - } - /** - *
-       *账户可用余额
-       * 
- * - * int64 balance = 2; - * @return This builder for chaining. - */ - public Builder clearBalance() { - - balance_ = 0L; - onChanged(); - return this; - } - - private long frozen_ ; - /** - *
-       *账户冻结余额
-       * 
- * - * int64 frozen = 3; - * @return The frozen. - */ - public long getFrozen() { - return frozen_; - } - /** - *
-       *账户冻结余额
-       * 
- * - * int64 frozen = 3; - * @param value The frozen to set. - * @return This builder for chaining. - */ - public Builder setFrozen(long value) { - - frozen_ = value; - onChanged(); - return this; - } - /** - *
-       *账户冻结余额
-       * 
- * - * int64 frozen = 3; - * @return This builder for chaining. - */ - public Builder clearFrozen() { - - frozen_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - *
-       *账户的地址
-       * 
- * - * string addr = 4; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *账户的地址
-       * 
- * - * string addr = 4; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *账户的地址
-       * 
- * - * string addr = 4; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - *
-       *账户的地址
-       * 
- * - * string addr = 4; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - *
-       *账户的地址
-       * 
- * - * string addr = 4; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Account) - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:Account) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account(); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Account parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Account(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public interface ReceiptExecAccountTransferOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptExecAccountTransfer) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - *
-     *合约地址
-     * 
- * - * string execAddr = 1; - * @return The execAddr. - */ - java.lang.String getExecAddr(); - /** - *
-     *合约地址
-     * 
- * - * string execAddr = 1; - * @return The bytes for execAddr. - */ - com.google.protobuf.ByteString - getExecAddrBytes(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - *
-     *转移前
-     * 
- * - * .Account prev = 2; - * @return Whether the prev field is set. - */ - boolean hasPrev(); - /** - *
-     *转移前
-     * 
- * - * .Account prev = 2; - * @return The prev. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); - /** - *
-     *转移前
-     * 
- * - * .Account prev = 2; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - *
-     *转移后
-     * 
- * - * .Account current = 3; - * @return Whether the current field is set. - */ - boolean hasCurrent(); - /** - *
-     *转移后
-     * 
- * - * .Account current = 3; - * @return The current. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); - /** - *
-     *转移后
-     * 
- * - * .Account current = 3; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); - } - /** - *
-   *账户余额改变的一个交易回报(合约内)
-   * 
- * - * Protobuf type {@code ReceiptExecAccountTransfer} - */ - public static final class ReceiptExecAccountTransfer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptExecAccountTransfer) - ReceiptExecAccountTransferOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptExecAccountTransfer.newBuilder() to construct. - private ReceiptExecAccountTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptExecAccountTransfer() { - execAddr_ = ""; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptExecAccountTransfer(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptExecAccountTransfer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - execAddr_ = s; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (prev_ != null) { - subBuilder = prev_.toBuilder(); - } - prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prev_); - prev_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (current_ != null) { - subBuilder = current_.toBuilder(); - } - current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(current_); - current_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.Builder.class); - } + /** + *
+         * Account 的信息
+         * 
+ * + * Protobuf type {@code Account} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Account) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_descriptor; + } - public static final int EXECADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object execAddr_; - /** - *
-     *合约地址
-     * 
- * - * string execAddr = 1; - * @return The execAddr. - */ - public java.lang.String getExecAddr() { - java.lang.Object ref = execAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execAddr_ = s; - return s; - } - } - /** - *
-     *合约地址
-     * 
- * - * string execAddr = 1; - * @return The bytes for execAddr. - */ - public com.google.protobuf.ByteString - getExecAddrBytes() { - java.lang.Object ref = execAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder.class); + } - public static final int PREV_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; - /** - *
-     *转移前
-     * 
- * - * .Account prev = 2; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prev_ != null; - } - /** - *
-     *转移前
-     * 
- * - * .Account prev = 2; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - /** - *
-     *转移前
-     * 
- * - * .Account prev = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - return getPrev(); - } + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int CURRENT_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - /** - *
-     *转移后
-     * 
- * - * .Account current = 3; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return current_ != null; - } - /** - *
-     *转移后
-     * 
- * - * .Account current = 3; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - /** - *
-     *转移后
-     * 
- * - * .Account current = 3; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - return getCurrent(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clear() { + super.clear(); + currency_ = 0; - memoizedIsInitialized = 1; - return true; - } + balance_ = 0L; + + frozen_ = 0L; + + addr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Account_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account( + this); + result.currency_ = currency_; + result.balance_ = balance_; + result.frozen_ = frozen_; + result.addr_ = addr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance()) + return this; + if (other.getCurrency() != 0) { + setCurrency(other.getCurrency()); + } + if (other.getBalance() != 0L) { + setBalance(other.getBalance()); + } + if (other.getFrozen() != 0L) { + setFrozen(other.getFrozen()); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int currency_; + + /** + *
+             * coins标识,目前只有0 一个值
+             * 
+ * + * int32 currency = 1; + * + * @return The currency. + */ + @java.lang.Override + public int getCurrency() { + return currency_; + } + + /** + *
+             * coins标识,目前只有0 一个值
+             * 
+ * + * int32 currency = 1; + * + * @param value + * The currency to set. + * + * @return This builder for chaining. + */ + public Builder setCurrency(int value) { + + currency_ = value; + onChanged(); + return this; + } + + /** + *
+             * coins标识,目前只有0 一个值
+             * 
+ * + * int32 currency = 1; + * + * @return This builder for chaining. + */ + public Builder clearCurrency() { + + currency_ = 0; + onChanged(); + return this; + } + + private long balance_; + + /** + *
+             * 账户可用余额
+             * 
+ * + * int64 balance = 2; + * + * @return The balance. + */ + @java.lang.Override + public long getBalance() { + return balance_; + } + + /** + *
+             * 账户可用余额
+             * 
+ * + * int64 balance = 2; + * + * @param value + * The balance to set. + * + * @return This builder for chaining. + */ + public Builder setBalance(long value) { + + balance_ = value; + onChanged(); + return this; + } + + /** + *
+             * 账户可用余额
+             * 
+ * + * int64 balance = 2; + * + * @return This builder for chaining. + */ + public Builder clearBalance() { + + balance_ = 0L; + onChanged(); + return this; + } + + private long frozen_; + + /** + *
+             * 账户冻结余额
+             * 
+ * + * int64 frozen = 3; + * + * @return The frozen. + */ + @java.lang.Override + public long getFrozen() { + return frozen_; + } + + /** + *
+             * 账户冻结余额
+             * 
+ * + * int64 frozen = 3; + * + * @param value + * The frozen to set. + * + * @return This builder for chaining. + */ + public Builder setFrozen(long value) { + + frozen_ = value; + onChanged(); + return this; + } + + /** + *
+             * 账户冻结余额
+             * 
+ * + * int64 frozen = 3; + * + * @return This builder for chaining. + */ + public Builder clearFrozen() { + + frozen_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + *
+             * 账户的地址
+             * 
+ * + * string addr = 4; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 账户的地址
+             * 
+ * + * string addr = 4; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 账户的地址
+             * 
+ * + * string addr = 4; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + *
+             * 账户的地址
+             * 
+ * + * string addr = 4; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + *
+             * 账户的地址
+             * 
+ * + * string addr = 4; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Account) + } + + // @@protoc_insertion_point(class_scope:Account) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account(); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Account parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Account(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptExecAccountTransferOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptExecAccountTransfer) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 合约地址
+         * 
+ * + * string execAddr = 1; + * + * @return The execAddr. + */ + java.lang.String getExecAddr(); + + /** + *
+         * 合约地址
+         * 
+ * + * string execAddr = 1; + * + * @return The bytes for execAddr. + */ + com.google.protobuf.ByteString getExecAddrBytes(); + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 2; + * + * @return Whether the prev field is set. + */ + boolean hasPrev(); + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 2; + * + * @return The prev. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 2; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 3; + * + * @return Whether the current field is set. + */ + boolean hasCurrent(); + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 3; + * + * @return The current. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 3; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); + } + + /** + *
+     *账户余额改变的一个交易回报(合约内)
+     * 
+ * + * Protobuf type {@code ReceiptExecAccountTransfer} + */ + public static final class ReceiptExecAccountTransfer extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptExecAccountTransfer) + ReceiptExecAccountTransferOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptExecAccountTransfer.newBuilder() to construct. + private ReceiptExecAccountTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptExecAccountTransfer() { + execAddr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptExecAccountTransfer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptExecAccountTransfer(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + execAddr_ = s; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (prev_ != null) { + subBuilder = prev_.toBuilder(); + } + prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prev_); + prev_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (current_ != null) { + subBuilder = current_.toBuilder(); + } + current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(current_); + current_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.Builder.class); + } + + public static final int EXECADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object execAddr_; + + /** + *
+         * 合约地址
+         * 
+ * + * string execAddr = 1; + * + * @return The execAddr. + */ + @java.lang.Override + public java.lang.String getExecAddr() { + java.lang.Object ref = execAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execAddr_ = s; + return s; + } + } + + /** + *
+         * 合约地址
+         * 
+ * + * string execAddr = 1; + * + * @return The bytes for execAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecAddrBytes() { + java.lang.Object ref = execAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREV_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 2; + * + * @return Whether the prev field is set. + */ + @java.lang.Override + public boolean hasPrev() { + return prev_ != null; + } + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 2; + * + * @return The prev. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : prev_; + } + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + return getPrev(); + } + + public static final int CURRENT_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 3; + * + * @return Whether the current field is set. + */ + @java.lang.Override + public boolean hasCurrent() { + return current_ != null; + } + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 3; + * + * @return The current. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : current_; + } + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + return getCurrent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getExecAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execAddr_); + } + if (prev_ != null) { + output.writeMessage(2, getPrev()); + } + if (current_ != null) { + output.writeMessage(3, getCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getExecAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execAddr_); + } + if (prev_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrev()); + } + if (current_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCurrent()); + } + 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 cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer) obj; + + if (!getExecAddr().equals(other.getExecAddr())) + return false; + if (hasPrev() != other.hasPrev()) + return false; + if (hasPrev()) { + if (!getPrev().equals(other.getPrev())) + return false; + } + if (hasCurrent() != other.hasCurrent()) + return false; + if (hasCurrent()) { + if (!getCurrent().equals(other.getCurrent())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECADDR_FIELD_NUMBER; + hash = (53 * hash) + getExecAddr().hashCode(); + if (hasPrev()) { + hash = (37 * hash) + PREV_FIELD_NUMBER; + hash = (53 * hash) + getPrev().hashCode(); + } + if (hasCurrent()) { + hash = (37 * hash) + CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getCurrent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptExecAccountTransfer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptExecAccountTransfer) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + execAddr_ = ""; + + if (prevBuilder_ == null) { + prev_ = null; + } else { + prev_ = null; + prevBuilder_ = null; + } + if (currentBuilder_ == null) { + current_ = null; + } else { + current_ = null; + currentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer + .getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer( + this); + result.execAddr_ = execAddr_; + if (prevBuilder_ == null) { + result.prev_ = prev_; + } else { + result.prev_ = prevBuilder_.build(); + } + if (currentBuilder_ == null) { + result.current_ = current_; + } else { + result.current_ = currentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer + .getDefaultInstance()) + return this; + if (!other.getExecAddr().isEmpty()) { + execAddr_ = other.execAddr_; + onChanged(); + } + if (other.hasPrev()) { + mergePrev(other.getPrev()); + } + if (other.hasCurrent()) { + mergeCurrent(other.getCurrent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object execAddr_ = ""; + + /** + *
+             * 合约地址
+             * 
+ * + * string execAddr = 1; + * + * @return The execAddr. + */ + public java.lang.String getExecAddr() { + java.lang.Object ref = execAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 合约地址
+             * 
+ * + * string execAddr = 1; + * + * @return The bytes for execAddr. + */ + public com.google.protobuf.ByteString getExecAddrBytes() { + java.lang.Object ref = execAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 合约地址
+             * 
+ * + * string execAddr = 1; + * + * @param value + * The execAddr to set. + * + * @return This builder for chaining. + */ + public Builder setExecAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execAddr_ = value; + onChanged(); + return this; + } + + /** + *
+             * 合约地址
+             * 
+ * + * string execAddr = 1; + * + * @return This builder for chaining. + */ + public Builder clearExecAddr() { + + execAddr_ = getDefaultInstance().getExecAddr(); + onChanged(); + return this; + } + + /** + *
+             * 合约地址
+             * 
+ * + * string execAddr = 1; + * + * @param value + * The bytes for execAddr to set. + * + * @return This builder for chaining. + */ + public Builder setExecAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execAddr_ = value; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + private com.google.protobuf.SingleFieldBuilderV3 prevBuilder_; + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + * + * @return Whether the prev field is set. + */ + public boolean hasPrev() { + return prevBuilder_ != null || prev_ != null; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + * + * @return The prev. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + if (prevBuilder_ == null) { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } else { + return prevBuilder_.getMessage(); + } + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prev_ = value; + onChanged(); + } else { + prevBuilder_.setMessage(value); + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (prevBuilder_ == null) { + prev_ = builderForValue.build(); + onChanged(); + } else { + prevBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + */ + public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (prev_ != null) { + prev_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_) + .mergeFrom(value).buildPartial(); + } else { + prev_ = value; + } + onChanged(); + } else { + prevBuilder_.mergeFrom(value); + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + */ + public Builder clearPrev() { + if (prevBuilder_ == null) { + prev_ = null; + onChanged(); + } else { + prev_ = null; + prevBuilder_ = null; + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { + + onChanged(); + return getPrevFieldBuilder().getBuilder(); + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + if (prevBuilder_ != null) { + return prevBuilder_.getMessageOrBuilder(); + } else { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPrevFieldBuilder() { + if (prevBuilder_ == null) { + prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPrev(), getParentForChildren(), isClean()); + prev_ = null; + } + return prevBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + private com.google.protobuf.SingleFieldBuilderV3 currentBuilder_; + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + * + * @return Whether the current field is set. + */ + public boolean hasCurrent() { + return currentBuilder_ != null || current_ != null; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + * + * @return The current. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + if (currentBuilder_ == null) { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } else { + return currentBuilder_.getMessage(); + } + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + */ + public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + current_ = value; + onChanged(); + } else { + currentBuilder_.setMessage(value); + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + */ + public Builder setCurrent( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (currentBuilder_ == null) { + current_ = builderForValue.build(); + onChanged(); + } else { + currentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + */ + public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (current_ != null) { + current_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_) + .mergeFrom(value).buildPartial(); + } else { + current_ = value; + } + onChanged(); + } else { + currentBuilder_.mergeFrom(value); + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + */ + public Builder clearCurrent() { + if (currentBuilder_ == null) { + current_ = null; + onChanged(); + } else { + current_ = null; + currentBuilder_ = null; + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { + + onChanged(); + return getCurrentFieldBuilder().getBuilder(); + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + if (currentBuilder_ != null) { + return currentBuilder_.getMessageOrBuilder(); + } else { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCurrentFieldBuilder() { + if (currentBuilder_ == null) { + currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getCurrent(), getParentForChildren(), isClean()); + current_ = null; + } + return currentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptExecAccountTransfer) + } + + // @@protoc_insertion_point(class_scope:ReceiptExecAccountTransfer) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer(); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptExecAccountTransfer parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptExecAccountTransfer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptAccountTransferOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptAccountTransfer) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + boolean hasPrev(); + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 1; + * + * @return The prev. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 1; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 2; + * + * @return Whether the current field is set. + */ + boolean hasCurrent(); + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 2; + * + * @return The current. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 2; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); + } + + /** + *
+     *账户余额改变的一个交易回报(coins内)
+     * 
+ * + * Protobuf type {@code ReceiptAccountTransfer} + */ + public static final class ReceiptAccountTransfer extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptAccountTransfer) + ReceiptAccountTransferOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptAccountTransfer.newBuilder() to construct. + private ReceiptAccountTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptAccountTransfer() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptAccountTransfer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptAccountTransfer(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (prev_ != null) { + subBuilder = prev_.toBuilder(); + } + prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prev_); + prev_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (current_ != null) { + subBuilder = current_.toBuilder(); + } + current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(current_); + current_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.Builder.class); + } + + public static final int PREV_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + @java.lang.Override + public boolean hasPrev() { + return prev_ != null; + } + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 1; + * + * @return The prev. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : prev_; + } + + /** + *
+         * 转移前
+         * 
+ * + * .Account prev = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + return getPrev(); + } + + public static final int CURRENT_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 2; + * + * @return Whether the current field is set. + */ + @java.lang.Override + public boolean hasCurrent() { + return current_ != null; + } + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 2; + * + * @return The current. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : current_; + } + + /** + *
+         * 转移后
+         * 
+ * + * .Account current = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + return getCurrent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (prev_ != null) { + output.writeMessage(1, getPrev()); + } + if (current_ != null) { + output.writeMessage(2, getCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (prev_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrev()); + } + if (current_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCurrent()); + } + 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 cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer) obj; + + if (hasPrev() != other.hasPrev()) + return false; + if (hasPrev()) { + if (!getPrev().equals(other.getPrev())) + return false; + } + if (hasCurrent() != other.hasCurrent()) + return false; + if (hasCurrent()) { + if (!getCurrent().equals(other.getCurrent())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrev()) { + hash = (37 * hash) + PREV_FIELD_NUMBER; + hash = (53 * hash) + getPrev().hashCode(); + } + if (hasCurrent()) { + hash = (37 * hash) + CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getCurrent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *账户余额改变的一个交易回报(coins内)
+         * 
+ * + * Protobuf type {@code ReceiptAccountTransfer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptAccountTransfer) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (prevBuilder_ == null) { + prev_ = null; + } else { + prev_ = null; + prevBuilder_ = null; + } + if (currentBuilder_ == null) { + current_ = null; + } else { + current_ = null; + currentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer( + this); + if (prevBuilder_ == null) { + result.prev_ = prev_; + } else { + result.prev_ = prevBuilder_.build(); + } + if (currentBuilder_ == null) { + result.current_ = current_; + } else { + result.current_ = currentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer + .getDefaultInstance()) + return this; + if (other.hasPrev()) { + mergePrev(other.getPrev()); + } + if (other.hasCurrent()) { + mergeCurrent(other.getCurrent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + private com.google.protobuf.SingleFieldBuilderV3 prevBuilder_; + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + public boolean hasPrev() { + return prevBuilder_ != null || prev_ != null; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + * + * @return The prev. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + if (prevBuilder_ == null) { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } else { + return prevBuilder_.getMessage(); + } + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prev_ = value; + onChanged(); + } else { + prevBuilder_.setMessage(value); + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (prevBuilder_ == null) { + prev_ = builderForValue.build(); + onChanged(); + } else { + prevBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + */ + public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (prev_ != null) { + prev_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_) + .mergeFrom(value).buildPartial(); + } else { + prev_ = value; + } + onChanged(); + } else { + prevBuilder_.mergeFrom(value); + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + */ + public Builder clearPrev() { + if (prevBuilder_ == null) { + prev_ = null; + onChanged(); + } else { + prev_ = null; + prevBuilder_ = null; + } + + return this; + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { + + onChanged(); + return getPrevFieldBuilder().getBuilder(); + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + if (prevBuilder_ != null) { + return prevBuilder_.getMessageOrBuilder(); + } else { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } + } + + /** + *
+             * 转移前
+             * 
+ * + * .Account prev = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPrevFieldBuilder() { + if (prevBuilder_ == null) { + prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPrev(), getParentForChildren(), isClean()); + prev_ = null; + } + return prevBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + private com.google.protobuf.SingleFieldBuilderV3 currentBuilder_; + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + * + * @return Whether the current field is set. + */ + public boolean hasCurrent() { + return currentBuilder_ != null || current_ != null; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + * + * @return The current. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + if (currentBuilder_ == null) { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } else { + return currentBuilder_.getMessage(); + } + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + */ + public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + current_ = value; + onChanged(); + } else { + currentBuilder_.setMessage(value); + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + */ + public Builder setCurrent( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (currentBuilder_ == null) { + current_ = builderForValue.build(); + onChanged(); + } else { + currentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + */ + public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (current_ != null) { + current_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_) + .mergeFrom(value).buildPartial(); + } else { + current_ = value; + } + onChanged(); + } else { + currentBuilder_.mergeFrom(value); + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + */ + public Builder clearCurrent() { + if (currentBuilder_ == null) { + current_ = null; + onChanged(); + } else { + current_ = null; + currentBuilder_ = null; + } + + return this; + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { + + onChanged(); + return getCurrentFieldBuilder().getBuilder(); + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + if (currentBuilder_ != null) { + return currentBuilder_.getMessageOrBuilder(); + } else { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } + } + + /** + *
+             * 转移后
+             * 
+ * + * .Account current = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCurrentFieldBuilder() { + if (currentBuilder_ == null) { + currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getCurrent(), getParentForChildren(), isClean()); + current_ = null; + } + return currentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptAccountTransfer) + } + + // @@protoc_insertion_point(class_scope:ReceiptAccountTransfer) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer(); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptAccountTransfer parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptAccountTransfer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptAccountMintOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptAccountMint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 铸币前
+         * 
+ * + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + boolean hasPrev(); + + /** + *
+         * 铸币前
+         * 
+ * + * .Account prev = 1; + * + * @return The prev. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); + + /** + *
+         * 铸币前
+         * 
+ * + * .Account prev = 1; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + + /** + *
+         * 铸币后
+         * 
+ * + * .Account current = 2; + * + * @return Whether the current field is set. + */ + boolean hasCurrent(); + + /** + *
+         * 铸币后
+         * 
+ * + * .Account current = 2; + * + * @return The current. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); + + /** + *
+         * 铸币后
+         * 
+ * + * .Account current = 2; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); + } + + /** + *
+     * 铸币账户余额增加
+     * 
+ * + * Protobuf type {@code ReceiptAccountMint} + */ + public static final class ReceiptAccountMint extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptAccountMint) + ReceiptAccountMintOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptAccountMint.newBuilder() to construct. + private ReceiptAccountMint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptAccountMint() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptAccountMint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptAccountMint(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (prev_ != null) { + subBuilder = prev_.toBuilder(); + } + prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prev_); + prev_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (current_ != null) { + subBuilder = current_.toBuilder(); + } + current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(current_); + current_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.Builder.class); + } + + public static final int PREV_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + + /** + *
+         * 铸币前
+         * 
+ * + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + @java.lang.Override + public boolean hasPrev() { + return prev_ != null; + } + + /** + *
+         * 铸币前
+         * 
+ * + * .Account prev = 1; + * + * @return The prev. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : prev_; + } + + /** + *
+         * 铸币前
+         * 
+ * + * .Account prev = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + return getPrev(); + } + + public static final int CURRENT_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + + /** + *
+         * 铸币后
+         * 
+ * + * .Account current = 2; + * + * @return Whether the current field is set. + */ + @java.lang.Override + public boolean hasCurrent() { + return current_ != null; + } + + /** + *
+         * 铸币后
+         * 
+ * + * .Account current = 2; + * + * @return The current. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : current_; + } + + /** + *
+         * 铸币后
+         * 
+ * + * .Account current = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + return getCurrent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (prev_ != null) { + output.writeMessage(1, getPrev()); + } + if (current_ != null) { + output.writeMessage(2, getCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (prev_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrev()); + } + if (current_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCurrent()); + } + 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 cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint) obj; + + if (hasPrev() != other.hasPrev()) + return false; + if (hasPrev()) { + if (!getPrev().equals(other.getPrev())) + return false; + } + if (hasCurrent() != other.hasCurrent()) + return false; + if (hasCurrent()) { + if (!getCurrent().equals(other.getCurrent())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrev()) { + hash = (37 * hash) + PREV_FIELD_NUMBER; + hash = (53 * hash) + getPrev().hashCode(); + } + if (hasCurrent()) { + hash = (37 * hash) + CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getCurrent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptAccountMint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptAccountMint) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (prevBuilder_ == null) { + prev_ = null; + } else { + prev_ = null; + prevBuilder_ = null; + } + if (currentBuilder_ == null) { + current_ = null; + } else { + current_ = null; + currentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint( + this); + if (prevBuilder_ == null) { + result.prev_ = prev_; + } else { + result.prev_ = prevBuilder_.build(); + } + if (currentBuilder_ == null) { + result.current_ = current_; + } else { + result.current_ = currentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.getDefaultInstance()) + return this; + if (other.hasPrev()) { + mergePrev(other.getPrev()); + } + if (other.hasCurrent()) { + mergeCurrent(other.getCurrent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + private com.google.protobuf.SingleFieldBuilderV3 prevBuilder_; + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + public boolean hasPrev() { + return prevBuilder_ != null || prev_ != null; + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + * + * @return The prev. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + if (prevBuilder_ == null) { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } else { + return prevBuilder_.getMessage(); + } + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prev_ = value; + onChanged(); + } else { + prevBuilder_.setMessage(value); + } + + return this; + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (prevBuilder_ == null) { + prev_ = builderForValue.build(); + onChanged(); + } else { + prevBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + */ + public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (prev_ != null) { + prev_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_) + .mergeFrom(value).buildPartial(); + } else { + prev_ = value; + } + onChanged(); + } else { + prevBuilder_.mergeFrom(value); + } + + return this; + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + */ + public Builder clearPrev() { + if (prevBuilder_ == null) { + prev_ = null; + onChanged(); + } else { + prev_ = null; + prevBuilder_ = null; + } + + return this; + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { + + onChanged(); + return getPrevFieldBuilder().getBuilder(); + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + if (prevBuilder_ != null) { + return prevBuilder_.getMessageOrBuilder(); + } else { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } + } + + /** + *
+             * 铸币前
+             * 
+ * + * .Account prev = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPrevFieldBuilder() { + if (prevBuilder_ == null) { + prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPrev(), getParentForChildren(), isClean()); + prev_ = null; + } + return prevBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + private com.google.protobuf.SingleFieldBuilderV3 currentBuilder_; + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + * + * @return Whether the current field is set. + */ + public boolean hasCurrent() { + return currentBuilder_ != null || current_ != null; + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + * + * @return The current. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + if (currentBuilder_ == null) { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } else { + return currentBuilder_.getMessage(); + } + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + */ + public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + current_ = value; + onChanged(); + } else { + currentBuilder_.setMessage(value); + } + + return this; + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + */ + public Builder setCurrent( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (currentBuilder_ == null) { + current_ = builderForValue.build(); + onChanged(); + } else { + currentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + */ + public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (current_ != null) { + current_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_) + .mergeFrom(value).buildPartial(); + } else { + current_ = value; + } + onChanged(); + } else { + currentBuilder_.mergeFrom(value); + } + + return this; + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + */ + public Builder clearCurrent() { + if (currentBuilder_ == null) { + current_ = null; + onChanged(); + } else { + current_ = null; + currentBuilder_ = null; + } + + return this; + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { + + onChanged(); + return getCurrentFieldBuilder().getBuilder(); + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + if (currentBuilder_ != null) { + return currentBuilder_.getMessageOrBuilder(); + } else { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } + } + + /** + *
+             * 铸币后
+             * 
+ * + * .Account current = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCurrentFieldBuilder() { + if (currentBuilder_ == null) { + currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getCurrent(), getParentForChildren(), isClean()); + current_ = null; + } + return currentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptAccountMint) + } + + // @@protoc_insertion_point(class_scope:ReceiptAccountMint) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint(); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptAccountMint parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptAccountMint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptAccountBurnOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptAccountBurn) + com.google.protobuf.MessageOrBuilder { + + /** + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + boolean hasPrev(); + + /** + * .Account prev = 1; + * + * @return The prev. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); + + /** + * .Account prev = 1; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + + /** + * .Account current = 2; + * + * @return Whether the current field is set. + */ + boolean hasCurrent(); + + /** + * .Account current = 2; + * + * @return The current. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); + + /** + * .Account current = 2; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); + } + + /** + * Protobuf type {@code ReceiptAccountBurn} + */ + public static final class ReceiptAccountBurn extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptAccountBurn) + ReceiptAccountBurnOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptAccountBurn.newBuilder() to construct. + private ReceiptAccountBurn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptAccountBurn() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptAccountBurn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptAccountBurn(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (prev_ != null) { + subBuilder = prev_.toBuilder(); + } + prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prev_); + prev_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (current_ != null) { + subBuilder = current_.toBuilder(); + } + current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(current_); + current_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.Builder.class); + } + + public static final int PREV_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + + /** + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + @java.lang.Override + public boolean hasPrev() { + return prev_ != null; + } + + /** + * .Account prev = 1; + * + * @return The prev. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : prev_; + } + + /** + * .Account prev = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + return getPrev(); + } + + public static final int CURRENT_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + + /** + * .Account current = 2; + * + * @return Whether the current field is set. + */ + @java.lang.Override + public boolean hasCurrent() { + return current_ != null; + } + + /** + * .Account current = 2; + * + * @return The current. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : current_; + } + + /** + * .Account current = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + return getCurrent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (prev_ != null) { + output.writeMessage(1, getPrev()); + } + if (current_ != null) { + output.writeMessage(2, getCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (prev_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrev()); + } + if (current_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCurrent()); + } + 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 cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn) obj; + + if (hasPrev() != other.hasPrev()) + return false; + if (hasPrev()) { + if (!getPrev().equals(other.getPrev())) + return false; + } + if (hasCurrent() != other.hasCurrent()) + return false; + if (hasCurrent()) { + if (!getCurrent().equals(other.getCurrent())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrev()) { + hash = (37 * hash) + PREV_FIELD_NUMBER; + hash = (53 * hash) + getPrev().hashCode(); + } + if (hasCurrent()) { + hash = (37 * hash) + CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getCurrent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptAccountBurn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptAccountBurn) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (prevBuilder_ == null) { + prev_ = null; + } else { + prev_ = null; + prevBuilder_ = null; + } + if (currentBuilder_ == null) { + current_ = null; + } else { + current_ = null; + currentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn( + this); + if (prevBuilder_ == null) { + result.prev_ = prev_; + } else { + result.prev_ = prevBuilder_.build(); + } + if (currentBuilder_ == null) { + result.current_ = current_; + } else { + result.current_ = currentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.getDefaultInstance()) + return this; + if (other.hasPrev()) { + mergePrev(other.getPrev()); + } + if (other.hasCurrent()) { + mergeCurrent(other.getCurrent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; + private com.google.protobuf.SingleFieldBuilderV3 prevBuilder_; + + /** + * .Account prev = 1; + * + * @return Whether the prev field is set. + */ + public boolean hasPrev() { + return prevBuilder_ != null || prev_ != null; + } + + /** + * .Account prev = 1; + * + * @return The prev. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { + if (prevBuilder_ == null) { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } else { + return prevBuilder_.getMessage(); + } + } + + /** + * .Account prev = 1; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prev_ = value; + onChanged(); + } else { + prevBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Account prev = 1; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (prevBuilder_ == null) { + prev_ = builderForValue.build(); + onChanged(); + } else { + prevBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Account prev = 1; + */ + public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (prevBuilder_ == null) { + if (prev_ != null) { + prev_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_) + .mergeFrom(value).buildPartial(); + } else { + prev_ = value; + } + onChanged(); + } else { + prevBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Account prev = 1; + */ + public Builder clearPrev() { + if (prevBuilder_ == null) { + prev_ = null; + onChanged(); + } else { + prev_ = null; + prevBuilder_ = null; + } + + return this; + } + + /** + * .Account prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { + + onChanged(); + return getPrevFieldBuilder().getBuilder(); + } + + /** + * .Account prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { + if (prevBuilder_ != null) { + return prevBuilder_.getMessageOrBuilder(); + } else { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; + } + } + + /** + * .Account prev = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPrevFieldBuilder() { + if (prevBuilder_ == null) { + prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPrev(), getParentForChildren(), isClean()); + prev_ = null; + } + return prevBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; + private com.google.protobuf.SingleFieldBuilderV3 currentBuilder_; + + /** + * .Account current = 2; + * + * @return Whether the current field is set. + */ + public boolean hasCurrent() { + return currentBuilder_ != null || current_ != null; + } + + /** + * .Account current = 2; + * + * @return The current. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { + if (currentBuilder_ == null) { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } else { + return currentBuilder_.getMessage(); + } + } + + /** + * .Account current = 2; + */ + public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + current_ = value; + onChanged(); + } else { + currentBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Account current = 2; + */ + public Builder setCurrent( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (currentBuilder_ == null) { + current_ = builderForValue.build(); + onChanged(); + } else { + currentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Account current = 2; + */ + public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (currentBuilder_ == null) { + if (current_ != null) { + current_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_) + .mergeFrom(value).buildPartial(); + } else { + current_ = value; + } + onChanged(); + } else { + currentBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Account current = 2; + */ + public Builder clearCurrent() { + if (currentBuilder_ == null) { + current_ = null; + onChanged(); + } else { + current_ = null; + currentBuilder_ = null; + } + + return this; + } + + /** + * .Account current = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { + + onChanged(); + return getCurrentFieldBuilder().getBuilder(); + } + + /** + * .Account current = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { + if (currentBuilder_ != null) { + return currentBuilder_.getMessageOrBuilder(); + } else { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; + } + } + + /** + * .Account current = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCurrentFieldBuilder() { + if (currentBuilder_ == null) { + currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getCurrent(), getParentForChildren(), isClean()); + current_ = null; + } + return currentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptAccountBurn) + } + + // @@protoc_insertion_point(class_scope:ReceiptAccountBurn) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn(); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptAccountBurn parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptAccountBurn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqBalance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @return A list containing the addresses. + */ + java.util.List getAddressesList(); + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @return The count of addresses. + */ + int getAddressesCount(); + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @param index + * The index of the element to return. + * + * @return The addresses at the given index. + */ + java.lang.String getAddresses(int index); + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addresses at the given index. + */ + com.google.protobuf.ByteString getAddressesBytes(int index); + + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The execer. + */ + java.lang.String getExecer(); + + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The bytes for execer. + */ + com.google.protobuf.ByteString getExecerBytes(); + + /** + * string stateHash = 3; + * + * @return The stateHash. + */ + java.lang.String getStateHash(); + + /** + * string stateHash = 3; + * + * @return The bytes for stateHash. + */ + com.google.protobuf.ByteString getStateHashBytes(); + + /** + * string asset_exec = 4; + * + * @return The assetExec. + */ + java.lang.String getAssetExec(); + + /** + * string asset_exec = 4; + * + * @return The bytes for assetExec. + */ + com.google.protobuf.ByteString getAssetExecBytes(); + + /** + * string asset_symbol = 5; + * + * @return The assetSymbol. + */ + java.lang.String getAssetSymbol(); + + /** + * string asset_symbol = 5; + * + * @return The bytes for assetSymbol. + */ + com.google.protobuf.ByteString getAssetSymbolBytes(); + } + + /** + *
+     * 查询一个地址列表在某个执行器中余额
+     * 
+ * + * Protobuf type {@code ReqBalance} + */ + public static final class ReqBalance extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqBalance) + ReqBalanceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqBalance.newBuilder() to construct. + private ReqBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqBalance() { + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + execer_ = ""; + stateHash_ = ""; + assetExec_ = ""; + assetSymbol_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqBalance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqBalance(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + addresses_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + execer_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + stateHash_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + assetExec_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + assetSymbol_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + addresses_ = addresses_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.Builder.class); + } + + public static final int ADDRESSES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList addresses_; + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @return A list containing the addresses. + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_; + } + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @return The count of addresses. + */ + public int getAddressesCount() { + return addresses_.size(); + } + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @param index + * The index of the element to return. + * + * @return The addresses at the given index. + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + + /** + *
+         * 地址列表
+         * 
+ * + * repeated string addresses = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addresses at the given index. + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + + public static final int EXECER_FIELD_NUMBER = 2; + private volatile java.lang.Object execer_; + + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The execer. + */ + @java.lang.Override + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } + } + + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The bytes for execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATEHASH_FIELD_NUMBER = 3; + private volatile java.lang.Object stateHash_; + + /** + * string stateHash = 3; + * + * @return The stateHash. + */ + @java.lang.Override + public java.lang.String getStateHash() { + java.lang.Object ref = stateHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateHash_ = s; + return s; + } + } + + /** + * string stateHash = 3; + * + * @return The bytes for stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHashBytes() { + java.lang.Object ref = stateHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_EXEC_FIELD_NUMBER = 4; + private volatile java.lang.Object assetExec_; + + /** + * string asset_exec = 4; + * + * @return The assetExec. + */ + @java.lang.Override + public java.lang.String getAssetExec() { + java.lang.Object ref = assetExec_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetExec_ = s; + return s; + } + } + + /** + * string asset_exec = 4; + * + * @return The bytes for assetExec. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetExecBytes() { + java.lang.Object ref = assetExec_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetExec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_SYMBOL_FIELD_NUMBER = 5; + private volatile java.lang.Object assetSymbol_; + + /** + * string asset_symbol = 5; + * + * @return The assetSymbol. + */ + @java.lang.Override + public java.lang.String getAssetSymbol() { + java.lang.Object ref = assetSymbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetSymbol_ = s; + return s; + } + } + + /** + * string asset_symbol = 5; + * + * @return The bytes for assetSymbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetSymbolBytes() { + java.lang.Object ref = assetSymbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetSymbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < addresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addresses_.getRaw(i)); + } + if (!getExecerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, execer_); + } + if (!getStateHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateHash_); + } + if (!getAssetExecBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, assetExec_); + } + if (!getAssetSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, assetSymbol_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + if (!getExecerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, execer_); + } + if (!getStateHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stateHash_); + } + if (!getAssetExecBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, assetExec_); + } + if (!getAssetSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, assetSymbol_); + } + 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 cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) obj; + + if (!getAddressesList().equals(other.getAddressesList())) + return false; + if (!getExecer().equals(other.getExecer())) + return false; + if (!getStateHash().equals(other.getStateHash())) + return false; + if (!getAssetExec().equals(other.getAssetExec())) + return false; + if (!getAssetSymbol().equals(other.getAssetSymbol())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + hash = (37 * hash) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + hash = (37 * hash) + STATEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStateHash().hashCode(); + hash = (37 * hash) + ASSET_EXEC_FIELD_NUMBER; + hash = (53 * hash) + getAssetExec().hashCode(); + hash = (37 * hash) + ASSET_SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getAssetSymbol().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqBalance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqBalance) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + execer_ = ""; + + stateHash_ = ""; + + assetExec_ = ""; + + assetSymbol_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + addresses_ = addresses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addresses_ = addresses_; + result.execer_ = execer_; + result.stateHash_ = stateHash_; + result.assetExec_ = assetExec_; + result.assetSymbol_ = assetSymbol_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.getDefaultInstance()) + return this; + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + if (!other.getExecer().isEmpty()) { + execer_ = other.execer_; + onChanged(); + } + if (!other.getStateHash().isEmpty()) { + stateHash_ = other.stateHash_; + onChanged(); + } + if (!other.getAssetExec().isEmpty()) { + assetExec_ = other.assetExec_; + onChanged(); + } + if (!other.getAssetSymbol().isEmpty()) { + assetSymbol_ = other.assetSymbol_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); + bitField0_ |= 0x00000001; + } + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @return A list containing the addresses. + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_.getUnmodifiableView(); + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @return The count of addresses. + */ + public int getAddressesCount() { + return addresses_.size(); + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @param index + * The index of the element to return. + * + * @return The addresses at the given index. + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addresses at the given index. + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @param index + * The index to set the value at. + * @param value + * The addresses to set. + * + * @return This builder for chaining. + */ + public Builder setAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @param value + * The addresses to add. + * + * @return This builder for chaining. + */ + public Builder addAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @param values + * The addresses to add. + * + * @return This builder for chaining. + */ + public Builder addAllAddresses(java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + return this; + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddresses() { + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * 地址列表
+             * 
+ * + * repeated string addresses = 1; + * + * @param value + * The bytes of the addresses to add. + * + * @return This builder for chaining. + */ + public Builder addAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + + private java.lang.Object execer_ = ""; + + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @return The execer. + */ + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @return The bytes for execer. + */ + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @param value + * The execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } + + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @return This builder for chaining. + */ + public Builder clearExecer() { + + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } + + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @param value + * The bytes for execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execer_ = value; + onChanged(); + return this; + } + + private java.lang.Object stateHash_ = ""; + + /** + * string stateHash = 3; + * + * @return The stateHash. + */ + public java.lang.String getStateHash() { + java.lang.Object ref = stateHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string stateHash = 3; + * + * @return The bytes for stateHash. + */ + public com.google.protobuf.ByteString getStateHashBytes() { + java.lang.Object ref = stateHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stateHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string stateHash = 3; + * + * @param value + * The stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stateHash_ = value; + onChanged(); + return this; + } + + /** + * string stateHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearStateHash() { + + stateHash_ = getDefaultInstance().getStateHash(); + onChanged(); + return this; + } + + /** + * string stateHash = 3; + * + * @param value + * The bytes for stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stateHash_ = value; + onChanged(); + return this; + } + + private java.lang.Object assetExec_ = ""; + + /** + * string asset_exec = 4; + * + * @return The assetExec. + */ + public java.lang.String getAssetExec() { + java.lang.Object ref = assetExec_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetExec_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string asset_exec = 4; + * + * @return The bytes for assetExec. + */ + public com.google.protobuf.ByteString getAssetExecBytes() { + java.lang.Object ref = assetExec_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + assetExec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string asset_exec = 4; + * + * @param value + * The assetExec to set. + * + * @return This builder for chaining. + */ + public Builder setAssetExec(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + assetExec_ = value; + onChanged(); + return this; + } + + /** + * string asset_exec = 4; + * + * @return This builder for chaining. + */ + public Builder clearAssetExec() { + + assetExec_ = getDefaultInstance().getAssetExec(); + onChanged(); + return this; + } + + /** + * string asset_exec = 4; + * + * @param value + * The bytes for assetExec to set. + * + * @return This builder for chaining. + */ + public Builder setAssetExecBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + assetExec_ = value; + onChanged(); + return this; + } + + private java.lang.Object assetSymbol_ = ""; + + /** + * string asset_symbol = 5; + * + * @return The assetSymbol. + */ + public java.lang.String getAssetSymbol() { + java.lang.Object ref = assetSymbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetSymbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string asset_symbol = 5; + * + * @return The bytes for assetSymbol. + */ + public com.google.protobuf.ByteString getAssetSymbolBytes() { + java.lang.Object ref = assetSymbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + assetSymbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string asset_symbol = 5; + * + * @param value + * The assetSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setAssetSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + assetSymbol_ = value; + onChanged(); + return this; + } + + /** + * string asset_symbol = 5; + * + * @return This builder for chaining. + */ + public Builder clearAssetSymbol() { + + assetSymbol_ = getDefaultInstance().getAssetSymbol(); + onChanged(); + return this; + } + + /** + * string asset_symbol = 5; + * + * @param value + * The bytes for assetSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setAssetSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + assetSymbol_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqBalance) + } + + // @@protoc_insertion_point(class_scope:ReqBalance) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance(); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqBalance parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AccountsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Accounts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Account acc = 1; + */ + java.util.List getAccList(); + + /** + * repeated .Account acc = 1; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(int index); + + /** + * repeated .Account acc = 1; + */ + int getAccCount(); + + /** + * repeated .Account acc = 1; + */ + java.util.List getAccOrBuilderList(); + + /** + * repeated .Account acc = 1; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder(int index); + } + + /** + *
+     * Account 的列表
+     * 
+ * + * Protobuf type {@code Accounts} + */ + public static final class Accounts extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Accounts) + AccountsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Accounts.newBuilder() to construct. + private Accounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Accounts() { + acc_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Accounts(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Accounts(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + acc_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + acc_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + acc_ = java.util.Collections.unmodifiableList(acc_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.Builder.class); + } + + public static final int ACC_FIELD_NUMBER = 1; + private java.util.List acc_; + + /** + * repeated .Account acc = 1; + */ + @java.lang.Override + public java.util.List getAccList() { + return acc_; + } + + /** + * repeated .Account acc = 1; + */ + @java.lang.Override + public java.util.List getAccOrBuilderList() { + return acc_; + } + + /** + * repeated .Account acc = 1; + */ + @java.lang.Override + public int getAccCount() { + return acc_.size(); + } + + /** + * repeated .Account acc = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(int index) { + return acc_.get(index); + } + + /** + * repeated .Account acc = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder(int index) { + return acc_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < acc_.size(); i++) { + output.writeMessage(1, acc_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < acc_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, acc_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts) obj; + + if (!getAccList().equals(other.getAccList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccCount() > 0) { + hash = (37 * hash) + ACC_FIELD_NUMBER; + hash = (53 * hash) + getAccList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * Account 的列表
+         * 
+ * + * Protobuf type {@code Accounts} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Accounts) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAccFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (accBuilder_ == null) { + acc_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + accBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts( + this); + int from_bitField0_ = bitField0_; + if (accBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + acc_ = java.util.Collections.unmodifiableList(acc_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.acc_ = acc_; + } else { + result.acc_ = accBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.getDefaultInstance()) + return this; + if (accBuilder_ == null) { + if (!other.acc_.isEmpty()) { + if (acc_.isEmpty()) { + acc_ = other.acc_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccIsMutable(); + acc_.addAll(other.acc_); + } + onChanged(); + } + } else { + if (!other.acc_.isEmpty()) { + if (accBuilder_.isEmpty()) { + accBuilder_.dispose(); + accBuilder_ = null; + acc_ = other.acc_; + bitField0_ = (bitField0_ & ~0x00000001); + accBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccFieldBuilder() : null; + } else { + accBuilder_.addAllMessages(other.acc_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List acc_ = java.util.Collections + .emptyList(); + + private void ensureAccIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + acc_ = new java.util.ArrayList(acc_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 accBuilder_; + + /** + * repeated .Account acc = 1; + */ + public java.util.List getAccList() { + if (accBuilder_ == null) { + return java.util.Collections.unmodifiableList(acc_); + } else { + return accBuilder_.getMessageList(); + } + } + + /** + * repeated .Account acc = 1; + */ + public int getAccCount() { + if (accBuilder_ == null) { + return acc_.size(); + } else { + return accBuilder_.getCount(); + } + } + + /** + * repeated .Account acc = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(int index) { + if (accBuilder_ == null) { + return acc_.get(index); + } else { + return accBuilder_.getMessage(index); + } + } + + /** + * repeated .Account acc = 1; + */ + public Builder setAcc(int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (accBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccIsMutable(); + acc_.set(index, value); + onChanged(); + } else { + accBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder setAcc(int index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (accBuilder_ == null) { + ensureAccIsMutable(); + acc_.set(index, builderForValue.build()); + onChanged(); + } else { + accBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder addAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (accBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccIsMutable(); + acc_.add(value); + onChanged(); + } else { + accBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder addAcc(int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (accBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccIsMutable(); + acc_.add(index, value); + onChanged(); + } else { + accBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder addAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (accBuilder_ == null) { + ensureAccIsMutable(); + acc_.add(builderForValue.build()); + onChanged(); + } else { + accBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder addAcc(int index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (accBuilder_ == null) { + ensureAccIsMutable(); + acc_.add(index, builderForValue.build()); + onChanged(); + } else { + accBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder addAllAcc( + java.lang.Iterable values) { + if (accBuilder_ == null) { + ensureAccIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acc_); + onChanged(); + } else { + accBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder clearAcc() { + if (accBuilder_ == null) { + acc_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accBuilder_.clear(); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public Builder removeAcc(int index) { + if (accBuilder_ == null) { + ensureAccIsMutable(); + acc_.remove(index); + onChanged(); + } else { + accBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Account acc = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getAccBuilder(int index) { + return getAccFieldBuilder().getBuilder(index); + } + + /** + * repeated .Account acc = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder(int index) { + if (accBuilder_ == null) { + return acc_.get(index); + } else { + return accBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Account acc = 1; + */ + public java.util.List getAccOrBuilderList() { + if (accBuilder_ != null) { + return accBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(acc_); + } + } + + /** + * repeated .Account acc = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder addAccBuilder() { + return getAccFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance()); + } + + /** + * repeated .Account acc = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder addAccBuilder(int index) { + return getAccFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance()); + } + + /** + * repeated .Account acc = 1; + */ + public java.util.List getAccBuilderList() { + return getAccFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getAccFieldBuilder() { + if (accBuilder_ == null) { + accBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + acc_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + acc_ = null; + } + return accBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Accounts) + } + + // @@protoc_insertion_point(class_scope:Accounts) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts(); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Accounts parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Accounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecAccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:ExecAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * string execer = 1; + * + * @return The execer. + */ + java.lang.String getExecer(); + + /** + * string execer = 1; + * + * @return The bytes for execer. + */ + com.google.protobuf.ByteString getExecerBytes(); + + /** + * .Account account = 2; + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + + /** + * .Account account = 2; + * + * @return The account. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAccount(); + + /** + * .Account account = 2; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccountOrBuilder(); + } + + /** + * Protobuf type {@code ExecAccount} + */ + public static final class ExecAccount extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ExecAccount) + ExecAccountOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExecAccount.newBuilder() to construct. + private ExecAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecAccount() { + execer_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecAccount(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExecAccount(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + execer_ = s; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (account_ != null) { + subBuilder = account_.toBuilder(); + } + account_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(account_); + account_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder.class); + } + + public static final int EXECER_FIELD_NUMBER = 1; + private volatile java.lang.Object execer_; + + /** + * string execer = 1; + * + * @return The execer. + */ + @java.lang.Override + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } + } + + /** + * string execer = 1; + * + * @return The bytes for execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCOUNT_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account account_; + + /** + * .Account account = 2; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return account_ != null; + } + + /** + * .Account account = 2; + * + * @return The account. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAccount() { + return account_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : account_; + } + + /** + * .Account account = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccountOrBuilder() { + return getAccount(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getExecerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execer_); + } + if (account_ != null) { + output.writeMessage(2, getAccount()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getExecerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execer_); + } + if (account_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAccount()); + } + 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 cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount) obj; + + if (!getExecer().equals(other.getExecer())) + return false; + if (hasAccount() != other.hasAccount()) + return false; + if (hasAccount()) { + if (!getAccount().equals(other.getAccount())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + if (hasAccount()) { + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ExecAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ExecAccount) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + execer_ = ""; + + if (accountBuilder_ == null) { + account_ = null; + } else { + account_ = null; + accountBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount( + this); + result.execer_ = execer_; + if (accountBuilder_ == null) { + result.account_ = account_; + } else { + result.account_ = accountBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance()) + return this; + if (!other.getExecer().isEmpty()) { + execer_ = other.execer_; + onChanged(); + } + if (other.hasAccount()) { + mergeAccount(other.getAccount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object execer_ = ""; + + /** + * string execer = 1; + * + * @return The execer. + */ + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string execer = 1; + * + * @return The bytes for execer. + */ + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string execer = 1; + * + * @param value + * The execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } + + /** + * string execer = 1; + * + * @return This builder for chaining. + */ + public Builder clearExecer() { + + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } + + /** + * string execer = 1; + * + * @param value + * The bytes for execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execer_ = value; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account account_; + private com.google.protobuf.SingleFieldBuilderV3 accountBuilder_; + + /** + * .Account account = 2; + * + * @return Whether the account field is set. + */ + public boolean hasAccount() { + return accountBuilder_ != null || account_ != null; + } + + /** + * .Account account = 2; + * + * @return The account. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAccount() { + if (accountBuilder_ == null) { + return account_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : account_; + } else { + return accountBuilder_.getMessage(); + } + } + + /** + * .Account account = 2; + */ + public Builder setAccount(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + onChanged(); + } else { + accountBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Account account = 2; + */ + public Builder setAccount( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + account_ = builderForValue.build(); + onChanged(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Account account = 2; + */ + public Builder mergeAccount(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (accountBuilder_ == null) { + if (account_ != null) { + account_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(account_) + .mergeFrom(value).buildPartial(); + } else { + account_ = value; + } + onChanged(); + } else { + accountBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Account account = 2; + */ + public Builder clearAccount() { + if (accountBuilder_ == null) { + account_ = null; + onChanged(); + } else { + account_ = null; + accountBuilder_ = null; + } + + return this; + } + + /** + * .Account account = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getAccountBuilder() { + + onChanged(); + return getAccountFieldBuilder().getBuilder(); + } + + /** + * .Account account = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccountOrBuilder() { + if (accountBuilder_ != null) { + return accountBuilder_.getMessageOrBuilder(); + } else { + return account_ == null + ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : account_; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getExecAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execAddr_); - } - if (prev_ != null) { - output.writeMessage(2, getPrev()); - } - if (current_ != null) { - output.writeMessage(3, getCurrent()); - } - unknownFields.writeTo(output); - } + /** + * .Account account = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getAccountFieldBuilder() { + if (accountBuilder_ == null) { + accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getAccount(), getParentForChildren(), isClean()); + account_ = null; + } + return accountBuilder_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execAddr_); - } - if (prev_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPrev()); - } - if (current_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCurrent()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer) obj; - - if (!getExecAddr() - .equals(other.getExecAddr())) return false; - if (hasPrev() != other.hasPrev()) return false; - if (hasPrev()) { - if (!getPrev() - .equals(other.getPrev())) return false; - } - if (hasCurrent() != other.hasCurrent()) return false; - if (hasCurrent()) { - if (!getCurrent() - .equals(other.getCurrent())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECADDR_FIELD_NUMBER; - hash = (53 * hash) + getExecAddr().hashCode(); - if (hasPrev()) { - hash = (37 * hash) + PREV_FIELD_NUMBER; - hash = (53 * hash) + getPrev().hashCode(); - } - if (hasCurrent()) { - hash = (37 * hash) + CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getCurrent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(builder_scope:ExecAccount) + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:ExecAccount) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *账户余额改变的一个交易回报(合约内)
-     * 
- * - * Protobuf type {@code ReceiptExecAccountTransfer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptExecAccountTransfer) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransferOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - execAddr_ = ""; - - if (prevBuilder_ == null) { - prev_ = null; - } else { - prev_ = null; - prevBuilder_ = null; - } - if (currentBuilder_ == null) { - current_ = null; - } else { - current_ = null; - currentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptExecAccountTransfer_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer(this); - result.execAddr_ = execAddr_; - if (prevBuilder_ == null) { - result.prev_ = prev_; - } else { - result.prev_ = prevBuilder_.build(); - } - if (currentBuilder_ == null) { - result.current_ = current_; - } else { - result.current_ = currentBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer.getDefaultInstance()) return this; - if (!other.getExecAddr().isEmpty()) { - execAddr_ = other.execAddr_; - onChanged(); - } - if (other.hasPrev()) { - mergePrev(other.getPrev()); - } - if (other.hasCurrent()) { - mergeCurrent(other.getCurrent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object execAddr_ = ""; - /** - *
-       *合约地址
-       * 
- * - * string execAddr = 1; - * @return The execAddr. - */ - public java.lang.String getExecAddr() { - java.lang.Object ref = execAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *合约地址
-       * 
- * - * string execAddr = 1; - * @return The bytes for execAddr. - */ - public com.google.protobuf.ByteString - getExecAddrBytes() { - java.lang.Object ref = execAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *合约地址
-       * 
- * - * string execAddr = 1; - * @param value The execAddr to set. - * @return This builder for chaining. - */ - public Builder setExecAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execAddr_ = value; - onChanged(); - return this; - } - /** - *
-       *合约地址
-       * 
- * - * string execAddr = 1; - * @return This builder for chaining. - */ - public Builder clearExecAddr() { - - execAddr_ = getDefaultInstance().getExecAddr(); - onChanged(); - return this; - } - /** - *
-       *合约地址
-       * 
- * - * string execAddr = 1; - * @param value The bytes for execAddr to set. - * @return This builder for chaining. - */ - public Builder setExecAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execAddr_ = value; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> prevBuilder_; - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prevBuilder_ != null || prev_ != null; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - if (prevBuilder_ == null) { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } else { - return prevBuilder_.getMessage(); - } - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - */ - public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - prev_ = value; - onChanged(); - } else { - prevBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - */ - public Builder setPrev( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (prevBuilder_ == null) { - prev_ = builderForValue.build(); - onChanged(); - } else { - prevBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - */ - public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (prev_ != null) { - prev_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_).mergeFrom(value).buildPartial(); - } else { - prev_ = value; - } - onChanged(); - } else { - prevBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - */ - public Builder clearPrev() { - if (prevBuilder_ == null) { - prev_ = null; - onChanged(); - } else { - prev_ = null; - prevBuilder_ = null; - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { - - onChanged(); - return getPrevFieldBuilder().getBuilder(); - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - if (prevBuilder_ != null) { - return prevBuilder_.getMessageOrBuilder(); - } else { - return prev_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getPrevFieldBuilder() { - if (prevBuilder_ == null) { - prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getPrev(), - getParentForChildren(), - isClean()); - prev_ = null; - } - return prevBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> currentBuilder_; - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return currentBuilder_ != null || current_ != null; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - if (currentBuilder_ == null) { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } else { - return currentBuilder_.getMessage(); - } - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - */ - public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - current_ = value; - onChanged(); - } else { - currentBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - */ - public Builder setCurrent( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (currentBuilder_ == null) { - current_ = builderForValue.build(); - onChanged(); - } else { - currentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - */ - public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (current_ != null) { - current_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_).mergeFrom(value).buildPartial(); - } else { - current_ = value; - } - onChanged(); - } else { - currentBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - */ - public Builder clearCurrent() { - if (currentBuilder_ == null) { - current_ = null; - onChanged(); - } else { - current_ = null; - currentBuilder_ = null; - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { - - onChanged(); - return getCurrentFieldBuilder().getBuilder(); - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - if (currentBuilder_ != null) { - return currentBuilder_.getMessageOrBuilder(); - } else { - return current_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getCurrentFieldBuilder() { - if (currentBuilder_ == null) { - currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getCurrent(), - getParentForChildren(), - isClean()); - current_ = null; - } - return currentBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptExecAccountTransfer) - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecAccount parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecAccount(input, extensionRegistry); + } + }; - // @@protoc_insertion_point(class_scope:ReceiptExecAccountTransfer) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptExecAccountTransfer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptExecAccountTransfer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptExecAccountTransfer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public interface AllExecBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:AllExecBalance) + com.google.protobuf.MessageOrBuilder { - } + /** + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); - public interface ReceiptAccountTransferOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptAccountTransfer) - com.google.protobuf.MessageOrBuilder { + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); - /** - *
-     *转移前
-     * 
- * - * .Account prev = 1; - * @return Whether the prev field is set. - */ - boolean hasPrev(); - /** - *
-     *转移前
-     * 
- * - * .Account prev = 1; - * @return The prev. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); - /** - *
-     *转移前
-     * 
- * - * .Account prev = 1; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + /** + * repeated .ExecAccount ExecAccount = 2; + */ + java.util.List getExecAccountList(); - /** - *
-     *转移后
-     * 
- * - * .Account current = 2; - * @return Whether the current field is set. - */ - boolean hasCurrent(); - /** - *
-     *转移后
-     * 
- * - * .Account current = 2; - * @return The current. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); - /** - *
-     *转移后
-     * 
- * - * .Account current = 2; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); - } - /** - *
-   *账户余额改变的一个交易回报(coins内)
-   * 
- * - * Protobuf type {@code ReceiptAccountTransfer} - */ - public static final class ReceiptAccountTransfer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptAccountTransfer) - ReceiptAccountTransferOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptAccountTransfer.newBuilder() to construct. - private ReceiptAccountTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptAccountTransfer() { - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getExecAccount(int index); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptAccountTransfer(); - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + int getExecAccountCount(); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptAccountTransfer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (prev_ != null) { - subBuilder = prev_.toBuilder(); - } - prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prev_); - prev_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (current_ != null) { - subBuilder = current_.toBuilder(); - } - current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(current_); - current_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_descriptor; - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + java.util.List getExecAccountOrBuilderList(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.Builder.class); + /** + * repeated .ExecAccount ExecAccount = 2; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder getExecAccountOrBuilder(int index); } - public static final int PREV_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; /** - *
-     *转移前
-     * 
- * - * .Account prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prev_ != null; - } - /** - *
-     *转移前
-     * 
- * - * .Account prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - /** - *
-     *转移前
-     * 
- * - * .Account prev = 1; + * Protobuf type {@code AllExecBalance} */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - return getPrev(); - } + public static final class AllExecBalance extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AllExecBalance) + AllExecBalanceOrBuilder { + private static final long serialVersionUID = 0L; - public static final int CURRENT_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - /** - *
-     *转移后
-     * 
- * - * .Account current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return current_ != null; - } - /** - *
-     *转移后
-     * 
- * - * .Account current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - /** - *
-     *转移后
-     * 
- * - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - return getCurrent(); - } + // Use AllExecBalance.newBuilder() to construct. + private AllExecBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private AllExecBalance() { + addr_ = ""; + execAccount_ = java.util.Collections.emptyList(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AllExecBalance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (prev_ != null) { - output.writeMessage(1, getPrev()); - } - if (current_ != null) { - output.writeMessage(2, getCurrent()); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (prev_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrev()); - } - if (current_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCurrent()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private AllExecBalance(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + execAccount_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + execAccount_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + execAccount_ = java.util.Collections.unmodifiableList(execAccount_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer) obj; - - if (hasPrev() != other.hasPrev()) return false; - if (hasPrev()) { - if (!getPrev() - .equals(other.getPrev())) return false; - } - if (hasCurrent() != other.hasCurrent()) return false; - if (hasCurrent()) { - if (!getCurrent() - .equals(other.getCurrent())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPrev()) { - hash = (37 * hash) + PREV_FIELD_NUMBER; - hash = (53 * hash) + getPrev().hashCode(); - } - if (hasCurrent()) { - hash = (37 * hash) + CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getCurrent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.Builder.class); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *账户余额改变的一个交易回报(coins内)
-     * 
- * - * Protobuf type {@code ReceiptAccountTransfer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptAccountTransfer) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransferOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (prevBuilder_ == null) { - prev_ = null; - } else { - prev_ = null; - prevBuilder_ = null; - } - if (currentBuilder_ == null) { - current_ = null; - } else { - current_ = null; - currentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountTransfer_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer(this); - if (prevBuilder_ == null) { - result.prev_ = prev_; - } else { - result.prev_ = prevBuilder_.build(); - } - if (currentBuilder_ == null) { - result.current_ = current_; - } else { - result.current_ = currentBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer.getDefaultInstance()) return this; - if (other.hasPrev()) { - mergePrev(other.getPrev()); - } - if (other.hasCurrent()) { - mergeCurrent(other.getCurrent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> prevBuilder_; - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prevBuilder_ != null || prev_ != null; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - if (prevBuilder_ == null) { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } else { - return prevBuilder_.getMessage(); - } - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - */ - public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - prev_ = value; - onChanged(); - } else { - prevBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - */ - public Builder setPrev( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (prevBuilder_ == null) { - prev_ = builderForValue.build(); - onChanged(); - } else { - prevBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - */ - public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (prev_ != null) { - prev_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_).mergeFrom(value).buildPartial(); - } else { - prev_ = value; - } - onChanged(); - } else { - prevBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - */ - public Builder clearPrev() { - if (prevBuilder_ == null) { - prev_ = null; - onChanged(); - } else { - prev_ = null; - prevBuilder_ = null; - } - - return this; - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { - - onChanged(); - return getPrevFieldBuilder().getBuilder(); - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - if (prevBuilder_ != null) { - return prevBuilder_.getMessageOrBuilder(); - } else { - return prev_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - } - /** - *
-       *转移前
-       * 
- * - * .Account prev = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getPrevFieldBuilder() { - if (prevBuilder_ == null) { - prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getPrev(), - getParentForChildren(), - isClean()); - prev_ = null; - } - return prevBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> currentBuilder_; - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return currentBuilder_ != null || current_ != null; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - if (currentBuilder_ == null) { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } else { - return currentBuilder_.getMessage(); - } - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - */ - public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - current_ = value; - onChanged(); - } else { - currentBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - */ - public Builder setCurrent( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (currentBuilder_ == null) { - current_ = builderForValue.build(); - onChanged(); - } else { - currentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - */ - public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (current_ != null) { - current_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_).mergeFrom(value).buildPartial(); - } else { - current_ = value; - } - onChanged(); - } else { - currentBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - */ - public Builder clearCurrent() { - if (currentBuilder_ == null) { - current_ = null; - onChanged(); - } else { - current_ = null; - currentBuilder_ = null; - } - - return this; - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { - - onChanged(); - return getCurrentFieldBuilder().getBuilder(); - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - if (currentBuilder_ != null) { - return currentBuilder_.getMessageOrBuilder(); - } else { - return current_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - } - /** - *
-       *转移后
-       * 
- * - * .Account current = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getCurrentFieldBuilder() { - if (currentBuilder_ == null) { - currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getCurrent(), - getParentForChildren(), - isClean()); - current_ = null; - } - return currentBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptAccountTransfer) - } + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:ReceiptAccountTransfer) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer(); - } + public static final int EXECACCOUNT_FIELD_NUMBER = 2; + private java.util.List execAccount_; - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + @java.lang.Override + public java.util.List getExecAccountList() { + return execAccount_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptAccountTransfer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptAccountTransfer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + @java.lang.Override + public java.util.List getExecAccountOrBuilderList() { + return execAccount_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + @java.lang.Override + public int getExecAccountCount() { + return execAccount_.size(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountTransfer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getExecAccount(int index) { + return execAccount_.get(index); + } - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder getExecAccountOrBuilder( + int index) { + return execAccount_.get(index); + } - public interface ReceiptAccountMintOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptAccountMint) - com.google.protobuf.MessageOrBuilder { + private byte memoizedIsInitialized = -1; - /** - *
-     *铸币前
-     * 
- * - * .Account prev = 1; - * @return Whether the prev field is set. - */ - boolean hasPrev(); - /** - *
-     *铸币前
-     * 
- * - * .Account prev = 1; - * @return The prev. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); - /** - *
-     *铸币前
-     * 
- * - * .Account prev = 1; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - /** - *
-     *铸币后
-     * 
- * - * .Account current = 2; - * @return Whether the current field is set. - */ - boolean hasCurrent(); - /** - *
-     *铸币后
-     * 
- * - * .Account current = 2; - * @return The current. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); - /** - *
-     *铸币后
-     * 
- * - * .Account current = 2; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); - } - /** - *
-   *铸币账户余额增加
-   * 
- * - * Protobuf type {@code ReceiptAccountMint} - */ - public static final class ReceiptAccountMint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptAccountMint) - ReceiptAccountMintOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptAccountMint.newBuilder() to construct. - private ReceiptAccountMint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptAccountMint() { - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptAccountMint(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + for (int i = 0; i < execAccount_.size(); i++) { + output.writeMessage(2, execAccount_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptAccountMint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (prev_ != null) { - subBuilder = prev_.toBuilder(); - } - prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prev_); - prev_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (current_ != null) { - subBuilder = current_.toBuilder(); - } - current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(current_); - current_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_descriptor; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.Builder.class); - } + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + for (int i = 0; i < execAccount_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, execAccount_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int PREV_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; - /** - *
-     *铸币前
-     * 
- * - * .Account prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prev_ != null; - } - /** - *
-     *铸币前
-     * 
- * - * .Account prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - /** - *
-     *铸币前
-     * 
- * - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - return getPrev(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance) obj; - public static final int CURRENT_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - /** - *
-     *铸币后
-     * 
- * - * .Account current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return current_ != null; - } - /** - *
-     *铸币后
-     * 
- * - * .Account current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - /** - *
-     *铸币后
-     * 
- * - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - return getCurrent(); - } + if (!getAddr().equals(other.getAddr())) + return false; + if (!getExecAccountList().equals(other.getExecAccountList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + if (getExecAccountCount() > 0) { + hash = (37 * hash) + EXECACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getExecAccountList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (prev_ != null) { - output.writeMessage(1, getPrev()); - } - if (current_ != null) { - output.writeMessage(2, getCurrent()); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (prev_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrev()); - } - if (current_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCurrent()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint) obj; - - if (hasPrev() != other.hasPrev()) return false; - if (hasPrev()) { - if (!getPrev() - .equals(other.getPrev())) return false; - } - if (hasCurrent() != other.hasCurrent()) return false; - if (hasCurrent()) { - if (!getCurrent() - .equals(other.getCurrent())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPrev()) { - hash = (37 * hash) + PREV_FIELD_NUMBER; - hash = (53 * hash) + getPrev().hashCode(); - } - if (hasCurrent()) { - hash = (37 * hash) + CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getCurrent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *铸币账户余额增加
-     * 
- * - * Protobuf type {@code ReceiptAccountMint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptAccountMint) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (prevBuilder_ == null) { - prev_ = null; - } else { - prev_ = null; - prevBuilder_ = null; - } - if (currentBuilder_ == null) { - current_ = null; - } else { - current_ = null; - currentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountMint_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint(this); - if (prevBuilder_ == null) { - result.prev_ = prev_; - } else { - result.prev_ = prevBuilder_.build(); - } - if (currentBuilder_ == null) { - result.current_ = current_; - } else { - result.current_ = currentBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint.getDefaultInstance()) return this; - if (other.hasPrev()) { - mergePrev(other.getPrev()); - } - if (other.hasCurrent()) { - mergeCurrent(other.getCurrent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> prevBuilder_; - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prevBuilder_ != null || prev_ != null; - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - if (prevBuilder_ == null) { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } else { - return prevBuilder_.getMessage(); - } - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - */ - public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - prev_ = value; - onChanged(); - } else { - prevBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - */ - public Builder setPrev( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (prevBuilder_ == null) { - prev_ = builderForValue.build(); - onChanged(); - } else { - prevBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - */ - public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (prev_ != null) { - prev_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_).mergeFrom(value).buildPartial(); - } else { - prev_ = value; - } - onChanged(); - } else { - prevBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - */ - public Builder clearPrev() { - if (prevBuilder_ == null) { - prev_ = null; - onChanged(); - } else { - prev_ = null; - prevBuilder_ = null; - } - - return this; - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { - - onChanged(); - return getPrevFieldBuilder().getBuilder(); - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - if (prevBuilder_ != null) { - return prevBuilder_.getMessageOrBuilder(); - } else { - return prev_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - } - /** - *
-       *铸币前
-       * 
- * - * .Account prev = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getPrevFieldBuilder() { - if (prevBuilder_ == null) { - prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getPrev(), - getParentForChildren(), - isClean()); - prev_ = null; - } - return prevBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> currentBuilder_; - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return currentBuilder_ != null || current_ != null; - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - if (currentBuilder_ == null) { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } else { - return currentBuilder_.getMessage(); - } - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - */ - public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - current_ = value; - onChanged(); - } else { - currentBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - */ - public Builder setCurrent( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (currentBuilder_ == null) { - current_ = builderForValue.build(); - onChanged(); - } else { - currentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - */ - public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (current_ != null) { - current_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_).mergeFrom(value).buildPartial(); - } else { - current_ = value; - } - onChanged(); - } else { - currentBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - */ - public Builder clearCurrent() { - if (currentBuilder_ == null) { - current_ = null; - onChanged(); - } else { - current_ = null; - currentBuilder_ = null; - } - - return this; - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { - - onChanged(); - return getCurrentFieldBuilder().getBuilder(); - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - if (currentBuilder_ != null) { - return currentBuilder_.getMessageOrBuilder(); - } else { - return current_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - } - /** - *
-       *铸币后
-       * 
- * - * .Account current = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getCurrentFieldBuilder() { - if (currentBuilder_ == null) { - currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getCurrent(), - getParentForChildren(), - isClean()); - current_ = null; - } - return currentBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptAccountMint) - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:ReceiptAccountMint) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint(); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptAccountMint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptAccountMint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountMint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public interface ReceiptAccountBurnOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptAccountBurn) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * .Account prev = 1; - * @return Whether the prev field is set. - */ - boolean hasPrev(); - /** - * .Account prev = 1; - * @return The prev. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev(); - /** - * .Account prev = 1; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder(); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * .Account current = 2; - * @return Whether the current field is set. - */ - boolean hasCurrent(); - /** - * .Account current = 2; - * @return The current. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent(); - /** - * .Account current = 2; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder(); - } - /** - * Protobuf type {@code ReceiptAccountBurn} - */ - public static final class ReceiptAccountBurn extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptAccountBurn) - ReceiptAccountBurnOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptAccountBurn.newBuilder() to construct. - private ReceiptAccountBurn(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptAccountBurn() { - } + /** + * Protobuf type {@code AllExecBalance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AllExecBalance) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptAccountBurn(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptAccountBurn( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (prev_ != null) { - subBuilder = prev_.toBuilder(); - } - prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prev_); - prev_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (current_ != null) { - subBuilder = current_.toBuilder(); - } - current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(current_); - current_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_descriptor; - } + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.Builder.class); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int PREV_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; - /** - * .Account prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prev_ != null; - } - /** - * .Account prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - /** - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - return getPrev(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExecAccountFieldBuilder(); + } + } - public static final int CURRENT_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - /** - * .Account current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return current_ != null; - } - /** - * .Account current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - /** - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - return getCurrent(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; + + if (execAccountBuilder_ == null) { + execAccount_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + execAccountBuilder_.clear(); + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.getDefaultInstance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (prev_ != null) { - output.writeMessage(1, getPrev()); - } - if (current_ != null) { - output.writeMessage(2, getCurrent()); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (prev_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrev()); - } - if (current_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCurrent()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance( + this); + int from_bitField0_ = bitField0_; + result.addr_ = addr_; + if (execAccountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + execAccount_ = java.util.Collections.unmodifiableList(execAccount_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.execAccount_ = execAccount_; + } else { + result.execAccount_ = execAccountBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn) obj; - - if (hasPrev() != other.hasPrev()) return false; - if (hasPrev()) { - if (!getPrev() - .equals(other.getPrev())) return false; - } - if (hasCurrent() != other.hasCurrent()) return false; - if (hasCurrent()) { - if (!getCurrent() - .equals(other.getCurrent())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPrev()) { - hash = (37 * hash) + PREV_FIELD_NUMBER; - hash = (53 * hash) + getPrev().hashCode(); - } - if (hasCurrent()) { - hash = (37 * hash) + CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getCurrent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReceiptAccountBurn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptAccountBurn) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (prevBuilder_ == null) { - prev_ = null; - } else { - prev_ = null; - prevBuilder_ = null; - } - if (currentBuilder_ == null) { - current_ = null; - } else { - current_ = null; - currentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReceiptAccountBurn_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn(this); - if (prevBuilder_ == null) { - result.prev_ = prev_; - } else { - result.prev_ = prevBuilder_.build(); - } - if (currentBuilder_ == null) { - result.current_ = current_; - } else { - result.current_ = currentBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn.getDefaultInstance()) return this; - if (other.hasPrev()) { - mergePrev(other.getPrev()); - } - if (other.hasCurrent()) { - mergeCurrent(other.getCurrent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account prev_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> prevBuilder_; - /** - * .Account prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prevBuilder_ != null || prev_ != null; - } - /** - * .Account prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getPrev() { - if (prevBuilder_ == null) { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } else { - return prevBuilder_.getMessage(); - } - } - /** - * .Account prev = 1; - */ - public Builder setPrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - prev_ = value; - onChanged(); - } else { - prevBuilder_.setMessage(value); - } - - return this; - } - /** - * .Account prev = 1; - */ - public Builder setPrev( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (prevBuilder_ == null) { - prev_ = builderForValue.build(); - onChanged(); - } else { - prevBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Account prev = 1; - */ - public Builder mergePrev(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (prevBuilder_ == null) { - if (prev_ != null) { - prev_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(prev_).mergeFrom(value).buildPartial(); - } else { - prev_ = value; - } - onChanged(); - } else { - prevBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Account prev = 1; - */ - public Builder clearPrev() { - if (prevBuilder_ == null) { - prev_ = null; - onChanged(); - } else { - prev_ = null; - prevBuilder_ = null; - } - - return this; - } - /** - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getPrevBuilder() { - - onChanged(); - return getPrevFieldBuilder().getBuilder(); - } - /** - * .Account prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getPrevOrBuilder() { - if (prevBuilder_ != null) { - return prevBuilder_.getMessageOrBuilder(); - } else { - return prev_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : prev_; - } - } - /** - * .Account prev = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getPrevFieldBuilder() { - if (prevBuilder_ == null) { - prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getPrev(), - getParentForChildren(), - isClean()); - prev_ = null; - } - return prevBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account current_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> currentBuilder_; - /** - * .Account current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return currentBuilder_ != null || current_ != null; - } - /** - * .Account current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getCurrent() { - if (currentBuilder_ == null) { - return current_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } else { - return currentBuilder_.getMessage(); - } - } - /** - * .Account current = 2; - */ - public Builder setCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - current_ = value; - onChanged(); - } else { - currentBuilder_.setMessage(value); - } - - return this; - } - /** - * .Account current = 2; - */ - public Builder setCurrent( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (currentBuilder_ == null) { - current_ = builderForValue.build(); - onChanged(); - } else { - currentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Account current = 2; - */ - public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (currentBuilder_ == null) { - if (current_ != null) { - current_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(current_).mergeFrom(value).buildPartial(); - } else { - current_ = value; - } - onChanged(); - } else { - currentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Account current = 2; - */ - public Builder clearCurrent() { - if (currentBuilder_ == null) { - current_ = null; - onChanged(); - } else { - current_ = null; - currentBuilder_ = null; - } - - return this; - } - /** - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getCurrentBuilder() { - - onChanged(); - return getCurrentFieldBuilder().getBuilder(); - } - /** - * .Account current = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getCurrentOrBuilder() { - if (currentBuilder_ != null) { - return currentBuilder_.getMessageOrBuilder(); - } else { - return current_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : current_; - } - } - /** - * .Account current = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getCurrentFieldBuilder() { - if (currentBuilder_ == null) { - currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getCurrent(), - getParentForChildren(), - isClean()); - current_ = null; - } - return currentBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptAccountBurn) - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(class_scope:ReceiptAccountBurn) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance) other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptAccountBurn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptAccountBurn(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (execAccountBuilder_ == null) { + if (!other.execAccount_.isEmpty()) { + if (execAccount_.isEmpty()) { + execAccount_ = other.execAccount_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecAccountIsMutable(); + execAccount_.addAll(other.execAccount_); + } + onChanged(); + } + } else { + if (!other.execAccount_.isEmpty()) { + if (execAccountBuilder_.isEmpty()) { + execAccountBuilder_.dispose(); + execAccountBuilder_ = null; + execAccount_ = other.execAccount_; + bitField0_ = (bitField0_ & ~0x00000001); + execAccountBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExecAccountFieldBuilder() : null; + } else { + execAccountBuilder_.addAllMessages(other.execAccount_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReceiptAccountBurn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - } + private int bitField0_; + + private java.lang.Object addr_ = ""; + + /** + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public interface ReqBalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqBalance) - com.google.protobuf.MessageOrBuilder { + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @return A list containing the addresses. - */ - java.util.List - getAddressesList(); - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @return The count of addresses. - */ - int getAddressesCount(); - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @param index The index of the element to return. - * @return The addresses at the given index. - */ - java.lang.String getAddresses(int index); - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @param index The index of the value to return. - * @return The bytes of the addresses at the given index. - */ - com.google.protobuf.ByteString - getAddressesBytes(int index); + /** + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The execer. - */ - java.lang.String getExecer(); - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The bytes for execer. - */ - com.google.protobuf.ByteString - getExecerBytes(); + /** + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { - /** - * string stateHash = 3; - * @return The stateHash. - */ - java.lang.String getStateHash(); - /** - * string stateHash = 3; - * @return The bytes for stateHash. - */ - com.google.protobuf.ByteString - getStateHashBytes(); + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } - /** - * string asset_exec = 4; - * @return The assetExec. - */ - java.lang.String getAssetExec(); - /** - * string asset_exec = 4; - * @return The bytes for assetExec. - */ - com.google.protobuf.ByteString - getAssetExecBytes(); + /** + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } - /** - * string asset_symbol = 5; - * @return The assetSymbol. - */ - java.lang.String getAssetSymbol(); - /** - * string asset_symbol = 5; - * @return The bytes for assetSymbol. - */ - com.google.protobuf.ByteString - getAssetSymbolBytes(); - } - /** - *
-   *查询一个地址列表在某个执行器中余额
-   * 
- * - * Protobuf type {@code ReqBalance} - */ - public static final class ReqBalance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqBalance) - ReqBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqBalance.newBuilder() to construct. - private ReqBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqBalance() { - addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - execer_ = ""; - stateHash_ = ""; - assetExec_ = ""; - assetSymbol_ = ""; - } + private java.util.List execAccount_ = java.util.Collections + .emptyList(); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqBalance(); - } + private void ensureExecAccountIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + execAccount_ = new java.util.ArrayList( + execAccount_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - addresses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - addresses_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - execer_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - stateHash_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - assetExec_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - assetSymbol_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - addresses_ = addresses_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_descriptor; - } + private com.google.protobuf.RepeatedFieldBuilderV3 execAccountBuilder_; + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public java.util.List getExecAccountList() { + if (execAccountBuilder_ == null) { + return java.util.Collections.unmodifiableList(execAccount_); + } else { + return execAccountBuilder_.getMessageList(); + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.Builder.class); - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public int getExecAccountCount() { + if (execAccountBuilder_ == null) { + return execAccount_.size(); + } else { + return execAccountBuilder_.getCount(); + } + } - public static final int ADDRESSES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList addresses_; - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @return A list containing the addresses. - */ - public com.google.protobuf.ProtocolStringList - getAddressesList() { - return addresses_; - } - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @return The count of addresses. - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @param index The index of the element to return. - * @return The addresses at the given index. - */ - public java.lang.String getAddresses(int index) { - return addresses_.get(index); - } - /** - *
-     *地址列表
-     * 
- * - * repeated string addresses = 1; - * @param index The index of the value to return. - * @return The bytes of the addresses at the given index. - */ - public com.google.protobuf.ByteString - getAddressesBytes(int index) { - return addresses_.getByteString(index); - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getExecAccount(int index) { + if (execAccountBuilder_ == null) { + return execAccount_.get(index); + } else { + return execAccountBuilder_.getMessage(index); + } + } - public static final int EXECER_FIELD_NUMBER = 2; - private volatile java.lang.Object execer_; - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } - } - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder setExecAccount(int index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount value) { + if (execAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecAccountIsMutable(); + execAccount_.set(index, value); + onChanged(); + } else { + execAccountBuilder_.setMessage(index, value); + } + return this; + } - public static final int STATEHASH_FIELD_NUMBER = 3; - private volatile java.lang.Object stateHash_; - /** - * string stateHash = 3; - * @return The stateHash. - */ - public java.lang.String getStateHash() { - java.lang.Object ref = stateHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateHash_ = s; - return s; - } - } - /** - * string stateHash = 3; - * @return The bytes for stateHash. - */ - public com.google.protobuf.ByteString - getStateHashBytes() { - java.lang.Object ref = stateHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stateHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder setExecAccount(int index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder builderForValue) { + if (execAccountBuilder_ == null) { + ensureExecAccountIsMutable(); + execAccount_.set(index, builderForValue.build()); + onChanged(); + } else { + execAccountBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder addExecAccount(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount value) { + if (execAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecAccountIsMutable(); + execAccount_.add(value); + onChanged(); + } else { + execAccountBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder addExecAccount(int index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount value) { + if (execAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecAccountIsMutable(); + execAccount_.add(index, value); + onChanged(); + } else { + execAccountBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder addExecAccount( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder builderForValue) { + if (execAccountBuilder_ == null) { + ensureExecAccountIsMutable(); + execAccount_.add(builderForValue.build()); + onChanged(); + } else { + execAccountBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder addExecAccount(int index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder builderForValue) { + if (execAccountBuilder_ == null) { + ensureExecAccountIsMutable(); + execAccount_.add(index, builderForValue.build()); + onChanged(); + } else { + execAccountBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder addAllExecAccount( + java.lang.Iterable values) { + if (execAccountBuilder_ == null) { + ensureExecAccountIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, execAccount_); + onChanged(); + } else { + execAccountBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder clearExecAccount() { + if (execAccountBuilder_ == null) { + execAccount_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + execAccountBuilder_.clear(); + } + return this; + } + + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public Builder removeExecAccount(int index) { + if (execAccountBuilder_ == null) { + ensureExecAccountIsMutable(); + execAccount_.remove(index); + onChanged(); + } else { + execAccountBuilder_.remove(index); + } + return this; + } - public static final int ASSET_EXEC_FIELD_NUMBER = 4; - private volatile java.lang.Object assetExec_; - /** - * string asset_exec = 4; - * @return The assetExec. - */ - public java.lang.String getAssetExec() { - java.lang.Object ref = assetExec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetExec_ = s; - return s; - } - } - /** - * string asset_exec = 4; - * @return The bytes for assetExec. - */ - public com.google.protobuf.ByteString - getAssetExecBytes() { - java.lang.Object ref = assetExec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetExec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder getExecAccountBuilder( + int index) { + return getExecAccountFieldBuilder().getBuilder(index); + } - public static final int ASSET_SYMBOL_FIELD_NUMBER = 5; - private volatile java.lang.Object assetSymbol_; - /** - * string asset_symbol = 5; - * @return The assetSymbol. - */ - public java.lang.String getAssetSymbol() { - java.lang.Object ref = assetSymbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetSymbol_ = s; - return s; - } - } - /** - * string asset_symbol = 5; - * @return The bytes for assetSymbol. - */ - public com.google.protobuf.ByteString - getAssetSymbolBytes() { - java.lang.Object ref = assetSymbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder getExecAccountOrBuilder( + int index) { + if (execAccountBuilder_ == null) { + return execAccount_.get(index); + } else { + return execAccountBuilder_.getMessageOrBuilder(index); + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public java.util.List getExecAccountOrBuilderList() { + if (execAccountBuilder_ != null) { + return execAccountBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(execAccount_); + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder addExecAccountBuilder() { + return getExecAccountFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance()); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addresses_.getRaw(i)); - } - if (!getExecerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, execer_); - } - if (!getStateHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateHash_); - } - if (!getAssetExecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, assetExec_); - } - if (!getAssetSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, assetSymbol_); - } - unknownFields.writeTo(output); - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder addExecAccountBuilder( + int index) { + return getExecAccountFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance()); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getAddressesList().size(); - } - if (!getExecerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, execer_); - } - if (!getStateHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stateHash_); - } - if (!getAssetExecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, assetExec_); - } - if (!getAssetSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, assetSymbol_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated .ExecAccount ExecAccount = 2; + */ + public java.util.List getExecAccountBuilderList() { + return getExecAccountFieldBuilder().getBuilderList(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) obj; - - if (!getAddressesList() - .equals(other.getAddressesList())) return false; - if (!getExecer() - .equals(other.getExecer())) return false; - if (!getStateHash() - .equals(other.getStateHash())) return false; - if (!getAssetExec() - .equals(other.getAssetExec())) return false; - if (!getAssetSymbol() - .equals(other.getAssetSymbol())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private com.google.protobuf.RepeatedFieldBuilderV3 getExecAccountFieldBuilder() { + if (execAccountBuilder_ == null) { + execAccountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + execAccount_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + execAccount_ = null; + } + return execAccountBuilder_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddressesCount() > 0) { - hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getAddressesList().hashCode(); - } - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - hash = (37 * hash) + STATEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStateHash().hashCode(); - hash = (37 * hash) + ASSET_EXEC_FIELD_NUMBER; - hash = (53 * hash) + getAssetExec().hashCode(); - hash = (37 * hash) + ASSET_SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getAssetSymbol().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(builder_scope:AllExecBalance) + } + + // @@protoc_insertion_point(class_scope:AllExecBalance) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllExecBalance parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllExecBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqAllExecBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqAllExecBalance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 地址列表
+         * 
+ * + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + *
+         * 地址列表
+         * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The execer. + */ + java.lang.String getExecer(); + + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The bytes for execer. + */ + com.google.protobuf.ByteString getExecerBytes(); + + /** + * string stateHash = 3; + * + * @return The stateHash. + */ + java.lang.String getStateHash(); + + /** + * string stateHash = 3; + * + * @return The bytes for stateHash. + */ + com.google.protobuf.ByteString getStateHashBytes(); + + /** + * string asset_exec = 4; + * + * @return The assetExec. + */ + java.lang.String getAssetExec(); + + /** + * string asset_exec = 4; + * + * @return The bytes for assetExec. + */ + com.google.protobuf.ByteString getAssetExecBytes(); + + /** + * string asset_symbol = 5; + * + * @return The assetSymbol. + */ + java.lang.String getAssetSymbol(); + + /** + * string asset_symbol = 5; + * + * @return The bytes for assetSymbol. + */ + com.google.protobuf.ByteString getAssetSymbolBytes(); } + /** - *
-     *查询一个地址列表在某个执行器中余额
-     * 
- * - * Protobuf type {@code ReqBalance} + * Protobuf type {@code ReqAllExecBalance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqBalance) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - execer_ = ""; - - stateHash_ = ""; - - assetExec_ = ""; - - assetSymbol_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqBalance_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - addresses_ = addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addresses_ = addresses_; - result.execer_ = execer_; - result.stateHash_ = stateHash_; - result.assetExec_ = assetExec_; - result.assetSymbol_ = assetSymbol_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.getDefaultInstance()) return this; - if (!other.addresses_.isEmpty()) { - if (addresses_.isEmpty()) { - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddressesIsMutable(); - addresses_.addAll(other.addresses_); - } - onChanged(); - } - if (!other.getExecer().isEmpty()) { - execer_ = other.execer_; - onChanged(); - } - if (!other.getStateHash().isEmpty()) { - stateHash_ = other.stateHash_; - onChanged(); - } - if (!other.getAssetExec().isEmpty()) { - assetExec_ = other.assetExec_; - onChanged(); - } - if (!other.getAssetSymbol().isEmpty()) { - assetSymbol_ = other.assetSymbol_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAddressesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @return A list containing the addresses. - */ - public com.google.protobuf.ProtocolStringList - getAddressesList() { - return addresses_.getUnmodifiableView(); - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @return The count of addresses. - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @param index The index of the element to return. - * @return The addresses at the given index. - */ - public java.lang.String getAddresses(int index) { - return addresses_.get(index); - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @param index The index of the value to return. - * @return The bytes of the addresses at the given index. - */ - public com.google.protobuf.ByteString - getAddressesBytes(int index) { - return addresses_.getByteString(index); - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @param index The index to set the value at. - * @param value The addresses to set. - * @return This builder for chaining. - */ - public Builder setAddresses( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.set(index, value); - onChanged(); - return this; - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @param value The addresses to add. - * @return This builder for chaining. - */ - public Builder addAddresses( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @param values The addresses to add. - * @return This builder for chaining. - */ - public Builder addAllAddresses( - java.lang.Iterable values) { - ensureAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addresses_); - onChanged(); - return this; - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @return This builder for chaining. - */ - public Builder clearAddresses() { - addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       *地址列表
-       * 
- * - * repeated string addresses = 1; - * @param value The bytes of the addresses to add. - * @return This builder for chaining. - */ - public Builder addAddressesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - - private java.lang.Object execer_ = ""; - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @param value The execer to set. - * @return This builder for chaining. - */ - public Builder setExecer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @return This builder for chaining. - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @param value The bytes for execer to set. - * @return This builder for chaining. - */ - public Builder setExecerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execer_ = value; - onChanged(); - return this; - } - - private java.lang.Object stateHash_ = ""; - /** - * string stateHash = 3; - * @return The stateHash. - */ - public java.lang.String getStateHash() { - java.lang.Object ref = stateHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string stateHash = 3; - * @return The bytes for stateHash. - */ - public com.google.protobuf.ByteString - getStateHashBytes() { - java.lang.Object ref = stateHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stateHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string stateHash = 3; - * @param value The stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stateHash_ = value; - onChanged(); - return this; - } - /** - * string stateHash = 3; - * @return This builder for chaining. - */ - public Builder clearStateHash() { - - stateHash_ = getDefaultInstance().getStateHash(); - onChanged(); - return this; - } - /** - * string stateHash = 3; - * @param value The bytes for stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stateHash_ = value; - onChanged(); - return this; - } - - private java.lang.Object assetExec_ = ""; - /** - * string asset_exec = 4; - * @return The assetExec. - */ - public java.lang.String getAssetExec() { - java.lang.Object ref = assetExec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetExec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string asset_exec = 4; - * @return The bytes for assetExec. - */ - public com.google.protobuf.ByteString - getAssetExecBytes() { - java.lang.Object ref = assetExec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetExec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string asset_exec = 4; - * @param value The assetExec to set. - * @return This builder for chaining. - */ - public Builder setAssetExec( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - assetExec_ = value; - onChanged(); - return this; - } - /** - * string asset_exec = 4; - * @return This builder for chaining. - */ - public Builder clearAssetExec() { - - assetExec_ = getDefaultInstance().getAssetExec(); - onChanged(); - return this; - } - /** - * string asset_exec = 4; - * @param value The bytes for assetExec to set. - * @return This builder for chaining. - */ - public Builder setAssetExecBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - assetExec_ = value; - onChanged(); - return this; - } - - private java.lang.Object assetSymbol_ = ""; - /** - * string asset_symbol = 5; - * @return The assetSymbol. - */ - public java.lang.String getAssetSymbol() { - java.lang.Object ref = assetSymbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetSymbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string asset_symbol = 5; - * @return The bytes for assetSymbol. - */ - public com.google.protobuf.ByteString - getAssetSymbolBytes() { - java.lang.Object ref = assetSymbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string asset_symbol = 5; - * @param value The assetSymbol to set. - * @return This builder for chaining. - */ - public Builder setAssetSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - assetSymbol_ = value; - onChanged(); - return this; - } - /** - * string asset_symbol = 5; - * @return This builder for chaining. - */ - public Builder clearAssetSymbol() { - - assetSymbol_ = getDefaultInstance().getAssetSymbol(); - onChanged(); - return this; - } - /** - * string asset_symbol = 5; - * @param value The bytes for assetSymbol to set. - * @return This builder for chaining. - */ - public Builder setAssetSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - assetSymbol_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqBalance) - } - - // @@protoc_insertion_point(class_scope:ReqBalance) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance(); - } + public static final class ReqAllExecBalance extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqAllExecBalance) + ReqAllExecBalanceOrBuilder { + private static final long serialVersionUID = 0L; - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // Use ReqAllExecBalance.newBuilder() to construct. + private ReqAllExecBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private ReqAllExecBalance() { + addr_ = ""; + execer_ = ""; + stateHash_ = ""; + assetExec_ = ""; + assetSymbol_ = ""; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqAllExecBalance(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - } + private ReqAllExecBalance(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + execer_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + stateHash_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + assetExec_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + assetSymbol_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public interface AccountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Accounts) - com.google.protobuf.MessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_descriptor; + } - /** - * repeated .Account acc = 1; - */ - java.util.List - getAccList(); - /** - * repeated .Account acc = 1; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(int index); - /** - * repeated .Account acc = 1; - */ - int getAccCount(); - /** - * repeated .Account acc = 1; - */ - java.util.List - getAccOrBuilderList(); - /** - * repeated .Account acc = 1; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder( - int index); - } - /** - *
-   * Account 的列表
-   * 
- * - * Protobuf type {@code Accounts} - */ - public static final class Accounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Accounts) - AccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Accounts.newBuilder() to construct. - private Accounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Accounts() { - acc_ = java.util.Collections.emptyList(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.Builder.class); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Accounts(); - } + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Accounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - acc_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - acc_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - acc_ = java.util.Collections.unmodifiableList(acc_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_descriptor; - } + /** + *
+         * 地址列表
+         * 
+ * + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.Builder.class); - } + /** + *
+         * 地址列表
+         * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int ACC_FIELD_NUMBER = 1; - private java.util.List acc_; - /** - * repeated .Account acc = 1; - */ - public java.util.List getAccList() { - return acc_; - } - /** - * repeated .Account acc = 1; - */ - public java.util.List - getAccOrBuilderList() { - return acc_; - } - /** - * repeated .Account acc = 1; - */ - public int getAccCount() { - return acc_.size(); - } - /** - * repeated .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(int index) { - return acc_.get(index); - } - /** - * repeated .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder( - int index) { - return acc_.get(index); - } + public static final int EXECER_FIELD_NUMBER = 2; + private volatile java.lang.Object execer_; + + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The execer. + */ + @java.lang.Override + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + *
+         * 执行器名称
+         * 
+ * + * string execer = 2; + * + * @return The bytes for execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + public static final int STATEHASH_FIELD_NUMBER = 3; + private volatile java.lang.Object stateHash_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < acc_.size(); i++) { - output.writeMessage(1, acc_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * string stateHash = 3; + * + * @return The stateHash. + */ + @java.lang.Override + public java.lang.String getStateHash() { + java.lang.Object ref = stateHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateHash_ = s; + return s; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < acc_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, acc_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string stateHash = 3; + * + * @return The bytes for stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHashBytes() { + java.lang.Object ref = stateHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts) obj; - - if (!getAccList() - .equals(other.getAccList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static final int ASSET_EXEC_FIELD_NUMBER = 4; + private volatile java.lang.Object assetExec_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccCount() > 0) { - hash = (37 * hash) + ACC_FIELD_NUMBER; - hash = (53 * hash) + getAccList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string asset_exec = 4; + * + * @return The assetExec. + */ + @java.lang.Override + public java.lang.String getAssetExec() { + java.lang.Object ref = assetExec_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetExec_ = s; + return s; + } + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string asset_exec = 4; + * + * @return The bytes for assetExec. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetExecBytes() { + java.lang.Object ref = assetExec_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetExec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int ASSET_SYMBOL_FIELD_NUMBER = 5; + private volatile java.lang.Object assetSymbol_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Account 的列表
-     * 
- * - * Protobuf type {@code Accounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Accounts) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAccFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accBuilder_ == null) { - acc_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - accBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_Accounts_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts(this); - int from_bitField0_ = bitField0_; - if (accBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - acc_ = java.util.Collections.unmodifiableList(acc_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.acc_ = acc_; - } else { - result.acc_ = accBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.getDefaultInstance()) return this; - if (accBuilder_ == null) { - if (!other.acc_.isEmpty()) { - if (acc_.isEmpty()) { - acc_ = other.acc_; - bitField0_ = (bitField0_ & ~0x00000001); + /** + * string asset_symbol = 5; + * + * @return The assetSymbol. + */ + @java.lang.Override + public java.lang.String getAssetSymbol() { + java.lang.Object ref = assetSymbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - ensureAccIsMutable(); - acc_.addAll(other.acc_); - } - onChanged(); - } - } else { - if (!other.acc_.isEmpty()) { - if (accBuilder_.isEmpty()) { - accBuilder_.dispose(); - accBuilder_ = null; - acc_ = other.acc_; - bitField0_ = (bitField0_ & ~0x00000001); - accBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccFieldBuilder() : null; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetSymbol_ = s; + return s; + } + } + + /** + * string asset_symbol = 5; + * + * @return The bytes for assetSymbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetSymbolBytes() { + java.lang.Object ref = assetSymbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetSymbol_ = b; + return b; } else { - accBuilder_.addAllMessages(other.acc_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List acc_ = - java.util.Collections.emptyList(); - private void ensureAccIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - acc_ = new java.util.ArrayList(acc_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> accBuilder_; - - /** - * repeated .Account acc = 1; - */ - public java.util.List getAccList() { - if (accBuilder_ == null) { - return java.util.Collections.unmodifiableList(acc_); - } else { - return accBuilder_.getMessageList(); - } - } - /** - * repeated .Account acc = 1; - */ - public int getAccCount() { - if (accBuilder_ == null) { - return acc_.size(); - } else { - return accBuilder_.getCount(); - } - } - /** - * repeated .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(int index) { - if (accBuilder_ == null) { - return acc_.get(index); - } else { - return accBuilder_.getMessage(index); - } - } - /** - * repeated .Account acc = 1; - */ - public Builder setAcc( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (accBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccIsMutable(); - acc_.set(index, value); - onChanged(); - } else { - accBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder setAcc( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (accBuilder_ == null) { - ensureAccIsMutable(); - acc_.set(index, builderForValue.build()); - onChanged(); - } else { - accBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder addAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (accBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccIsMutable(); - acc_.add(value); - onChanged(); - } else { - accBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder addAcc( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (accBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccIsMutable(); - acc_.add(index, value); - onChanged(); - } else { - accBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder addAcc( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (accBuilder_ == null) { - ensureAccIsMutable(); - acc_.add(builderForValue.build()); - onChanged(); - } else { - accBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder addAcc( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (accBuilder_ == null) { - ensureAccIsMutable(); - acc_.add(index, builderForValue.build()); - onChanged(); - } else { - accBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder addAllAcc( - java.lang.Iterable values) { - if (accBuilder_ == null) { - ensureAccIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, acc_); - onChanged(); - } else { - accBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder clearAcc() { - if (accBuilder_ == null) { - acc_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accBuilder_.clear(); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public Builder removeAcc(int index) { - if (accBuilder_ == null) { - ensureAccIsMutable(); - acc_.remove(index); - onChanged(); - } else { - accBuilder_.remove(index); - } - return this; - } - /** - * repeated .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getAccBuilder( - int index) { - return getAccFieldBuilder().getBuilder(index); - } - /** - * repeated .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder( - int index) { - if (accBuilder_ == null) { - return acc_.get(index); } else { - return accBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Account acc = 1; - */ - public java.util.List - getAccOrBuilderList() { - if (accBuilder_ != null) { - return accBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(acc_); - } - } - /** - * repeated .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder addAccBuilder() { - return getAccFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance()); - } - /** - * repeated .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder addAccBuilder( - int index) { - return getAccFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance()); - } - /** - * repeated .Account acc = 1; - */ - public java.util.List - getAccBuilderList() { - return getAccFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getAccFieldBuilder() { - if (accBuilder_ == null) { - accBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - acc_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - acc_ = null; - } - return accBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Accounts) - } + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:Accounts) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts(); - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Accounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Accounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (!getExecerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, execer_); + } + if (!getStateHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateHash_); + } + if (!getAssetExecBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, assetExec_); + } + if (!getAssetSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, assetSymbol_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - } + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (!getExecerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, execer_); + } + if (!getStateHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stateHash_); + } + if (!getAssetExecBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, assetExec_); + } + if (!getAssetSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, assetSymbol_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public interface ExecAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:ExecAccount) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (!getExecer().equals(other.getExecer())) + return false; + if (!getStateHash().equals(other.getStateHash())) + return false; + if (!getAssetExec().equals(other.getAssetExec())) + return false; + if (!getAssetSymbol().equals(other.getAssetSymbol())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + hash = (37 * hash) + STATEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStateHash().hashCode(); + hash = (37 * hash) + ASSET_EXEC_FIELD_NUMBER; + hash = (53 * hash) + getAssetExec().hashCode(); + hash = (37 * hash) + ASSET_SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getAssetSymbol().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * string execer = 1; - * @return The execer. - */ - java.lang.String getExecer(); - /** - * string execer = 1; - * @return The bytes for execer. - */ - com.google.protobuf.ByteString - getExecerBytes(); + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * .Account account = 2; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - * .Account account = 2; - * @return The account. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAccount(); - /** - * .Account account = 2; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccountOrBuilder(); - } - /** - * Protobuf type {@code ExecAccount} - */ - public static final class ExecAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ExecAccount) - ExecAccountOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecAccount.newBuilder() to construct. - private ExecAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecAccount() { - execer_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExecAccount(); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - execer_ = s; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (account_ != null) { - subBuilder = account_.toBuilder(); - } - account_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(account_); - account_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int EXECER_FIELD_NUMBER = 1; - private volatile java.lang.Object execer_; - /** - * string execer = 1; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } - } - /** - * string execer = 1; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int ACCOUNT_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account account_; - /** - * .Account account = 2; - * @return Whether the account field is set. - */ - public boolean hasAccount() { - return account_ != null; - } - /** - * .Account account = 2; - * @return The account. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAccount() { - return account_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : account_; - } - /** - * .Account account = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccountOrBuilder() { - return getAccount(); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getExecerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execer_); - } - if (account_ != null) { - output.writeMessage(2, getAccount()); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execer_); - } - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAccount()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount) obj; - - if (!getExecer() - .equals(other.getExecer())) return false; - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - if (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqAllExecBalance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqAllExecBalance) + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.class, + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ExecAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ExecAccount) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - execer_ = ""; - - if (accountBuilder_ == null) { - account_ = null; - } else { - account_ = null; - accountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ExecAccount_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount(this); - result.execer_ = execer_; - if (accountBuilder_ == null) { - result.account_ = account_; - } else { - result.account_ = accountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance()) return this; - if (!other.getExecer().isEmpty()) { - execer_ = other.execer_; - onChanged(); - } - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object execer_ = ""; - /** - * string execer = 1; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execer = 1; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execer = 1; - * @param value The execer to set. - * @return This builder for chaining. - */ - public Builder setExecer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - * string execer = 1; - * @return This builder for chaining. - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - /** - * string execer = 1; - * @param value The bytes for execer to set. - * @return This builder for chaining. - */ - public Builder setExecerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execer_ = value; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account account_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> accountBuilder_; - /** - * .Account account = 2; - * @return Whether the account field is set. - */ - public boolean hasAccount() { - return accountBuilder_ != null || account_ != null; - } - /** - * .Account account = 2; - * @return The account. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : account_; - } else { - return accountBuilder_.getMessage(); - } - } - /** - * .Account account = 2; - */ - public Builder setAccount(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - account_ = value; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - - return this; - } - /** - * .Account account = 2; - */ - public Builder setAccount( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Account account = 2; - */ - public Builder mergeAccount(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (accountBuilder_ == null) { - if (account_ != null) { - account_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(account_).mergeFrom(value).buildPartial(); - } else { - account_ = value; - } - onChanged(); - } else { - accountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Account account = 2; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - account_ = null; - onChanged(); - } else { - account_ = null; - accountBuilder_ = null; - } - - return this; - } - /** - * .Account account = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getAccountBuilder() { - - onChanged(); - return getAccountFieldBuilder().getBuilder(); - } - /** - * .Account account = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); - } else { - return account_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : account_; - } - } - /** - * .Account account = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; - } - return accountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ExecAccount) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:ExecAccount) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + execer_ = ""; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + stateHash_ = ""; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + assetExec_ = ""; - } + assetSymbol_ = ""; - public interface AllExecBalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:AllExecBalance) - com.google.protobuf.MessageOrBuilder { + return this; + } - /** - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_descriptor; + } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - java.util.List - getExecAccountList(); - /** - * repeated .ExecAccount ExecAccount = 2; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getExecAccount(int index); - /** - * repeated .ExecAccount ExecAccount = 2; - */ - int getExecAccountCount(); - /** - * repeated .ExecAccount ExecAccount = 2; - */ - java.util.List - getExecAccountOrBuilderList(); - /** - * repeated .ExecAccount ExecAccount = 2; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder getExecAccountOrBuilder( - int index); - } - /** - * Protobuf type {@code AllExecBalance} - */ - public static final class AllExecBalance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AllExecBalance) - AllExecBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use AllExecBalance.newBuilder() to construct. - private AllExecBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AllExecBalance() { - addr_ = ""; - execAccount_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.getDefaultInstance(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AllExecBalance(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance build() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AllExecBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - execAccount_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - execAccount_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - execAccount_ = java.util.Collections.unmodifiableList(execAccount_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance buildPartial() { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance( + this); + result.addr_ = addr_; + result.execer_ = execer_; + result.stateHash_ = stateHash_; + result.assetExec_ = assetExec_; + result.assetSymbol_ = assetSymbol_; + onBuilt(); + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.Builder.class); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int EXECACCOUNT_FIELD_NUMBER = 2; - private java.util.List execAccount_; - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public java.util.List getExecAccountList() { - return execAccount_; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public java.util.List - getExecAccountOrBuilderList() { - return execAccount_; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public int getExecAccountCount() { - return execAccount_.size(); - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getExecAccount(int index) { - return execAccount_.get(index); - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder getExecAccountOrBuilder( - int index) { - return execAccount_.get(index); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - for (int i = 0; i < execAccount_.size(); i++) { - output.writeMessage(2, execAccount_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - for (int i = 0; i < execAccount_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, execAccount_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (!getExecAccountList() - .equals(other.getExecAccountList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance other) { + if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (!other.getExecer().isEmpty()) { + execer_ = other.execer_; + onChanged(); + } + if (!other.getStateHash().isEmpty()) { + stateHash_ = other.stateHash_; + onChanged(); + } + if (!other.getAssetExec().isEmpty()) { + assetExec_ = other.assetExec_; + onChanged(); + } + if (!other.getAssetSymbol().isEmpty()) { + assetSymbol_ = other.assetSymbol_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - if (getExecAccountCount() > 0) { - hash = (37 * hash) + EXECACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getExecAccountList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object addr_ = ""; + + /** + *
+             * 地址列表
+             * 
+ * + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AllExecBalance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AllExecBalance) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExecAccountFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - if (execAccountBuilder_ == null) { - execAccount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - execAccountBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_AllExecBalance_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance(this); - int from_bitField0_ = bitField0_; - result.addr_ = addr_; - if (execAccountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - execAccount_ = java.util.Collections.unmodifiableList(execAccount_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.execAccount_ = execAccount_; - } else { - result.execAccount_ = execAccountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (execAccountBuilder_ == null) { - if (!other.execAccount_.isEmpty()) { - if (execAccount_.isEmpty()) { - execAccount_ = other.execAccount_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExecAccountIsMutable(); - execAccount_.addAll(other.execAccount_); - } - onChanged(); - } - } else { - if (!other.execAccount_.isEmpty()) { - if (execAccountBuilder_.isEmpty()) { - execAccountBuilder_.dispose(); - execAccountBuilder_ = null; - execAccount_ = other.execAccount_; - bitField0_ = (bitField0_ & ~0x00000001); - execAccountBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecAccountFieldBuilder() : null; - } else { - execAccountBuilder_.addAllMessages(other.execAccount_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object addr_ = ""; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private java.util.List execAccount_ = - java.util.Collections.emptyList(); - private void ensureExecAccountIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - execAccount_ = new java.util.ArrayList(execAccount_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder> execAccountBuilder_; - - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public java.util.List getExecAccountList() { - if (execAccountBuilder_ == null) { - return java.util.Collections.unmodifiableList(execAccount_); - } else { - return execAccountBuilder_.getMessageList(); - } - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public int getExecAccountCount() { - if (execAccountBuilder_ == null) { - return execAccount_.size(); - } else { - return execAccountBuilder_.getCount(); - } - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount getExecAccount(int index) { - if (execAccountBuilder_ == null) { - return execAccount_.get(index); - } else { - return execAccountBuilder_.getMessage(index); - } - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder setExecAccount( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount value) { - if (execAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecAccountIsMutable(); - execAccount_.set(index, value); - onChanged(); - } else { - execAccountBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder setExecAccount( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder builderForValue) { - if (execAccountBuilder_ == null) { - ensureExecAccountIsMutable(); - execAccount_.set(index, builderForValue.build()); - onChanged(); - } else { - execAccountBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder addExecAccount(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount value) { - if (execAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecAccountIsMutable(); - execAccount_.add(value); - onChanged(); - } else { - execAccountBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder addExecAccount( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount value) { - if (execAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecAccountIsMutable(); - execAccount_.add(index, value); - onChanged(); - } else { - execAccountBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder addExecAccount( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder builderForValue) { - if (execAccountBuilder_ == null) { - ensureExecAccountIsMutable(); - execAccount_.add(builderForValue.build()); - onChanged(); - } else { - execAccountBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder addExecAccount( - int index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder builderForValue) { - if (execAccountBuilder_ == null) { - ensureExecAccountIsMutable(); - execAccount_.add(index, builderForValue.build()); - onChanged(); - } else { - execAccountBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder addAllExecAccount( - java.lang.Iterable values) { - if (execAccountBuilder_ == null) { - ensureExecAccountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, execAccount_); - onChanged(); - } else { - execAccountBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder clearExecAccount() { - if (execAccountBuilder_ == null) { - execAccount_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - execAccountBuilder_.clear(); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public Builder removeExecAccount(int index) { - if (execAccountBuilder_ == null) { - ensureExecAccountIsMutable(); - execAccount_.remove(index); - onChanged(); - } else { - execAccountBuilder_.remove(index); - } - return this; - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder getExecAccountBuilder( - int index) { - return getExecAccountFieldBuilder().getBuilder(index); - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder getExecAccountOrBuilder( - int index) { - if (execAccountBuilder_ == null) { - return execAccount_.get(index); } else { - return execAccountBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public java.util.List - getExecAccountOrBuilderList() { - if (execAccountBuilder_ != null) { - return execAccountBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(execAccount_); - } - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder addExecAccountBuilder() { - return getExecAccountFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance()); - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder addExecAccountBuilder( - int index) { - return getExecAccountFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.getDefaultInstance()); - } - /** - * repeated .ExecAccount ExecAccount = 2; - */ - public java.util.List - getExecAccountBuilderList() { - return getExecAccountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder> - getExecAccountFieldBuilder() { - if (execAccountBuilder_ == null) { - execAccountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccount.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ExecAccountOrBuilder>( - execAccount_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - execAccount_ = null; - } - return execAccountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AllExecBalance) - } + /** + *
+             * 地址列表
+             * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:AllExecBalance) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance(); - } + /** + *
+             * 地址列表
+             * 
+ * + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+             * 地址列表
+             * 
+ * + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllExecBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllExecBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+             * 地址列表
+             * 
+ * + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object execer_ = ""; + + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @return The execer. + */ + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @return The bytes for execer. + */ + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @param value + * The execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } - public interface ReqAllExecBalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqAllExecBalance) - com.google.protobuf.MessageOrBuilder { + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @return This builder for chaining. + */ + public Builder clearExecer() { + + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } - /** - *
-     *地址列表
-     * 
- * - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - *
-     *地址列表
-     * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + /** + *
+             * 执行器名称
+             * 
+ * + * string execer = 2; + * + * @param value + * The bytes for execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execer_ = value; + onChanged(); + return this; + } - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The execer. - */ - java.lang.String getExecer(); - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The bytes for execer. - */ - com.google.protobuf.ByteString - getExecerBytes(); + private java.lang.Object stateHash_ = ""; + + /** + * string stateHash = 3; + * + * @return The stateHash. + */ + public java.lang.String getStateHash() { + java.lang.Object ref = stateHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * string stateHash = 3; - * @return The stateHash. - */ - java.lang.String getStateHash(); - /** - * string stateHash = 3; - * @return The bytes for stateHash. - */ - com.google.protobuf.ByteString - getStateHashBytes(); + /** + * string stateHash = 3; + * + * @return The bytes for stateHash. + */ + public com.google.protobuf.ByteString getStateHashBytes() { + java.lang.Object ref = stateHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stateHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string asset_exec = 4; - * @return The assetExec. - */ - java.lang.String getAssetExec(); - /** - * string asset_exec = 4; - * @return The bytes for assetExec. - */ - com.google.protobuf.ByteString - getAssetExecBytes(); + /** + * string stateHash = 3; + * + * @param value + * The stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stateHash_ = value; + onChanged(); + return this; + } - /** - * string asset_symbol = 5; - * @return The assetSymbol. - */ - java.lang.String getAssetSymbol(); - /** - * string asset_symbol = 5; - * @return The bytes for assetSymbol. - */ - com.google.protobuf.ByteString - getAssetSymbolBytes(); - } - /** - * Protobuf type {@code ReqAllExecBalance} - */ - public static final class ReqAllExecBalance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqAllExecBalance) - ReqAllExecBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqAllExecBalance.newBuilder() to construct. - private ReqAllExecBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqAllExecBalance() { - addr_ = ""; - execer_ = ""; - stateHash_ = ""; - assetExec_ = ""; - assetSymbol_ = ""; - } + /** + * string stateHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearStateHash() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqAllExecBalance(); - } + stateHash_ = getDefaultInstance().getStateHash(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqAllExecBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - execer_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - stateHash_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - assetExec_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - assetSymbol_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_descriptor; - } + /** + * string stateHash = 3; + * + * @param value + * The bytes for stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stateHash_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.Builder.class); - } + private java.lang.Object assetExec_ = ""; + + /** + * string asset_exec = 4; + * + * @return The assetExec. + */ + public java.lang.String getAssetExec() { + java.lang.Object ref = assetExec_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetExec_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - *
-     *地址列表
-     * 
- * - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - *
-     *地址列表
-     * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string asset_exec = 4; + * + * @return The bytes for assetExec. + */ + public com.google.protobuf.ByteString getAssetExecBytes() { + java.lang.Object ref = assetExec_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + assetExec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int EXECER_FIELD_NUMBER = 2; - private volatile java.lang.Object execer_; - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } - } - /** - *
-     *执行器名称
-     * 
- * - * string execer = 2; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string asset_exec = 4; + * + * @param value + * The assetExec to set. + * + * @return This builder for chaining. + */ + public Builder setAssetExec(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + assetExec_ = value; + onChanged(); + return this; + } - public static final int STATEHASH_FIELD_NUMBER = 3; - private volatile java.lang.Object stateHash_; - /** - * string stateHash = 3; - * @return The stateHash. - */ - public java.lang.String getStateHash() { - java.lang.Object ref = stateHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateHash_ = s; - return s; - } - } - /** - * string stateHash = 3; - * @return The bytes for stateHash. - */ - public com.google.protobuf.ByteString - getStateHashBytes() { - java.lang.Object ref = stateHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stateHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string asset_exec = 4; + * + * @return This builder for chaining. + */ + public Builder clearAssetExec() { - public static final int ASSET_EXEC_FIELD_NUMBER = 4; - private volatile java.lang.Object assetExec_; - /** - * string asset_exec = 4; - * @return The assetExec. - */ - public java.lang.String getAssetExec() { - java.lang.Object ref = assetExec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetExec_ = s; - return s; - } - } - /** - * string asset_exec = 4; - * @return The bytes for assetExec. - */ - public com.google.protobuf.ByteString - getAssetExecBytes() { - java.lang.Object ref = assetExec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetExec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + assetExec_ = getDefaultInstance().getAssetExec(); + onChanged(); + return this; + } - public static final int ASSET_SYMBOL_FIELD_NUMBER = 5; - private volatile java.lang.Object assetSymbol_; - /** - * string asset_symbol = 5; - * @return The assetSymbol. - */ - public java.lang.String getAssetSymbol() { - java.lang.Object ref = assetSymbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetSymbol_ = s; - return s; - } - } - /** - * string asset_symbol = 5; - * @return The bytes for assetSymbol. - */ - public com.google.protobuf.ByteString - getAssetSymbolBytes() { - java.lang.Object ref = assetSymbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string asset_exec = 4; + * + * @param value + * The bytes for assetExec to set. + * + * @return This builder for chaining. + */ + public Builder setAssetExecBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + assetExec_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private java.lang.Object assetSymbol_ = ""; + + /** + * string asset_symbol = 5; + * + * @return The assetSymbol. + */ + public java.lang.String getAssetSymbol() { + java.lang.Object ref = assetSymbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetSymbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string asset_symbol = 5; + * + * @return The bytes for assetSymbol. + */ + public com.google.protobuf.ByteString getAssetSymbolBytes() { + java.lang.Object ref = assetSymbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + assetSymbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (!getExecerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, execer_); - } - if (!getStateHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateHash_); - } - if (!getAssetExecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, assetExec_); - } - if (!getAssetSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, assetSymbol_); - } - unknownFields.writeTo(output); - } + /** + * string asset_symbol = 5; + * + * @param value + * The assetSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setAssetSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + assetSymbol_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (!getExecerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, execer_); - } - if (!getStateHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stateHash_); - } - if (!getAssetExecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, assetExec_); - } - if (!getAssetSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, assetSymbol_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string asset_symbol = 5; + * + * @return This builder for chaining. + */ + public Builder clearAssetSymbol() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance other = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (!getExecer() - .equals(other.getExecer())) return false; - if (!getStateHash() - .equals(other.getStateHash())) return false; - if (!getAssetExec() - .equals(other.getAssetExec())) return false; - if (!getAssetSymbol() - .equals(other.getAssetSymbol())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + assetSymbol_ = getDefaultInstance().getAssetSymbol(); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - hash = (37 * hash) + STATEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStateHash().hashCode(); - hash = (37 * hash) + ASSET_EXEC_FIELD_NUMBER; - hash = (53 * hash) + getAssetExec().hashCode(); - hash = (37 * hash) + ASSET_SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getAssetSymbol().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string asset_symbol = 5; + * + * @param value + * The bytes for assetSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setAssetSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + assetSymbol_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqAllExecBalance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqAllExecBalance) - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.class, cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - execer_ = ""; - - stateHash_ = ""; - - assetExec_ = ""; - - assetSymbol_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.internal_static_ReqAllExecBalance_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance build() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance buildPartial() { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance result = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance(this); - result.addr_ = addr_; - result.execer_ = execer_; - result.stateHash_ = stateHash_; - result.assetExec_ = assetExec_; - result.assetSymbol_ = assetSymbol_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance other) { - if (other == cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (!other.getExecer().isEmpty()) { - execer_ = other.execer_; - onChanged(); - } - if (!other.getStateHash().isEmpty()) { - stateHash_ = other.stateHash_; - onChanged(); - } - if (!other.getAssetExec().isEmpty()) { - assetExec_ = other.assetExec_; - onChanged(); - } - if (!other.getAssetSymbol().isEmpty()) { - assetSymbol_ = other.assetSymbol_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - *
-       *地址列表
-       * 
- * - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *地址列表
-       * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *地址列表
-       * 
- * - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - *
-       *地址列表
-       * 
- * - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - *
-       *地址列表
-       * 
- * - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private java.lang.Object execer_ = ""; - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @param value The execer to set. - * @return This builder for chaining. - */ - public Builder setExecer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @return This builder for chaining. - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - /** - *
-       *执行器名称
-       * 
- * - * string execer = 2; - * @param value The bytes for execer to set. - * @return This builder for chaining. - */ - public Builder setExecerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execer_ = value; - onChanged(); - return this; - } - - private java.lang.Object stateHash_ = ""; - /** - * string stateHash = 3; - * @return The stateHash. - */ - public java.lang.String getStateHash() { - java.lang.Object ref = stateHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string stateHash = 3; - * @return The bytes for stateHash. - */ - public com.google.protobuf.ByteString - getStateHashBytes() { - java.lang.Object ref = stateHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stateHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string stateHash = 3; - * @param value The stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stateHash_ = value; - onChanged(); - return this; - } - /** - * string stateHash = 3; - * @return This builder for chaining. - */ - public Builder clearStateHash() { - - stateHash_ = getDefaultInstance().getStateHash(); - onChanged(); - return this; - } - /** - * string stateHash = 3; - * @param value The bytes for stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stateHash_ = value; - onChanged(); - return this; - } - - private java.lang.Object assetExec_ = ""; - /** - * string asset_exec = 4; - * @return The assetExec. - */ - public java.lang.String getAssetExec() { - java.lang.Object ref = assetExec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetExec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string asset_exec = 4; - * @return The bytes for assetExec. - */ - public com.google.protobuf.ByteString - getAssetExecBytes() { - java.lang.Object ref = assetExec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetExec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string asset_exec = 4; - * @param value The assetExec to set. - * @return This builder for chaining. - */ - public Builder setAssetExec( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - assetExec_ = value; - onChanged(); - return this; - } - /** - * string asset_exec = 4; - * @return This builder for chaining. - */ - public Builder clearAssetExec() { - - assetExec_ = getDefaultInstance().getAssetExec(); - onChanged(); - return this; - } - /** - * string asset_exec = 4; - * @param value The bytes for assetExec to set. - * @return This builder for chaining. - */ - public Builder setAssetExecBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - assetExec_ = value; - onChanged(); - return this; - } - - private java.lang.Object assetSymbol_ = ""; - /** - * string asset_symbol = 5; - * @return The assetSymbol. - */ - public java.lang.String getAssetSymbol() { - java.lang.Object ref = assetSymbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assetSymbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string asset_symbol = 5; - * @return The bytes for assetSymbol. - */ - public com.google.protobuf.ByteString - getAssetSymbolBytes() { - java.lang.Object ref = assetSymbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assetSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string asset_symbol = 5; - * @param value The assetSymbol to set. - * @return This builder for chaining. - */ - public Builder setAssetSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - assetSymbol_ = value; - onChanged(); - return this; - } - /** - * string asset_symbol = 5; - * @return This builder for chaining. - */ - public Builder clearAssetSymbol() { - - assetSymbol_ = getDefaultInstance().getAssetSymbol(); - onChanged(); - return this; - } - /** - * string asset_symbol = 5; - * @param value The bytes for assetSymbol to set. - * @return This builder for chaining. - */ - public Builder setAssetSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - assetSymbol_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqAllExecBalance) - } + // @@protoc_insertion_point(builder_scope:ReqAllExecBalance) + } - // @@protoc_insertion_point(class_scope:ReqAllExecBalance) - private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance(); - } + // @@protoc_insertion_point(class_scope:ReqAllExecBalance) + private static final cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance(); + } - public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqAllExecBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqAllExecBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqAllExecBalance parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqAllExecBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Account_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Account_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptExecAccountTransfer_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptExecAccountTransfer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptAccountTransfer_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptAccountTransfer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptAccountMint_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptAccountMint_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptAccountBurn_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptAccountBurn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqBalance_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Accounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Accounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ExecAccount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ExecAccount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AllExecBalance_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AllExecBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqAllExecBalance_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqAllExecBalance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Account_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Account_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptExecAccountTransfer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptExecAccountTransfer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptAccountTransfer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptAccountTransfer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptAccountMint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptAccountMint_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptAccountBurn_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptAccountBurn_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqBalance_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqBalance_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Accounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Accounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ExecAccount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ExecAccount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AllExecBalance_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AllExecBalance_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqAllExecBalance_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqAllExecBalance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\raccount.proto\"J\n\007Account\022\020\n\010currency\030\001" + - " \001(\005\022\017\n\007balance\030\002 \001(\003\022\016\n\006frozen\030\003 \001(\003\022\014\n" + - "\004addr\030\004 \001(\t\"a\n\032ReceiptExecAccountTransfe" + - "r\022\020\n\010execAddr\030\001 \001(\t\022\026\n\004prev\030\002 \001(\0132\010.Acco" + - "unt\022\031\n\007current\030\003 \001(\0132\010.Account\"K\n\026Receip" + - "tAccountTransfer\022\026\n\004prev\030\001 \001(\0132\010.Account" + - "\022\031\n\007current\030\002 \001(\0132\010.Account\"G\n\022ReceiptAc" + - "countMint\022\026\n\004prev\030\001 \001(\0132\010.Account\022\031\n\007cur" + - "rent\030\002 \001(\0132\010.Account\"G\n\022ReceiptAccountBu" + - "rn\022\026\n\004prev\030\001 \001(\0132\010.Account\022\031\n\007current\030\002 " + - "\001(\0132\010.Account\"l\n\nReqBalance\022\021\n\taddresses" + - "\030\001 \003(\t\022\016\n\006execer\030\002 \001(\t\022\021\n\tstateHash\030\003 \001(" + - "\t\022\022\n\nasset_exec\030\004 \001(\t\022\024\n\014asset_symbol\030\005 " + - "\001(\t\"!\n\010Accounts\022\025\n\003acc\030\001 \003(\0132\010.Account\"8" + - "\n\013ExecAccount\022\016\n\006execer\030\001 \001(\t\022\031\n\007account" + - "\030\002 \001(\0132\010.Account\"A\n\016AllExecBalance\022\014\n\004ad" + - "dr\030\001 \001(\t\022!\n\013ExecAccount\030\002 \003(\0132\014.ExecAcco" + - "unt\"n\n\021ReqAllExecBalance\022\014\n\004addr\030\001 \001(\t\022\016" + - "\n\006execer\030\002 \001(\t\022\021\n\tstateHash\030\003 \001(\t\022\022\n\nass" + - "et_exec\030\004 \001(\t\022\024\n\014asset_symbol\030\005 \001(\tB4\n!c" + - "n.chain33.javasdk.model.protobufB\017Accoun" + - "tProtobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Account_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Account_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Account_descriptor, - new java.lang.String[] { "Currency", "Balance", "Frozen", "Addr", }); - internal_static_ReceiptExecAccountTransfer_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ReceiptExecAccountTransfer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptExecAccountTransfer_descriptor, - new java.lang.String[] { "ExecAddr", "Prev", "Current", }); - internal_static_ReceiptAccountTransfer_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ReceiptAccountTransfer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptAccountTransfer_descriptor, - new java.lang.String[] { "Prev", "Current", }); - internal_static_ReceiptAccountMint_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ReceiptAccountMint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptAccountMint_descriptor, - new java.lang.String[] { "Prev", "Current", }); - internal_static_ReceiptAccountBurn_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ReceiptAccountBurn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptAccountBurn_descriptor, - new java.lang.String[] { "Prev", "Current", }); - internal_static_ReqBalance_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ReqBalance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqBalance_descriptor, - new java.lang.String[] { "Addresses", "Execer", "StateHash", "AssetExec", "AssetSymbol", }); - internal_static_Accounts_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_Accounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Accounts_descriptor, - new java.lang.String[] { "Acc", }); - internal_static_ExecAccount_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ExecAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ExecAccount_descriptor, - new java.lang.String[] { "Execer", "Account", }); - internal_static_AllExecBalance_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_AllExecBalance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AllExecBalance_descriptor, - new java.lang.String[] { "Addr", "ExecAccount", }); - internal_static_ReqAllExecBalance_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_ReqAllExecBalance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqAllExecBalance_descriptor, - new java.lang.String[] { "Addr", "Execer", "StateHash", "AssetExec", "AssetSymbol", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\raccount.proto\"J\n\007Account\022\020\n\010currency\030\001" + + " \001(\005\022\017\n\007balance\030\002 \001(\003\022\016\n\006frozen\030\003 \001(\003\022\014\n" + + "\004addr\030\004 \001(\t\"a\n\032ReceiptExecAccountTransfe" + + "r\022\020\n\010execAddr\030\001 \001(\t\022\026\n\004prev\030\002 \001(\0132\010.Acco" + + "unt\022\031\n\007current\030\003 \001(\0132\010.Account\"K\n\026Receip" + + "tAccountTransfer\022\026\n\004prev\030\001 \001(\0132\010.Account" + + "\022\031\n\007current\030\002 \001(\0132\010.Account\"G\n\022ReceiptAc" + + "countMint\022\026\n\004prev\030\001 \001(\0132\010.Account\022\031\n\007cur" + + "rent\030\002 \001(\0132\010.Account\"G\n\022ReceiptAccountBu" + + "rn\022\026\n\004prev\030\001 \001(\0132\010.Account\022\031\n\007current\030\002 " + + "\001(\0132\010.Account\"l\n\nReqBalance\022\021\n\taddresses" + + "\030\001 \003(\t\022\016\n\006execer\030\002 \001(\t\022\021\n\tstateHash\030\003 \001(" + + "\t\022\022\n\nasset_exec\030\004 \001(\t\022\024\n\014asset_symbol\030\005 " + + "\001(\t\"!\n\010Accounts\022\025\n\003acc\030\001 \003(\0132\010.Account\"8" + + "\n\013ExecAccount\022\016\n\006execer\030\001 \001(\t\022\031\n\007account" + + "\030\002 \001(\0132\010.Account\"A\n\016AllExecBalance\022\014\n\004ad" + + "dr\030\001 \001(\t\022!\n\013ExecAccount\030\002 \003(\0132\014.ExecAcco" + + "unt\"n\n\021ReqAllExecBalance\022\014\n\004addr\030\001 \001(\t\022\016" + + "\n\006execer\030\002 \001(\t\022\021\n\tstateHash\030\003 \001(\t\022\022\n\nass" + + "et_exec\030\004 \001(\t\022\024\n\014asset_symbol\030\005 \001(\tB4\n!c" + + "n.chain33.javasdk.model.protobufB\017Accoun" + "tProtobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_Account_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_Account_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Account_descriptor, + new java.lang.String[] { "Currency", "Balance", "Frozen", "Addr", }); + internal_static_ReceiptExecAccountTransfer_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_ReceiptExecAccountTransfer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptExecAccountTransfer_descriptor, + new java.lang.String[] { "ExecAddr", "Prev", "Current", }); + internal_static_ReceiptAccountTransfer_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_ReceiptAccountTransfer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptAccountTransfer_descriptor, new java.lang.String[] { "Prev", "Current", }); + internal_static_ReceiptAccountMint_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_ReceiptAccountMint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptAccountMint_descriptor, new java.lang.String[] { "Prev", "Current", }); + internal_static_ReceiptAccountBurn_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_ReceiptAccountBurn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptAccountBurn_descriptor, new java.lang.String[] { "Prev", "Current", }); + internal_static_ReqBalance_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_ReqBalance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqBalance_descriptor, + new java.lang.String[] { "Addresses", "Execer", "StateHash", "AssetExec", "AssetSymbol", }); + internal_static_Accounts_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_Accounts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Accounts_descriptor, new java.lang.String[] { "Acc", }); + internal_static_ExecAccount_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_ExecAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ExecAccount_descriptor, new java.lang.String[] { "Execer", "Account", }); + internal_static_AllExecBalance_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_AllExecBalance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AllExecBalance_descriptor, new java.lang.String[] { "Addr", "ExecAccount", }); + internal_static_ReqAllExecBalance_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_ReqAllExecBalance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqAllExecBalance_descriptor, + new java.lang.String[] { "Addr", "Execer", "StateHash", "AssetExec", "AssetSymbol", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/BlockchainProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/BlockchainProtobuf.java index eab161c..3a83a84 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/BlockchainProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/BlockchainProtobuf.java @@ -4,42889 +4,44644 @@ package cn.chain33.javasdk.model.protobuf; public final class BlockchainProtobuf { - private BlockchainProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:Header) - com.google.protobuf.MessageOrBuilder { + private BlockchainProtobuf() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface HeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:Header) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 version = 1; + * + * @return The version. + */ + long getVersion(); + + /** + * bytes parentHash = 2; + * + * @return The parentHash. + */ + com.google.protobuf.ByteString getParentHash(); + + /** + * bytes txHash = 3; + * + * @return The txHash. + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * bytes stateHash = 4; + * + * @return The stateHash. + */ + com.google.protobuf.ByteString getStateHash(); + + /** + * int64 height = 5; + * + * @return The height. + */ + long getHeight(); + + /** + * int64 blockTime = 6; + * + * @return The blockTime. + */ + long getBlockTime(); + + /** + * int64 txCount = 9; + * + * @return The txCount. + */ + long getTxCount(); + + /** + * bytes hash = 10; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * uint32 difficulty = 11; + * + * @return The difficulty. + */ + int getDifficulty(); + + /** + * .Signature signature = 8; + * + * @return Whether the signature field is set. + */ + boolean hasSignature(); + + /** + * .Signature signature = 8; + * + * @return The signature. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature(); + + /** + * .Signature signature = 8; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder(); + } /** - * int64 version = 1; - * @return The version. + *
+     *区块头信息
+     * 	 version : 版本信息
+     *	 parentHash :父哈希
+     * 	 txHash : 交易根哈希
+     *	 stateHash :状态哈希
+     * 	 height : 区块高度
+     *	 blockTime :区块产生时的时标
+     * 	 txCount : 区块上所有交易个数
+     *	 difficulty :区块难度系数,
+     *	 signature :交易签名
+     * 
+ * + * Protobuf type {@code Header} */ - long getVersion(); + public static final class Header extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Header) + HeaderOrBuilder { + private static final long serialVersionUID = 0L; - /** - * bytes parentHash = 2; - * @return The parentHash. - */ - com.google.protobuf.ByteString getParentHash(); + // Use Header.newBuilder() to construct. + private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * bytes txHash = 3; - * @return The txHash. - */ - com.google.protobuf.ByteString getTxHash(); + private Header() { + parentHash_ = com.google.protobuf.ByteString.EMPTY; + txHash_ = com.google.protobuf.ByteString.EMPTY; + stateHash_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + } - /** - * bytes stateHash = 4; - * @return The stateHash. - */ - com.google.protobuf.ByteString getStateHash(); + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Header(); + } - /** - * int64 height = 5; - * @return The height. - */ - long getHeight(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - /** - * int64 blockTime = 6; - * @return The blockTime. - */ - long getBlockTime(); + private Header(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt64(); + break; + } + case 18: { + + parentHash_ = input.readBytes(); + break; + } + case 26: { + + txHash_ = input.readBytes(); + break; + } + case 34: { + + stateHash_ = input.readBytes(); + break; + } + case 40: { + + height_ = input.readInt64(); + break; + } + case 48: { + + blockTime_ = input.readInt64(); + break; + } + case 66: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null; + if (signature_ != null) { + subBuilder = signature_.toBuilder(); + } + signature_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signature_); + signature_ = subBuilder.buildPartial(); + } + + break; + } + case 72: { + + txCount_ = input.readInt64(); + break; + } + case 82: { + + hash_ = input.readBytes(); + break; + } + case 88: { + + difficulty_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - /** - * int64 txCount = 9; - * @return The txCount. - */ - long getTxCount(); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_descriptor; + } - /** - * bytes hash = 10; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder.class); + } - /** - * uint32 difficulty = 11; - * @return The difficulty. - */ - int getDifficulty(); + public static final int VERSION_FIELD_NUMBER = 1; + private long version_; - /** - * .Signature signature = 8; - * @return Whether the signature field is set. - */ - boolean hasSignature(); - /** - * .Signature signature = 8; - * @return The signature. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature(); - /** - * .Signature signature = 8; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder(); - } - /** - *
-   *区块头信息
-   * 	 version : 版本信息
-   *	 parentHash :父哈希
-   * 	 txHash : 交易根哈希
-   *	 stateHash :状态哈希
-   * 	 height : 区块高度
-   *	 blockTime :区块产生时的时标
-   * 	 txCount : 区块上所有交易个数
-   *	 difficulty :区块难度系数,
-   *	 signature :交易签名
-   * 
- * - * Protobuf type {@code Header} - */ - public static final class Header extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Header) - HeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use Header.newBuilder() to construct. - private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Header() { - parentHash_ = com.google.protobuf.ByteString.EMPTY; - txHash_ = com.google.protobuf.ByteString.EMPTY; - stateHash_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * int64 version = 1; + * + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Header(); - } + public static final int PARENTHASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString parentHash_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt64(); - break; - } - case 18: { - - parentHash_ = input.readBytes(); - break; - } - case 26: { - - txHash_ = input.readBytes(); - break; - } - case 34: { - - stateHash_ = input.readBytes(); - break; - } - case 40: { - - height_ = input.readInt64(); - break; - } - case 48: { - - blockTime_ = input.readInt64(); - break; - } - case 66: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null; - if (signature_ != null) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - - break; - } - case 72: { - - txCount_ = input.readInt64(); - break; - } - case 82: { - - hash_ = input.readBytes(); - break; - } - case 88: { - - difficulty_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_descriptor; - } + /** + * bytes parentHash = 2; + * + * @return The parentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder.class); - } + public static final int TXHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString txHash_; - public static final int VERSION_FIELD_NUMBER = 1; - private long version_; - /** - * int64 version = 1; - * @return The version. - */ - public long getVersion() { - return version_; - } + /** + * bytes txHash = 3; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + public static final int STATEHASH_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString stateHash_; - public static final int PARENTHASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString parentHash_; - /** - * bytes parentHash = 2; - * @return The parentHash. - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + /** + * bytes stateHash = 4; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } - public static final int TXHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 3; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public static final int HEIGHT_FIELD_NUMBER = 5; + private long height_; + + /** + * int64 height = 5; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } - public static final int STATEHASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString stateHash_; - /** - * bytes stateHash = 4; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } + public static final int BLOCKTIME_FIELD_NUMBER = 6; + private long blockTime_; + + /** + * int64 blockTime = 6; + * + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } + + public static final int TXCOUNT_FIELD_NUMBER = 9; + private long txCount_; + + /** + * int64 txCount = 9; + * + * @return The txCount. + */ + @java.lang.Override + public long getTxCount() { + return txCount_; + } + + public static final int HASH_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 10; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private int difficulty_; + + /** + * uint32 difficulty = 11; + * + * @return The difficulty. + */ + @java.lang.Override + public int getDifficulty() { + return difficulty_; + } + + public static final int SIGNATURE_FIELD_NUMBER = 8; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; + + /** + * .Signature signature = 8; + * + * @return Whether the signature field is set. + */ + @java.lang.Override + public boolean hasSignature() { + return signature_ != null; + } + + /** + * .Signature signature = 8; + * + * @return The signature. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } + + /** + * .Signature signature = 8; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + return getSignature(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0L) { + output.writeInt64(1, version_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(2, parentHash_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(3, txHash_); + } + if (!stateHash_.isEmpty()) { + output.writeBytes(4, stateHash_); + } + if (height_ != 0L) { + output.writeInt64(5, height_); + } + if (blockTime_ != 0L) { + output.writeInt64(6, blockTime_); + } + if (signature_ != null) { + output.writeMessage(8, getSignature()); + } + if (txCount_ != 0L) { + output.writeInt64(9, txCount_); + } + if (!hash_.isEmpty()) { + output.writeBytes(10, hash_); + } + if (difficulty_ != 0) { + output.writeUInt32(11, difficulty_); + } + unknownFields.writeTo(output); + } - public static final int HEIGHT_FIELD_NUMBER = 5; - private long height_; - /** - * int64 height = 5; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int BLOCKTIME_FIELD_NUMBER = 6; - private long blockTime_; - /** - * int64 blockTime = 6; - * @return The blockTime. - */ - public long getBlockTime() { - return blockTime_; - } + size = 0; + if (version_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, version_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, parentHash_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, txHash_); + } + if (!stateHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, stateHash_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, height_); + } + if (blockTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, blockTime_); + } + if (signature_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSignature()); + } + if (txCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, txCount_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, hash_); + } + if (difficulty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(11, difficulty_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int TXCOUNT_FIELD_NUMBER = 9; - private long txCount_; - /** - * int64 txCount = 9; - * @return The txCount. - */ - public long getTxCount() { - return txCount_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header) obj; + + if (getVersion() != other.getVersion()) + return false; + if (!getParentHash().equals(other.getParentHash())) + return false; + if (!getTxHash().equals(other.getTxHash())) + return false; + if (!getStateHash().equals(other.getStateHash())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (getBlockTime() != other.getBlockTime()) + return false; + if (getTxCount() != other.getTxCount()) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (getDifficulty() != other.getDifficulty()) + return false; + if (hasSignature() != other.hasSignature()) + return false; + if (hasSignature()) { + if (!getSignature().equals(other.getSignature())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - public static final int HASH_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 10; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + STATEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStateHash().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockTime()); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTxCount()); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty(); + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private int difficulty_; - /** - * uint32 difficulty = 11; - * @return The difficulty. - */ - public int getDifficulty() { - return difficulty_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int SIGNATURE_FIELD_NUMBER = 8; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; - /** - * .Signature signature = 8; - * @return Whether the signature field is set. - */ - public boolean hasSignature() { - return signature_ != null; - } - /** - * .Signature signature = 8; - * @return The signature. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } - /** - * .Signature signature = 8; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - return getSignature(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0L) { - output.writeInt64(1, version_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(2, parentHash_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(3, txHash_); - } - if (!stateHash_.isEmpty()) { - output.writeBytes(4, stateHash_); - } - if (height_ != 0L) { - output.writeInt64(5, height_); - } - if (blockTime_ != 0L) { - output.writeInt64(6, blockTime_); - } - if (signature_ != null) { - output.writeMessage(8, getSignature()); - } - if (txCount_ != 0L) { - output.writeInt64(9, txCount_); - } - if (!hash_.isEmpty()) { - output.writeBytes(10, hash_); - } - if (difficulty_ != 0) { - output.writeUInt32(11, difficulty_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, version_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, parentHash_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, txHash_); - } - if (!stateHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, stateHash_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, height_); - } - if (blockTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, blockTime_); - } - if (signature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSignature()); - } - if (txCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, txCount_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, hash_); - } - if (difficulty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, difficulty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!getParentHash() - .equals(other.getParentHash())) return false; - if (!getTxHash() - .equals(other.getTxHash())) return false; - if (!getStateHash() - .equals(other.getStateHash())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getBlockTime() - != other.getBlockTime()) return false; - if (getTxCount() - != other.getTxCount()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (getDifficulty() - != other.getDifficulty()) return false; - if (hasSignature() != other.hasSignature()) return false; - if (hasSignature()) { - if (!getSignature() - .equals(other.getSignature())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + STATEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStateHash().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockTime()); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTxCount()); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty(); - if (hasSignature()) { - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *区块头信息
-     * 	 version : 版本信息
-     *	 parentHash :父哈希
-     * 	 txHash : 交易根哈希
-     *	 stateHash :状态哈希
-     * 	 height : 区块高度
-     *	 blockTime :区块产生时的时标
-     * 	 txCount : 区块上所有交易个数
-     *	 difficulty :区块难度系数,
-     *	 signature :交易签名
-     * 
- * - * Protobuf type {@code Header} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Header) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - stateHash_ = com.google.protobuf.ByteString.EMPTY; - - height_ = 0L; - - blockTime_ = 0L; - - txCount_ = 0L; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - difficulty_ = 0; - - if (signatureBuilder_ == null) { - signature_ = null; - } else { - signature_ = null; - signatureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header(this); - result.version_ = version_; - result.parentHash_ = parentHash_; - result.txHash_ = txHash_; - result.stateHash_ = stateHash_; - result.height_ = height_; - result.blockTime_ = blockTime_; - result.txCount_ = txCount_; - result.hash_ = hash_; - result.difficulty_ = difficulty_; - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()) return this; - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { - setStateHash(other.getStateHash()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getBlockTime() != 0L) { - setBlockTime(other.getBlockTime()); - } - if (other.getTxCount() != 0L) { - setTxCount(other.getTxCount()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getDifficulty() != 0) { - setDifficulty(other.getDifficulty()); - } - if (other.hasSignature()) { - mergeSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long version_ ; - /** - * int64 version = 1; - * @return The version. - */ - public long getVersion() { - return version_; - } - /** - * int64 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int64 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes parentHash = 2; - * @return The parentHash. - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** - * bytes parentHash = 2; - * @param value The parentHash to set. - * @return This builder for chaining. - */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * bytes parentHash = 2; - * @return This builder for chaining. - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 3; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 3; - * @param value The txHash to set. - * @return This builder for chaining. - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 3; - * @return This builder for chaining. - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateHash = 4; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } - /** - * bytes stateHash = 4; - * @param value The stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateHash_ = value; - onChanged(); - return this; - } - /** - * bytes stateHash = 4; - * @return This builder for chaining. - */ - public Builder clearStateHash() { - - stateHash_ = getDefaultInstance().getStateHash(); - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 5; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 5; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 5; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long blockTime_ ; - /** - * int64 blockTime = 6; - * @return The blockTime. - */ - public long getBlockTime() { - return blockTime_; - } - /** - * int64 blockTime = 6; - * @param value The blockTime to set. - * @return This builder for chaining. - */ - public Builder setBlockTime(long value) { - - blockTime_ = value; - onChanged(); - return this; - } - /** - * int64 blockTime = 6; - * @return This builder for chaining. - */ - public Builder clearBlockTime() { - - blockTime_ = 0L; - onChanged(); - return this; - } - - private long txCount_ ; - /** - * int64 txCount = 9; - * @return The txCount. - */ - public long getTxCount() { - return txCount_; - } - /** - * int64 txCount = 9; - * @param value The txCount to set. - * @return This builder for chaining. - */ - public Builder setTxCount(long value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * int64 txCount = 9; - * @return This builder for chaining. - */ - public Builder clearTxCount() { - - txCount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 10; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 10; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 10; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private int difficulty_ ; - /** - * uint32 difficulty = 11; - * @return The difficulty. - */ - public int getDifficulty() { - return difficulty_; - } - /** - * uint32 difficulty = 11; - * @param value The difficulty to set. - * @return This builder for chaining. - */ - public Builder setDifficulty(int value) { - - difficulty_ = value; - onChanged(); - return this; - } - /** - * uint32 difficulty = 11; - * @return This builder for chaining. - */ - public Builder clearDifficulty() { - - difficulty_ = 0; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> signatureBuilder_; - /** - * .Signature signature = 8; - * @return Whether the signature field is set. - */ - public boolean hasSignature() { - return signatureBuilder_ != null || signature_ != null; - } - /** - * .Signature signature = 8; - * @return The signature. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { - if (signatureBuilder_ == null) { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } else { - return signatureBuilder_.getMessage(); - } - } - /** - * .Signature signature = 8; - */ - public Builder setSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - onChanged(); - } else { - signatureBuilder_.setMessage(value); - } - - return this; - } - /** - * .Signature signature = 8; - */ - public Builder setSignature( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { - if (signatureBuilder_ == null) { - signature_ = builderForValue.build(); - onChanged(); - } else { - signatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Signature signature = 8; - */ - public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (signature_ != null) { - signature_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); - } else { - signature_ = value; - } - onChanged(); - } else { - signatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Signature signature = 8; - */ - public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = null; - onChanged(); - } else { - signature_ = null; - signatureBuilder_ = null; - } - - return this; - } - /** - * .Signature signature = 8; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignatureBuilder() { - - onChanged(); - return getSignatureFieldBuilder().getBuilder(); - } - /** - * .Signature signature = 8; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - if (signatureBuilder_ != null) { - return signatureBuilder_.getMessageOrBuilder(); - } else { - return signature_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } - } - /** - * .Signature signature = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> - getSignatureFieldBuilder() { - if (signatureBuilder_ == null) { - signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder>( - getSignature(), - getParentForChildren(), - isClean()); - signature_ = null; - } - return signatureBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Header) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:Header) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser
parser() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + 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; + } - public interface BlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:Block) - com.google.protobuf.MessageOrBuilder { + /** + *
+         *区块头信息
+         * 	 version : 版本信息
+         *	 parentHash :父哈希
+         * 	 txHash : 交易根哈希
+         *	 stateHash :状态哈希
+         * 	 height : 区块高度
+         *	 blockTime :区块产生时的时标
+         * 	 txCount : 区块上所有交易个数
+         *	 difficulty :区块难度系数,
+         *	 signature :交易签名
+         * 
+ * + * Protobuf type {@code Header} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Header) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_descriptor; + } - /** - * int64 version = 1; - * @return The version. - */ - long getVersion(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder.class); + } - /** - * bytes parentHash = 2; - * @return The parentHash. - */ - com.google.protobuf.ByteString getParentHash(); + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * bytes txHash = 3; - * @return The txHash. - */ - com.google.protobuf.ByteString getTxHash(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * bytes stateHash = 4; - * @return The stateHash. - */ - com.google.protobuf.ByteString getStateHash(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * int64 height = 5; - * @return The height. - */ - long getHeight(); + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0L; - /** - * int64 blockTime = 6; - * @return The blockTime. - */ - long getBlockTime(); + parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * uint32 difficulty = 11; - * @return The difficulty. - */ - int getDifficulty(); + txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes mainHash = 12; - * @return The mainHash. - */ - com.google.protobuf.ByteString getMainHash(); + stateHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * int64 mainHeight = 13; - * @return The mainHeight. - */ - long getMainHeight(); + height_ = 0L; - /** - * .Signature signature = 8; - * @return Whether the signature field is set. - */ - boolean hasSignature(); - /** - * .Signature signature = 8; - * @return The signature. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature(); - /** - * .Signature signature = 8; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder(); + blockTime_ = 0L; - /** - * repeated .Transaction txs = 7; - */ - java.util.List - getTxsList(); - /** - * repeated .Transaction txs = 7; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); - /** - * repeated .Transaction txs = 7; - */ - int getTxsCount(); - /** - * repeated .Transaction txs = 7; - */ - java.util.List - getTxsOrBuilderList(); - /** - * repeated .Transaction txs = 7; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index); - } - /** - *
-   *  参考Header解释
-   * mainHash 平行链上使用的字段,代表这个区块的主链hash
-   * 
- * - * Protobuf type {@code Block} - */ - public static final class Block extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Block) - BlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use Block.newBuilder() to construct. - private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Block() { - parentHash_ = com.google.protobuf.ByteString.EMPTY; - txHash_ = com.google.protobuf.ByteString.EMPTY; - stateHash_ = com.google.protobuf.ByteString.EMPTY; - mainHash_ = com.google.protobuf.ByteString.EMPTY; - txs_ = java.util.Collections.emptyList(); - } + txCount_ = 0L; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Block(); - } + hash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Block( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt64(); - break; - } - case 18: { - - parentHash_ = input.readBytes(); - break; - } - case 26: { - - txHash_ = input.readBytes(); - break; - } - case 34: { - - stateHash_ = input.readBytes(); - break; - } - case 40: { - - height_ = input.readInt64(); - break; - } - case 48: { - - blockTime_ = input.readInt64(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry)); - break; - } - case 66: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null; - if (signature_ != null) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - - break; - } - case 88: { - - difficulty_ = input.readUInt32(); - break; - } - case 98: { - - mainHash_ = input.readBytes(); - break; - } - case 104: { - - mainHeight_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_descriptor; - } + difficulty_ = 0; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder.class); - } + if (signatureBuilder_ == null) { + signature_ = null; + } else { + signature_ = null; + signatureBuilder_ = null; + } + return this; + } - public static final int VERSION_FIELD_NUMBER = 1; - private long version_; - /** - * int64 version = 1; - * @return The version. - */ - public long getVersion() { - return version_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Header_descriptor; + } - public static final int PARENTHASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString parentHash_; - /** - * bytes parentHash = 2; - * @return The parentHash. - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance(); + } - public static final int TXHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 3; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int STATEHASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString stateHash_; - /** - * bytes stateHash = 4; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header( + this); + result.version_ = version_; + result.parentHash_ = parentHash_; + result.txHash_ = txHash_; + result.stateHash_ = stateHash_; + result.height_ = height_; + result.blockTime_ = blockTime_; + result.txCount_ = txCount_; + result.hash_ = hash_; + result.difficulty_ = difficulty_; + if (signatureBuilder_ == null) { + result.signature_ = signature_; + } else { + result.signature_ = signatureBuilder_.build(); + } + onBuilt(); + return result; + } - public static final int HEIGHT_FIELD_NUMBER = 5; - private long height_; - /** - * int64 height = 5; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int BLOCKTIME_FIELD_NUMBER = 6; - private long blockTime_; - /** - * int64 blockTime = 6; - * @return The blockTime. - */ - public long getBlockTime() { - return blockTime_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private int difficulty_; - /** - * uint32 difficulty = 11; - * @return The difficulty. - */ - public int getDifficulty() { - return difficulty_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int MAINHASH_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString mainHash_; - /** - * bytes mainHash = 12; - * @return The mainHash. - */ - public com.google.protobuf.ByteString getMainHash() { - return mainHash_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int MAINHEIGHT_FIELD_NUMBER = 13; - private long mainHeight_; - /** - * int64 mainHeight = 13; - * @return The mainHeight. - */ - public long getMainHeight() { - return mainHeight_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int SIGNATURE_FIELD_NUMBER = 8; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; - /** - * .Signature signature = 8; - * @return Whether the signature field is set. - */ - public boolean hasSignature() { - return signature_ != null; - } - /** - * .Signature signature = 8; - * @return The signature. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } - /** - * .Signature signature = 8; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - return getSignature(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int TXS_FIELD_NUMBER = 7; - private java.util.List txs_; - /** - * repeated .Transaction txs = 7; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .Transaction txs = 7; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .Transaction txs = 7; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .Transaction txs = 7; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .Transaction txs = 7; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header) other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()) + return this; + if (other.getVersion() != 0L) { + setVersion(other.getVersion()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { + setStateHash(other.getStateHash()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getBlockTime() != 0L) { + setBlockTime(other.getBlockTime()); + } + if (other.getTxCount() != 0L) { + setTxCount(other.getTxCount()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getDifficulty() != 0) { + setDifficulty(other.getDifficulty()); + } + if (other.hasSignature()) { + mergeSignature(other.getSignature()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0L) { - output.writeInt64(1, version_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(2, parentHash_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(3, txHash_); - } - if (!stateHash_.isEmpty()) { - output.writeBytes(4, stateHash_); - } - if (height_ != 0L) { - output.writeInt64(5, height_); - } - if (blockTime_ != 0L) { - output.writeInt64(6, blockTime_); - } - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(7, txs_.get(i)); - } - if (signature_ != null) { - output.writeMessage(8, getSignature()); - } - if (difficulty_ != 0) { - output.writeUInt32(11, difficulty_); - } - if (!mainHash_.isEmpty()) { - output.writeBytes(12, mainHash_); - } - if (mainHeight_ != 0L) { - output.writeInt64(13, mainHeight_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, version_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, parentHash_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, txHash_); - } - if (!stateHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, stateHash_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, height_); - } - if (blockTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, blockTime_); - } - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, txs_.get(i)); - } - if (signature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSignature()); - } - if (difficulty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, difficulty_); - } - if (!mainHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, mainHash_); - } - if (mainHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, mainHeight_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private long version_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!getParentHash() - .equals(other.getParentHash())) return false; - if (!getTxHash() - .equals(other.getTxHash())) return false; - if (!getStateHash() - .equals(other.getStateHash())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getBlockTime() - != other.getBlockTime()) return false; - if (getDifficulty() - != other.getDifficulty()) return false; - if (!getMainHash() - .equals(other.getMainHash())) return false; - if (getMainHeight() - != other.getMainHeight()) return false; - if (hasSignature() != other.hasSignature()) return false; - if (hasSignature()) { - if (!getSignature() - .equals(other.getSignature())) return false; - } - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 version = 1; + * + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + STATEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStateHash().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockTime()); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty(); - hash = (37 * hash) + MAINHASH_FIELD_NUMBER; - hash = (53 * hash) + getMainHash().hashCode(); - hash = (37 * hash) + MAINHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMainHeight()); - if (hasSignature()) { - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - } - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int64 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(long value) { + + version_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int64 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + version_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *  参考Header解释
-     * mainHash 平行链上使用的字段,代表这个区块的主链hash
-     * 
- * - * Protobuf type {@code Block} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Block) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - stateHash_ = com.google.protobuf.ByteString.EMPTY; - - height_ = 0L; - - blockTime_ = 0L; - - difficulty_ = 0; - - mainHash_ = com.google.protobuf.ByteString.EMPTY; - - mainHeight_ = 0L; - - if (signatureBuilder_ == null) { - signature_ = null; - } else { - signature_ = null; - signatureBuilder_ = null; - } - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; - result.parentHash_ = parentHash_; - result.txHash_ = txHash_; - result.stateHash_ = stateHash_; - result.height_ = height_; - result.blockTime_ = blockTime_; - result.difficulty_ = difficulty_; - result.mainHash_ = mainHash_; - result.mainHeight_ = mainHeight_; - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance()) return this; - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { - setStateHash(other.getStateHash()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getBlockTime() != 0L) { - setBlockTime(other.getBlockTime()); - } - if (other.getDifficulty() != 0) { - setDifficulty(other.getDifficulty()); - } - if (other.getMainHash() != com.google.protobuf.ByteString.EMPTY) { - setMainHash(other.getMainHash()); - } - if (other.getMainHeight() != 0L) { - setMainHeight(other.getMainHeight()); - } - if (other.hasSignature()) { - mergeSignature(other.getSignature()); - } - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long version_ ; - /** - * int64 version = 1; - * @return The version. - */ - public long getVersion() { - return version_; - } - /** - * int64 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int64 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes parentHash = 2; - * @return The parentHash. - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** - * bytes parentHash = 2; - * @param value The parentHash to set. - * @return This builder for chaining. - */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * bytes parentHash = 2; - * @return This builder for chaining. - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 3; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 3; - * @param value The txHash to set. - * @return This builder for chaining. - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 3; - * @return This builder for chaining. - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateHash = 4; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } - /** - * bytes stateHash = 4; - * @param value The stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateHash_ = value; - onChanged(); - return this; - } - /** - * bytes stateHash = 4; - * @return This builder for chaining. - */ - public Builder clearStateHash() { - - stateHash_ = getDefaultInstance().getStateHash(); - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 5; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 5; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 5; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long blockTime_ ; - /** - * int64 blockTime = 6; - * @return The blockTime. - */ - public long getBlockTime() { - return blockTime_; - } - /** - * int64 blockTime = 6; - * @param value The blockTime to set. - * @return This builder for chaining. - */ - public Builder setBlockTime(long value) { - - blockTime_ = value; - onChanged(); - return this; - } - /** - * int64 blockTime = 6; - * @return This builder for chaining. - */ - public Builder clearBlockTime() { - - blockTime_ = 0L; - onChanged(); - return this; - } - - private int difficulty_ ; - /** - * uint32 difficulty = 11; - * @return The difficulty. - */ - public int getDifficulty() { - return difficulty_; - } - /** - * uint32 difficulty = 11; - * @param value The difficulty to set. - * @return This builder for chaining. - */ - public Builder setDifficulty(int value) { - - difficulty_ = value; - onChanged(); - return this; - } - /** - * uint32 difficulty = 11; - * @return This builder for chaining. - */ - public Builder clearDifficulty() { - - difficulty_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString mainHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes mainHash = 12; - * @return The mainHash. - */ - public com.google.protobuf.ByteString getMainHash() { - return mainHash_; - } - /** - * bytes mainHash = 12; - * @param value The mainHash to set. - * @return This builder for chaining. - */ - public Builder setMainHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - mainHash_ = value; - onChanged(); - return this; - } - /** - * bytes mainHash = 12; - * @return This builder for chaining. - */ - public Builder clearMainHash() { - - mainHash_ = getDefaultInstance().getMainHash(); - onChanged(); - return this; - } - - private long mainHeight_ ; - /** - * int64 mainHeight = 13; - * @return The mainHeight. - */ - public long getMainHeight() { - return mainHeight_; - } - /** - * int64 mainHeight = 13; - * @param value The mainHeight to set. - * @return This builder for chaining. - */ - public Builder setMainHeight(long value) { - - mainHeight_ = value; - onChanged(); - return this; - } - /** - * int64 mainHeight = 13; - * @return This builder for chaining. - */ - public Builder clearMainHeight() { - - mainHeight_ = 0L; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> signatureBuilder_; - /** - * .Signature signature = 8; - * @return Whether the signature field is set. - */ - public boolean hasSignature() { - return signatureBuilder_ != null || signature_ != null; - } - /** - * .Signature signature = 8; - * @return The signature. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { - if (signatureBuilder_ == null) { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } else { - return signatureBuilder_.getMessage(); - } - } - /** - * .Signature signature = 8; - */ - public Builder setSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - onChanged(); - } else { - signatureBuilder_.setMessage(value); - } - - return this; - } - /** - * .Signature signature = 8; - */ - public Builder setSignature( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { - if (signatureBuilder_ == null) { - signature_ = builderForValue.build(); - onChanged(); - } else { - signatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Signature signature = 8; - */ - public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (signature_ != null) { - signature_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); - } else { - signature_ = value; - } - onChanged(); - } else { - signatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Signature signature = 8; - */ - public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = null; - onChanged(); - } else { - signature_ = null; - signatureBuilder_ = null; - } - - return this; - } - /** - * .Signature signature = 8; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignatureBuilder() { - - onChanged(); - return getSignatureFieldBuilder().getBuilder(); - } - /** - * .Signature signature = 8; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - if (signatureBuilder_ != null) { - return signatureBuilder_.getMessageOrBuilder(); - } else { - return signature_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } - } - /** - * .Signature signature = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> - getSignatureFieldBuilder() { - if (signatureBuilder_ == null) { - signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder>( - getSignature(), - getParentForChildren(), - isClean()); - signature_ = null; - } - return signatureBuilder_; - } - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txsBuilder_; - - /** - * repeated .Transaction txs = 7; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .Transaction txs = 7; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .Transaction txs = 7; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .Transaction txs = 7; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Transaction txs = 7; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .Transaction txs = 7; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Transaction txs = 7; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .Transaction txs = 7; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 7; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 7; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Block) - } + private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - // @@protoc_insertion_point(class_scope:Block) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block(); - } + /** + * bytes parentHash = 2; + * + * @return The parentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * bytes parentHash = 2; + * + * @param value + * The parentHash to set. + * + * @return This builder for chaining. + */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Block(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * bytes parentHash = 2; + * + * @return This builder for chaining. + */ + public Builder clearParentHash() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * bytes txHash = 3; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public interface BlocksOrBuilder extends - // @@protoc_insertion_point(interface_extends:Blocks) - com.google.protobuf.MessageOrBuilder { + /** + * bytes txHash = 3; + * + * @param value + * The txHash to set. + * + * @return This builder for chaining. + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } - /** - * repeated .Block items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .Block items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getItems(int index); - /** - * repeated .Block items = 1; - */ - int getItemsCount(); - /** - * repeated .Block items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .Block items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getItemsOrBuilder( - int index); - } - /** - * Protobuf type {@code Blocks} - */ - public static final class Blocks extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Blocks) - BlocksOrBuilder { - private static final long serialVersionUID = 0L; - // Use Blocks.newBuilder() to construct. - private Blocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Blocks() { - items_ = java.util.Collections.emptyList(); - } + /** + * bytes txHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearTxHash() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Blocks(); - } + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Blocks( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_descriptor; - } + private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.Builder.class); - } + /** + * bytes stateHash = 4; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .Block items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .Block items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .Block items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .Block items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getItems(int index) { - return items_.get(index); - } - /** - * repeated .Block items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + /** + * bytes stateHash = 4; + * + * @param value + * The stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateHash_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * bytes stateHash = 4; + * + * @return This builder for chaining. + */ + public Builder clearStateHash() { - memoizedIsInitialized = 1; - return true; - } + stateHash_ = getDefaultInstance().getStateHash(); + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + private long height_; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int64 height = 5; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 height = 5; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int64 height = 5; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + height_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private long blockTime_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Blocks} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Blocks) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlocksOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> itemsBuilder_; - - /** - * repeated .Block items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .Block items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .Block items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .Block items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Block items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .Block items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Block items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .Block items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance()); - } - /** - * repeated .Block items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance()); - } - /** - * repeated .Block items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Blocks) - } + /** + * int64 blockTime = 6; + * + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } - // @@protoc_insertion_point(class_scope:Blocks) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks(); - } + /** + * int64 blockTime = 6; + * + * @param value + * The blockTime to set. + * + * @return This builder for chaining. + */ + public Builder setBlockTime(long value) { + + blockTime_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * int64 blockTime = 6; + * + * @return This builder for chaining. + */ + public Builder clearBlockTime() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Blocks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Blocks(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + blockTime_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private long txCount_; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * int64 txCount = 9; + * + * @return The txCount. + */ + @java.lang.Override + public long getTxCount() { + return txCount_; + } - } + /** + * int64 txCount = 9; + * + * @param value + * The txCount to set. + * + * @return This builder for chaining. + */ + public Builder setTxCount(long value) { + + txCount_ = value; + onChanged(); + return this; + } - public interface BlockSeqOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockSeq) - com.google.protobuf.MessageOrBuilder { + /** + * int64 txCount = 9; + * + * @return This builder for chaining. + */ + public Builder clearTxCount() { - /** - * int64 num = 1; - * @return The num. - */ - long getNum(); + txCount_ = 0L; + onChanged(); + return this; + } - /** - * .BlockSequence seq = 2; - * @return Whether the seq field is set. - */ - boolean hasSeq(); - /** - * .BlockSequence seq = 2; - * @return The seq. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq(); - /** - * .BlockSequence seq = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder(); + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * .BlockDetail detail = 3; - * @return Whether the detail field is set. - */ - boolean hasDetail(); - /** - * .BlockDetail detail = 3; - * @return The detail. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDetail(); - /** - * .BlockDetail detail = 3; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getDetailOrBuilder(); - } - /** - * Protobuf type {@code BlockSeq} - */ - public static final class BlockSeq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockSeq) - BlockSeqOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockSeq.newBuilder() to construct. - private BlockSeq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockSeq() { - } + /** + * bytes hash = 10; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockSeq(); - } + /** + * bytes hash = 10; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockSeq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - num_ = input.readInt64(); - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder subBuilder = null; - if (seq_ != null) { - subBuilder = seq_.toBuilder(); - } - seq_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(seq_); - seq_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder subBuilder = null; - if (detail_ != null) { - subBuilder = detail_.toBuilder(); - } - detail_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detail_); - detail_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_descriptor; - } + /** + * bytes hash = 10; + * + * @return This builder for chaining. + */ + public Builder clearHash() { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder.class); - } + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } - public static final int NUM_FIELD_NUMBER = 1; - private long num_; - /** - * int64 num = 1; - * @return The num. - */ - public long getNum() { - return num_; - } + private int difficulty_; - public static final int SEQ_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; - /** - * .BlockSequence seq = 2; - * @return Whether the seq field is set. - */ - public boolean hasSeq() { - return seq_ != null; - } - /** - * .BlockSequence seq = 2; - * @return The seq. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { - return seq_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; - } - /** - * .BlockSequence seq = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { - return getSeq(); - } + /** + * uint32 difficulty = 11; + * + * @return The difficulty. + */ + @java.lang.Override + public int getDifficulty() { + return difficulty_; + } - public static final int DETAIL_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail detail_; - /** - * .BlockDetail detail = 3; - * @return Whether the detail field is set. - */ - public boolean hasDetail() { - return detail_ != null; - } - /** - * .BlockDetail detail = 3; - * @return The detail. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDetail() { - return detail_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() : detail_; - } - /** - * .BlockDetail detail = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getDetailOrBuilder() { - return getDetail(); - } + /** + * uint32 difficulty = 11; + * + * @param value + * The difficulty to set. + * + * @return This builder for chaining. + */ + public Builder setDifficulty(int value) { + + difficulty_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * uint32 difficulty = 11; + * + * @return This builder for chaining. + */ + public Builder clearDifficulty() { - memoizedIsInitialized = 1; - return true; - } + difficulty_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (num_ != 0L) { - output.writeInt64(1, num_); - } - if (seq_ != null) { - output.writeMessage(2, getSeq()); - } - if (detail_ != null) { - output.writeMessage(3, getDetail()); - } - unknownFields.writeTo(output); - } + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; + private com.google.protobuf.SingleFieldBuilderV3 signatureBuilder_; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (num_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, num_); - } - if (seq_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSeq()); - } - if (detail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDetail()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * .Signature signature = 8; + * + * @return Whether the signature field is set. + */ + public boolean hasSignature() { + return signatureBuilder_ != null || signature_ != null; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq) obj; - - if (getNum() - != other.getNum()) return false; - if (hasSeq() != other.hasSeq()) return false; - if (hasSeq()) { - if (!getSeq() - .equals(other.getSeq())) return false; - } - if (hasDetail() != other.hasDetail()) return false; - if (hasDetail()) { - if (!getDetail() - .equals(other.getDetail())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * .Signature signature = 8; + * + * @return The signature. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { + if (signatureBuilder_ == null) { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } else { + return signatureBuilder_.getMessage(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNum()); - if (hasSeq()) { - hash = (37 * hash) + SEQ_FIELD_NUMBER; - hash = (53 * hash) + getSeq().hashCode(); - } - if (hasDetail()) { - hash = (37 * hash) + DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getDetail().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * .Signature signature = 8; + */ + public Builder setSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + signature_ = value; + onChanged(); + } else { + signatureBuilder_.setMessage(value); + } + + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * .Signature signature = 8; + */ + public Builder setSignature( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { + if (signatureBuilder_ == null) { + signature_ = builderForValue.build(); + onChanged(); + } else { + signatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * .Signature signature = 8; + */ + public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (signature_ != null) { + signature_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature + .newBuilder(signature_).mergeFrom(value).buildPartial(); + } else { + signature_ = value; + } + onChanged(); + } else { + signatureBuilder_.mergeFrom(value); + } + + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code BlockSeq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockSeq) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - num_ = 0L; - - if (seqBuilder_ == null) { - seq_ = null; - } else { - seq_ = null; - seqBuilder_ = null; - } - if (detailBuilder_ == null) { - detail_ = null; - } else { - detail_ = null; - detailBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq(this); - result.num_ = num_; - if (seqBuilder_ == null) { - result.seq_ = seq_; - } else { - result.seq_ = seqBuilder_.build(); - } - if (detailBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = detailBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance()) return this; - if (other.getNum() != 0L) { - setNum(other.getNum()); - } - if (other.hasSeq()) { - mergeSeq(other.getSeq()); - } - if (other.hasDetail()) { - mergeDetail(other.getDetail()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long num_ ; - /** - * int64 num = 1; - * @return The num. - */ - public long getNum() { - return num_; - } - /** - * int64 num = 1; - * @param value The num to set. - * @return This builder for chaining. - */ - public Builder setNum(long value) { - - num_ = value; - onChanged(); - return this; - } - /** - * int64 num = 1; - * @return This builder for chaining. - */ - public Builder clearNum() { - - num_ = 0L; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder> seqBuilder_; - /** - * .BlockSequence seq = 2; - * @return Whether the seq field is set. - */ - public boolean hasSeq() { - return seqBuilder_ != null || seq_ != null; - } - /** - * .BlockSequence seq = 2; - * @return The seq. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { - if (seqBuilder_ == null) { - return seq_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; - } else { - return seqBuilder_.getMessage(); - } - } - /** - * .BlockSequence seq = 2; - */ - public Builder setSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { - if (seqBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - seq_ = value; - onChanged(); - } else { - seqBuilder_.setMessage(value); - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public Builder setSeq( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { - if (seqBuilder_ == null) { - seq_ = builderForValue.build(); - onChanged(); - } else { - seqBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public Builder mergeSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { - if (seqBuilder_ == null) { - if (seq_ != null) { - seq_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.newBuilder(seq_).mergeFrom(value).buildPartial(); - } else { - seq_ = value; - } - onChanged(); - } else { - seqBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public Builder clearSeq() { - if (seqBuilder_ == null) { - seq_ = null; - onChanged(); - } else { - seq_ = null; - seqBuilder_ = null; - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder getSeqBuilder() { - - onChanged(); - return getSeqFieldBuilder().getBuilder(); - } - /** - * .BlockSequence seq = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { - if (seqBuilder_ != null) { - return seqBuilder_.getMessageOrBuilder(); - } else { - return seq_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; - } - } - /** - * .BlockSequence seq = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder> - getSeqFieldBuilder() { - if (seqBuilder_ == null) { - seqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder>( - getSeq(), - getParentForChildren(), - isClean()); - seq_ = null; - } - return seqBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail detail_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder> detailBuilder_; - /** - * .BlockDetail detail = 3; - * @return Whether the detail field is set. - */ - public boolean hasDetail() { - return detailBuilder_ != null || detail_ != null; - } - /** - * .BlockDetail detail = 3; - * @return The detail. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDetail() { - if (detailBuilder_ == null) { - return detail_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() : detail_; - } else { - return detailBuilder_.getMessage(); - } - } - /** - * .BlockDetail detail = 3; - */ - public Builder setDetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { - if (detailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - detailBuilder_.setMessage(value); - } - - return this; - } - /** - * .BlockDetail detail = 3; - */ - public Builder setDetail( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { - if (detailBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - detailBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .BlockDetail detail = 3; - */ - public Builder mergeDetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { - if (detailBuilder_ == null) { - if (detail_ != null) { - detail_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.newBuilder(detail_).mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - detailBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .BlockDetail detail = 3; - */ - public Builder clearDetail() { - if (detailBuilder_ == null) { - detail_ = null; - onChanged(); - } else { - detail_ = null; - detailBuilder_ = null; - } - - return this; - } - /** - * .BlockDetail detail = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder getDetailBuilder() { - - onChanged(); - return getDetailFieldBuilder().getBuilder(); - } - /** - * .BlockDetail detail = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getDetailOrBuilder() { - if (detailBuilder_ != null) { - return detailBuilder_.getMessageOrBuilder(); - } else { - return detail_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() : detail_; - } - } - /** - * .BlockDetail detail = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder> - getDetailFieldBuilder() { - if (detailBuilder_ == null) { - detailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder>( - getDetail(), - getParentForChildren(), - isClean()); - detail_ = null; - } - return detailBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockSeq) - } + /** + * .Signature signature = 8; + */ + public Builder clearSignature() { + if (signatureBuilder_ == null) { + signature_ = null; + onChanged(); + } else { + signature_ = null; + signatureBuilder_ = null; + } + + return this; + } - // @@protoc_insertion_point(class_scope:BlockSeq) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq(); - } + /** + * .Signature signature = 8; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignatureBuilder() { - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + onChanged(); + return getSignatureFieldBuilder().getBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockSeq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockSeq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .Signature signature = 8; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + if (signatureBuilder_ != null) { + return signatureBuilder_.getMessageOrBuilder(); + } else { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .Signature signature = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3 getSignatureFieldBuilder() { + if (signatureBuilder_ == null) { + signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getSignature(), getParentForChildren(), isClean()); + signature_ = null; + } + return signatureBuilder_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public interface BlockSeqsOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockSeqs) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:Header) + } - /** - * repeated .BlockSeq seqs = 1; - */ - java.util.List - getSeqsList(); - /** - * repeated .BlockSeq seqs = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getSeqs(int index); - /** - * repeated .BlockSeq seqs = 1; - */ - int getSeqsCount(); - /** - * repeated .BlockSeq seqs = 1; - */ - java.util.List - getSeqsOrBuilderList(); - /** - * repeated .BlockSeq seqs = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder getSeqsOrBuilder( - int index); - } - /** - * Protobuf type {@code BlockSeqs} - */ - public static final class BlockSeqs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockSeqs) - BlockSeqsOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockSeqs.newBuilder() to construct. - private BlockSeqs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockSeqs() { - seqs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockSeqs(); - } + // @@protoc_insertion_point(class_scope:Header) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockSeqs( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - seqs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - seqs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - seqs_ = java.util.Collections.unmodifiableList(seqs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.Builder.class); + private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser
parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:Block) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 version = 1; + * + * @return The version. + */ + long getVersion(); + + /** + * bytes parentHash = 2; + * + * @return The parentHash. + */ + com.google.protobuf.ByteString getParentHash(); + + /** + * bytes txHash = 3; + * + * @return The txHash. + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * bytes stateHash = 4; + * + * @return The stateHash. + */ + com.google.protobuf.ByteString getStateHash(); + + /** + * int64 height = 5; + * + * @return The height. + */ + long getHeight(); + + /** + * int64 blockTime = 6; + * + * @return The blockTime. + */ + long getBlockTime(); + + /** + * uint32 difficulty = 11; + * + * @return The difficulty. + */ + int getDifficulty(); + + /** + * bytes mainHash = 12; + * + * @return The mainHash. + */ + com.google.protobuf.ByteString getMainHash(); + + /** + * int64 mainHeight = 13; + * + * @return The mainHeight. + */ + long getMainHeight(); + + /** + * .Signature signature = 8; + * + * @return Whether the signature field is set. + */ + boolean hasSignature(); + + /** + * .Signature signature = 8; + * + * @return The signature. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature(); + + /** + * .Signature signature = 8; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder(); + + /** + * repeated .Transaction txs = 7; + */ + java.util.List getTxsList(); + + /** + * repeated .Transaction txs = 7; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); + + /** + * repeated .Transaction txs = 7; + */ + int getTxsCount(); + + /** + * repeated .Transaction txs = 7; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .Transaction txs = 7; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder(int index); } - public static final int SEQS_FIELD_NUMBER = 1; - private java.util.List seqs_; - /** - * repeated .BlockSeq seqs = 1; - */ - public java.util.List getSeqsList() { - return seqs_; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public java.util.List - getSeqsOrBuilderList() { - return seqs_; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public int getSeqsCount() { - return seqs_.size(); - } - /** - * repeated .BlockSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getSeqs(int index) { - return seqs_.get(index); - } /** - * repeated .BlockSeq seqs = 1; + *
+     *  参考Header解释
+     * mainHash 平行链上使用的字段,代表这个区块的主链hash
+     * 
+ * + * Protobuf type {@code Block} */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder getSeqsOrBuilder( - int index) { - return seqs_.get(index); - } + public static final class Block extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Block) + BlockOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use Block.newBuilder() to construct. + private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private Block() { + parentHash_ = com.google.protobuf.ByteString.EMPTY; + txHash_ = com.google.protobuf.ByteString.EMPTY; + stateHash_ = com.google.protobuf.ByteString.EMPTY; + mainHash_ = com.google.protobuf.ByteString.EMPTY; + txs_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < seqs_.size(); i++) { - output.writeMessage(1, seqs_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Block(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < seqs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, seqs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) obj; - - if (!getSeqsList() - .equals(other.getSeqsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private Block(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt64(); + break; + } + case 18: { + + parentHash_ = input.readBytes(); + break; + } + case 26: { + + txHash_ = input.readBytes(); + break; + } + case 34: { + + stateHash_ = input.readBytes(); + break; + } + case 40: { + + height_ = input.readInt64(); + break; + } + case 48: { + + blockTime_ = input.readInt64(); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry)); + break; + } + case 66: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null; + if (signature_ != null) { + subBuilder = signature_.toBuilder(); + } + signature_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signature_); + signature_ = subBuilder.buildPartial(); + } + + break; + } + case 88: { + + difficulty_ = input.readUInt32(); + break; + } + case 98: { + + mainHash_ = input.readBytes(); + break; + } + case 104: { + + mainHeight_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSeqsCount() > 0) { - hash = (37 * hash) + SEQS_FIELD_NUMBER; - hash = (53 * hash) + getSeqsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int VERSION_FIELD_NUMBER = 1; + private long version_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code BlockSeqs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockSeqs) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSeqsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (seqsBuilder_ == null) { - seqs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - seqsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs(this); - int from_bitField0_ = bitField0_; - if (seqsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - seqs_ = java.util.Collections.unmodifiableList(seqs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.seqs_ = seqs_; - } else { - result.seqs_ = seqsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.getDefaultInstance()) return this; - if (seqsBuilder_ == null) { - if (!other.seqs_.isEmpty()) { - if (seqs_.isEmpty()) { - seqs_ = other.seqs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSeqsIsMutable(); - seqs_.addAll(other.seqs_); - } - onChanged(); - } - } else { - if (!other.seqs_.isEmpty()) { - if (seqsBuilder_.isEmpty()) { - seqsBuilder_.dispose(); - seqsBuilder_ = null; - seqs_ = other.seqs_; - bitField0_ = (bitField0_ & ~0x00000001); - seqsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSeqsFieldBuilder() : null; - } else { - seqsBuilder_.addAllMessages(other.seqs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List seqs_ = - java.util.Collections.emptyList(); - private void ensureSeqsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - seqs_ = new java.util.ArrayList(seqs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder> seqsBuilder_; - - /** - * repeated .BlockSeq seqs = 1; - */ - public java.util.List getSeqsList() { - if (seqsBuilder_ == null) { - return java.util.Collections.unmodifiableList(seqs_); - } else { - return seqsBuilder_.getMessageList(); - } - } - /** - * repeated .BlockSeq seqs = 1; - */ - public int getSeqsCount() { - if (seqsBuilder_ == null) { - return seqs_.size(); - } else { - return seqsBuilder_.getCount(); - } - } - /** - * repeated .BlockSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getSeqs(int index) { - if (seqsBuilder_ == null) { - return seqs_.get(index); - } else { - return seqsBuilder_.getMessage(index); - } - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder setSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq value) { - if (seqsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeqsIsMutable(); - seqs_.set(index, value); - onChanged(); - } else { - seqsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder setSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder builderForValue) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.set(index, builderForValue.build()); - onChanged(); - } else { - seqsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder addSeqs(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq value) { - if (seqsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeqsIsMutable(); - seqs_.add(value); - onChanged(); - } else { - seqsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder addSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq value) { - if (seqsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeqsIsMutable(); - seqs_.add(index, value); - onChanged(); - } else { - seqsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder addSeqs( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder builderForValue) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.add(builderForValue.build()); - onChanged(); - } else { - seqsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder addSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder builderForValue) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.add(index, builderForValue.build()); - onChanged(); - } else { - seqsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder addAllSeqs( - java.lang.Iterable values) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, seqs_); - onChanged(); - } else { - seqsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder clearSeqs() { - if (seqsBuilder_ == null) { - seqs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - seqsBuilder_.clear(); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public Builder removeSeqs(int index) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.remove(index); - onChanged(); - } else { - seqsBuilder_.remove(index); - } - return this; - } - /** - * repeated .BlockSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder getSeqsBuilder( - int index) { - return getSeqsFieldBuilder().getBuilder(index); - } - /** - * repeated .BlockSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder getSeqsOrBuilder( - int index) { - if (seqsBuilder_ == null) { - return seqs_.get(index); } else { - return seqsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .BlockSeq seqs = 1; - */ - public java.util.List - getSeqsOrBuilderList() { - if (seqsBuilder_ != null) { - return seqsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(seqs_); - } - } - /** - * repeated .BlockSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder addSeqsBuilder() { - return getSeqsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance()); - } - /** - * repeated .BlockSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder addSeqsBuilder( - int index) { - return getSeqsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance()); - } - /** - * repeated .BlockSeq seqs = 1; - */ - public java.util.List - getSeqsBuilderList() { - return getSeqsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder> - getSeqsFieldBuilder() { - if (seqsBuilder_ == null) { - seqsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder>( - seqs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - seqs_ = null; - } - return seqsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockSeqs) - } + /** + * int64 version = 1; + * + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } - // @@protoc_insertion_point(class_scope:BlockSeqs) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs(); - } + public static final int PARENTHASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString parentHash_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * bytes parentHash = 2; + * + * @return The parentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockSeqs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockSeqs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int TXHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString txHash_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * bytes txHash = 3; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + public static final int STATEHASH_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString stateHash_; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bytes stateHash = 4; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } + + public static final int HEIGHT_FIELD_NUMBER = 5; + private long height_; + + /** + * int64 height = 5; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int BLOCKTIME_FIELD_NUMBER = 6; + private long blockTime_; + + /** + * int64 blockTime = 6; + * + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } - } + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private int difficulty_; + + /** + * uint32 difficulty = 11; + * + * @return The difficulty. + */ + @java.lang.Override + public int getDifficulty() { + return difficulty_; + } + + public static final int MAINHASH_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString mainHash_; + + /** + * bytes mainHash = 12; + * + * @return The mainHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainHash() { + return mainHash_; + } + + public static final int MAINHEIGHT_FIELD_NUMBER = 13; + private long mainHeight_; + + /** + * int64 mainHeight = 13; + * + * @return The mainHeight. + */ + @java.lang.Override + public long getMainHeight() { + return mainHeight_; + } + + public static final int SIGNATURE_FIELD_NUMBER = 8; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; + + /** + * .Signature signature = 8; + * + * @return Whether the signature field is set. + */ + @java.lang.Override + public boolean hasSignature() { + return signature_ != null; + } + + /** + * .Signature signature = 8; + * + * @return The signature. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } + + /** + * .Signature signature = 8; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + return getSignature(); + } + + public static final int TXS_FIELD_NUMBER = 7; + private java.util.List txs_; + + /** + * repeated .Transaction txs = 7; + */ + @java.lang.Override + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .Transaction txs = 7; + */ + @java.lang.Override + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .Transaction txs = 7; + */ + @java.lang.Override + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .Transaction txs = 7; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .Transaction txs = 7; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0L) { + output.writeInt64(1, version_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(2, parentHash_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(3, txHash_); + } + if (!stateHash_.isEmpty()) { + output.writeBytes(4, stateHash_); + } + if (height_ != 0L) { + output.writeInt64(5, height_); + } + if (blockTime_ != 0L) { + output.writeInt64(6, blockTime_); + } + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(7, txs_.get(i)); + } + if (signature_ != null) { + output.writeMessage(8, getSignature()); + } + if (difficulty_ != 0) { + output.writeUInt32(11, difficulty_); + } + if (!mainHash_.isEmpty()) { + output.writeBytes(12, mainHash_); + } + if (mainHeight_ != 0L) { + output.writeInt64(13, mainHeight_); + } + unknownFields.writeTo(output); + } - public interface BlockPidOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockPid) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * string pid = 1; - * @return The pid. - */ - java.lang.String getPid(); - /** - * string pid = 1; - * @return The bytes for pid. - */ - com.google.protobuf.ByteString - getPidBytes(); + size = 0; + if (version_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, version_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, parentHash_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, txHash_); + } + if (!stateHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, stateHash_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, height_); + } + if (blockTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, blockTime_); + } + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, txs_.get(i)); + } + if (signature_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSignature()); + } + if (difficulty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(11, difficulty_); + } + if (!mainHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, mainHash_); + } + if (mainHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, mainHeight_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * .Block block = 2; - * @return Whether the block field is set. - */ - boolean hasBlock(); - /** - * .Block block = 2; - * @return The block. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); - /** - * .Block block = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); - } - /** - *
-   *节点ID以及对应的Block
-   * 
- * - * Protobuf type {@code BlockPid} - */ - public static final class BlockPid extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockPid) - BlockPidOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockPid.newBuilder() to construct. - private BlockPid(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockPid() { - pid_ = ""; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) obj; + + if (getVersion() != other.getVersion()) + return false; + if (!getParentHash().equals(other.getParentHash())) + return false; + if (!getTxHash().equals(other.getTxHash())) + return false; + if (!getStateHash().equals(other.getStateHash())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (getBlockTime() != other.getBlockTime()) + return false; + if (getDifficulty() != other.getDifficulty()) + return false; + if (!getMainHash().equals(other.getMainHash())) + return false; + if (getMainHeight() != other.getMainHeight()) + return false; + if (hasSignature() != other.hasSignature()) + return false; + if (hasSignature()) { + if (!getSignature().equals(other.getSignature())) + return false; + } + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockPid(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + STATEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStateHash().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockTime()); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty(); + hash = (37 * hash) + MAINHASH_FIELD_NUMBER; + hash = (53 * hash) + getMainHash().hashCode(); + hash = (37 * hash) + MAINHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMainHeight()); + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockPid( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - pid_ = s; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int PID_FIELD_NUMBER = 1; - private volatile java.lang.Object pid_; - /** - * string pid = 1; - * @return The pid. - */ - public java.lang.String getPid() { - java.lang.Object ref = pid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pid_ = s; - return s; - } - } - /** - * string pid = 1; - * @return The bytes for pid. - */ - public com.google.protobuf.ByteString - getPidBytes() { - java.lang.Object ref = pid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int BLOCK_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - /** - * .Block block = 2; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .Block block = 2; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - /** - * .Block block = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - return getBlock(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pid_); - } - if (block_ != null) { - output.writeMessage(2, getBlock()); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pid_); - } - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBlock()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid) obj; - - if (!getPid() - .equals(other.getPid())) return false; - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + getPid().hashCode(); - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *节点ID以及对应的Block
-     * 
- * - * Protobuf type {@code BlockPid} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockPid) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPidOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - pid_ = ""; - - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid(this); - result.pid_ = pid_; - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.getDefaultInstance()) return this; - if (!other.getPid().isEmpty()) { - pid_ = other.pid_; - onChanged(); - } - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object pid_ = ""; - /** - * string pid = 1; - * @return The pid. - */ - public java.lang.String getPid() { - java.lang.Object ref = pid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string pid = 1; - * @return The bytes for pid. - */ - public com.google.protobuf.ByteString - getPidBytes() { - java.lang.Object ref = pid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string pid = 1; - * @param value The pid to set. - * @return This builder for chaining. - */ - public Builder setPid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pid_ = value; - onChanged(); - return this; - } - /** - * string pid = 1; - * @return This builder for chaining. - */ - public Builder clearPid() { - - pid_ = getDefaultInstance().getPid(); - onChanged(); - return this; - } - /** - * string pid = 1; - * @param value The bytes for pid to set. - * @return This builder for chaining. - */ - public Builder setPidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pid_ = value; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> blockBuilder_; - /** - * .Block block = 2; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .Block block = 2; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .Block block = 2; - */ - public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .Block block = 2; - */ - public Builder setBlock( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Block block = 2; - */ - public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Block block = 2; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .Block block = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .Block block = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - } - /** - * .Block block = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockPid) - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:BlockPid) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockPid parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockPid(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+         *  参考Header解释
+         * mainHash 平行链上使用的字段,代表这个区块的主链hash
+         * 
+ * + * Protobuf type {@code Block} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Block) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder.class); + } - public interface BlockDetailsOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockDetails) - com.google.protobuf.MessageOrBuilder { + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * repeated .BlockDetail items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .BlockDetail items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getItems(int index); - /** - * repeated .BlockDetail items = 1; - */ - int getItemsCount(); - /** - * repeated .BlockDetail items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .BlockDetail items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getItemsOrBuilder( - int index); - } - /** - *
-   * resp
-   * 
- * - * Protobuf type {@code BlockDetails} - */ - public static final class BlockDetails extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockDetails) - BlockDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockDetails.newBuilder() to construct. - private BlockDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockDetails() { - items_ = java.util.Collections.emptyList(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockDetails(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_descriptor; - } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0L; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.Builder.class); - } + parentHash_ = com.google.protobuf.ByteString.EMPTY; - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .BlockDetail items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .BlockDetail items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .BlockDetail items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .BlockDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getItems(int index) { - return items_.get(index); - } - /** - * repeated .BlockDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + txHash_ = com.google.protobuf.ByteString.EMPTY; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + stateHash_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + height_ = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + blockTime_ = 0L; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + difficulty_ = 0; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + mainHash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + mainHeight_ = 0L; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + if (signatureBuilder_ == null) { + signature_ = null; + } else { + signature_ = null; + signatureBuilder_ = null; + } + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txsBuilder_.clear(); + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Block_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * resp
-     * 
- * - * Protobuf type {@code BlockDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockDetails) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder> itemsBuilder_; - - /** - * repeated .BlockDetail items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .BlockDetail items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .BlockDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .BlockDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .BlockDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .BlockDetail items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .BlockDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance()); - } - /** - * repeated .BlockDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance()); - } - /** - * repeated .BlockDetail items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockDetails) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:BlockDetails) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block( + this); + int from_bitField0_ = bitField0_; + result.version_ = version_; + result.parentHash_ = parentHash_; + result.txHash_ = txHash_; + result.stateHash_ = stateHash_; + result.height_ = height_; + result.blockTime_ = blockTime_; + result.difficulty_ = difficulty_; + result.mainHash_ = mainHash_; + result.mainHeight_ = mainHeight_; + if (signatureBuilder_ == null) { + result.signature_ = signature_; + } else { + result.signature_ = signatureBuilder_.build(); + } + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + onBuilt(); + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public interface HeadersOrBuilder extends - // @@protoc_insertion_point(interface_extends:Headers) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * repeated .Header items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .Header items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getItems(int index); - /** - * repeated .Header items = 1; - */ - int getItemsCount(); - /** - * repeated .Header items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .Header items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getItemsOrBuilder( - int index); - } - /** - *
-   * resp
-   * 
- * - * Protobuf type {@code Headers} - */ - public static final class Headers extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Headers) - HeadersOrBuilder { - private static final long serialVersionUID = 0L; - // Use Headers.newBuilder() to construct. - private Headers(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Headers() { - items_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Headers(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Headers( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_descriptor; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance()) + return this; + if (other.getVersion() != 0L) { + setVersion(other.getVersion()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { + setStateHash(other.getStateHash()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getBlockTime() != 0L) { + setBlockTime(other.getBlockTime()); + } + if (other.getDifficulty() != 0) { + setDifficulty(other.getDifficulty()); + } + if (other.getMainHash() != com.google.protobuf.ByteString.EMPTY) { + setMainHash(other.getMainHash()); + } + if (other.getMainHeight() != 0L) { + setMainHeight(other.getMainHeight()); + } + if (other.hasSignature()) { + mergeSignature(other.getSignature()); + } + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .Header items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .Header items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .Header items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .Header items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getItems(int index) { - return items_.get(index); - } - /** - * repeated .Header items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int bitField0_; - memoizedIsInitialized = 1; - return true; - } + private long version_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * int64 version = 1; + * + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int64 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(long value) { + + version_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + version_ = 0L; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * bytes parentHash = 2; + * + * @return The parentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * resp
-     * 
- * - * Protobuf type {@code Headers} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Headers) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> itemsBuilder_; - - /** - * repeated .Header items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .Header items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .Header items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .Header items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Header items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .Header items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Header items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .Header items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); - } - /** - * repeated .Header items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); - } - /** - * repeated .Header items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Headers) - } + /** + * bytes parentHash = 2; + * + * @param value + * The parentHash to set. + * + * @return This builder for chaining. + */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:Headers) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers(); - } + /** + * bytes parentHash = 2; + * + * @return This builder for chaining. + */ + public Builder clearParentHash() { - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getDefaultInstance() { - return DEFAULT_INSTANCE; - } + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Headers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Headers(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * bytes txHash = 3; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bytes txHash = 3; + * + * @param value + * The txHash to set. + * + * @return This builder for chaining. + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } - } + /** + * bytes txHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearTxHash() { - public interface HeadersPidOrBuilder extends - // @@protoc_insertion_point(interface_extends:HeadersPid) - com.google.protobuf.MessageOrBuilder { + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } - /** - * string pid = 1; - * @return The pid. - */ - java.lang.String getPid(); - /** - * string pid = 1; - * @return The bytes for pid. - */ - com.google.protobuf.ByteString - getPidBytes(); + private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * .Headers headers = 2; - * @return Whether the headers field is set. - */ - boolean hasHeaders(); - /** - * .Headers headers = 2; - * @return The headers. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders(); - /** - * .Headers headers = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder getHeadersOrBuilder(); - } - /** - * Protobuf type {@code HeadersPid} - */ - public static final class HeadersPid extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HeadersPid) - HeadersPidOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeadersPid.newBuilder() to construct. - private HeadersPid(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeadersPid() { - pid_ = ""; - } + /** + * bytes stateHash = 4; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HeadersPid(); - } + /** + * bytes stateHash = 4; + * + * @param value + * The stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateHash_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeadersPid( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - pid_ = s; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder subBuilder = null; - if (headers_ != null) { - subBuilder = headers_.toBuilder(); - } - headers_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(headers_); - headers_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_descriptor; - } + /** + * bytes stateHash = 4; + * + * @return This builder for chaining. + */ + public Builder clearStateHash() { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.Builder.class); - } + stateHash_ = getDefaultInstance().getStateHash(); + onChanged(); + return this; + } - public static final int PID_FIELD_NUMBER = 1; - private volatile java.lang.Object pid_; - /** - * string pid = 1; - * @return The pid. - */ - public java.lang.String getPid() { - java.lang.Object ref = pid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pid_ = s; - return s; - } - } - /** - * string pid = 1; - * @return The bytes for pid. - */ - public com.google.protobuf.ByteString - getPidBytes() { - java.lang.Object ref = pid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private long height_; - public static final int HEADERS_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers headers_; - /** - * .Headers headers = 2; - * @return Whether the headers field is set. - */ - public boolean hasHeaders() { - return headers_ != null; - } - /** - * .Headers headers = 2; - * @return The headers. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders() { - return headers_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance() : headers_; - } - /** - * .Headers headers = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder getHeadersOrBuilder() { - return getHeaders(); - } + /** + * int64 height = 5; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * int64 height = 5; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * int64 height = 5; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pid_); - } - if (headers_ != null) { - output.writeMessage(2, getHeaders()); - } - unknownFields.writeTo(output); - } + height_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pid_); - } - if (headers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeaders()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private long blockTime_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid) obj; - - if (!getPid() - .equals(other.getPid())) return false; - if (hasHeaders() != other.hasHeaders()) return false; - if (hasHeaders()) { - if (!getHeaders() - .equals(other.getHeaders())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 blockTime = 6; + * + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + getPid().hashCode(); - if (hasHeaders()) { - hash = (37 * hash) + HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getHeaders().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int64 blockTime = 6; + * + * @param value + * The blockTime to set. + * + * @return This builder for chaining. + */ + public Builder setBlockTime(long value) { + + blockTime_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int64 blockTime = 6; + * + * @return This builder for chaining. + */ + public Builder clearBlockTime() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + blockTime_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code HeadersPid} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HeadersPid) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPidOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - pid_ = ""; - - if (headersBuilder_ == null) { - headers_ = null; - } else { - headers_ = null; - headersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid(this); - result.pid_ = pid_; - if (headersBuilder_ == null) { - result.headers_ = headers_; - } else { - result.headers_ = headersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.getDefaultInstance()) return this; - if (!other.getPid().isEmpty()) { - pid_ = other.pid_; - onChanged(); - } - if (other.hasHeaders()) { - mergeHeaders(other.getHeaders()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object pid_ = ""; - /** - * string pid = 1; - * @return The pid. - */ - public java.lang.String getPid() { - java.lang.Object ref = pid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string pid = 1; - * @return The bytes for pid. - */ - public com.google.protobuf.ByteString - getPidBytes() { - java.lang.Object ref = pid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string pid = 1; - * @param value The pid to set. - * @return This builder for chaining. - */ - public Builder setPid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pid_ = value; - onChanged(); - return this; - } - /** - * string pid = 1; - * @return This builder for chaining. - */ - public Builder clearPid() { - - pid_ = getDefaultInstance().getPid(); - onChanged(); - return this; - } - /** - * string pid = 1; - * @param value The bytes for pid to set. - * @return This builder for chaining. - */ - public Builder setPidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pid_ = value; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers headers_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder> headersBuilder_; - /** - * .Headers headers = 2; - * @return Whether the headers field is set. - */ - public boolean hasHeaders() { - return headersBuilder_ != null || headers_ != null; - } - /** - * .Headers headers = 2; - * @return The headers. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders() { - if (headersBuilder_ == null) { - return headers_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance() : headers_; - } else { - return headersBuilder_.getMessage(); - } - } - /** - * .Headers headers = 2; - */ - public Builder setHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers value) { - if (headersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - headers_ = value; - onChanged(); - } else { - headersBuilder_.setMessage(value); - } - - return this; - } - /** - * .Headers headers = 2; - */ - public Builder setHeaders( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder builderForValue) { - if (headersBuilder_ == null) { - headers_ = builderForValue.build(); - onChanged(); - } else { - headersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Headers headers = 2; - */ - public Builder mergeHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers value) { - if (headersBuilder_ == null) { - if (headers_ != null) { - headers_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.newBuilder(headers_).mergeFrom(value).buildPartial(); - } else { - headers_ = value; - } - onChanged(); - } else { - headersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Headers headers = 2; - */ - public Builder clearHeaders() { - if (headersBuilder_ == null) { - headers_ = null; - onChanged(); - } else { - headers_ = null; - headersBuilder_ = null; - } - - return this; - } - /** - * .Headers headers = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder getHeadersBuilder() { - - onChanged(); - return getHeadersFieldBuilder().getBuilder(); - } - /** - * .Headers headers = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder getHeadersOrBuilder() { - if (headersBuilder_ != null) { - return headersBuilder_.getMessageOrBuilder(); - } else { - return headers_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance() : headers_; - } - } - /** - * .Headers headers = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder> - getHeadersFieldBuilder() { - if (headersBuilder_ == null) { - headersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder>( - getHeaders(), - getParentForChildren(), - isClean()); - headers_ = null; - } - return headersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HeadersPid) - } + private int difficulty_; - // @@protoc_insertion_point(class_scope:HeadersPid) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid(); - } + /** + * uint32 difficulty = 11; + * + * @return The difficulty. + */ + @java.lang.Override + public int getDifficulty() { + return difficulty_; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * uint32 difficulty = 11; + * + * @param value + * The difficulty to set. + * + * @return This builder for chaining. + */ + public Builder setDifficulty(int value) { + + difficulty_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeadersPid parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeadersPid(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * uint32 difficulty = 11; + * + * @return This builder for chaining. + */ + public Builder clearDifficulty() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + difficulty_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString mainHash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * bytes mainHash = 12; + * + * @return The mainHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainHash() { + return mainHash_; + } - public interface BlockOverviewOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockOverview) - com.google.protobuf.MessageOrBuilder { + /** + * bytes mainHash = 12; + * + * @param value + * The mainHash to set. + * + * @return This builder for chaining. + */ + public Builder setMainHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + mainHash_ = value; + onChanged(); + return this; + } - /** - * .Header head = 1; - * @return Whether the head field is set. - */ - boolean hasHead(); - /** - * .Header head = 1; - * @return The head. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHead(); - /** - * .Header head = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadOrBuilder(); + /** + * bytes mainHash = 12; + * + * @return This builder for chaining. + */ + public Builder clearMainHash() { - /** - * int64 txCount = 2; - * @return The txCount. - */ - long getTxCount(); + mainHash_ = getDefaultInstance().getMainHash(); + onChanged(); + return this; + } - /** - * repeated bytes txHashes = 3; - * @return A list containing the txHashes. - */ - java.util.List getTxHashesList(); - /** - * repeated bytes txHashes = 3; - * @return The count of txHashes. - */ - int getTxHashesCount(); - /** - * repeated bytes txHashes = 3; - * @param index The index of the element to return. - * @return The txHashes at the given index. - */ - com.google.protobuf.ByteString getTxHashes(int index); - } - /** - *
-   *区块视图
-   * 	 head : 区块头信息
-   *	 txCount :区块上交易个数
-   * 	 txHashes : 区块上交易的哈希列表
-   * 
- * - * Protobuf type {@code BlockOverview} - */ - public static final class BlockOverview extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockOverview) - BlockOverviewOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockOverview.newBuilder() to construct. - private BlockOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockOverview() { - txHashes_ = java.util.Collections.emptyList(); - } + private long mainHeight_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockOverview(); - } + /** + * int64 mainHeight = 13; + * + * @return The mainHeight. + */ + @java.lang.Override + public long getMainHeight() { + return mainHeight_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockOverview( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; - if (head_ != null) { - subBuilder = head_.toBuilder(); - } - head_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(head_); - head_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - txCount_ = input.readInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txHashes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txHashes_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txHashes_ = java.util.Collections.unmodifiableList(txHashes_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_descriptor; - } + /** + * int64 mainHeight = 13; + * + * @param value + * The mainHeight to set. + * + * @return This builder for chaining. + */ + public Builder setMainHeight(long value) { + + mainHeight_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.Builder.class); - } + /** + * int64 mainHeight = 13; + * + * @return This builder for chaining. + */ + public Builder clearMainHeight() { - public static final int HEAD_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header head_; - /** - * .Header head = 1; - * @return Whether the head field is set. - */ - public boolean hasHead() { - return head_ != null; - } - /** - * .Header head = 1; - * @return The head. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHead() { - return head_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : head_; - } - /** - * .Header head = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadOrBuilder() { - return getHead(); - } + mainHeight_ = 0L; + onChanged(); + return this; + } - public static final int TXCOUNT_FIELD_NUMBER = 2; - private long txCount_; - /** - * int64 txCount = 2; - * @return The txCount. - */ - public long getTxCount() { - return txCount_; - } + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; + private com.google.protobuf.SingleFieldBuilderV3 signatureBuilder_; - public static final int TXHASHES_FIELD_NUMBER = 3; - private java.util.List txHashes_; - /** - * repeated bytes txHashes = 3; - * @return A list containing the txHashes. - */ - public java.util.List - getTxHashesList() { - return txHashes_; - } - /** - * repeated bytes txHashes = 3; - * @return The count of txHashes. - */ - public int getTxHashesCount() { - return txHashes_.size(); - } - /** - * repeated bytes txHashes = 3; - * @param index The index of the element to return. - * @return The txHashes at the given index. - */ - public com.google.protobuf.ByteString getTxHashes(int index) { - return txHashes_.get(index); - } + /** + * .Signature signature = 8; + * + * @return Whether the signature field is set. + */ + public boolean hasSignature() { + return signatureBuilder_ != null || signature_ != null; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * .Signature signature = 8; + * + * @return The signature. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { + if (signatureBuilder_ == null) { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } else { + return signatureBuilder_.getMessage(); + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * .Signature signature = 8; + */ + public Builder setSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + signature_ = value; + onChanged(); + } else { + signatureBuilder_.setMessage(value); + } + + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (head_ != null) { - output.writeMessage(1, getHead()); - } - if (txCount_ != 0L) { - output.writeInt64(2, txCount_); - } - for (int i = 0; i < txHashes_.size(); i++) { - output.writeBytes(3, txHashes_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * .Signature signature = 8; + */ + public Builder setSignature( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { + if (signatureBuilder_ == null) { + signature_ = builderForValue.build(); + onChanged(); + } else { + signatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (head_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHead()); - } - if (txCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, txCount_); - } - { - int dataSize = 0; - for (int i = 0; i < txHashes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(txHashes_.get(i)); - } - size += dataSize; - size += 1 * getTxHashesList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * .Signature signature = 8; + */ + public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (signature_ != null) { + signature_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature + .newBuilder(signature_).mergeFrom(value).buildPartial(); + } else { + signature_ = value; + } + onChanged(); + } else { + signatureBuilder_.mergeFrom(value); + } + + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview) obj; - - if (hasHead() != other.hasHead()) return false; - if (hasHead()) { - if (!getHead() - .equals(other.getHead())) return false; - } - if (getTxCount() - != other.getTxCount()) return false; - if (!getTxHashesList() - .equals(other.getTxHashesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * .Signature signature = 8; + */ + public Builder clearSignature() { + if (signatureBuilder_ == null) { + signature_ = null; + onChanged(); + } else { + signature_ = null; + signatureBuilder_ = null; + } + + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHead()) { - hash = (37 * hash) + HEAD_FIELD_NUMBER; - hash = (53 * hash) + getHead().hashCode(); - } - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTxCount()); - if (getTxHashesCount() > 0) { - hash = (37 * hash) + TXHASHES_FIELD_NUMBER; - hash = (53 * hash) + getTxHashesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * .Signature signature = 8; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignatureBuilder() { - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + onChanged(); + return getSignatureFieldBuilder().getBuilder(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * .Signature signature = 8; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + if (signatureBuilder_ != null) { + return signatureBuilder_.getMessageOrBuilder(); + } else { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *区块视图
-     * 	 head : 区块头信息
-     *	 txCount :区块上交易个数
-     * 	 txHashes : 区块上交易的哈希列表
-     * 
- * - * Protobuf type {@code BlockOverview} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockOverview) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverviewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headBuilder_ == null) { - head_ = null; - } else { - head_ = null; - headBuilder_ = null; - } - txCount_ = 0L; - - txHashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview(this); - int from_bitField0_ = bitField0_; - if (headBuilder_ == null) { - result.head_ = head_; - } else { - result.head_ = headBuilder_.build(); - } - result.txCount_ = txCount_; - if (((bitField0_ & 0x00000001) != 0)) { - txHashes_ = java.util.Collections.unmodifiableList(txHashes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txHashes_ = txHashes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.getDefaultInstance()) return this; - if (other.hasHead()) { - mergeHead(other.getHead()); - } - if (other.getTxCount() != 0L) { - setTxCount(other.getTxCount()); - } - if (!other.txHashes_.isEmpty()) { - if (txHashes_.isEmpty()) { - txHashes_ = other.txHashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxHashesIsMutable(); - txHashes_.addAll(other.txHashes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header head_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> headBuilder_; - /** - * .Header head = 1; - * @return Whether the head field is set. - */ - public boolean hasHead() { - return headBuilder_ != null || head_ != null; - } - /** - * .Header head = 1; - * @return The head. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHead() { - if (headBuilder_ == null) { - return head_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : head_; - } else { - return headBuilder_.getMessage(); - } - } - /** - * .Header head = 1; - */ - public Builder setHead(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - head_ = value; - onChanged(); - } else { - headBuilder_.setMessage(value); - } - - return this; - } - /** - * .Header head = 1; - */ - public Builder setHead( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headBuilder_ == null) { - head_ = builderForValue.build(); - onChanged(); - } else { - headBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Header head = 1; - */ - public Builder mergeHead(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headBuilder_ == null) { - if (head_ != null) { - head_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(head_).mergeFrom(value).buildPartial(); - } else { - head_ = value; - } - onChanged(); - } else { - headBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Header head = 1; - */ - public Builder clearHead() { - if (headBuilder_ == null) { - head_ = null; - onChanged(); - } else { - head_ = null; - headBuilder_ = null; - } - - return this; - } - /** - * .Header head = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeadBuilder() { - - onChanged(); - return getHeadFieldBuilder().getBuilder(); - } - /** - * .Header head = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadOrBuilder() { - if (headBuilder_ != null) { - return headBuilder_.getMessageOrBuilder(); - } else { - return head_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : head_; - } - } - /** - * .Header head = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getHeadFieldBuilder() { - if (headBuilder_ == null) { - headBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - getHead(), - getParentForChildren(), - isClean()); - head_ = null; - } - return headBuilder_; - } - - private long txCount_ ; - /** - * int64 txCount = 2; - * @return The txCount. - */ - public long getTxCount() { - return txCount_; - } - /** - * int64 txCount = 2; - * @param value The txCount to set. - * @return This builder for chaining. - */ - public Builder setTxCount(long value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * int64 txCount = 2; - * @return This builder for chaining. - */ - public Builder clearTxCount() { - - txCount_ = 0L; - onChanged(); - return this; - } - - private java.util.List txHashes_ = java.util.Collections.emptyList(); - private void ensureTxHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txHashes_ = new java.util.ArrayList(txHashes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes txHashes = 3; - * @return A list containing the txHashes. - */ - public java.util.List - getTxHashesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(txHashes_) : txHashes_; - } - /** - * repeated bytes txHashes = 3; - * @return The count of txHashes. - */ - public int getTxHashesCount() { - return txHashes_.size(); - } - /** - * repeated bytes txHashes = 3; - * @param index The index of the element to return. - * @return The txHashes at the given index. - */ - public com.google.protobuf.ByteString getTxHashes(int index) { - return txHashes_.get(index); - } - /** - * repeated bytes txHashes = 3; - * @param index The index to set the value at. - * @param value The txHashes to set. - * @return This builder for chaining. - */ - public Builder setTxHashes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashesIsMutable(); - txHashes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes txHashes = 3; - * @param value The txHashes to add. - * @return This builder for chaining. - */ - public Builder addTxHashes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashesIsMutable(); - txHashes_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes txHashes = 3; - * @param values The txHashes to add. - * @return This builder for chaining. - */ - public Builder addAllTxHashes( - java.lang.Iterable values) { - ensureTxHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txHashes_); - onChanged(); - return this; - } - /** - * repeated bytes txHashes = 3; - * @return This builder for chaining. - */ - public Builder clearTxHashes() { - txHashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockOverview) - } + /** + * .Signature signature = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3 getSignatureFieldBuilder() { + if (signatureBuilder_ == null) { + signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getSignature(), getParentForChildren(), isClean()); + signature_ = null; + } + return signatureBuilder_; + } - // @@protoc_insertion_point(class_scope:BlockOverview) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview(); - } + private java.util.List txs_ = java.util.Collections + .emptyList(); - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000001; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockOverview parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockOverview(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .Transaction txs = 7; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .Transaction txs = 7; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Transaction txs = 7; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } - } + /** + * repeated .Transaction txs = 7; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } - public interface BlockDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockDetail) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .Transaction txs = 7; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - boolean hasBlock(); - /** - * .Block block = 1; - * @return The block. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); - /** - * .Block block = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); + /** + * repeated .Transaction txs = 7; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } - /** - * repeated .ReceiptData receipts = 2; - */ - java.util.List - getReceiptsList(); - /** - * repeated .ReceiptData receipts = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index); - /** - * repeated .ReceiptData receipts = 2; - */ - int getReceiptsCount(); - /** - * repeated .ReceiptData receipts = 2; - */ - java.util.List - getReceiptsOrBuilderList(); - /** - * repeated .ReceiptData receipts = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index); + /** + * repeated .Transaction txs = 7; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } - /** - * repeated .KeyValue KV = 3; - */ - java.util.List - getKVList(); - /** - * repeated .KeyValue KV = 3; - */ - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index); - /** - * repeated .KeyValue KV = 3; - */ - int getKVCount(); - /** - * repeated .KeyValue KV = 3; - */ - java.util.List - getKVOrBuilderList(); - /** - * repeated .KeyValue KV = 3; - */ - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder( - int index); + /** + * repeated .Transaction txs = 7; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - /** - * bytes prevStatusHash = 4; - * @return The prevStatusHash. - */ - com.google.protobuf.ByteString getPrevStatusHash(); - } - /** - *
-   *区块详细信息
-   * 	 block : 区块信息
-   *	 receipts :区块上所有交易的收据信息列表
-   * 
- * - * Protobuf type {@code BlockDetail} - */ - public static final class BlockDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockDetail) - BlockDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockDetail.newBuilder() to construct. - private BlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockDetail() { - receipts_ = java.util.Collections.emptyList(); - kV_ = java.util.Collections.emptyList(); - prevStatusHash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * repeated .Transaction txs = 7; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockDetail(); - } + /** + * repeated .Transaction txs = 7; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - receipts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - receipts_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - kV_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - kV_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.parser(), extensionRegistry)); - break; - } - case 34: { - - prevStatusHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - kV_ = java.util.Collections.unmodifiableList(kV_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_descriptor; - } + /** + * repeated .Transaction txs = 7; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder.class); - } + /** + * repeated .Transaction txs = 7; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } - public static final int BLOCK_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .Block block = 1; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - return getBlock(); - } + /** + * repeated .Transaction txs = 7; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } - public static final int RECEIPTS_FIELD_NUMBER = 2; - private java.util.List receipts_; - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List getReceiptsList() { - return receipts_; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List - getReceiptsOrBuilderList() { - return receipts_; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public int getReceiptsCount() { - return receipts_.size(); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { - return receipts_.get(index); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index) { - return receipts_.get(index); - } + /** + * repeated .Transaction txs = 7; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } - public static final int KV_FIELD_NUMBER = 3; - private java.util.List kV_; - /** - * repeated .KeyValue KV = 3; - */ - public java.util.List getKVList() { - return kV_; - } - /** - * repeated .KeyValue KV = 3; - */ - public java.util.List - getKVOrBuilderList() { - return kV_; - } - /** - * repeated .KeyValue KV = 3; - */ - public int getKVCount() { - return kV_.size(); - } - /** - * repeated .KeyValue KV = 3; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { - return kV_.get(index); - } - /** - * repeated .KeyValue KV = 3; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder( - int index) { - return kV_.get(index); - } + /** + * repeated .Transaction txs = 7; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } - public static final int PREVSTATUSHASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString prevStatusHash_; - /** - * bytes prevStatusHash = 4; - * @return The prevStatusHash. - */ - public com.google.protobuf.ByteString getPrevStatusHash() { - return prevStatusHash_; - } + /** + * repeated .Transaction txs = 7; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { + return getTxsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .Transaction txs = 7; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated .Transaction txs = 7; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (block_ != null) { - output.writeMessage(1, getBlock()); - } - for (int i = 0; i < receipts_.size(); i++) { - output.writeMessage(2, receipts_.get(i)); - } - for (int i = 0; i < kV_.size(); i++) { - output.writeMessage(3, kV_.get(i)); - } - if (!prevStatusHash_.isEmpty()) { - output.writeBytes(4, prevStatusHash_); - } - unknownFields.writeTo(output); - } + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlock()); - } - for (int i = 0; i < receipts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receipts_.get(i)); - } - for (int i = 0; i < kV_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, kV_.get(i)); - } - if (!prevStatusHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, prevStatusHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail) obj; - - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (!getReceiptsList() - .equals(other.getReceiptsList())) return false; - if (!getKVList() - .equals(other.getKVList())) return false; - if (!getPrevStatusHash() - .equals(other.getPrevStatusHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - if (getReceiptsCount() > 0) { - hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; - hash = (53 * hash) + getReceiptsList().hashCode(); - } - if (getKVCount() > 0) { - hash = (37 * hash) + KV_FIELD_NUMBER; - hash = (53 * hash) + getKVList().hashCode(); - } - hash = (37 * hash) + PREVSTATUSHASH_FIELD_NUMBER; - hash = (53 * hash) + getPrevStatusHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(builder_scope:Block) + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:Block) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *区块详细信息
-     * 	 block : 区块信息
-     *	 receipts :区块上所有交易的收据信息列表
-     * 
- * - * Protobuf type {@code BlockDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockDetail) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReceiptsFieldBuilder(); - getKVFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - receiptsBuilder_.clear(); - } - if (kVBuilder_ == null) { - kV_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - kVBuilder_.clear(); - } - prevStatusHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail(this); - int from_bitField0_ = bitField0_; - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - if (receiptsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.receipts_ = receipts_; - } else { - result.receipts_ = receiptsBuilder_.build(); - } - if (kVBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - kV_ = java.util.Collections.unmodifiableList(kV_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.kV_ = kV_; - } else { - result.kV_ = kVBuilder_.build(); - } - result.prevStatusHash_ = prevStatusHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance()) return this; - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - if (receiptsBuilder_ == null) { - if (!other.receipts_.isEmpty()) { - if (receipts_.isEmpty()) { - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReceiptsIsMutable(); - receipts_.addAll(other.receipts_); - } - onChanged(); - } - } else { - if (!other.receipts_.isEmpty()) { - if (receiptsBuilder_.isEmpty()) { - receiptsBuilder_.dispose(); - receiptsBuilder_ = null; - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000001); - receiptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReceiptsFieldBuilder() : null; - } else { - receiptsBuilder_.addAllMessages(other.receipts_); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Block parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Block(input, extensionRegistry); } - } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - if (kVBuilder_ == null) { - if (!other.kV_.isEmpty()) { - if (kV_.isEmpty()) { - kV_ = other.kV_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureKVIsMutable(); - kV_.addAll(other.kV_); - } - onChanged(); - } - } else { - if (!other.kV_.isEmpty()) { - if (kVBuilder_.isEmpty()) { - kVBuilder_.dispose(); - kVBuilder_ = null; - kV_ = other.kV_; - bitField0_ = (bitField0_ & ~0x00000002); - kVBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKVFieldBuilder() : null; - } else { - kVBuilder_.addAllMessages(other.kV_); - } - } - } - if (other.getPrevStatusHash() != com.google.protobuf.ByteString.EMPTY) { - setPrevStatusHash(other.getPrevStatusHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> blockBuilder_; - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .Block block = 1; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .Block block = 1; - */ - public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder setBlock( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - } - /** - * .Block block = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - - private java.util.List receipts_ = - java.util.Collections.emptyList(); - private void ensureReceiptsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - receipts_ = new java.util.ArrayList(receipts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> receiptsBuilder_; - - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List getReceiptsList() { - if (receiptsBuilder_ == null) { - return java.util.Collections.unmodifiableList(receipts_); - } else { - return receiptsBuilder_.getMessageList(); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public int getReceiptsCount() { - if (receiptsBuilder_ == null) { - return receipts_.size(); - } else { - return receiptsBuilder_.getCount(); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); - } else { - return receiptsBuilder_.getMessage(index); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.set(index, value); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.set(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(value); - onChanged(); - } else { - receiptsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(index, value); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addAllReceipts( - java.lang.Iterable values) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receipts_); - onChanged(); - } else { - receiptsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder clearReceipts() { - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - receiptsBuilder_.clear(); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder removeReceipts(int index) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.remove(index); - onChanged(); - } else { - receiptsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().getBuilder(index); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); } else { - return receiptsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List - getReceiptsOrBuilderList() { - if (receiptsBuilder_ != null) { - return receiptsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(receipts_); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder() { - return getReceiptsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List - getReceiptsBuilderList() { - return getReceiptsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> - getReceiptsFieldBuilder() { - if (receiptsBuilder_ == null) { - receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder>( - receipts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - receipts_ = null; - } - return receiptsBuilder_; - } - - private java.util.List kV_ = - java.util.Collections.emptyList(); - private void ensureKVIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - kV_ = new java.util.ArrayList(kV_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder> kVBuilder_; - - /** - * repeated .KeyValue KV = 3; - */ - public java.util.List getKVList() { - if (kVBuilder_ == null) { - return java.util.Collections.unmodifiableList(kV_); - } else { - return kVBuilder_.getMessageList(); - } - } - /** - * repeated .KeyValue KV = 3; - */ - public int getKVCount() { - if (kVBuilder_ == null) { - return kV_.size(); - } else { - return kVBuilder_.getCount(); - } - } - /** - * repeated .KeyValue KV = 3; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { - if (kVBuilder_ == null) { - return kV_.get(index); - } else { - return kVBuilder_.getMessage(index); - } - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder setKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { - if (kVBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKVIsMutable(); - kV_.set(index, value); - onChanged(); - } else { - kVBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder setKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.set(index, builderForValue.build()); - onChanged(); - } else { - kVBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder addKV(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { - if (kVBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKVIsMutable(); - kV_.add(value); - onChanged(); - } else { - kVBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder addKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { - if (kVBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKVIsMutable(); - kV_.add(index, value); - onChanged(); - } else { - kVBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder addKV( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.add(builderForValue.build()); - onChanged(); - } else { - kVBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder addKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.add(index, builderForValue.build()); - onChanged(); - } else { - kVBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder addAllKV( - java.lang.Iterable values) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, kV_); - onChanged(); - } else { - kVBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder clearKV() { - if (kVBuilder_ == null) { - kV_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - kVBuilder_.clear(); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public Builder removeKV(int index) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.remove(index); - onChanged(); - } else { - kVBuilder_.remove(index); - } - return this; - } - /** - * repeated .KeyValue KV = 3; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder getKVBuilder( - int index) { - return getKVFieldBuilder().getBuilder(index); - } - /** - * repeated .KeyValue KV = 3; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder( - int index) { - if (kVBuilder_ == null) { - return kV_.get(index); } else { - return kVBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .KeyValue KV = 3; - */ - public java.util.List - getKVOrBuilderList() { - if (kVBuilder_ != null) { - return kVBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(kV_); - } - } - /** - * repeated .KeyValue KV = 3; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder() { - return getKVFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); - } - /** - * repeated .KeyValue KV = 3; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder( - int index) { - return getKVFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); - } - /** - * repeated .KeyValue KV = 3; - */ - public java.util.List - getKVBuilderList() { - return getKVFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder> - getKVFieldBuilder() { - if (kVBuilder_ == null) { - kVBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder>( - kV_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - kV_ = null; - } - return kVBuilder_; - } - - private com.google.protobuf.ByteString prevStatusHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes prevStatusHash = 4; - * @return The prevStatusHash. - */ - public com.google.protobuf.ByteString getPrevStatusHash() { - return prevStatusHash_; - } - /** - * bytes prevStatusHash = 4; - * @param value The prevStatusHash to set. - * @return This builder for chaining. - */ - public Builder setPrevStatusHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - prevStatusHash_ = value; - onChanged(); - return this; - } - /** - * bytes prevStatusHash = 4; - * @return This builder for chaining. - */ - public Builder clearPrevStatusHash() { - - prevStatusHash_ = getDefaultInstance().getPrevStatusHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockDetail) - } - // @@protoc_insertion_point(class_scope:BlockDetail) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public interface BlocksOrBuilder extends + // @@protoc_insertion_point(interface_extends:Blocks) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Block items = 1; + */ + java.util.List getItemsList(); - } + /** + * repeated .Block items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getItems(int index); - public interface ReceiptsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Receipts) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .Block items = 1; + */ + int getItemsCount(); + + /** + * repeated .Block items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .Block items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getItemsOrBuilder(int index); + } /** - * repeated .Receipt receipts = 1; - */ - java.util.List - getReceiptsList(); - /** - * repeated .Receipt receipts = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getReceipts(int index); - /** - * repeated .Receipt receipts = 1; - */ - int getReceiptsCount(); - /** - * repeated .Receipt receipts = 1; - */ - java.util.List - getReceiptsOrBuilderList(); - /** - * repeated .Receipt receipts = 1; + * Protobuf type {@code Blocks} */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder getReceiptsOrBuilder( - int index); - } - /** - * Protobuf type {@code Receipts} - */ - public static final class Receipts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Receipts) - ReceiptsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Receipts.newBuilder() to construct. - private Receipts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Receipts() { - receipts_ = java.util.Collections.emptyList(); - } + public static final class Blocks extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Blocks) + BlocksOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Receipts(); - } + // Use Blocks.newBuilder() to construct. + private Blocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Receipts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - receipts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - receipts_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_descriptor; - } + private Blocks() { + items_ = java.util.Collections.emptyList(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.Builder.class); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Blocks(); + } - public static final int RECEIPTS_FIELD_NUMBER = 1; - private java.util.List receipts_; - /** - * repeated .Receipt receipts = 1; - */ - public java.util.List getReceiptsList() { - return receipts_; - } - /** - * repeated .Receipt receipts = 1; - */ - public java.util.List - getReceiptsOrBuilderList() { - return receipts_; - } - /** - * repeated .Receipt receipts = 1; - */ - public int getReceiptsCount() { - return receipts_.size(); - } - /** - * repeated .Receipt receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getReceipts(int index) { - return receipts_.get(index); - } - /** - * repeated .Receipt receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder getReceiptsOrBuilder( - int index) { - return receipts_.get(index); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Blocks(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add( + input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < receipts_.size(); i++) { - output.writeMessage(1, receipts_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.Builder.class); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < receipts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, receipts_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts) obj; - - if (!getReceiptsList() - .equals(other.getReceiptsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated .Block items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getReceiptsCount() > 0) { - hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; - hash = (53 * hash) + getReceiptsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated .Block items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .Block items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated .Block items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getItems(int index) { + return items_.get(index); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Receipts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Receipts) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReceiptsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - receiptsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts(this); - int from_bitField0_ = bitField0_; - if (receiptsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.receipts_ = receipts_; - } else { - result.receipts_ = receiptsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.getDefaultInstance()) return this; - if (receiptsBuilder_ == null) { - if (!other.receipts_.isEmpty()) { - if (receipts_.isEmpty()) { - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReceiptsIsMutable(); - receipts_.addAll(other.receipts_); - } - onChanged(); - } - } else { - if (!other.receipts_.isEmpty()) { - if (receiptsBuilder_.isEmpty()) { - receiptsBuilder_.dispose(); - receiptsBuilder_ = null; - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000001); - receiptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReceiptsFieldBuilder() : null; - } else { - receiptsBuilder_.addAllMessages(other.receipts_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List receipts_ = - java.util.Collections.emptyList(); - private void ensureReceiptsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - receipts_ = new java.util.ArrayList(receipts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder> receiptsBuilder_; - - /** - * repeated .Receipt receipts = 1; - */ - public java.util.List getReceiptsList() { - if (receiptsBuilder_ == null) { - return java.util.Collections.unmodifiableList(receipts_); - } else { - return receiptsBuilder_.getMessageList(); - } - } - /** - * repeated .Receipt receipts = 1; - */ - public int getReceiptsCount() { - if (receiptsBuilder_ == null) { - return receipts_.size(); - } else { - return receiptsBuilder_.getCount(); - } - } - /** - * repeated .Receipt receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getReceipts(int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); - } else { - return receiptsBuilder_.getMessage(index); - } - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.set(index, value); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.set(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(value); - onChanged(); - } else { - receiptsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(index, value); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder addReceipts( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder addAllReceipts( - java.lang.Iterable values) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receipts_); - onChanged(); - } else { - receiptsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder clearReceipts() { - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - receiptsBuilder_.clear(); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public Builder removeReceipts(int index) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.remove(index); - onChanged(); - } else { - receiptsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Receipt receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder getReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().getBuilder(index); - } - /** - * repeated .Receipt receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder getReceiptsOrBuilder( - int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); } else { - return receiptsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Receipt receipts = 1; - */ - public java.util.List - getReceiptsOrBuilderList() { - if (receiptsBuilder_ != null) { - return receiptsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(receipts_); - } - } - /** - * repeated .Receipt receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder addReceiptsBuilder() { - return getReceiptsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance()); - } - /** - * repeated .Receipt receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder addReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance()); - } - /** - * repeated .Receipt receipts = 1; - */ - public java.util.List - getReceiptsBuilderList() { - return getReceiptsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder> - getReceiptsFieldBuilder() { - if (receiptsBuilder_ == null) { - receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder>( - receipts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - receipts_ = null; - } - return receiptsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Receipts) - } + /** + * repeated .Block items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } - // @@protoc_insertion_point(class_scope:Receipts) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts(); - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Receipts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Receipts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - } + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public interface ReceiptCheckTxListOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptCheckTxList) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks) obj; - /** - * repeated string errs = 1; - * @return A list containing the errs. - */ - java.util.List - getErrsList(); - /** - * repeated string errs = 1; - * @return The count of errs. - */ - int getErrsCount(); - /** - * repeated string errs = 1; - * @param index The index of the element to return. - * @return The errs at the given index. - */ - java.lang.String getErrs(int index); - /** - * repeated string errs = 1; - * @param index The index of the value to return. - * @return The bytes of the errs at the given index. - */ - com.google.protobuf.ByteString - getErrsBytes(int index); - } - /** - * Protobuf type {@code ReceiptCheckTxList} - */ - public static final class ReceiptCheckTxList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptCheckTxList) - ReceiptCheckTxListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptCheckTxList.newBuilder() to construct. - private ReceiptCheckTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptCheckTxList() { - errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptCheckTxList(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptCheckTxList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - errs_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - errs_ = errs_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int ERRS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList errs_; - /** - * repeated string errs = 1; - * @return A list containing the errs. - */ - public com.google.protobuf.ProtocolStringList - getErrsList() { - return errs_; - } - /** - * repeated string errs = 1; - * @return The count of errs. - */ - public int getErrsCount() { - return errs_.size(); - } - /** - * repeated string errs = 1; - * @param index The index of the element to return. - * @return The errs at the given index. - */ - public java.lang.String getErrs(int index) { - return errs_.get(index); - } - /** - * repeated string errs = 1; - * @param index The index of the value to return. - * @return The bytes of the errs at the given index. - */ - public com.google.protobuf.ByteString - getErrsBytes(int index) { - return errs_.getByteString(index); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < errs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errs_.getRaw(i)); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < errs_.size(); i++) { - dataSize += computeStringSizeNoTag(errs_.getRaw(i)); - } - size += dataSize; - size += 1 * getErrsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList) obj; - - if (!getErrsList() - .equals(other.getErrsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getErrsCount() > 0) { - hash = (37 * hash) + ERRS_FIELD_NUMBER; - hash = (53 * hash) + getErrsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReceiptCheckTxList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptCheckTxList) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - errs_ = errs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.errs_ = errs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.getDefaultInstance()) return this; - if (!other.errs_.isEmpty()) { - if (errs_.isEmpty()) { - errs_ = other.errs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureErrsIsMutable(); - errs_.addAll(other.errs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureErrsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - errs_ = new com.google.protobuf.LazyStringArrayList(errs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string errs = 1; - * @return A list containing the errs. - */ - public com.google.protobuf.ProtocolStringList - getErrsList() { - return errs_.getUnmodifiableView(); - } - /** - * repeated string errs = 1; - * @return The count of errs. - */ - public int getErrsCount() { - return errs_.size(); - } - /** - * repeated string errs = 1; - * @param index The index of the element to return. - * @return The errs at the given index. - */ - public java.lang.String getErrs(int index) { - return errs_.get(index); - } - /** - * repeated string errs = 1; - * @param index The index of the value to return. - * @return The bytes of the errs at the given index. - */ - public com.google.protobuf.ByteString - getErrsBytes(int index) { - return errs_.getByteString(index); - } - /** - * repeated string errs = 1; - * @param index The index to set the value at. - * @param value The errs to set. - * @return This builder for chaining. - */ - public Builder setErrs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrsIsMutable(); - errs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string errs = 1; - * @param value The errs to add. - * @return This builder for chaining. - */ - public Builder addErrs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrsIsMutable(); - errs_.add(value); - onChanged(); - return this; - } - /** - * repeated string errs = 1; - * @param values The errs to add. - * @return This builder for chaining. - */ - public Builder addAllErrs( - java.lang.Iterable values) { - ensureErrsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errs_); - onChanged(); - return this; - } - /** - * repeated string errs = 1; - * @return This builder for chaining. - */ - public Builder clearErrs() { - errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string errs = 1; - * @param value The bytes of the errs to add. - * @return This builder for chaining. - */ - public Builder addErrsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureErrsIsMutable(); - errs_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptCheckTxList) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:ReceiptCheckTxList) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptCheckTxList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptCheckTxList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - } + /** + * Protobuf type {@code Blocks} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Blocks) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlocksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_descriptor; + } - public interface ChainStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChainStatus) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.Builder.class); + } - /** - * int64 currentHeight = 1; - * @return The currentHeight. - */ - long getCurrentHeight(); + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * int64 mempoolSize = 2; - * @return The mempoolSize. - */ - long getMempoolSize(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * int64 msgQueueSize = 3; - * @return The msgQueueSize. - */ - long getMsgQueueSize(); - } - /** - *
-   *区块链状态
-   * 	 currentHeight : 区块最新高度
-   *	 mempoolSize :内存池大小
-   * 	 msgQueueSize : 消息队列大小
-   * 
- * - * Protobuf type {@code ChainStatus} - */ - public static final class ChainStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChainStatus) - ChainStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChainStatus.newBuilder() to construct. - private ChainStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChainStatus() { - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChainStatus(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChainStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - currentHeight_ = input.readInt64(); - break; - } - case 16: { - - mempoolSize_ = input.readInt64(); - break; - } - case 24: { - - msgQueueSize_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_descriptor; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Blocks_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.getDefaultInstance(); + } - public static final int CURRENTHEIGHT_FIELD_NUMBER = 1; - private long currentHeight_; - /** - * int64 currentHeight = 1; - * @return The currentHeight. - */ - public long getCurrentHeight() { - return currentHeight_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int MEMPOOLSIZE_FIELD_NUMBER = 2; - private long mempoolSize_; - /** - * int64 mempoolSize = 2; - * @return The mempoolSize. - */ - public long getMempoolSize() { - return mempoolSize_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } - public static final int MSGQUEUESIZE_FIELD_NUMBER = 3; - private long msgQueueSize_; - /** - * int64 msgQueueSize = 3; - * @return The msgQueueSize. - */ - public long getMsgQueueSize() { - return msgQueueSize_; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (currentHeight_ != 0L) { - output.writeInt64(1, currentHeight_); - } - if (mempoolSize_ != 0L) { - output.writeInt64(2, mempoolSize_); - } - if (msgQueueSize_ != 0L) { - output.writeInt64(3, msgQueueSize_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (currentHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, currentHeight_); - } - if (mempoolSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, mempoolSize_); - } - if (msgQueueSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, msgQueueSize_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus) obj; - - if (getCurrentHeight() - != other.getCurrentHeight()) return false; - if (getMempoolSize() - != other.getMempoolSize()) return false; - if (getMsgQueueSize() - != other.getMsgQueueSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CURRENTHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurrentHeight()); - hash = (37 * hash) + MEMPOOLSIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMempoolSize()); - hash = (37 * hash) + MSGQUEUESIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMsgQueueSize()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *区块链状态
-     * 	 currentHeight : 区块最新高度
-     *	 mempoolSize :内存池大小
-     * 	 msgQueueSize : 消息队列大小
-     * 
- * - * Protobuf type {@code ChainStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ChainStatus) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - currentHeight_ = 0L; - - mempoolSize_ = 0L; - - msgQueueSize_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus(this); - result.currentHeight_ = currentHeight_; - result.mempoolSize_ = mempoolSize_; - result.msgQueueSize_ = msgQueueSize_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.getDefaultInstance()) return this; - if (other.getCurrentHeight() != 0L) { - setCurrentHeight(other.getCurrentHeight()); - } - if (other.getMempoolSize() != 0L) { - setMempoolSize(other.getMempoolSize()); - } - if (other.getMsgQueueSize() != 0L) { - setMsgQueueSize(other.getMsgQueueSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long currentHeight_ ; - /** - * int64 currentHeight = 1; - * @return The currentHeight. - */ - public long getCurrentHeight() { - return currentHeight_; - } - /** - * int64 currentHeight = 1; - * @param value The currentHeight to set. - * @return This builder for chaining. - */ - public Builder setCurrentHeight(long value) { - - currentHeight_ = value; - onChanged(); - return this; - } - /** - * int64 currentHeight = 1; - * @return This builder for chaining. - */ - public Builder clearCurrentHeight() { - - currentHeight_ = 0L; - onChanged(); - return this; - } - - private long mempoolSize_ ; - /** - * int64 mempoolSize = 2; - * @return The mempoolSize. - */ - public long getMempoolSize() { - return mempoolSize_; - } - /** - * int64 mempoolSize = 2; - * @param value The mempoolSize to set. - * @return This builder for chaining. - */ - public Builder setMempoolSize(long value) { - - mempoolSize_ = value; - onChanged(); - return this; - } - /** - * int64 mempoolSize = 2; - * @return This builder for chaining. - */ - public Builder clearMempoolSize() { - - mempoolSize_ = 0L; - onChanged(); - return this; - } - - private long msgQueueSize_ ; - /** - * int64 msgQueueSize = 3; - * @return The msgQueueSize. - */ - public long getMsgQueueSize() { - return msgQueueSize_; - } - /** - * int64 msgQueueSize = 3; - * @param value The msgQueueSize to set. - * @return This builder for chaining. - */ - public Builder setMsgQueueSize(long value) { - - msgQueueSize_ = value; - onChanged(); - return this; - } - /** - * int64 msgQueueSize = 3; - * @return This builder for chaining. - */ - public Builder clearMsgQueueSize() { - - msgQueueSize_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChainStatus) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - // @@protoc_insertion_point(class_scope:ChainStatus) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus(); - } + private int bitField0_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.util.List items_ = java.util.Collections + .emptyList(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChainStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChainStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .Block items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Block items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } - } + /** + * repeated .Block items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } - public interface ReqBlocksOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqBlocks) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .Block items = 1; + */ + public Builder setItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } - /** - * int64 start = 1; - * @return The start. - */ - long getStart(); + /** + * repeated .Block items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * int64 end = 2; - * @return The end. - */ - long getEnd(); + /** + * repeated .Block items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } - /** - * bool isDetail = 3; - * @return The isDetail. - */ - boolean getIsDetail(); + /** + * repeated .Block items = 1; + */ + public Builder addItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } - /** - * repeated string pid = 4; - * @return A list containing the pid. - */ - java.util.List - getPidList(); - /** - * repeated string pid = 4; - * @return The count of pid. - */ - int getPidCount(); - /** - * repeated string pid = 4; - * @param index The index of the element to return. - * @return The pid at the given index. - */ - java.lang.String getPid(int index); - /** - * repeated string pid = 4; - * @param index The index of the value to return. - * @return The bytes of the pid at the given index. - */ - com.google.protobuf.ByteString - getPidBytes(int index); - } - /** - *
-   *获取区块信息
-   * 	 start : 获取区块的开始高度
-   *	 end :获取区块的结束高度
-   * 	 Isdetail : 是否需要获取区块的详细信息
-   * 	 pid : peer列表
-   * 
- * - * Protobuf type {@code ReqBlocks} - */ - public static final class ReqBlocks extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqBlocks) - ReqBlocksOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqBlocks.newBuilder() to construct. - private ReqBlocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqBlocks() { - pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + /** + * repeated .Block items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqBlocks(); - } + /** + * repeated .Block items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqBlocks( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - start_ = input.readInt64(); - break; - } - case 16: { - - end_ = input.readInt64(); - break; - } - case 24: { - - isDetail_ = input.readBool(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pid_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pid_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pid_ = pid_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_descriptor; - } + /** + * repeated .Block items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.Builder.class); - } + /** + * repeated .Block items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } - public static final int START_FIELD_NUMBER = 1; - private long start_; - /** - * int64 start = 1; - * @return The start. - */ - public long getStart() { - return start_; - } + /** + * repeated .Block items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } - public static final int END_FIELD_NUMBER = 2; - private long end_; - /** - * int64 end = 2; - * @return The end. - */ - public long getEnd() { - return end_; - } + /** + * repeated .Block items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } - public static final int ISDETAIL_FIELD_NUMBER = 3; - private boolean isDetail_; - /** - * bool isDetail = 3; - * @return The isDetail. - */ - public boolean getIsDetail() { - return isDetail_; - } + /** + * repeated .Block items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } - public static final int PID_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList pid_; - /** - * repeated string pid = 4; - * @return A list containing the pid. - */ - public com.google.protobuf.ProtocolStringList - getPidList() { - return pid_; - } - /** - * repeated string pid = 4; - * @return The count of pid. - */ - public int getPidCount() { - return pid_.size(); - } - /** - * repeated string pid = 4; - * @param index The index of the element to return. - * @return The pid at the given index. - */ - public java.lang.String getPid(int index) { - return pid_.get(index); - } - /** - * repeated string pid = 4; - * @param index The index of the value to return. - * @return The bytes of the pid at the given index. - */ - public com.google.protobuf.ByteString - getPidBytes(int index) { - return pid_.getByteString(index); - } + /** + * repeated .Block items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .Block items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder addItemsBuilder() { + return getItemsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance()); + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated .Block items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance()); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (start_ != 0L) { - output.writeInt64(1, start_); - } - if (end_ != 0L) { - output.writeInt64(2, end_); - } - if (isDetail_ != false) { - output.writeBool(3, isDetail_); - } - for (int i = 0; i < pid_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pid_.getRaw(i)); - } - unknownFields.writeTo(output); - } + /** + * repeated .Block items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (start_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, start_); - } - if (end_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, end_); - } - if (isDetail_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isDetail_); - } - { - int dataSize = 0; - for (int i = 0; i < pid_.size(); i++) { - dataSize += computeStringSizeNoTag(pid_.getRaw(i)); - } - size += dataSize; - size += 1 * getPidList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) obj; - - if (getStart() - != other.getStart()) return false; - if (getEnd() - != other.getEnd()) return false; - if (getIsDetail() - != other.getIsDetail()) return false; - if (!getPidList() - .equals(other.getPidList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStart()); - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEnd()); - hash = (37 * hash) + ISDETAIL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDetail()); - if (getPidCount() > 0) { - hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + getPidList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(builder_scope:Blocks) + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(class_scope:Blocks) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blocks parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blocks(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Blocks getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *获取区块信息
-     * 	 start : 获取区块的开始高度
-     *	 end :获取区块的结束高度
-     * 	 Isdetail : 是否需要获取区块的详细信息
-     * 	 pid : peer列表
-     * 
- * - * Protobuf type {@code ReqBlocks} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqBlocks) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocksOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - start_ = 0L; - - end_ = 0L; - - isDetail_ = false; - - pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks(this); - int from_bitField0_ = bitField0_; - result.start_ = start_; - result.end_ = end_; - result.isDetail_ = isDetail_; - if (((bitField0_ & 0x00000001) != 0)) { - pid_ = pid_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pid_ = pid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.getDefaultInstance()) return this; - if (other.getStart() != 0L) { - setStart(other.getStart()); - } - if (other.getEnd() != 0L) { - setEnd(other.getEnd()); - } - if (other.getIsDetail() != false) { - setIsDetail(other.getIsDetail()); - } - if (!other.pid_.isEmpty()) { - if (pid_.isEmpty()) { - pid_ = other.pid_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePidIsMutable(); - pid_.addAll(other.pid_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long start_ ; - /** - * int64 start = 1; - * @return The start. - */ - public long getStart() { - return start_; - } - /** - * int64 start = 1; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(long value) { - - start_ = value; - onChanged(); - return this; - } - /** - * int64 start = 1; - * @return This builder for chaining. - */ - public Builder clearStart() { - - start_ = 0L; - onChanged(); - return this; - } - - private long end_ ; - /** - * int64 end = 2; - * @return The end. - */ - public long getEnd() { - return end_; - } - /** - * int64 end = 2; - * @param value The end to set. - * @return This builder for chaining. - */ - public Builder setEnd(long value) { - - end_ = value; - onChanged(); - return this; - } - /** - * int64 end = 2; - * @return This builder for chaining. - */ - public Builder clearEnd() { - - end_ = 0L; - onChanged(); - return this; - } - - private boolean isDetail_ ; - /** - * bool isDetail = 3; - * @return The isDetail. - */ - public boolean getIsDetail() { - return isDetail_; - } - /** - * bool isDetail = 3; - * @param value The isDetail to set. - * @return This builder for chaining. - */ - public Builder setIsDetail(boolean value) { - - isDetail_ = value; - onChanged(); - return this; - } - /** - * bool isDetail = 3; - * @return This builder for chaining. - */ - public Builder clearIsDetail() { - - isDetail_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePidIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pid_ = new com.google.protobuf.LazyStringArrayList(pid_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string pid = 4; - * @return A list containing the pid. - */ - public com.google.protobuf.ProtocolStringList - getPidList() { - return pid_.getUnmodifiableView(); - } - /** - * repeated string pid = 4; - * @return The count of pid. - */ - public int getPidCount() { - return pid_.size(); - } - /** - * repeated string pid = 4; - * @param index The index of the element to return. - * @return The pid at the given index. - */ - public java.lang.String getPid(int index) { - return pid_.get(index); - } - /** - * repeated string pid = 4; - * @param index The index of the value to return. - * @return The bytes of the pid at the given index. - */ - public com.google.protobuf.ByteString - getPidBytes(int index) { - return pid_.getByteString(index); - } - /** - * repeated string pid = 4; - * @param index The index to set the value at. - * @param value The pid to set. - * @return This builder for chaining. - */ - public Builder setPid( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePidIsMutable(); - pid_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @param value The pid to add. - * @return This builder for chaining. - */ - public Builder addPid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePidIsMutable(); - pid_.add(value); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @param values The pid to add. - * @return This builder for chaining. - */ - public Builder addAllPid( - java.lang.Iterable values) { - ensurePidIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pid_); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @return This builder for chaining. - */ - public Builder clearPid() { - pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @param value The bytes of the pid to add. - * @return This builder for chaining. - */ - public Builder addPidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePidIsMutable(); - pid_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqBlocks) } - // @@protoc_insertion_point(class_scope:ReqBlocks) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks(); - } + public interface BlockSeqOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockSeq) + com.google.protobuf.MessageOrBuilder { - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * int64 num = 1; + * + * @return The num. + */ + long getNum(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqBlocks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqBlocks(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .BlockSequence seq = 2; + * + * @return Whether the seq field is set. + */ + boolean hasSeq(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .BlockSequence seq = 2; + * + * @return The seq. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq(); - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * .BlockSequence seq = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder(); + + /** + * .BlockDetail detail = 3; + * + * @return Whether the detail field is set. + */ + boolean hasDetail(); - } + /** + * .BlockDetail detail = 3; + * + * @return The detail. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDetail(); - public interface MempoolSizeOrBuilder extends - // @@protoc_insertion_point(interface_extends:MempoolSize) - com.google.protobuf.MessageOrBuilder { + /** + * .BlockDetail detail = 3; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getDetailOrBuilder(); + } /** - * int64 size = 1; - * @return The size. + * Protobuf type {@code BlockSeq} */ - long getSize(); - } - /** - * Protobuf type {@code MempoolSize} - */ - public static final class MempoolSize extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MempoolSize) - MempoolSizeOrBuilder { - private static final long serialVersionUID = 0L; - // Use MempoolSize.newBuilder() to construct. - private MempoolSize(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MempoolSize() { - } + public static final class BlockSeq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockSeq) + BlockSeqOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MempoolSize(); - } + // Use BlockSeq.newBuilder() to construct. + private BlockSeq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MempoolSize( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - size_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_descriptor; - } + private BlockSeq() { + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.Builder.class); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockSeq(); + } - public static final int SIZE_FIELD_NUMBER = 1; - private long size_; - /** - * int64 size = 1; - * @return The size. - */ - public long getSize() { - return size_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private BlockSeq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + num_ = input.readInt64(); + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder subBuilder = null; + if (seq_ != null) { + subBuilder = seq_.toBuilder(); + } + seq_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(seq_); + seq_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder subBuilder = null; + if (detail_ != null) { + subBuilder = detail_.toBuilder(); + } + detail_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detail_); + detail_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (size_ != 0L) { - output.writeInt64(1, size_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder.class); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, size_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int NUM_FIELD_NUMBER = 1; + private long num_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize) obj; - - if (getSize() - != other.getSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 num = 1; + * + * @return The num. + */ + @java.lang.Override + public long getNum() { + return num_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int SEQ_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * .BlockSequence seq = 2; + * + * @return Whether the seq field is set. + */ + @java.lang.Override + public boolean hasSeq() { + return seq_ != null; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * .BlockSequence seq = 2; + * + * @return The seq. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { + return seq_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MempoolSize} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:MempoolSize) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSizeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - size_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize(this); - result.size_ = size_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.getDefaultInstance()) return this; - if (other.getSize() != 0L) { - setSize(other.getSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long size_ ; - /** - * int64 size = 1; - * @return The size. - */ - public long getSize() { - return size_; - } - /** - * int64 size = 1; - * @param value The size to set. - * @return This builder for chaining. - */ - public Builder setSize(long value) { - - size_ = value; - onChanged(); - return this; - } - /** - * int64 size = 1; - * @return This builder for chaining. - */ - public Builder clearSize() { - - size_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MempoolSize) - } + /** + * .BlockSequence seq = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { + return getSeq(); + } - // @@protoc_insertion_point(class_scope:MempoolSize) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize(); - } + public static final int DETAIL_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail detail_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * .BlockDetail detail = 3; + * + * @return Whether the detail field is set. + */ + @java.lang.Override + public boolean hasDetail() { + return detail_ != null; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MempoolSize parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MempoolSize(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .BlockDetail detail = 3; + * + * @return The detail. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDetail() { + return detail_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() : detail_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .BlockDetail detail = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getDetailOrBuilder() { + return getDetail(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface ReplyBlockHeightOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyBlockHeight) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (num_ != 0L) { + output.writeInt64(1, num_); + } + if (seq_ != null) { + output.writeMessage(2, getSeq()); + } + if (detail_ != null) { + output.writeMessage(3, getDetail()); + } + unknownFields.writeTo(output); + } - /** - * int64 height = 1; - * @return The height. - */ - long getHeight(); - } - /** - * Protobuf type {@code ReplyBlockHeight} - */ - public static final class ReplyBlockHeight extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyBlockHeight) - ReplyBlockHeightOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyBlockHeight.newBuilder() to construct. - private ReplyBlockHeight(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyBlockHeight() { - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyBlockHeight(); - } + size = 0; + if (num_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, num_); + } + if (seq_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSeq()); + } + if (detail_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDetail()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyBlockHeight( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq) obj; + + if (getNum() != other.getNum()) + return false; + if (hasSeq() != other.hasSeq()) + return false; + if (hasSeq()) { + if (!getSeq().equals(other.getSeq())) + return false; + } + if (hasDetail() != other.hasDetail()) + return false; + if (hasDetail()) { + if (!getDetail().equals(other.getDetail())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNum()); + if (hasSeq()) { + hash = (37 * hash) + SEQ_FIELD_NUMBER; + hash = (53 * hash) + getSeq().hashCode(); + } + if (hasDetail()) { + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyBlockHeight} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyBlockHeight) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeightOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight(this); - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyBlockHeight) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - // @@protoc_insertion_point(class_scope:ReplyBlockHeight) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyBlockHeight parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyBlockHeight(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public interface BlockBodyOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockBody) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); - /** - * repeated .Transaction txs = 1; - */ - int getTxsCount(); - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsOrBuilderList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index); + /** + * Protobuf type {@code BlockSeq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockSeq) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_descriptor; + } - /** - * repeated .ReceiptData receipts = 2; - */ - java.util.List - getReceiptsList(); - /** - * repeated .ReceiptData receipts = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index); - /** - * repeated .ReceiptData receipts = 2; - */ - int getReceiptsCount(); - /** - * repeated .ReceiptData receipts = 2; - */ - java.util.List - getReceiptsOrBuilderList(); - /** - * repeated .ReceiptData receipts = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder.class); + } - /** - * bytes mainHash = 3; - * @return The mainHash. - */ - com.google.protobuf.ByteString getMainHash(); + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * int64 mainHeight = 4; - * @return The mainHeight. - */ - long getMainHeight(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * bytes hash = 5; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * int64 height = 6; - * @return The height. - */ - long getHeight(); - } - /** - *
-   *区块体信息
-   * 	 txs : 区块上所有交易列表
-   *	 receipts :区块上所有交易的收据信息列表
-   * 	 mainHash : 主链区块hash,平行链使用
-   *	 mainHeight :主链区块高度,平行链使用
-   * 	 hash : 本链区块hash
-   *	 height :本链区块高度
-   * 
- * - * Protobuf type {@code BlockBody} - */ - public static final class BlockBody extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockBody) - BlockBodyOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockBody.newBuilder() to construct. - private BlockBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockBody() { - txs_ = java.util.Collections.emptyList(); - receipts_ = java.util.Collections.emptyList(); - mainHash_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public Builder clear() { + super.clear(); + num_ = 0L; + + if (seqBuilder_ == null) { + seq_ = null; + } else { + seq_ = null; + seqBuilder_ = null; + } + if (detailBuilder_ == null) { + detail_ = null; + } else { + detail_ = null; + detailBuilder_ = null; + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockBody(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeq_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockBody( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - receipts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - receipts_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), extensionRegistry)); - break; - } - case 26: { - - mainHash_ = input.readBytes(); - break; - } - case 32: { - - mainHeight_ = input.readInt64(); - break; - } - case 42: { - - hash_ = input.readBytes(); - break; - } - case 48: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int TXS_FIELD_NUMBER = 1; - private java.util.List txs_; - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq( + this); + result.num_ = num_; + if (seqBuilder_ == null) { + result.seq_ = seq_; + } else { + result.seq_ = seqBuilder_.build(); + } + if (detailBuilder_ == null) { + result.detail_ = detail_; + } else { + result.detail_ = detailBuilder_.build(); + } + onBuilt(); + return result; + } - public static final int RECEIPTS_FIELD_NUMBER = 2; - private java.util.List receipts_; - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List getReceiptsList() { - return receipts_; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List - getReceiptsOrBuilderList() { - return receipts_; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public int getReceiptsCount() { - return receipts_.size(); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { - return receipts_.get(index); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index) { - return receipts_.get(index); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int MAINHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString mainHash_; - /** - * bytes mainHash = 3; - * @return The mainHash. - */ - public com.google.protobuf.ByteString getMainHash() { - return mainHash_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int MAINHEIGHT_FIELD_NUMBER = 4; - private long mainHeight_; - /** - * int64 mainHeight = 4; - * @return The mainHeight. - */ - public long getMainHeight() { - return mainHeight_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int HASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 5; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int HEIGHT_FIELD_NUMBER = 6; - private long height_; - /** - * int64 height = 6; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(1, txs_.get(i)); - } - for (int i = 0; i < receipts_.size(); i++) { - output.writeMessage(2, receipts_.get(i)); - } - if (!mainHash_.isEmpty()) { - output.writeBytes(3, mainHash_); - } - if (mainHeight_ != 0L) { - output.writeInt64(4, mainHeight_); - } - if (!hash_.isEmpty()) { - output.writeBytes(5, hash_); - } - if (height_ != 0L) { - output.writeInt64(6, height_); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance()) + return this; + if (other.getNum() != 0L) { + setNum(other.getNum()); + } + if (other.hasSeq()) { + mergeSeq(other.getSeq()); + } + if (other.hasDetail()) { + mergeDetail(other.getDetail()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txs_.get(i)); - } - for (int i = 0; i < receipts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, receipts_.get(i)); - } - if (!mainHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, mainHash_); - } - if (mainHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, mainHeight_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, hash_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, height_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody) obj; - - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!getReceiptsList() - .equals(other.getReceiptsList())) return false; - if (!getMainHash() - .equals(other.getMainHash())) return false; - if (getMainHeight() - != other.getMainHeight()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - if (getReceiptsCount() > 0) { - hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; - hash = (53 * hash) + getReceiptsList().hashCode(); - } - hash = (37 * hash) + MAINHASH_FIELD_NUMBER; - hash = (53 * hash) + getMainHash().hashCode(); - hash = (37 * hash) + MAINHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMainHeight()); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private long num_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int64 num = 1; + * + * @return The num. + */ + @java.lang.Override + public long getNum() { + return num_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * int64 num = 1; + * + * @param value + * The num to set. + * + * @return This builder for chaining. + */ + public Builder setNum(long value) { + + num_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *区块体信息
-     * 	 txs : 区块上所有交易列表
-     *	 receipts :区块上所有交易的收据信息列表
-     * 	 mainHash : 主链区块hash,平行链使用
-     *	 mainHeight :主链区块高度,平行链使用
-     * 	 hash : 本链区块hash
-     *	 height :本链区块高度
-     * 
- * - * Protobuf type {@code BlockBody} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockBody) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - getReceiptsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - receiptsBuilder_.clear(); - } - mainHash_ = com.google.protobuf.ByteString.EMPTY; - - mainHeight_ = 0L; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody(this); - int from_bitField0_ = bitField0_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - if (receiptsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.receipts_ = receipts_; - } else { - result.receipts_ = receiptsBuilder_.build(); - } - result.mainHash_ = mainHash_; - result.mainHeight_ = mainHeight_; - result.hash_ = hash_; - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance()) return this; - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); + /** + * int64 num = 1; + * + * @return This builder for chaining. + */ + public Builder clearNum() { + + num_ = 0L; + onChanged(); + return this; } - } - } - if (receiptsBuilder_ == null) { - if (!other.receipts_.isEmpty()) { - if (receipts_.isEmpty()) { - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureReceiptsIsMutable(); - receipts_.addAll(other.receipts_); - } - onChanged(); - } - } else { - if (!other.receipts_.isEmpty()) { - if (receiptsBuilder_.isEmpty()) { - receiptsBuilder_.dispose(); - receiptsBuilder_ = null; - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000002); - receiptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReceiptsFieldBuilder() : null; - } else { - receiptsBuilder_.addAllMessages(other.receipts_); - } - } - } - if (other.getMainHash() != com.google.protobuf.ByteString.EMPTY) { - setMainHash(other.getMainHash()); - } - if (other.getMainHeight() != 0L) { - setMainHeight(other.getMainHeight()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txsBuilder_; - - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - - private java.util.List receipts_ = - java.util.Collections.emptyList(); - private void ensureReceiptsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - receipts_ = new java.util.ArrayList(receipts_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> receiptsBuilder_; - - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List getReceiptsList() { - if (receiptsBuilder_ == null) { - return java.util.Collections.unmodifiableList(receipts_); - } else { - return receiptsBuilder_.getMessageList(); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public int getReceiptsCount() { - if (receiptsBuilder_ == null) { - return receipts_.size(); - } else { - return receiptsBuilder_.getCount(); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); - } else { - return receiptsBuilder_.getMessage(index); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.set(index, value); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.set(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(value); - onChanged(); - } else { - receiptsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(index, value); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder addAllReceipts( - java.lang.Iterable values) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receipts_); - onChanged(); - } else { - receiptsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder clearReceipts() { - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - receiptsBuilder_.clear(); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public Builder removeReceipts(int index) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.remove(index); - onChanged(); - } else { - receiptsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().getBuilder(index); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); } else { - return receiptsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List - getReceiptsOrBuilderList() { - if (receiptsBuilder_ != null) { - return receiptsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(receipts_); - } - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder() { - return getReceiptsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); - } - /** - * repeated .ReceiptData receipts = 2; - */ - public java.util.List - getReceiptsBuilderList() { - return getReceiptsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> - getReceiptsFieldBuilder() { - if (receiptsBuilder_ == null) { - receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder>( - receipts_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - receipts_ = null; - } - return receiptsBuilder_; - } - - private com.google.protobuf.ByteString mainHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes mainHash = 3; - * @return The mainHash. - */ - public com.google.protobuf.ByteString getMainHash() { - return mainHash_; - } - /** - * bytes mainHash = 3; - * @param value The mainHash to set. - * @return This builder for chaining. - */ - public Builder setMainHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - mainHash_ = value; - onChanged(); - return this; - } - /** - * bytes mainHash = 3; - * @return This builder for chaining. - */ - public Builder clearMainHash() { - - mainHash_ = getDefaultInstance().getMainHash(); - onChanged(); - return this; - } - - private long mainHeight_ ; - /** - * int64 mainHeight = 4; - * @return The mainHeight. - */ - public long getMainHeight() { - return mainHeight_; - } - /** - * int64 mainHeight = 4; - * @param value The mainHeight to set. - * @return This builder for chaining. - */ - public Builder setMainHeight(long value) { - - mainHeight_ = value; - onChanged(); - return this; - } - /** - * int64 mainHeight = 4; - * @return This builder for chaining. - */ - public Builder clearMainHeight() { - - mainHeight_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 5; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 5; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 5; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 6; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 6; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 6; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockBody) - } - // @@protoc_insertion_point(class_scope:BlockBody) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody(); - } + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; + private com.google.protobuf.SingleFieldBuilderV3 seqBuilder_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * .BlockSequence seq = 2; + * + * @return Whether the seq field is set. + */ + public boolean hasSeq() { + return seqBuilder_ != null || seq_ != null; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockBody parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockBody(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .BlockSequence seq = 2; + * + * @return The seq. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { + if (seqBuilder_ == null) { + return seq_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() + : seq_; + } else { + return seqBuilder_.getMessage(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .BlockSequence seq = 2; + */ + public Builder setSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { + if (seqBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + seq_ = value; + onChanged(); + } else { + seqBuilder_.setMessage(value); + } + + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * .BlockSequence seq = 2; + */ + public Builder setSeq( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { + if (seqBuilder_ == null) { + seq_ = builderForValue.build(); + onChanged(); + } else { + seqBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - } + /** + * .BlockSequence seq = 2; + */ + public Builder mergeSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { + if (seqBuilder_ == null) { + if (seq_ != null) { + seq_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.newBuilder(seq_) + .mergeFrom(value).buildPartial(); + } else { + seq_ = value; + } + onChanged(); + } else { + seqBuilder_.mergeFrom(value); + } + + return this; + } - public interface BlockReceiptOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockReceipt) - com.google.protobuf.MessageOrBuilder { + /** + * .BlockSequence seq = 2; + */ + public Builder clearSeq() { + if (seqBuilder_ == null) { + seq_ = null; + onChanged(); + } else { + seq_ = null; + seqBuilder_ = null; + } + + return this; + } - /** - * repeated .ReceiptData receipts = 1; - */ - java.util.List - getReceiptsList(); - /** - * repeated .ReceiptData receipts = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index); - /** - * repeated .ReceiptData receipts = 1; - */ - int getReceiptsCount(); - /** - * repeated .ReceiptData receipts = 1; - */ - java.util.List - getReceiptsOrBuilderList(); - /** - * repeated .ReceiptData receipts = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index); + /** + * .BlockSequence seq = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder getSeqBuilder() { - /** - * bytes hash = 2; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + onChanged(); + return getSeqFieldBuilder().getBuilder(); + } - /** - * int64 height = 3; - * @return The height. - */ - long getHeight(); - } - /** - *
-   *区块回执
-   *	 receipts :区块上所有交易的收据信息列表
-   * 	 hash : 本链区块hash
-   *	 height :本链区块高度
-   * 
- * - * Protobuf type {@code BlockReceipt} - */ - public static final class BlockReceipt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockReceipt) - BlockReceiptOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockReceipt.newBuilder() to construct. - private BlockReceipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockReceipt() { - receipts_ = java.util.Collections.emptyList(); - hash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * .BlockSequence seq = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { + if (seqBuilder_ != null) { + return seqBuilder_.getMessageOrBuilder(); + } else { + return seq_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() + : seq_; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockReceipt(); - } + /** + * .BlockSequence seq = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getSeqFieldBuilder() { + if (seqBuilder_ == null) { + seqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getSeq(), getParentForChildren(), isClean()); + seq_ = null; + } + return seqBuilder_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockReceipt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - receipts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - receipts_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), extensionRegistry)); - break; - } - case 18: { - - hash_ = input.readBytes(); - break; - } - case 24: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_descriptor; - } + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail detail_; + private com.google.protobuf.SingleFieldBuilderV3 detailBuilder_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.Builder.class); - } + /** + * .BlockDetail detail = 3; + * + * @return Whether the detail field is set. + */ + public boolean hasDetail() { + return detailBuilder_ != null || detail_ != null; + } - public static final int RECEIPTS_FIELD_NUMBER = 1; - private java.util.List receipts_; - /** - * repeated .ReceiptData receipts = 1; - */ - public java.util.List getReceiptsList() { - return receipts_; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public java.util.List - getReceiptsOrBuilderList() { - return receipts_; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public int getReceiptsCount() { - return receipts_.size(); - } - /** - * repeated .ReceiptData receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { - return receipts_.get(index); - } - /** - * repeated .ReceiptData receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index) { - return receipts_.get(index); - } + /** + * .BlockDetail detail = 3; + * + * @return The detail. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDetail() { + if (detailBuilder_ == null) { + return detail_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() + : detail_; + } else { + return detailBuilder_.getMessage(); + } + } - public static final int HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 2; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + /** + * .BlockDetail detail = 3; + */ + public Builder setDetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { + if (detailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + onChanged(); + } else { + detailBuilder_.setMessage(value); + } + + return this; + } - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - * int64 height = 3; - * @return The height. - */ - public long getHeight() { - return height_; - } + /** + * .BlockDetail detail = 3; + */ + public Builder setDetail( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { + if (detailBuilder_ == null) { + detail_ = builderForValue.build(); + onChanged(); + } else { + detailBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * .BlockDetail detail = 3; + */ + public Builder mergeDetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { + if (detailBuilder_ == null) { + if (detail_ != null) { + detail_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.newBuilder(detail_) + .mergeFrom(value).buildPartial(); + } else { + detail_ = value; + } + onChanged(); + } else { + detailBuilder_.mergeFrom(value); + } + + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * .BlockDetail detail = 3; + */ + public Builder clearDetail() { + if (detailBuilder_ == null) { + detail_ = null; + onChanged(); + } else { + detail_ = null; + detailBuilder_ = null; + } + + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < receipts_.size(); i++) { - output.writeMessage(1, receipts_.get(i)); - } - if (!hash_.isEmpty()) { - output.writeBytes(2, hash_); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - unknownFields.writeTo(output); - } + /** + * .BlockDetail detail = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder getDetailBuilder() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < receipts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, receipts_.get(i)); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hash_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + onChanged(); + return getDetailFieldBuilder().getBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt) obj; - - if (!getReceiptsList() - .equals(other.getReceiptsList())) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * .BlockDetail detail = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getDetailOrBuilder() { + if (detailBuilder_ != null) { + return detailBuilder_.getMessageOrBuilder(); + } else { + return detail_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() + : detail_; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getReceiptsCount() > 0) { - hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; - hash = (53 * hash) + getReceiptsList().hashCode(); - } - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * .BlockDetail detail = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getDetailFieldBuilder() { + if (detailBuilder_ == null) { + detailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getDetail(), getParentForChildren(), isClean()); + detail_ = null; + } + return detailBuilder_; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *区块回执
-     *	 receipts :区块上所有交易的收据信息列表
-     * 	 hash : 本链区块hash
-     *	 height :本链区块高度
-     * 
- * - * Protobuf type {@code BlockReceipt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockReceipt) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceiptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReceiptsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - receiptsBuilder_.clear(); - } - hash_ = com.google.protobuf.ByteString.EMPTY; - - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt(this); - int from_bitField0_ = bitField0_; - if (receiptsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - receipts_ = java.util.Collections.unmodifiableList(receipts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.receipts_ = receipts_; - } else { - result.receipts_ = receiptsBuilder_.build(); - } - result.hash_ = hash_; - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.getDefaultInstance()) return this; - if (receiptsBuilder_ == null) { - if (!other.receipts_.isEmpty()) { - if (receipts_.isEmpty()) { - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReceiptsIsMutable(); - receipts_.addAll(other.receipts_); - } - onChanged(); - } - } else { - if (!other.receipts_.isEmpty()) { - if (receiptsBuilder_.isEmpty()) { - receiptsBuilder_.dispose(); - receiptsBuilder_ = null; - receipts_ = other.receipts_; - bitField0_ = (bitField0_ & ~0x00000001); - receiptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReceiptsFieldBuilder() : null; - } else { - receiptsBuilder_.addAllMessages(other.receipts_); - } - } - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List receipts_ = - java.util.Collections.emptyList(); - private void ensureReceiptsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - receipts_ = new java.util.ArrayList(receipts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> receiptsBuilder_; - - /** - * repeated .ReceiptData receipts = 1; - */ - public java.util.List getReceiptsList() { - if (receiptsBuilder_ == null) { - return java.util.Collections.unmodifiableList(receipts_); - } else { - return receiptsBuilder_.getMessageList(); - } - } - /** - * repeated .ReceiptData receipts = 1; - */ - public int getReceiptsCount() { - if (receiptsBuilder_ == null) { - return receipts_.size(); - } else { - return receiptsBuilder_.getCount(); - } - } - /** - * repeated .ReceiptData receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); - } else { - return receiptsBuilder_.getMessage(index); - } - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.set(index, value); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder setReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.set(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(value); - onChanged(); - } else { - receiptsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceiptsIsMutable(); - receipts_.add(index, value); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder addReceipts( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder addReceipts( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.add(index, builderForValue.build()); - onChanged(); - } else { - receiptsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder addAllReceipts( - java.lang.Iterable values) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receipts_); - onChanged(); - } else { - receiptsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder clearReceipts() { - if (receiptsBuilder_ == null) { - receipts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - receiptsBuilder_.clear(); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public Builder removeReceipts(int index) { - if (receiptsBuilder_ == null) { - ensureReceiptsIsMutable(); - receipts_.remove(index); - onChanged(); - } else { - receiptsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ReceiptData receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().getBuilder(index); - } - /** - * repeated .ReceiptData receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( - int index) { - if (receiptsBuilder_ == null) { - return receipts_.get(index); } else { - return receiptsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ReceiptData receipts = 1; - */ - public java.util.List - getReceiptsOrBuilderList() { - if (receiptsBuilder_ != null) { - return receiptsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(receipts_); - } - } - /** - * repeated .ReceiptData receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder() { - return getReceiptsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); - } - /** - * repeated .ReceiptData receipts = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder( - int index) { - return getReceiptsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); - } - /** - * repeated .ReceiptData receipts = 1; - */ - public java.util.List - getReceiptsBuilderList() { - return getReceiptsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> - getReceiptsFieldBuilder() { - if (receiptsBuilder_ == null) { - receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder>( - receipts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - receipts_ = null; - } - return receiptsBuilder_; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 2; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 2; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 2; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 3; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 3; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 3; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockReceipt) - } + // @@protoc_insertion_point(builder_scope:BlockSeq) + } - // @@protoc_insertion_point(class_scope:BlockReceipt) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt(); - } + // @@protoc_insertion_point(class_scope:BlockSeq) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockReceipt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockReceipt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockSeq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockSeq(input, extensionRegistry); + } + }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - } + public interface BlockSeqsOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockSeqs) + com.google.protobuf.MessageOrBuilder { - public interface IsCaughtUpOrBuilder extends - // @@protoc_insertion_point(interface_extends:IsCaughtUp) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .BlockSeq seqs = 1; + */ + java.util.List getSeqsList(); - /** - * bool Iscaughtup = 1; - * @return The iscaughtup. - */ - boolean getIscaughtup(); - } - /** - *
-   *  区块追赶主链状态,用于判断本节点区块是否已经同步好
-   * 
- * - * Protobuf type {@code IsCaughtUp} - */ - public static final class IsCaughtUp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:IsCaughtUp) - IsCaughtUpOrBuilder { - private static final long serialVersionUID = 0L; - // Use IsCaughtUp.newBuilder() to construct. - private IsCaughtUp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IsCaughtUp() { - } + /** + * repeated .BlockSeq seqs = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getSeqs(int index); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IsCaughtUp(); - } + /** + * repeated .BlockSeq seqs = 1; + */ + int getSeqsCount(); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IsCaughtUp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - iscaughtup_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_descriptor; - } + /** + * repeated .BlockSeq seqs = 1; + */ + java.util.List getSeqsOrBuilderList(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.Builder.class); + /** + * repeated .BlockSeq seqs = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder getSeqsOrBuilder(int index); } - public static final int ISCAUGHTUP_FIELD_NUMBER = 1; - private boolean iscaughtup_; /** - * bool Iscaughtup = 1; - * @return The iscaughtup. + * Protobuf type {@code BlockSeqs} */ - public boolean getIscaughtup() { - return iscaughtup_; - } + public static final class BlockSeqs extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockSeqs) + BlockSeqsOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use BlockSeqs.newBuilder() to construct. + private BlockSeqs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private BlockSeqs() { + seqs_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (iscaughtup_ != false) { - output.writeBool(1, iscaughtup_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockSeqs(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (iscaughtup_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, iscaughtup_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp) obj; - - if (getIscaughtup() - != other.getIscaughtup()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private BlockSeqs(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + seqs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + seqs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + seqs_ = java.util.Collections.unmodifiableList(seqs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISCAUGHTUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIscaughtup()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int SEQS_FIELD_NUMBER = 1; + private java.util.List seqs_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *  区块追赶主链状态,用于判断本节点区块是否已经同步好
-     * 
- * - * Protobuf type {@code IsCaughtUp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:IsCaughtUp) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - iscaughtup_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp(this); - result.iscaughtup_ = iscaughtup_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.getDefaultInstance()) return this; - if (other.getIscaughtup() != false) { - setIscaughtup(other.getIscaughtup()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean iscaughtup_ ; - /** - * bool Iscaughtup = 1; - * @return The iscaughtup. - */ - public boolean getIscaughtup() { - return iscaughtup_; - } - /** - * bool Iscaughtup = 1; - * @param value The iscaughtup to set. - * @return This builder for chaining. - */ - public Builder setIscaughtup(boolean value) { - - iscaughtup_ = value; - onChanged(); - return this; - } - /** - * bool Iscaughtup = 1; - * @return This builder for chaining. - */ - public Builder clearIscaughtup() { - - iscaughtup_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:IsCaughtUp) - } + /** + * repeated .BlockSeq seqs = 1; + */ + @java.lang.Override + public java.util.List getSeqsList() { + return seqs_; + } - // @@protoc_insertion_point(class_scope:IsCaughtUp) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp(); - } + /** + * repeated .BlockSeq seqs = 1; + */ + @java.lang.Override + public java.util.List getSeqsOrBuilderList() { + return seqs_; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .BlockSeq seqs = 1; + */ + @java.lang.Override + public int getSeqsCount() { + return seqs_.size(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsCaughtUp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IsCaughtUp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .BlockSeq seqs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getSeqs(int index) { + return seqs_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .BlockSeq seqs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder getSeqsOrBuilder(int index) { + return seqs_.get(index); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface IsNtpClockSyncOrBuilder extends - // @@protoc_insertion_point(interface_extends:IsNtpClockSync) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - * bool isntpclocksync = 1; - * @return The isntpclocksync. - */ - boolean getIsntpclocksync(); - } - /** - *
-   *  ntp时钟状态
-   * 
- * - * Protobuf type {@code IsNtpClockSync} - */ - public static final class IsNtpClockSync extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:IsNtpClockSync) - IsNtpClockSyncOrBuilder { - private static final long serialVersionUID = 0L; - // Use IsNtpClockSync.newBuilder() to construct. - private IsNtpClockSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IsNtpClockSync() { - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < seqs_.size(); i++) { + output.writeMessage(1, seqs_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IsNtpClockSync(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IsNtpClockSync( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isntpclocksync_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_descriptor; - } + size = 0; + for (int i = 0; i < seqs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, seqs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) obj; - public static final int ISNTPCLOCKSYNC_FIELD_NUMBER = 1; - private boolean isntpclocksync_; - /** - * bool isntpclocksync = 1; - * @return The isntpclocksync. - */ - public boolean getIsntpclocksync() { - return isntpclocksync_; - } + if (!getSeqsList().equals(other.getSeqsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSeqsCount() > 0) { + hash = (37 * hash) + SEQS_FIELD_NUMBER; + hash = (53 * hash) + getSeqsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isntpclocksync_ != false) { - output.writeBool(1, isntpclocksync_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isntpclocksync_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isntpclocksync_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync) obj; - - if (getIsntpclocksync() - != other.getIsntpclocksync()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISNTPCLOCKSYNC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsntpclocksync()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *  ntp时钟状态
-     * 
- * - * Protobuf type {@code IsNtpClockSync} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:IsNtpClockSync) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSyncOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isntpclocksync_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync(this); - result.isntpclocksync_ = isntpclocksync_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.getDefaultInstance()) return this; - if (other.getIsntpclocksync() != false) { - setIsntpclocksync(other.getIsntpclocksync()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isntpclocksync_ ; - /** - * bool isntpclocksync = 1; - * @return The isntpclocksync. - */ - public boolean getIsntpclocksync() { - return isntpclocksync_; - } - /** - * bool isntpclocksync = 1; - * @param value The isntpclocksync to set. - * @return This builder for chaining. - */ - public Builder setIsntpclocksync(boolean value) { - - isntpclocksync_ = value; - onChanged(); - return this; - } - /** - * bool isntpclocksync = 1; - * @return This builder for chaining. - */ - public Builder clearIsntpclocksync() { - - isntpclocksync_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:IsNtpClockSync) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:IsNtpClockSync) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsNtpClockSync parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IsNtpClockSync(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public interface ChainExecutorOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChainExecutor) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * string driver = 1; - * @return The driver. - */ - java.lang.String getDriver(); - /** - * string driver = 1; - * @return The bytes for driver. - */ - com.google.protobuf.ByteString - getDriverBytes(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * string funcName = 2; - * @return The funcName. - */ - java.lang.String getFuncName(); - /** - * string funcName = 2; - * @return The bytes for funcName. - */ - com.google.protobuf.ByteString - getFuncNameBytes(); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * bytes stateHash = 3; - * @return The stateHash. - */ - com.google.protobuf.ByteString getStateHash(); + /** + * Protobuf type {@code BlockSeqs} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockSeqs) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_descriptor; + } - /** - * bytes param = 4; - * @return The param. - */ - com.google.protobuf.ByteString getParam(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.Builder.class); + } - /** - *
-     *扩展字段,用于额外的用途
-     * 
- * - * bytes extra = 5; - * @return The extra. - */ - com.google.protobuf.ByteString getExtra(); - } - /** - * Protobuf type {@code ChainExecutor} - */ - public static final class ChainExecutor extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChainExecutor) - ChainExecutorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChainExecutor.newBuilder() to construct. - private ChainExecutor(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChainExecutor() { - driver_ = ""; - funcName_ = ""; - stateHash_ = com.google.protobuf.ByteString.EMPTY; - param_ = com.google.protobuf.ByteString.EMPTY; - extra_ = com.google.protobuf.ByteString.EMPTY; - } + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChainExecutor(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChainExecutor( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - driver_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - funcName_ = s; - break; - } - case 26: { - - stateHash_ = input.readBytes(); - break; - } - case 34: { - - param_ = input.readBytes(); - break; - } - case 42: { - - extra_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_descriptor; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSeqsFieldBuilder(); + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.Builder.class); - } + @java.lang.Override + public Builder clear() { + super.clear(); + if (seqsBuilder_ == null) { + seqs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + seqsBuilder_.clear(); + } + return this; + } - public static final int DRIVER_FIELD_NUMBER = 1; - private volatile java.lang.Object driver_; - /** - * string driver = 1; - * @return The driver. - */ - public java.lang.String getDriver() { - java.lang.Object ref = driver_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driver_ = s; - return s; - } - } - /** - * string driver = 1; - * @return The bytes for driver. - */ - public com.google.protobuf.ByteString - getDriverBytes() { - java.lang.Object ref = driver_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - driver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSeqs_descriptor; + } - public static final int FUNCNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object funcName_; - /** - * string funcName = 2; - * @return The funcName. - */ - public java.lang.String getFuncName() { - java.lang.Object ref = funcName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - funcName_ = s; - return s; - } - } - /** - * string funcName = 2; - * @return The bytes for funcName. - */ - public com.google.protobuf.ByteString - getFuncNameBytes() { - java.lang.Object ref = funcName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - funcName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.getDefaultInstance(); + } - public static final int STATEHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString stateHash_; - /** - * bytes stateHash = 3; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int PARAM_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString param_; - /** - * bytes param = 4; - * @return The param. - */ - public com.google.protobuf.ByteString getParam() { - return param_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs( + this); + int from_bitField0_ = bitField0_; + if (seqsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + seqs_ = java.util.Collections.unmodifiableList(seqs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.seqs_ = seqs_; + } else { + result.seqs_ = seqsBuilder_.build(); + } + onBuilt(); + return result; + } - public static final int EXTRA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString extra_; - /** - *
-     *扩展字段,用于额外的用途
-     * 
- * - * bytes extra = 5; - * @return The extra. - */ - public com.google.protobuf.ByteString getExtra() { - return extra_; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDriverBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); - } - if (!getFuncNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, funcName_); - } - if (!stateHash_.isEmpty()) { - output.writeBytes(3, stateHash_); - } - if (!param_.isEmpty()) { - output.writeBytes(4, param_); - } - if (!extra_.isEmpty()) { - output.writeBytes(5, extra_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDriverBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); - } - if (!getFuncNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, funcName_); - } - if (!stateHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, stateHash_); - } - if (!param_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, param_); - } - if (!extra_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, extra_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) obj; - - if (!getDriver() - .equals(other.getDriver())) return false; - if (!getFuncName() - .equals(other.getFuncName())) return false; - if (!getStateHash() - .equals(other.getStateHash())) return false; - if (!getParam() - .equals(other.getParam())) return false; - if (!getExtra() - .equals(other.getExtra())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DRIVER_FIELD_NUMBER; - hash = (53 * hash) + getDriver().hashCode(); - hash = (37 * hash) + FUNCNAME_FIELD_NUMBER; - hash = (53 * hash) + getFuncName().hashCode(); - hash = (37 * hash) + STATEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStateHash().hashCode(); - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam().hashCode(); - hash = (37 * hash) + EXTRA_FIELD_NUMBER; - hash = (53 * hash) + getExtra().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs.getDefaultInstance()) + return this; + if (seqsBuilder_ == null) { + if (!other.seqs_.isEmpty()) { + if (seqs_.isEmpty()) { + seqs_ = other.seqs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSeqsIsMutable(); + seqs_.addAll(other.seqs_); + } + onChanged(); + } + } else { + if (!other.seqs_.isEmpty()) { + if (seqsBuilder_.isEmpty()) { + seqsBuilder_.dispose(); + seqsBuilder_ = null; + seqs_ = other.seqs_; + bitField0_ = (bitField0_ & ~0x00000001); + seqsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSeqsFieldBuilder() : null; + } else { + seqsBuilder_.addAllMessages(other.seqs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChainExecutor} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ChainExecutor) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - driver_ = ""; - - funcName_ = ""; - - stateHash_ = com.google.protobuf.ByteString.EMPTY; - - param_ = com.google.protobuf.ByteString.EMPTY; - - extra_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor(this); - result.driver_ = driver_; - result.funcName_ = funcName_; - result.stateHash_ = stateHash_; - result.param_ = param_; - result.extra_ = extra_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.getDefaultInstance()) return this; - if (!other.getDriver().isEmpty()) { - driver_ = other.driver_; - onChanged(); - } - if (!other.getFuncName().isEmpty()) { - funcName_ = other.funcName_; - onChanged(); - } - if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { - setStateHash(other.getStateHash()); - } - if (other.getParam() != com.google.protobuf.ByteString.EMPTY) { - setParam(other.getParam()); - } - if (other.getExtra() != com.google.protobuf.ByteString.EMPTY) { - setExtra(other.getExtra()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object driver_ = ""; - /** - * string driver = 1; - * @return The driver. - */ - public java.lang.String getDriver() { - java.lang.Object ref = driver_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driver_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string driver = 1; - * @return The bytes for driver. - */ - public com.google.protobuf.ByteString - getDriverBytes() { - java.lang.Object ref = driver_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - driver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string driver = 1; - * @param value The driver to set. - * @return This builder for chaining. - */ - public Builder setDriver( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - driver_ = value; - onChanged(); - return this; - } - /** - * string driver = 1; - * @return This builder for chaining. - */ - public Builder clearDriver() { - - driver_ = getDefaultInstance().getDriver(); - onChanged(); - return this; - } - /** - * string driver = 1; - * @param value The bytes for driver to set. - * @return This builder for chaining. - */ - public Builder setDriverBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - driver_ = value; - onChanged(); - return this; - } - - private java.lang.Object funcName_ = ""; - /** - * string funcName = 2; - * @return The funcName. - */ - public java.lang.String getFuncName() { - java.lang.Object ref = funcName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - funcName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string funcName = 2; - * @return The bytes for funcName. - */ - public com.google.protobuf.ByteString - getFuncNameBytes() { - java.lang.Object ref = funcName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - funcName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string funcName = 2; - * @param value The funcName to set. - * @return This builder for chaining. - */ - public Builder setFuncName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - funcName_ = value; - onChanged(); - return this; - } - /** - * string funcName = 2; - * @return This builder for chaining. - */ - public Builder clearFuncName() { - - funcName_ = getDefaultInstance().getFuncName(); - onChanged(); - return this; - } - /** - * string funcName = 2; - * @param value The bytes for funcName to set. - * @return This builder for chaining. - */ - public Builder setFuncNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - funcName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateHash = 3; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } - /** - * bytes stateHash = 3; - * @param value The stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateHash_ = value; - onChanged(); - return this; - } - /** - * bytes stateHash = 3; - * @return This builder for chaining. - */ - public Builder clearStateHash() { - - stateHash_ = getDefaultInstance().getStateHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString param_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes param = 4; - * @return The param. - */ - public com.google.protobuf.ByteString getParam() { - return param_; - } - /** - * bytes param = 4; - * @param value The param to set. - * @return This builder for chaining. - */ - public Builder setParam(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - param_ = value; - onChanged(); - return this; - } - /** - * bytes param = 4; - * @return This builder for chaining. - */ - public Builder clearParam() { - - param_ = getDefaultInstance().getParam(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extra_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *扩展字段,用于额外的用途
-       * 
- * - * bytes extra = 5; - * @return The extra. - */ - public com.google.protobuf.ByteString getExtra() { - return extra_; - } - /** - *
-       *扩展字段,用于额外的用途
-       * 
- * - * bytes extra = 5; - * @param value The extra to set. - * @return This builder for chaining. - */ - public Builder setExtra(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extra_ = value; - onChanged(); - return this; - } - /** - *
-       *扩展字段,用于额外的用途
-       * 
- * - * bytes extra = 5; - * @return This builder for chaining. - */ - public Builder clearExtra() { - - extra_ = getDefaultInstance().getExtra(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChainExecutor) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - // @@protoc_insertion_point(class_scope:ChainExecutor) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor(); - } + private int bitField0_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.util.List seqs_ = java.util.Collections + .emptyList(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChainExecutor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChainExecutor(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private void ensureSeqsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + seqs_ = new java.util.ArrayList( + seqs_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3 seqsBuilder_; + + /** + * repeated .BlockSeq seqs = 1; + */ + public java.util.List getSeqsList() { + if (seqsBuilder_ == null) { + return java.util.Collections.unmodifiableList(seqs_); + } else { + return seqsBuilder_.getMessageList(); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public int getSeqsCount() { + if (seqsBuilder_ == null) { + return seqs_.size(); + } else { + return seqsBuilder_.getCount(); + } + } - } + /** + * repeated .BlockSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getSeqs(int index) { + if (seqsBuilder_ == null) { + return seqs_.get(index); + } else { + return seqsBuilder_.getMessage(index); + } + } - public interface BlockSequenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockSequence) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder setSeqs(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq value) { + if (seqsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeqsIsMutable(); + seqs_.set(index, value); + onChanged(); + } else { + seqsBuilder_.setMessage(index, value); + } + return this; + } - /** - * bytes Hash = 1; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder setSeqs(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder builderForValue) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.set(index, builderForValue.build()); + onChanged(); + } else { + seqsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * int64 Type = 2; - * @return The type. - */ - long getType(); - } - /** - *
-   *  通过block hash记录block的操作类型及add/del:1/2
-   * 
- * - * Protobuf type {@code BlockSequence} - */ - public static final class BlockSequence extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockSequence) - BlockSequenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockSequence.newBuilder() to construct. - private BlockSequence(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockSequence() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder addSeqs(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq value) { + if (seqsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeqsIsMutable(); + seqs_.add(value); + onChanged(); + } else { + seqsBuilder_.addMessage(value); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockSequence(); - } + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder addSeqs(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq value) { + if (seqsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeqsIsMutable(); + seqs_.add(index, value); + onChanged(); + } else { + seqsBuilder_.addMessage(index, value); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockSequence( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - case 16: { - - type_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_descriptor; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder addSeqs( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder builderForValue) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.add(builderForValue.build()); + onChanged(); + } else { + seqsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder.class); - } + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder addSeqs(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder builderForValue) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.add(index, builderForValue.build()); + onChanged(); + } else { + seqsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - * bytes Hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder addAllSeqs( + java.lang.Iterable values) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, seqs_); + onChanged(); + } else { + seqsBuilder_.addAllMessages(values); + } + return this; + } - public static final int TYPE_FIELD_NUMBER = 2; - private long type_; - /** - * int64 Type = 2; - * @return The type. - */ - public long getType() { - return type_; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder clearSeqs() { + if (seqsBuilder_ == null) { + seqs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + seqsBuilder_.clear(); + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .BlockSeq seqs = 1; + */ + public Builder removeSeqs(int index) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.remove(index); + onChanged(); + } else { + seqsBuilder_.remove(index); + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder getSeqsBuilder(int index) { + return getSeqsFieldBuilder().getBuilder(index); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - if (type_ != 0L) { - output.writeInt64(2, type_); - } - unknownFields.writeTo(output); - } + /** + * repeated .BlockSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqOrBuilder getSeqsOrBuilder(int index) { + if (seqsBuilder_ == null) { + return seqs_.get(index); + } else { + return seqsBuilder_.getMessageOrBuilder(index); + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - if (type_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public java.util.List getSeqsOrBuilderList() { + if (seqsBuilder_ != null) { + return seqsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(seqs_); + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (getType() - != other.getType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder addSeqsBuilder() { + return getSeqsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance()); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getType()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated .BlockSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.Builder addSeqsBuilder(int index) { + return getSeqsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance()); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .BlockSeq seqs = 1; + */ + public java.util.List getSeqsBuilderList() { + return getSeqsFieldBuilder().getBuilderList(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilderV3 getSeqsFieldBuilder() { + if (seqsBuilder_ == null) { + seqsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + seqs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + seqs_ = null; + } + return seqsBuilder_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *  通过block hash记录block的操作类型及add/del:1/2
-     * 
- * - * Protobuf type {@code BlockSequence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockSequence) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - type_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence(this); - result.hash_ = hash_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getType() != 0L) { - setType(other.getType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes Hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes Hash = 1; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes Hash = 1; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private long type_ ; - /** - * int64 Type = 2; - * @return The type. - */ - public long getType() { - return type_; - } - /** - * int64 Type = 2; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(long value) { - - type_ = value; - onChanged(); - return this; - } - /** - * int64 Type = 2; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockSequence) - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(class_scope:BlockSequence) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:BlockSeqs) + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockSequence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockSequence(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:BlockSeqs) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockSeqs parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockSeqs(input, extensionRegistry); + } + }; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public interface BlockSequencesOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockSequences) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * repeated .BlockSequence items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .BlockSequence items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getItems(int index); - /** - * repeated .BlockSequence items = 1; - */ - int getItemsCount(); - /** - * repeated .BlockSequence items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .BlockSequence items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getItemsOrBuilder( - int index); - } - /** - *
-   * resp
-   * 
- * - * Protobuf type {@code BlockSequences} - */ - public static final class BlockSequences extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockSequences) - BlockSequencesOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockSequences.newBuilder() to construct. - private BlockSequences(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockSequences() { - items_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeqs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockSequences(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockSequences( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_descriptor; - } + public interface BlockPidOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockPid) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.Builder.class); - } + /** + * string pid = 1; + * + * @return The pid. + */ + java.lang.String getPid(); - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .BlockSequence items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .BlockSequence items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .BlockSequence items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .BlockSequence items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getItems(int index) { - return items_.get(index); + /** + * string pid = 1; + * + * @return The bytes for pid. + */ + com.google.protobuf.ByteString getPidBytes(); + + /** + * .Block block = 2; + * + * @return Whether the block field is set. + */ + boolean hasBlock(); + + /** + * .Block block = 2; + * + * @return The block. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); + + /** + * .Block block = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); } + /** - * repeated .BlockSequence items = 1; + *
+     * 节点ID以及对应的Block
+     * 
+ * + * Protobuf type {@code BlockPid} */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + public static final class BlockPid extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockPid) + BlockPidOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use BlockPid.newBuilder() to construct. + private BlockPid(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private BlockPid() { + pid_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockPid(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private BlockPid(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + pid_ = s; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; + if (block_ != null) { + subBuilder = block_.toBuilder(); + } + block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(block_); + block_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int PID_FIELD_NUMBER = 1; + private volatile java.lang.Object pid_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * resp
-     * 
- * - * Protobuf type {@code BlockSequences} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockSequences) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequencesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); + /** + * string pid = 1; + * + * @return The pid. + */ + @java.lang.Override + public java.lang.String getPid() { + java.lang.Object ref = pid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pid_ = s; + return s; + } + } + + /** + * string pid = 1; + * + * @return The bytes for pid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPidBytes() { + java.lang.Object ref = pid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pid_ = b; + return b; } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder> itemsBuilder_; - - /** - * repeated .BlockSequence items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .BlockSequence items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .BlockSequence items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .BlockSequence items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .BlockSequence items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .BlockSequence items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .BlockSequence items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance()); - } - /** - * repeated .BlockSequence items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance()); - } - /** - * repeated .BlockSequence items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockSequences) - } + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:BlockSequences) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences(); - } + public static final int BLOCK_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * .Block block = 2; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return block_ != null; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockSequences parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockSequences(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .Block block = 2; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() + : block_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .Block block = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + return getBlock(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface ParaChainBlockDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:ParaChainBlockDetail) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - * .BlockDetail blockdetail = 1; - * @return Whether the blockdetail field is set. - */ - boolean hasBlockdetail(); - /** - * .BlockDetail blockdetail = 1; - * @return The blockdetail. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getBlockdetail(); - /** - * .BlockDetail blockdetail = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getBlockdetailOrBuilder(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pid_); + } + if (block_ != null) { + output.writeMessage(2, getBlock()); + } + unknownFields.writeTo(output); + } - /** - * int64 sequence = 2; - * @return The sequence. - */ - long getSequence(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * bool isSync = 3; - * @return The isSync. - */ - boolean getIsSync(); - } - /** - *
-   *平行链区块详细信息
-   * 	 blockdetail : 区块详细信息
-   *	 sequence :区块序列号
-   *   isSync:写数据库时是否需要刷盘
-   * 
- * - * Protobuf type {@code ParaChainBlockDetail} - */ - public static final class ParaChainBlockDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ParaChainBlockDetail) - ParaChainBlockDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParaChainBlockDetail.newBuilder() to construct. - private ParaChainBlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParaChainBlockDetail() { - } + size = 0; + if (!getPidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pid_); + } + if (block_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBlock()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ParaChainBlockDetail(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid) obj; + + if (!getPid().equals(other.getPid())) + return false; + if (hasBlock() != other.hasBlock()) + return false; + if (hasBlock()) { + if (!getBlock().equals(other.getBlock())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParaChainBlockDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder subBuilder = null; - if (blockdetail_ != null) { - subBuilder = blockdetail_.toBuilder(); - } - blockdetail_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blockdetail_); - blockdetail_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - sequence_ = input.readInt64(); - break; - } - case 24: { - - isSync_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid().hashCode(); + if (hasBlock()) { + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int BLOCKDETAIL_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail blockdetail_; - /** - * .BlockDetail blockdetail = 1; - * @return Whether the blockdetail field is set. - */ - public boolean hasBlockdetail() { - return blockdetail_ != null; - } - /** - * .BlockDetail blockdetail = 1; - * @return The blockdetail. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getBlockdetail() { - return blockdetail_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() : blockdetail_; - } - /** - * .BlockDetail blockdetail = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getBlockdetailOrBuilder() { - return getBlockdetail(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int SEQUENCE_FIELD_NUMBER = 2; - private long sequence_; - /** - * int64 sequence = 2; - * @return The sequence. - */ - public long getSequence() { - return sequence_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int ISSYNC_FIELD_NUMBER = 3; - private boolean isSync_; - /** - * bool isSync = 3; - * @return The isSync. - */ - public boolean getIsSync() { - return isSync_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockdetail_ != null) { - output.writeMessage(1, getBlockdetail()); - } - if (sequence_ != 0L) { - output.writeInt64(2, sequence_); - } - if (isSync_ != false) { - output.writeBool(3, isSync_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockdetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlockdetail()); - } - if (sequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, sequence_); - } - if (isSync_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isSync_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail) obj; - - if (hasBlockdetail() != other.hasBlockdetail()) return false; - if (hasBlockdetail()) { - if (!getBlockdetail() - .equals(other.getBlockdetail())) return false; - } - if (getSequence() - != other.getSequence()) return false; - if (getIsSync() - != other.getIsSync()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlockdetail()) { - hash = (37 * hash) + BLOCKDETAIL_FIELD_NUMBER; - hash = (53 * hash) + getBlockdetail().hashCode(); - } - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequence()); - hash = (37 * hash) + ISSYNC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsSync()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *平行链区块详细信息
-     * 	 blockdetail : 区块详细信息
-     *	 sequence :区块序列号
-     *   isSync:写数据库时是否需要刷盘
-     * 
- * - * Protobuf type {@code ParaChainBlockDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ParaChainBlockDetail) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockdetailBuilder_ == null) { - blockdetail_ = null; - } else { - blockdetail_ = null; - blockdetailBuilder_ = null; - } - sequence_ = 0L; - - isSync_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail(this); - if (blockdetailBuilder_ == null) { - result.blockdetail_ = blockdetail_; - } else { - result.blockdetail_ = blockdetailBuilder_.build(); - } - result.sequence_ = sequence_; - result.isSync_ = isSync_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.getDefaultInstance()) return this; - if (other.hasBlockdetail()) { - mergeBlockdetail(other.getBlockdetail()); - } - if (other.getSequence() != 0L) { - setSequence(other.getSequence()); - } - if (other.getIsSync() != false) { - setIsSync(other.getIsSync()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail blockdetail_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder> blockdetailBuilder_; - /** - * .BlockDetail blockdetail = 1; - * @return Whether the blockdetail field is set. - */ - public boolean hasBlockdetail() { - return blockdetailBuilder_ != null || blockdetail_ != null; - } - /** - * .BlockDetail blockdetail = 1; - * @return The blockdetail. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getBlockdetail() { - if (blockdetailBuilder_ == null) { - return blockdetail_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() : blockdetail_; - } else { - return blockdetailBuilder_.getMessage(); - } - } - /** - * .BlockDetail blockdetail = 1; - */ - public Builder setBlockdetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { - if (blockdetailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blockdetail_ = value; - onChanged(); - } else { - blockdetailBuilder_.setMessage(value); - } - - return this; - } - /** - * .BlockDetail blockdetail = 1; - */ - public Builder setBlockdetail( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { - if (blockdetailBuilder_ == null) { - blockdetail_ = builderForValue.build(); - onChanged(); - } else { - blockdetailBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .BlockDetail blockdetail = 1; - */ - public Builder mergeBlockdetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { - if (blockdetailBuilder_ == null) { - if (blockdetail_ != null) { - blockdetail_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.newBuilder(blockdetail_).mergeFrom(value).buildPartial(); - } else { - blockdetail_ = value; - } - onChanged(); - } else { - blockdetailBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .BlockDetail blockdetail = 1; - */ - public Builder clearBlockdetail() { - if (blockdetailBuilder_ == null) { - blockdetail_ = null; - onChanged(); - } else { - blockdetail_ = null; - blockdetailBuilder_ = null; - } - - return this; - } - /** - * .BlockDetail blockdetail = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder getBlockdetailBuilder() { - - onChanged(); - return getBlockdetailFieldBuilder().getBuilder(); - } - /** - * .BlockDetail blockdetail = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getBlockdetailOrBuilder() { - if (blockdetailBuilder_ != null) { - return blockdetailBuilder_.getMessageOrBuilder(); - } else { - return blockdetail_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() : blockdetail_; - } - } - /** - * .BlockDetail blockdetail = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder> - getBlockdetailFieldBuilder() { - if (blockdetailBuilder_ == null) { - blockdetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder>( - getBlockdetail(), - getParentForChildren(), - isClean()); - blockdetail_ = null; - } - return blockdetailBuilder_; - } - - private long sequence_ ; - /** - * int64 sequence = 2; - * @return The sequence. - */ - public long getSequence() { - return sequence_; - } - /** - * int64 sequence = 2; - * @param value The sequence to set. - * @return This builder for chaining. - */ - public Builder setSequence(long value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * int64 sequence = 2; - * @return This builder for chaining. - */ - public Builder clearSequence() { - - sequence_ = 0L; - onChanged(); - return this; - } - - private boolean isSync_ ; - /** - * bool isSync = 3; - * @return The isSync. - */ - public boolean getIsSync() { - return isSync_; - } - /** - * bool isSync = 3; - * @param value The isSync to set. - * @return This builder for chaining. - */ - public Builder setIsSync(boolean value) { - - isSync_ = value; - onChanged(); - return this; - } - /** - * bool isSync = 3; - * @return This builder for chaining. - */ - public Builder clearIsSync() { - - isSync_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ParaChainBlockDetail) - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:ParaChainBlockDetail) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParaChainBlockDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParaChainBlockDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+         * 节点ID以及对应的Block
+         * 
+ * + * Protobuf type {@code BlockPid} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockPid) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.Builder.class); + } - public interface ParaTxDetailsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ParaTxDetails) - com.google.protobuf.MessageOrBuilder { + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * repeated .ParaTxDetail items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .ParaTxDetail items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getItems(int index); - /** - * repeated .ParaTxDetail items = 1; - */ - int getItemsCount(); - /** - * repeated .ParaTxDetail items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .ParaTxDetail items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder getItemsOrBuilder( - int index); - } - /** - *
-   * 定义para交易结构
-   * 
- * - * Protobuf type {@code ParaTxDetails} - */ - public static final class ParaTxDetails extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ParaTxDetails) - ParaTxDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParaTxDetails.newBuilder() to construct. - private ParaTxDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParaTxDetails() { - items_ = java.util.Collections.emptyList(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ParaTxDetails(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParaTxDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_descriptor; - } + @java.lang.Override + public Builder clear() { + super.clear(); + pid_ = ""; + + if (blockBuilder_ == null) { + block_ = null; + } else { + block_ = null; + blockBuilder_ = null; + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockPid_descriptor; + } - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .ParaTxDetail items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .ParaTxDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getItems(int index) { - return items_.get(index); - } - /** - * repeated .ParaTxDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.getDefaultInstance(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid( + this); + result.pid_ = pid_; + if (blockBuilder_ == null) { + result.block_ = block_; + } else { + result.block_ = blockBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 定义para交易结构
-     * 
- * - * Protobuf type {@code ParaTxDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ParaTxDetails) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder> itemsBuilder_; - - /** - * repeated .ParaTxDetail items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .ParaTxDetail items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .ParaTxDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ParaTxDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .ParaTxDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ParaTxDetail items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .ParaTxDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance()); - } - /** - * repeated .ParaTxDetail items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance()); - } - /** - * repeated .ParaTxDetail items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ParaTxDetails) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid) other); + } else { + super.mergeFrom(other); + return this; + } + } - // @@protoc_insertion_point(class_scope:ParaTxDetails) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails(); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid.getDefaultInstance()) + return this; + if (!other.getPid().isEmpty()) { + pid_ = other.pid_; + onChanged(); + } + if (other.hasBlock()) { + mergeBlock(other.getBlock()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParaTxDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParaTxDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object pid_ = ""; + + /** + * string pid = 1; + * + * @return The pid. + */ + public java.lang.String getPid() { + java.lang.Object ref = pid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string pid = 1; + * + * @return The bytes for pid. + */ + public com.google.protobuf.ByteString getPidBytes() { + java.lang.Object ref = pid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + pid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } + /** + * string pid = 1; + * + * @param value + * The pid to set. + * + * @return This builder for chaining. + */ + public Builder setPid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pid_ = value; + onChanged(); + return this; + } - public interface ParaTxDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:ParaTxDetail) - com.google.protobuf.MessageOrBuilder { + /** + * string pid = 1; + * + * @return This builder for chaining. + */ + public Builder clearPid() { - /** - * int64 type = 1; - * @return The type. - */ - long getType(); + pid_ = getDefaultInstance().getPid(); + onChanged(); + return this; + } - /** - * .Header header = 2; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - * .Header header = 2; - * @return The header. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); - /** - * .Header header = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + /** + * string pid = 1; + * + * @param value + * The bytes for pid to set. + * + * @return This builder for chaining. + */ + public Builder setPidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pid_ = value; + onChanged(); + return this; + } - /** - * repeated .TxDetail txDetails = 3; - */ - java.util.List - getTxDetailsList(); - /** - * repeated .TxDetail txDetails = 3; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getTxDetails(int index); - /** - * repeated .TxDetail txDetails = 3; - */ - int getTxDetailsCount(); - /** - * repeated .TxDetail txDetails = 3; - */ - java.util.List - getTxDetailsOrBuilderList(); - /** - * repeated .TxDetail txDetails = 3; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder getTxDetailsOrBuilder( - int index); + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; + private com.google.protobuf.SingleFieldBuilderV3 blockBuilder_; - /** - * bytes childHash = 4; - * @return The childHash. - */ - com.google.protobuf.ByteString getChildHash(); + /** + * .Block block = 2; + * + * @return Whether the block field is set. + */ + public boolean hasBlock() { + return blockBuilder_ != null || block_ != null; + } - /** - * uint32 index = 5; - * @return The index. - */ - int getIndex(); + /** + * .Block block = 2; + * + * @return The block. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + if (blockBuilder_ == null) { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } else { + return blockBuilder_.getMessage(); + } + } - /** - * repeated bytes proofs = 6; - * @return A list containing the proofs. - */ - java.util.List getProofsList(); - /** - * repeated bytes proofs = 6; - * @return The count of proofs. - */ - int getProofsCount(); - /** - * repeated bytes proofs = 6; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - com.google.protobuf.ByteString getProofs(int index); - } - /** - *
-   * type:平行链交易所在区块add/del操作,方便平行链回滚
-   * header:平行链交易所在区块头信息
-   * txDetails:本区块中指定title平行链的所有交易
-   * proofs:对应平行链子roothash的存在证明路径
-   * childHash:此平行链交易的子roothash
-   * index:对应平行链子roothash在整个区块中的索引
-   * 
- * - * Protobuf type {@code ParaTxDetail} - */ - public static final class ParaTxDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ParaTxDetail) - ParaTxDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParaTxDetail.newBuilder() to construct. - private ParaTxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParaTxDetail() { - txDetails_ = java.util.Collections.emptyList(); - childHash_ = com.google.protobuf.ByteString.EMPTY; - proofs_ = java.util.Collections.emptyList(); - } + /** + * .Block block = 2; + */ + public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + block_ = value; + onChanged(); + } else { + blockBuilder_.setMessage(value); + } + + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ParaTxDetail(); - } + /** + * .Block block = 2; + */ + public Builder setBlock( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (blockBuilder_ == null) { + block_ = builderForValue.build(); + onChanged(); + } else { + blockBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParaTxDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - type_ = input.readInt64(); - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txDetails_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txDetails_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.parser(), extensionRegistry)); - break; - } - case 34: { - - childHash_ = input.readBytes(); - break; - } - case 40: { - - index_ = input.readUInt32(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - proofs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - proofs_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txDetails_ = java.util.Collections.unmodifiableList(txDetails_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_descriptor; - } + /** + * .Block block = 2; + */ + public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (block_ != null) { + block_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_) + .mergeFrom(value).buildPartial(); + } else { + block_ = value; + } + onChanged(); + } else { + blockBuilder_.mergeFrom(value); + } + + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder.class); - } + /** + * .Block block = 2; + */ + public Builder clearBlock() { + if (blockBuilder_ == null) { + block_ = null; + onChanged(); + } else { + block_ = null; + blockBuilder_ = null; + } + + return this; + } - public static final int TYPE_FIELD_NUMBER = 1; - private long type_; - /** - * int64 type = 1; - * @return The type. - */ - public long getType() { - return type_; - } + /** + * .Block block = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { - public static final int HEADER_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - /** - * .Header header = 2; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .Header header = 2; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - /** - * .Header header = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } + onChanged(); + return getBlockFieldBuilder().getBuilder(); + } - public static final int TXDETAILS_FIELD_NUMBER = 3; - private java.util.List txDetails_; - /** - * repeated .TxDetail txDetails = 3; - */ - public java.util.List getTxDetailsList() { - return txDetails_; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public java.util.List - getTxDetailsOrBuilderList() { - return txDetails_; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public int getTxDetailsCount() { - return txDetails_.size(); - } - /** - * repeated .TxDetail txDetails = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getTxDetails(int index) { - return txDetails_.get(index); - } - /** - * repeated .TxDetail txDetails = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder getTxDetailsOrBuilder( - int index) { - return txDetails_.get(index); - } + /** + * .Block block = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + if (blockBuilder_ != null) { + return blockBuilder_.getMessageOrBuilder(); + } else { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } + } - public static final int CHILDHASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString childHash_; - /** - * bytes childHash = 4; - * @return The childHash. - */ - public com.google.protobuf.ByteString getChildHash() { - return childHash_; - } + /** + * .Block block = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockFieldBuilder() { + if (blockBuilder_ == null) { + blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getBlock(), getParentForChildren(), isClean()); + block_ = null; + } + return blockBuilder_; + } - public static final int INDEX_FIELD_NUMBER = 5; - private int index_; - /** - * uint32 index = 5; - * @return The index. - */ - public int getIndex() { - return index_; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int PROOFS_FIELD_NUMBER = 6; - private java.util.List proofs_; - /** - * repeated bytes proofs = 6; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return proofs_; - } - /** - * repeated bytes proofs = 6; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 6; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(builder_scope:BlockPid) + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(class_scope:BlockPid) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != 0L) { - output.writeInt64(1, type_); - } - if (header_ != null) { - output.writeMessage(2, getHeader()); - } - for (int i = 0; i < txDetails_.size(); i++) { - output.writeMessage(3, txDetails_.get(i)); - } - if (!childHash_.isEmpty()) { - output.writeBytes(4, childHash_); - } - if (index_ != 0) { - output.writeUInt32(5, index_); - } - for (int i = 0; i < proofs_.size(); i++) { - output.writeBytes(6, proofs_.get(i)); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, type_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeader()); - } - for (int i = 0; i < txDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, txDetails_.get(i)); - } - if (!childHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, childHash_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, index_); - } - { - int dataSize = 0; - for (int i = 0; i < proofs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(proofs_.get(i)); - } - size += dataSize; - size += 1 * getProofsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockPid parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockPid(input, extensionRegistry); + } + }; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail) obj; - - if (getType() - != other.getType()) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!getTxDetailsList() - .equals(other.getTxDetailsList())) return false; - if (!getChildHash() - .equals(other.getChildHash())) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getProofsList() - .equals(other.getProofsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getType()); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (getTxDetailsCount() > 0) { - hash = (37 * hash) + TXDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getTxDetailsList().hashCode(); - } - hash = (37 * hash) + CHILDHASH_FIELD_NUMBER; - hash = (53 * hash) + getChildHash().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - if (getProofsCount() > 0) { - hash = (37 * hash) + PROOFS_FIELD_NUMBER; - hash = (53 * hash) + getProofsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockPid getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface BlockDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .BlockDetail items = 1; + */ + java.util.List getItemsList(); + + /** + * repeated .BlockDetail items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getItems(int index); + + /** + * repeated .BlockDetail items = 1; + */ + int getItemsCount(); + + /** + * repeated .BlockDetail items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .BlockDetail items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getItemsOrBuilder(int index); } + /** *
-     * type:平行链交易所在区块add/del操作,方便平行链回滚
-     * header:平行链交易所在区块头信息
-     * txDetails:本区块中指定title平行链的所有交易
-     * proofs:对应平行链子roothash的存在证明路径
-     * childHash:此平行链交易的子roothash
-     * index:对应平行链子roothash在整个区块中的索引
+     * resp
      * 
* - * Protobuf type {@code ParaTxDetail} + * Protobuf type {@code BlockDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ParaTxDetail) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxDetailsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0L; - - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - if (txDetailsBuilder_ == null) { - txDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txDetailsBuilder_.clear(); - } - childHash_ = com.google.protobuf.ByteString.EMPTY; - - index_ = 0; - - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail(this); - int from_bitField0_ = bitField0_; - result.type_ = type_; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (txDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txDetails_ = java.util.Collections.unmodifiableList(txDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txDetails_ = txDetails_; - } else { - result.txDetails_ = txDetailsBuilder_.build(); - } - result.childHash_ = childHash_; - result.index_ = index_; - if (((bitField0_ & 0x00000002) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.proofs_ = proofs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance()) return this; - if (other.getType() != 0L) { - setType(other.getType()); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (txDetailsBuilder_ == null) { - if (!other.txDetails_.isEmpty()) { - if (txDetails_.isEmpty()) { - txDetails_ = other.txDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxDetailsIsMutable(); - txDetails_.addAll(other.txDetails_); - } - onChanged(); - } - } else { - if (!other.txDetails_.isEmpty()) { - if (txDetailsBuilder_.isEmpty()) { - txDetailsBuilder_.dispose(); - txDetailsBuilder_ = null; - txDetails_ = other.txDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - txDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxDetailsFieldBuilder() : null; - } else { - txDetailsBuilder_.addAllMessages(other.txDetails_); - } - } - } - if (other.getChildHash() != com.google.protobuf.ByteString.EMPTY) { - setChildHash(other.getChildHash()); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (!other.proofs_.isEmpty()) { - if (proofs_.isEmpty()) { - proofs_ = other.proofs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureProofsIsMutable(); - proofs_.addAll(other.proofs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long type_ ; - /** - * int64 type = 1; - * @return The type. - */ - public long getType() { - return type_; - } - /** - * int64 type = 1; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(long value) { - - type_ = value; - onChanged(); - return this; - } - /** - * int64 type = 1; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0L; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> headerBuilder_; - /** - * .Header header = 2; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .Header header = 2; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .Header header = 2; - */ - public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .Header header = 2; - */ - public Builder setHeader( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Header header = 2; - */ - public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Header header = 2; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .Header header = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .Header header = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - } - /** - * .Header header = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private java.util.List txDetails_ = - java.util.Collections.emptyList(); - private void ensureTxDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txDetails_ = new java.util.ArrayList(txDetails_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder> txDetailsBuilder_; - - /** - * repeated .TxDetail txDetails = 3; - */ - public java.util.List getTxDetailsList() { - if (txDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txDetails_); - } else { - return txDetailsBuilder_.getMessageList(); - } - } - /** - * repeated .TxDetail txDetails = 3; - */ - public int getTxDetailsCount() { - if (txDetailsBuilder_ == null) { - return txDetails_.size(); - } else { - return txDetailsBuilder_.getCount(); - } - } - /** - * repeated .TxDetail txDetails = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getTxDetails(int index) { - if (txDetailsBuilder_ == null) { - return txDetails_.get(index); - } else { - return txDetailsBuilder_.getMessage(index); - } - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder setTxDetails( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail value) { - if (txDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxDetailsIsMutable(); - txDetails_.set(index, value); - onChanged(); - } else { - txDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder setTxDetails( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder builderForValue) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - txDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder addTxDetails(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail value) { - if (txDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxDetailsIsMutable(); - txDetails_.add(value); - onChanged(); - } else { - txDetailsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder addTxDetails( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail value) { - if (txDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxDetailsIsMutable(); - txDetails_.add(index, value); - onChanged(); - } else { - txDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder addTxDetails( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder builderForValue) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.add(builderForValue.build()); - onChanged(); - } else { - txDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder addTxDetails( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder builderForValue) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - txDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder addAllTxDetails( - java.lang.Iterable values) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txDetails_); - onChanged(); - } else { - txDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder clearTxDetails() { - if (txDetailsBuilder_ == null) { - txDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txDetailsBuilder_.clear(); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public Builder removeTxDetails(int index) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.remove(index); - onChanged(); - } else { - txDetailsBuilder_.remove(index); - } - return this; - } - /** - * repeated .TxDetail txDetails = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder getTxDetailsBuilder( - int index) { - return getTxDetailsFieldBuilder().getBuilder(index); - } - /** - * repeated .TxDetail txDetails = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder getTxDetailsOrBuilder( - int index) { - if (txDetailsBuilder_ == null) { - return txDetails_.get(index); } else { - return txDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .TxDetail txDetails = 3; - */ - public java.util.List - getTxDetailsOrBuilderList() { - if (txDetailsBuilder_ != null) { - return txDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txDetails_); - } - } - /** - * repeated .TxDetail txDetails = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder addTxDetailsBuilder() { - return getTxDetailsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance()); - } - /** - * repeated .TxDetail txDetails = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder addTxDetailsBuilder( - int index) { - return getTxDetailsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance()); - } - /** - * repeated .TxDetail txDetails = 3; - */ - public java.util.List - getTxDetailsBuilderList() { - return getTxDetailsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder> - getTxDetailsFieldBuilder() { - if (txDetailsBuilder_ == null) { - txDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder>( - txDetails_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txDetails_ = null; - } - return txDetailsBuilder_; - } - - private com.google.protobuf.ByteString childHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes childHash = 4; - * @return The childHash. - */ - public com.google.protobuf.ByteString getChildHash() { - return childHash_; - } - /** - * bytes childHash = 4; - * @param value The childHash to set. - * @return This builder for chaining. - */ - public Builder setChildHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - childHash_ = value; - onChanged(); - return this; - } - /** - * bytes childHash = 4; - * @return This builder for chaining. - */ - public Builder clearChildHash() { - - childHash_ = getDefaultInstance().getChildHash(); - onChanged(); - return this; - } - - private int index_ ; - /** - * uint32 index = 5; - * @return The index. - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 5; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 5; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private java.util.List proofs_ = java.util.Collections.emptyList(); - private void ensureProofsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - proofs_ = new java.util.ArrayList(proofs_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated bytes proofs = 6; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(proofs_) : proofs_; - } - /** - * repeated bytes proofs = 6; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 6; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } - /** - * repeated bytes proofs = 6; - * @param index The index to set the value at. - * @param value The proofs to set. - * @return This builder for chaining. - */ - public Builder setProofs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 6; - * @param value The proofs to add. - * @return This builder for chaining. - */ - public Builder addProofs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 6; - * @param values The proofs to add. - * @return This builder for chaining. - */ - public Builder addAllProofs( - java.lang.Iterable values) { - ensureProofsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proofs_); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 6; - * @return This builder for chaining. - */ - public Builder clearProofs() { - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ParaTxDetail) - } + public static final class BlockDetails extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockDetails) + BlockDetailsOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ParaTxDetail) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail(); - } + // Use BlockDetails.newBuilder() to construct. + private BlockDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private BlockDetails() { + items_ = java.util.Collections.emptyList(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParaTxDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParaTxDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockDetails(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private BlockDetails(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_descriptor; + } - public interface TxDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:TxDetail) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.Builder.class); + } - /** - * uint32 index = 1; - * @return The index. - */ - int getIndex(); + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; - /** - * .Transaction tx = 2; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - * .Transaction tx = 2; - * @return The tx. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); - /** - * .Transaction tx = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + /** + * repeated .BlockDetail items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } - /** - * .ReceiptData receipt = 3; - * @return Whether the receipt field is set. - */ - boolean hasReceipt(); - /** - * .ReceiptData receipt = 3; - * @return The receipt. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt(); - /** - * .ReceiptData receipt = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder(); + /** + * repeated .BlockDetail items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } - /** - * repeated bytes proofs = 4; - * @return A list containing the proofs. - */ - java.util.List getProofsList(); - /** - * repeated bytes proofs = 4; - * @return The count of proofs. - */ - int getProofsCount(); - /** - * repeated bytes proofs = 4; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - com.google.protobuf.ByteString getProofs(int index); - } - /** - *
-   *交易的详情:
-   * index:本交易在block中索引值,用于proof的证明
-   * tx:本交易内容
-   * receipt:本交易在主链的执行回执
-   * proofs:本交易hash在block中merkel中的路径
-   * 
- * - * Protobuf type {@code TxDetail} - */ - public static final class TxDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TxDetail) - TxDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use TxDetail.newBuilder() to construct. - private TxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxDetail() { - proofs_ = java.util.Collections.emptyList(); - } + /** + * repeated .BlockDetail items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TxDetail(); - } + /** + * repeated .BlockDetail items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getItems(int index) { + return items_.get(index); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - index_ = input.readUInt32(); - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; - if (receipt_ != null) { - subBuilder = receipt_.toBuilder(); - } - receipt_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receipt_); - receipt_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - proofs_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_descriptor; - } + /** + * repeated .BlockDetail items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder.class); - } + private byte memoizedIsInitialized = -1; - public static final int INDEX_FIELD_NUMBER = 1; - private int index_; - /** - * uint32 index = 1; - * @return The index. - */ - public int getIndex() { - return index_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static final int TX_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - /** - * .Transaction tx = 2; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return tx_ != null; - } - /** - * .Transaction tx = 2; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - /** - * .Transaction tx = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - return getTx(); - } + memoizedIsInitialized = 1; + return true; + } - public static final int RECEIPT_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; - /** - * .ReceiptData receipt = 3; - * @return Whether the receipt field is set. - */ - public boolean hasReceipt() { - return receipt_ != null; - } - /** - * .ReceiptData receipt = 3; - * @return The receipt. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { - return receipt_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } - /** - * .ReceiptData receipt = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { - return getReceipt(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } - public static final int PROOFS_FIELD_NUMBER = 4; - private java.util.List proofs_; - /** - * repeated bytes proofs = 4; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return proofs_; - } - /** - * repeated bytes proofs = 4; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 4; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails) obj; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (index_ != 0) { - output.writeUInt32(1, index_); - } - if (tx_ != null) { - output.writeMessage(2, getTx()); - } - if (receipt_ != null) { - output.writeMessage(3, getReceipt()); - } - for (int i = 0; i < proofs_.size(); i++) { - output.writeBytes(4, proofs_.get(i)); - } - unknownFields.writeTo(output); - } + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, index_); - } - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTx()); - } - if (receipt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getReceipt()); - } - { - int dataSize = 0; - for (int i = 0; i < proofs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(proofs_.get(i)); - } - size += dataSize; - size += 1 * getProofsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail) obj; - - if (getIndex() - != other.getIndex()) return false; - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (hasReceipt() != other.hasReceipt()) return false; - if (hasReceipt()) { - if (!getReceipt() - .equals(other.getReceipt())) return false; - } - if (!getProofsList() - .equals(other.getProofsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - if (hasReceipt()) { - hash = (37 * hash) + RECEIPT_FIELD_NUMBER; - hash = (53 * hash) + getReceipt().hashCode(); - } - if (getProofsCount() > 0) { - hash = (37 * hash) + PROOFS_FIELD_NUMBER; - hash = (53 * hash) + getProofsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *交易的详情:
-     * index:本交易在block中索引值,用于proof的证明
-     * tx:本交易内容
-     * receipt:本交易在主链的执行回执
-     * proofs:本交易hash在block中merkel中的路径
-     * 
- * - * Protobuf type {@code TxDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TxDetail) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0; - - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - if (receiptBuilder_ == null) { - receipt_ = null; - } else { - receipt_ = null; - receiptBuilder_ = null; - } - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail(this); - int from_bitField0_ = bitField0_; - result.index_ = index_; - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - if (receiptBuilder_ == null) { - result.receipt_ = receipt_; - } else { - result.receipt_ = receiptBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.proofs_ = proofs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance()) return this; - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (other.hasReceipt()) { - mergeReceipt(other.getReceipt()); - } - if (!other.proofs_.isEmpty()) { - if (proofs_.isEmpty()) { - proofs_ = other.proofs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProofsIsMutable(); - proofs_.addAll(other.proofs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int index_ ; - /** - * uint32 index = 1; - * @return The index. - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 1; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 1; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txBuilder_; - /** - * .Transaction tx = 2; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - * .Transaction tx = 2; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - if (txBuilder_ == null) { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - * .Transaction tx = 2; - */ - public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - * .Transaction tx = 2; - */ - public Builder setTx( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Transaction tx = 2; - */ - public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Transaction tx = 2; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - * .Transaction tx = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - * .Transaction tx = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - } - /** - * .Transaction tx = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> receiptBuilder_; - /** - * .ReceiptData receipt = 3; - * @return Whether the receipt field is set. - */ - public boolean hasReceipt() { - return receiptBuilder_ != null || receipt_ != null; - } - /** - * .ReceiptData receipt = 3; - * @return The receipt. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { - if (receiptBuilder_ == null) { - return receipt_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } else { - return receiptBuilder_.getMessage(); - } - } - /** - * .ReceiptData receipt = 3; - */ - public Builder setReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - receipt_ = value; - onChanged(); - } else { - receiptBuilder_.setMessage(value); - } - - return this; - } - /** - * .ReceiptData receipt = 3; - */ - public Builder setReceipt( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptBuilder_ == null) { - receipt_ = builderForValue.build(); - onChanged(); - } else { - receiptBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ReceiptData receipt = 3; - */ - public Builder mergeReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptBuilder_ == null) { - if (receipt_ != null) { - receipt_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.newBuilder(receipt_).mergeFrom(value).buildPartial(); - } else { - receipt_ = value; - } - onChanged(); - } else { - receiptBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ReceiptData receipt = 3; - */ - public Builder clearReceipt() { - if (receiptBuilder_ == null) { - receipt_ = null; - onChanged(); - } else { - receipt_ = null; - receiptBuilder_ = null; - } - - return this; - } - /** - * .ReceiptData receipt = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptBuilder() { - - onChanged(); - return getReceiptFieldBuilder().getBuilder(); - } - /** - * .ReceiptData receipt = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { - if (receiptBuilder_ != null) { - return receiptBuilder_.getMessageOrBuilder(); - } else { - return receipt_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } - } - /** - * .ReceiptData receipt = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> - getReceiptFieldBuilder() { - if (receiptBuilder_ == null) { - receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder>( - getReceipt(), - getParentForChildren(), - isClean()); - receipt_ = null; - } - return receiptBuilder_; - } - - private java.util.List proofs_ = java.util.Collections.emptyList(); - private void ensureProofsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(proofs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes proofs = 4; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(proofs_) : proofs_; - } - /** - * repeated bytes proofs = 4; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 4; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } - /** - * repeated bytes proofs = 4; - * @param index The index to set the value at. - * @param value The proofs to set. - * @return This builder for chaining. - */ - public Builder setProofs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 4; - * @param value The proofs to add. - * @return This builder for chaining. - */ - public Builder addProofs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 4; - * @param values The proofs to add. - * @return This builder for chaining. - */ - public Builder addAllProofs( - java.lang.Iterable values) { - ensureProofsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proofs_); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 4; - * @return This builder for chaining. - */ - public Builder clearProofs() { - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TxDetail) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:TxDetail) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public interface ReqParaTxByTitleOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqParaTxByTitle) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * int64 start = 1; - * @return The start. - */ - long getStart(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * int64 end = 2; - * @return The end. - */ - long getEnd(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * string title = 3; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 3; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * bool isSeq = 4; - * @return The isSeq. - */ - boolean getIsSeq(); - } - /** - *
-   *通过seq区间和title请求平行链的交易
-   * 
- * - * Protobuf type {@code ReqParaTxByTitle} - */ - public static final class ReqParaTxByTitle extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqParaTxByTitle) - ReqParaTxByTitleOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqParaTxByTitle.newBuilder() to construct. - private ReqParaTxByTitle(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqParaTxByTitle() { - title_ = ""; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqParaTxByTitle(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqParaTxByTitle( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - start_ = input.readInt64(); - break; - } - case 16: { - - end_ = input.readInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 32: { - - isSeq_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_descriptor; - } + /** + *
+         * resp
+         * 
+ * + * Protobuf type {@code BlockDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockDetails) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.Builder.class); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.Builder.class); + } - public static final int START_FIELD_NUMBER = 1; - private long start_; - /** - * int64 start = 1; - * @return The start. - */ - public long getStart() { - return start_; - } + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int END_FIELD_NUMBER = 2; - private long end_; - /** - * int64 end = 2; - * @return The end. - */ - public long getEnd() { - return end_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int TITLE_FIELD_NUMBER = 3; - private volatile java.lang.Object title_; - /** - * string title = 3; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 3; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } - public static final int ISSEQ_FIELD_NUMBER = 4; - private boolean isSeq_; - /** - * bool isSeq = 4; - * @return The isSeq. - */ - public boolean getIsSeq() { - return isSeq_; - } + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetails_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.getDefaultInstance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (start_ != 0L) { - output.writeInt64(1, start_); - } - if (end_ != 0L) { - output.writeInt64(2, end_); - } - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); - } - if (isSeq_ != false) { - output.writeBool(4, isSeq_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (start_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, start_); - } - if (end_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, end_); - } - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); - } - if (isSeq_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isSeq_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) obj; - - if (getStart() - != other.getStart()) return false; - if (getEnd() - != other.getEnd()) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (getIsSeq() - != other.getIsSeq()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStart()); - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEnd()); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + ISSEQ_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsSeq()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *通过seq区间和title请求平行链的交易
-     * 
- * - * Protobuf type {@code ReqParaTxByTitle} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqParaTxByTitle) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - start_ = 0L; - - end_ = 0L; - - title_ = ""; - - isSeq_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle(this); - result.start_ = start_; - result.end_ = end_; - result.title_ = title_; - result.isSeq_ = isSeq_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.getDefaultInstance()) return this; - if (other.getStart() != 0L) { - setStart(other.getStart()); - } - if (other.getEnd() != 0L) { - setEnd(other.getEnd()); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (other.getIsSeq() != false) { - setIsSeq(other.getIsSeq()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long start_ ; - /** - * int64 start = 1; - * @return The start. - */ - public long getStart() { - return start_; - } - /** - * int64 start = 1; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(long value) { - - start_ = value; - onChanged(); - return this; - } - /** - * int64 start = 1; - * @return This builder for chaining. - */ - public Builder clearStart() { - - start_ = 0L; - onChanged(); - return this; - } - - private long end_ ; - /** - * int64 end = 2; - * @return The end. - */ - public long getEnd() { - return end_; - } - /** - * int64 end = 2; - * @param value The end to set. - * @return This builder for chaining. - */ - public Builder setEnd(long value) { - - end_ = value; - onChanged(); - return this; - } - /** - * int64 end = 2; - * @return This builder for chaining. - */ - public Builder clearEnd() { - - end_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 3; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 3; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 3; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 3; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 3; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private boolean isSeq_ ; - /** - * bool isSeq = 4; - * @return The isSeq. - */ - public boolean getIsSeq() { - return isSeq_; - } - /** - * bool isSeq = 4; - * @param value The isSeq to set. - * @return This builder for chaining. - */ - public Builder setIsSeq(boolean value) { - - isSeq_ = value; - onChanged(); - return this; - } - /** - * bool isSeq = 4; - * @return This builder for chaining. - */ - public Builder clearIsSeq() { - - isSeq_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqParaTxByTitle) - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(class_scope:ReqParaTxByTitle) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqParaTxByTitle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqParaTxByTitle(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - } + private int bitField0_; - public interface FileHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:FileHeader) - com.google.protobuf.MessageOrBuilder { + private java.util.List items_ = java.util.Collections + .emptyList(); - /** - * int64 startHeight = 1; - * @return The startHeight. - */ - long getStartHeight(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } - /** - * string driver = 2; - * @return The driver. - */ - java.lang.String getDriver(); - /** - * string driver = 2; - * @return The bytes for driver. - */ - com.google.protobuf.ByteString - getDriverBytes(); + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .BlockDetail items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } - /** - * string title = 3; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 3; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + /** + * repeated .BlockDetail items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } - /** - * bool testNet = 4; - * @return The testNet. - */ - boolean getTestNet(); - } - /** - *
-   *导出block文件头信息
-   * 
- * - * Protobuf type {@code FileHeader} - */ - public static final class FileHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:FileHeader) - FileHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use FileHeader.newBuilder() to construct. - private FileHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FileHeader() { - driver_ = ""; - title_ = ""; - } + /** + * repeated .BlockDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FileHeader(); - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder setItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - startHeight_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - driver_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 32: { - - testNet_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_descriptor; - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.Builder.class); - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } - public static final int STARTHEIGHT_FIELD_NUMBER = 1; - private long startHeight_; - /** - * int64 startHeight = 1; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder addItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } - public static final int DRIVER_FIELD_NUMBER = 2; - private volatile java.lang.Object driver_; - /** - * string driver = 2; - * @return The driver. - */ - public java.lang.String getDriver() { - java.lang.Object ref = driver_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driver_ = s; - return s; - } - } - /** - * string driver = 2; - * @return The bytes for driver. - */ - public com.google.protobuf.ByteString - getDriverBytes() { - java.lang.Object ref = driver_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - driver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - public static final int TITLE_FIELD_NUMBER = 3; - private volatile java.lang.Object title_; - /** - * string title = 3; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 3; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - public static final int TESTNET_FIELD_NUMBER = 4; - private boolean testNet_; - /** - * bool testNet = 4; - * @return The testNet. - */ - public boolean getTestNet() { - return testNet_; - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .BlockDetail items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated .BlockDetail items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (startHeight_ != 0L) { - output.writeInt64(1, startHeight_); - } - if (!getDriverBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); - } - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); - } - if (testNet_ != false) { - output.writeBool(4, testNet_); - } - unknownFields.writeTo(output); - } + /** + * repeated .BlockDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, startHeight_); - } - if (!getDriverBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); - } - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); - } - if (testNet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, testNet_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated .BlockDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader) obj; - - if (getStartHeight() - != other.getStartHeight()) return false; - if (!getDriver() - .equals(other.getDriver())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (getTestNet() - != other.getTestNet()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated .BlockDetail items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartHeight()); - hash = (37 * hash) + DRIVER_FIELD_NUMBER; - hash = (53 * hash) + getDriver().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + TESTNET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTestNet()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated .BlockDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance()); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .BlockDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance()); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated .BlockDetail items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *导出block文件头信息
-     * 
- * - * Protobuf type {@code FileHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:FileHeader) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - startHeight_ = 0L; - - driver_ = ""; - - title_ = ""; - - testNet_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader(this); - result.startHeight_ = startHeight_; - result.driver_ = driver_; - result.title_ = title_; - result.testNet_ = testNet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.getDefaultInstance()) return this; - if (other.getStartHeight() != 0L) { - setStartHeight(other.getStartHeight()); - } - if (!other.getDriver().isEmpty()) { - driver_ = other.driver_; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (other.getTestNet() != false) { - setTestNet(other.getTestNet()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long startHeight_ ; - /** - * int64 startHeight = 1; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; - } - /** - * int64 startHeight = 1; - * @param value The startHeight to set. - * @return This builder for chaining. - */ - public Builder setStartHeight(long value) { - - startHeight_ = value; - onChanged(); - return this; - } - /** - * int64 startHeight = 1; - * @return This builder for chaining. - */ - public Builder clearStartHeight() { - - startHeight_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object driver_ = ""; - /** - * string driver = 2; - * @return The driver. - */ - public java.lang.String getDriver() { - java.lang.Object ref = driver_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driver_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string driver = 2; - * @return The bytes for driver. - */ - public com.google.protobuf.ByteString - getDriverBytes() { - java.lang.Object ref = driver_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - driver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string driver = 2; - * @param value The driver to set. - * @return This builder for chaining. - */ - public Builder setDriver( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - driver_ = value; - onChanged(); - return this; - } - /** - * string driver = 2; - * @return This builder for chaining. - */ - public Builder clearDriver() { - - driver_ = getDefaultInstance().getDriver(); - onChanged(); - return this; - } - /** - * string driver = 2; - * @param value The bytes for driver to set. - * @return This builder for chaining. - */ - public Builder setDriverBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - driver_ = value; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 3; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 3; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 3; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 3; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 3; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private boolean testNet_ ; - /** - * bool testNet = 4; - * @return The testNet. - */ - public boolean getTestNet() { - return testNet_; - } - /** - * bool testNet = 4; - * @param value The testNet to set. - * @return This builder for chaining. - */ - public Builder setTestNet(boolean value) { - - testNet_ = value; - onChanged(); - return this; - } - /** - * bool testNet = 4; - * @return This builder for chaining. - */ - public Builder clearTestNet() { - - testNet_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:FileHeader) - } + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } - // @@protoc_insertion_point(class_scope:FileHeader) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FileHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:BlockDetails) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:BlockDetails) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockDetails(input, extensionRegistry); + } + }; - public interface EndBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:EndBlock) - com.google.protobuf.MessageOrBuilder { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * int64 height = 1; - * @return The height. - */ - long getHeight(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * bytes hash = 2; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); - } - /** - *
-   *存储block高度和hash
-   * 
- * - * Protobuf type {@code EndBlock} - */ - public static final class EndBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EndBlock) - EndBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use EndBlock.newBuilder() to construct. - private EndBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EndBlock() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EndBlock(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EndBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 18: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_descriptor; - } + public interface HeadersOrBuilder extends + // @@protoc_insertion_point(interface_extends:Headers) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.Builder.class); - } + /** + * repeated .Header items = 1; + */ + java.util.List getItemsList(); - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; + /** + * repeated .Header items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getItems(int index); + + /** + * repeated .Header items = 1; + */ + int getItemsCount(); + + /** + * repeated .Header items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .Header items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getItemsOrBuilder(int index); } - public static final int HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString hash_; /** - * bytes hash = 2; - * @return The hash. + *
+     * resp
+     * 
+ * + * Protobuf type {@code Headers} */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + public static final class Headers extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Headers) + HeadersOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use Headers.newBuilder() to construct. + private Headers(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private Headers() { + items_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (!hash_.isEmpty()) { - output.writeBytes(2, hash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Headers(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private Headers(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add( + input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *存储block高度和hash
-     * 
- * - * Protobuf type {@code EndBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EndBlock) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock(this); - result.height_ = height_; - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 2; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 2; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 2; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EndBlock) - } + /** + * repeated .Header items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } - // @@protoc_insertion_point(class_scope:EndBlock) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock(); - } + /** + * repeated .Header items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Header items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EndBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EndBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .Header items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getItems(int index) { + return items_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .Header items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface HeaderSeqOrBuilder extends - // @@protoc_insertion_point(interface_extends:HeaderSeq) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - * int64 num = 1; - * @return The num. - */ - long getNum(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } - /** - * .BlockSequence seq = 2; - * @return Whether the seq field is set. - */ - boolean hasSeq(); - /** - * .BlockSequence seq = 2; - * @return The seq. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq(); - /** - * .BlockSequence seq = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * .Header header = 3; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - * .Header header = 3; - * @return The header. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); - /** - * .Header header = 3; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); - } - /** - *
-   *通过seq获取区块的header信息
-   * 
- * - * Protobuf type {@code HeaderSeq} - */ - public static final class HeaderSeq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HeaderSeq) - HeaderSeqOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeaderSeq.newBuilder() to construct. - private HeaderSeq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeaderSeq() { - } + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HeaderSeq(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers) obj; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeaderSeq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - num_ = input.readInt64(); - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder subBuilder = null; - if (seq_ != null) { - subBuilder = seq_.toBuilder(); - } - seq_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(seq_); - seq_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_descriptor; - } + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int NUM_FIELD_NUMBER = 1; - private long num_; - /** - * int64 num = 1; - * @return The num. - */ - public long getNum() { - return num_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int SEQ_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; - /** - * .BlockSequence seq = 2; - * @return Whether the seq field is set. - */ - public boolean hasSeq() { - return seq_ != null; - } - /** - * .BlockSequence seq = 2; - * @return The seq. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { - return seq_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; - } - /** - * .BlockSequence seq = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { - return getSeq(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int HEADER_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - /** - * .Header header = 3; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .Header header = 3; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - /** - * .Header header = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (num_ != 0L) { - output.writeInt64(1, num_); - } - if (seq_ != null) { - output.writeMessage(2, getSeq()); - } - if (header_ != null) { - output.writeMessage(3, getHeader()); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (num_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, num_); - } - if (seq_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSeq()); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeader()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq) obj; - - if (getNum() - != other.getNum()) return false; - if (hasSeq() != other.hasSeq()) return false; - if (hasSeq()) { - if (!getSeq() - .equals(other.getSeq())) return false; - } - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNum()); - if (hasSeq()) { - hash = (37 * hash) + SEQ_FIELD_NUMBER; - hash = (53 * hash) + getSeq().hashCode(); - } - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *通过seq获取区块的header信息
-     * 
- * - * Protobuf type {@code HeaderSeq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HeaderSeq) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - num_ = 0L; - - if (seqBuilder_ == null) { - seq_ = null; - } else { - seq_ = null; - seqBuilder_ = null; - } - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq(this); - result.num_ = num_; - if (seqBuilder_ == null) { - result.seq_ = seq_; - } else { - result.seq_ = seqBuilder_.build(); - } - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance()) return this; - if (other.getNum() != 0L) { - setNum(other.getNum()); - } - if (other.hasSeq()) { - mergeSeq(other.getSeq()); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long num_ ; - /** - * int64 num = 1; - * @return The num. - */ - public long getNum() { - return num_; - } - /** - * int64 num = 1; - * @param value The num to set. - * @return This builder for chaining. - */ - public Builder setNum(long value) { - - num_ = value; - onChanged(); - return this; - } - /** - * int64 num = 1; - * @return This builder for chaining. - */ - public Builder clearNum() { - - num_ = 0L; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder> seqBuilder_; - /** - * .BlockSequence seq = 2; - * @return Whether the seq field is set. - */ - public boolean hasSeq() { - return seqBuilder_ != null || seq_ != null; - } - /** - * .BlockSequence seq = 2; - * @return The seq. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { - if (seqBuilder_ == null) { - return seq_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; - } else { - return seqBuilder_.getMessage(); - } - } - /** - * .BlockSequence seq = 2; - */ - public Builder setSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { - if (seqBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - seq_ = value; - onChanged(); - } else { - seqBuilder_.setMessage(value); - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public Builder setSeq( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { - if (seqBuilder_ == null) { - seq_ = builderForValue.build(); - onChanged(); - } else { - seqBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public Builder mergeSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { - if (seqBuilder_ == null) { - if (seq_ != null) { - seq_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.newBuilder(seq_).mergeFrom(value).buildPartial(); - } else { - seq_ = value; - } - onChanged(); - } else { - seqBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public Builder clearSeq() { - if (seqBuilder_ == null) { - seq_ = null; - onChanged(); - } else { - seq_ = null; - seqBuilder_ = null; - } - - return this; - } - /** - * .BlockSequence seq = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder getSeqBuilder() { - - onChanged(); - return getSeqFieldBuilder().getBuilder(); - } - /** - * .BlockSequence seq = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { - if (seqBuilder_ != null) { - return seqBuilder_.getMessageOrBuilder(); - } else { - return seq_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; - } - } - /** - * .BlockSequence seq = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder> - getSeqFieldBuilder() { - if (seqBuilder_ == null) { - seqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder>( - getSeq(), - getParentForChildren(), - isClean()); - seq_ = null; - } - return seqBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> headerBuilder_; - /** - * .Header header = 3; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .Header header = 3; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .Header header = 3; - */ - public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .Header header = 3; - */ - public Builder setHeader( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Header header = 3; - */ - public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Header header = 3; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .Header header = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .Header header = 3; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - } - /** - * .Header header = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HeaderSeq) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:HeaderSeq) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeaderSeq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeaderSeq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - } + /** + *
+         * resp
+         * 
+ * + * Protobuf type {@code Headers} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Headers) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_descriptor; + } - public interface HeaderSeqsOrBuilder extends - // @@protoc_insertion_point(interface_extends:HeaderSeqs) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder.class); + } - /** - * repeated .HeaderSeq seqs = 1; - */ - java.util.List - getSeqsList(); - /** - * repeated .HeaderSeq seqs = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getSeqs(int index); - /** - * repeated .HeaderSeq seqs = 1; - */ - int getSeqsCount(); - /** - * repeated .HeaderSeq seqs = 1; - */ - java.util.List - getSeqsOrBuilderList(); - /** - * repeated .HeaderSeq seqs = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder getSeqsOrBuilder( - int index); - } - /** - *
-   *批量推送区块的header信息
-   * 
- * - * Protobuf type {@code HeaderSeqs} - */ - public static final class HeaderSeqs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HeaderSeqs) - HeaderSeqsOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeaderSeqs.newBuilder() to construct. - private HeaderSeqs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeaderSeqs() { - seqs_ = java.util.Collections.emptyList(); - } + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HeaderSeqs(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeaderSeqs( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - seqs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - seqs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - seqs_ = java.util.Collections.unmodifiableList(seqs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_descriptor; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.Builder.class); - } + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } - public static final int SEQS_FIELD_NUMBER = 1; - private java.util.List seqs_; - /** - * repeated .HeaderSeq seqs = 1; - */ - public java.util.List getSeqsList() { - return seqs_; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public java.util.List - getSeqsOrBuilderList() { - return seqs_; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public int getSeqsCount() { - return seqs_.size(); - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getSeqs(int index) { - return seqs_.get(index); - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder getSeqsOrBuilder( - int index) { - return seqs_.get(index); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Headers_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < seqs_.size(); i++) { - output.writeMessage(1, seqs_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < seqs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, seqs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs) obj; - - if (!getSeqsList() - .equals(other.getSeqsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSeqsCount() > 0) { - hash = (37 * hash) + SEQS_FIELD_NUMBER; - hash = (53 * hash) + getSeqsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *批量推送区块的header信息
-     * 
- * - * Protobuf type {@code HeaderSeqs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HeaderSeqs) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSeqsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (seqsBuilder_ == null) { - seqs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - seqsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs(this); - int from_bitField0_ = bitField0_; - if (seqsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - seqs_ = java.util.Collections.unmodifiableList(seqs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.seqs_ = seqs_; - } else { - result.seqs_ = seqsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.getDefaultInstance()) return this; - if (seqsBuilder_ == null) { - if (!other.seqs_.isEmpty()) { - if (seqs_.isEmpty()) { - seqs_ = other.seqs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSeqsIsMutable(); - seqs_.addAll(other.seqs_); - } - onChanged(); - } - } else { - if (!other.seqs_.isEmpty()) { - if (seqsBuilder_.isEmpty()) { - seqsBuilder_.dispose(); - seqsBuilder_ = null; - seqs_ = other.seqs_; - bitField0_ = (bitField0_ & ~0x00000001); - seqsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSeqsFieldBuilder() : null; - } else { - seqsBuilder_.addAllMessages(other.seqs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List seqs_ = - java.util.Collections.emptyList(); - private void ensureSeqsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - seqs_ = new java.util.ArrayList(seqs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder> seqsBuilder_; - - /** - * repeated .HeaderSeq seqs = 1; - */ - public java.util.List getSeqsList() { - if (seqsBuilder_ == null) { - return java.util.Collections.unmodifiableList(seqs_); - } else { - return seqsBuilder_.getMessageList(); - } - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public int getSeqsCount() { - if (seqsBuilder_ == null) { - return seqs_.size(); - } else { - return seqsBuilder_.getCount(); - } - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getSeqs(int index) { - if (seqsBuilder_ == null) { - return seqs_.get(index); - } else { - return seqsBuilder_.getMessage(index); - } - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder setSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq value) { - if (seqsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeqsIsMutable(); - seqs_.set(index, value); - onChanged(); - } else { - seqsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder setSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder builderForValue) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.set(index, builderForValue.build()); - onChanged(); - } else { - seqsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder addSeqs(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq value) { - if (seqsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeqsIsMutable(); - seqs_.add(value); - onChanged(); - } else { - seqsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder addSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq value) { - if (seqsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeqsIsMutable(); - seqs_.add(index, value); - onChanged(); - } else { - seqsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder addSeqs( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder builderForValue) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.add(builderForValue.build()); - onChanged(); - } else { - seqsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder addSeqs( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder builderForValue) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.add(index, builderForValue.build()); - onChanged(); - } else { - seqsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder addAllSeqs( - java.lang.Iterable values) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, seqs_); - onChanged(); - } else { - seqsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder clearSeqs() { - if (seqsBuilder_ == null) { - seqs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - seqsBuilder_.clear(); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public Builder removeSeqs(int index) { - if (seqsBuilder_ == null) { - ensureSeqsIsMutable(); - seqs_.remove(index); - onChanged(); - } else { - seqsBuilder_.remove(index); - } - return this; - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder getSeqsBuilder( - int index) { - return getSeqsFieldBuilder().getBuilder(index); - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder getSeqsOrBuilder( - int index) { - if (seqsBuilder_ == null) { - return seqs_.get(index); } else { - return seqsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public java.util.List - getSeqsOrBuilderList() { - if (seqsBuilder_ != null) { - return seqsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(seqs_); - } - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder addSeqsBuilder() { - return getSeqsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance()); - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder addSeqsBuilder( - int index) { - return getSeqsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance()); - } - /** - * repeated .HeaderSeq seqs = 1; - */ - public java.util.List - getSeqsBuilderList() { - return getSeqsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder> - getSeqsFieldBuilder() { - if (seqsBuilder_ == null) { - seqsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder>( - seqs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - seqs_ = null; - } - return seqsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HeaderSeqs) - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - // @@protoc_insertion_point(class_scope:HeaderSeqs) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeaderSeqs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeaderSeqs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private int bitField0_; - } + private java.util.List items_ = java.util.Collections + .emptyList(); - public interface HeightParaOrBuilder extends - // @@protoc_insertion_point(interface_extends:HeightPara) - com.google.protobuf.MessageOrBuilder { + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } - /** - * int64 height = 1; - * @return The height. - */ - long getHeight(); + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .Header items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } - /** - * string title = 2; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 2; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + /** + * repeated .Header items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } - /** - * bytes hash = 3; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + /** + * repeated .Header items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } - /** - * bytes childHash = 4; - * @return The childHash. - */ - com.google.protobuf.ByteString getChildHash(); + /** + * repeated .Header items = 1; + */ + public Builder setItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } - /** - * int32 startIndex = 5; - * @return The startIndex. - */ - int getStartIndex(); + /** + * repeated .Header items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * uint32 childHashIndex = 6; - * @return The childHashIndex. - */ - int getChildHashIndex(); + /** + * repeated .Header items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } - /** - * int32 txCount = 7; - * @return The txCount. - */ - int getTxCount(); - } - /** - *
-   *记录本平行链所在区块的信息以及子根hash值
-   * childHash:平行链子roothash值
-   * startIndex:此平行链的第一笔交易的index索引值
-   * childHashIndex:此平行链子roothash在本区块中的索引值
-   * txCount:此平行链交易的个数
-   * 
- * - * Protobuf type {@code HeightPara} - */ - public static final class HeightPara extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HeightPara) - HeightParaOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeightPara.newBuilder() to construct. - private HeightPara(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeightPara() { - title_ = ""; - hash_ = com.google.protobuf.ByteString.EMPTY; - childHash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * repeated .Header items = 1; + */ + public Builder addItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HeightPara(); - } + /** + * repeated .Header items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeightPara( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 26: { - - hash_ = input.readBytes(); - break; - } - case 34: { - - childHash_ = input.readBytes(); - break; - } - case 40: { - - startIndex_ = input.readInt32(); - break; - } - case 48: { - - childHashIndex_ = input.readUInt32(); - break; - } - case 56: { - - txCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_descriptor; - } + /** + * repeated .Header items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder.class); - } + /** + * repeated .Header items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } + /** + * repeated .Header items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .Header items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } - public static final int HASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 3; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + /** + * repeated .Header items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } - public static final int CHILDHASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString childHash_; - /** - * bytes childHash = 4; - * @return The childHash. - */ - public com.google.protobuf.ByteString getChildHash() { - return childHash_; - } + /** + * repeated .Header items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } - public static final int STARTINDEX_FIELD_NUMBER = 5; - private int startIndex_; - /** - * int32 startIndex = 5; - * @return The startIndex. - */ - public int getStartIndex() { - return startIndex_; - } + /** + * repeated .Header items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } - public static final int CHILDHASHINDEX_FIELD_NUMBER = 6; - private int childHashIndex_; - /** - * uint32 childHashIndex = 6; - * @return The childHashIndex. - */ - public int getChildHashIndex() { - return childHashIndex_; - } + /** + * repeated .Header items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addItemsBuilder() { + return getItemsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); + } - public static final int TXCOUNT_FIELD_NUMBER = 7; - private int txCount_; - /** - * int32 txCount = 7; - * @return The txCount. - */ - public int getTxCount() { - return txCount_; - } + /** + * repeated .Header items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - if (!hash_.isEmpty()) { - output.writeBytes(3, hash_); - } - if (!childHash_.isEmpty()) { - output.writeBytes(4, childHash_); - } - if (startIndex_ != 0) { - output.writeInt32(5, startIndex_); - } - if (childHashIndex_ != 0) { - output.writeUInt32(6, childHashIndex_); - } - if (txCount_ != 0) { - output.writeInt32(7, txCount_); - } - unknownFields.writeTo(output); - } + /** + * repeated .Header items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, hash_); - } - if (!childHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, childHash_); - } - if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, startIndex_); - } - if (childHashIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, childHashIndex_); - } - if (txCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, txCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!getChildHash() - .equals(other.getChildHash())) return false; - if (getStartIndex() - != other.getStartIndex()) return false; - if (getChildHashIndex() - != other.getChildHashIndex()) return false; - if (getTxCount() - != other.getTxCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + CHILDHASH_FIELD_NUMBER; - hash = (53 * hash) + getChildHash().hashCode(); - hash = (37 * hash) + STARTINDEX_FIELD_NUMBER; - hash = (53 * hash) + getStartIndex(); - hash = (37 * hash) + CHILDHASHINDEX_FIELD_NUMBER; - hash = (53 * hash) + getChildHashIndex(); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getTxCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(builder_scope:Headers) + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(class_scope:Headers) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *记录本平行链所在区块的信息以及子根hash值
-     * childHash:平行链子roothash值
-     * startIndex:此平行链的第一笔交易的index索引值
-     * childHashIndex:此平行链子roothash在本区块中的索引值
-     * txCount:此平行链交易的个数
-     * 
- * - * Protobuf type {@code HeightPara} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HeightPara) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - title_ = ""; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - childHash_ = com.google.protobuf.ByteString.EMPTY; - - startIndex_ = 0; - - childHashIndex_ = 0; - - txCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara(this); - result.height_ = height_; - result.title_ = title_; - result.hash_ = hash_; - result.childHash_ = childHash_; - result.startIndex_ = startIndex_; - result.childHashIndex_ = childHashIndex_; - result.txCount_ = txCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getChildHash() != com.google.protobuf.ByteString.EMPTY) { - setChildHash(other.getChildHash()); - } - if (other.getStartIndex() != 0) { - setStartIndex(other.getStartIndex()); - } - if (other.getChildHashIndex() != 0) { - setChildHashIndex(other.getChildHashIndex()); - } - if (other.getTxCount() != 0) { - setTxCount(other.getTxCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 2; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 2; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 2; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 3; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 3; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 3; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString childHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes childHash = 4; - * @return The childHash. - */ - public com.google.protobuf.ByteString getChildHash() { - return childHash_; - } - /** - * bytes childHash = 4; - * @param value The childHash to set. - * @return This builder for chaining. - */ - public Builder setChildHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - childHash_ = value; - onChanged(); - return this; - } - /** - * bytes childHash = 4; - * @return This builder for chaining. - */ - public Builder clearChildHash() { - - childHash_ = getDefaultInstance().getChildHash(); - onChanged(); - return this; - } - - private int startIndex_ ; - /** - * int32 startIndex = 5; - * @return The startIndex. - */ - public int getStartIndex() { - return startIndex_; - } - /** - * int32 startIndex = 5; - * @param value The startIndex to set. - * @return This builder for chaining. - */ - public Builder setStartIndex(int value) { - - startIndex_ = value; - onChanged(); - return this; - } - /** - * int32 startIndex = 5; - * @return This builder for chaining. - */ - public Builder clearStartIndex() { - - startIndex_ = 0; - onChanged(); - return this; - } - - private int childHashIndex_ ; - /** - * uint32 childHashIndex = 6; - * @return The childHashIndex. - */ - public int getChildHashIndex() { - return childHashIndex_; - } - /** - * uint32 childHashIndex = 6; - * @param value The childHashIndex to set. - * @return This builder for chaining. - */ - public Builder setChildHashIndex(int value) { - - childHashIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 childHashIndex = 6; - * @return This builder for chaining. - */ - public Builder clearChildHashIndex() { - - childHashIndex_ = 0; - onChanged(); - return this; - } - - private int txCount_ ; - /** - * int32 txCount = 7; - * @return The txCount. - */ - public int getTxCount() { - return txCount_; - } - /** - * int32 txCount = 7; - * @param value The txCount to set. - * @return This builder for chaining. - */ - public Builder setTxCount(int value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * int32 txCount = 7; - * @return This builder for chaining. - */ - public Builder clearTxCount() { - - txCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HeightPara) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:HeightPara) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara(); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Headers parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Headers(input, extensionRegistry); + } + }; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeightPara parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeightPara(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - } + public interface HeadersPidOrBuilder extends + // @@protoc_insertion_point(interface_extends:HeadersPid) + com.google.protobuf.MessageOrBuilder { - public interface HeightParasOrBuilder extends - // @@protoc_insertion_point(interface_extends:HeightParas) - com.google.protobuf.MessageOrBuilder { + /** + * string pid = 1; + * + * @return The pid. + */ + java.lang.String getPid(); - /** - * repeated .HeightPara items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .HeightPara items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getItems(int index); - /** - * repeated .HeightPara items = 1; - */ - int getItemsCount(); - /** - * repeated .HeightPara items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .HeightPara items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder getItemsOrBuilder( - int index); - } - /** - * Protobuf type {@code HeightParas} - */ - public static final class HeightParas extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HeightParas) - HeightParasOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeightParas.newBuilder() to construct. - private HeightParas(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeightParas() { - items_ = java.util.Collections.emptyList(); - } + /** + * string pid = 1; + * + * @return The bytes for pid. + */ + com.google.protobuf.ByteString getPidBytes(); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HeightParas(); - } + /** + * .Headers headers = 2; + * + * @return Whether the headers field is set. + */ + boolean hasHeaders(); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeightParas( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_descriptor; - } + /** + * .Headers headers = 2; + * + * @return The headers. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.Builder.class); + /** + * .Headers headers = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder getHeadersOrBuilder(); } - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .HeightPara items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .HeightPara items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .HeightPara items = 1; - */ - public int getItemsCount() { - return items_.size(); - } /** - * repeated .HeightPara items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getItems(int index) { - return items_.get(index); - } - /** - * repeated .HeightPara items = 1; + * Protobuf type {@code HeadersPid} */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + public static final class HeadersPid extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HeadersPid) + HeadersPidOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use HeadersPid.newBuilder() to construct. + private HeadersPid(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private HeadersPid() { + pid_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HeadersPid(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private HeadersPid(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + pid_ = s; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder subBuilder = null; + if (headers_ != null) { + subBuilder = headers_.toBuilder(); + } + headers_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(headers_); + headers_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int PID_FIELD_NUMBER = 1; + private volatile java.lang.Object pid_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code HeightParas} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HeightParas) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParasOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); + /** + * string pid = 1; + * + * @return The pid. + */ + @java.lang.Override + public java.lang.String getPid() { + java.lang.Object ref = pid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pid_ = s; + return s; + } + } + + /** + * string pid = 1; + * + * @return The bytes for pid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPidBytes() { + java.lang.Object ref = pid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pid_ = b; + return b; } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder> itemsBuilder_; - - /** - * repeated .HeightPara items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .HeightPara items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .HeightPara items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .HeightPara items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .HeightPara items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .HeightPara items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .HeightPara items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .HeightPara items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance()); - } - /** - * repeated .HeightPara items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance()); - } - /** - * repeated .HeightPara items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HeightParas) - } + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:HeightParas) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas(); - } + public static final int HEADERS_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers headers_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * .Headers headers = 2; + * + * @return Whether the headers field is set. + */ + @java.lang.Override + public boolean hasHeaders() { + return headers_ != null; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeightParas parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeightParas(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .Headers headers = 2; + * + * @return The headers. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders() { + return headers_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance() + : headers_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .Headers headers = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder getHeadersOrBuilder() { + return getHeaders(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface ChildChainOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChildChain) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - * string title = 1; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 1; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pid_); + } + if (headers_ != null) { + output.writeMessage(2, getHeaders()); + } + unknownFields.writeTo(output); + } - /** - * int32 startIndex = 2; - * @return The startIndex. - */ - int getStartIndex(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * bytes childHash = 3; - * @return The childHash. - */ - com.google.protobuf.ByteString getChildHash(); + size = 0; + if (!getPidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pid_); + } + if (headers_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHeaders()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * int32 txCount = 4; - * @return The txCount. - */ - int getTxCount(); - } - /** - *
-   *记录平行链第一笔交易的index,以及平行链的roothash
-   * title:子链名字,主链的默认是main
-   * startIndex:子链第一笔交易的索引
-   * childHash:子链的根hash
-   * txCount:子链交易的数量
-   * 
- * - * Protobuf type {@code ChildChain} - */ - public static final class ChildChain extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChildChain) - ChildChainOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChildChain.newBuilder() to construct. - private ChildChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChildChain() { - title_ = ""; - childHash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid) obj; + + if (!getPid().equals(other.getPid())) + return false; + if (hasHeaders() != other.hasHeaders()) + return false; + if (hasHeaders()) { + if (!getHeaders().equals(other.getHeaders())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChildChain(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid().hashCode(); + if (hasHeaders()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getHeaders().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChildChain( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 16: { - - startIndex_ = input.readInt32(); - break; - } - case 26: { - - childHash_ = input.readBytes(); - break; - } - case 32: { - - txCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int STARTINDEX_FIELD_NUMBER = 2; - private int startIndex_; - /** - * int32 startIndex = 2; - * @return The startIndex. - */ - public int getStartIndex() { - return startIndex_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int CHILDHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString childHash_; - /** - * bytes childHash = 3; - * @return The childHash. - */ - public com.google.protobuf.ByteString getChildHash() { - return childHash_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TXCOUNT_FIELD_NUMBER = 4; - private int txCount_; - /** - * int32 txCount = 4; - * @return The txCount. - */ - public int getTxCount() { - return txCount_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (startIndex_ != 0) { - output.writeInt32(2, startIndex_); - } - if (!childHash_.isEmpty()) { - output.writeBytes(3, childHash_); - } - if (txCount_ != 0) { - output.writeInt32(4, txCount_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, startIndex_); - } - if (!childHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, childHash_); - } - if (txCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, txCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (getStartIndex() - != other.getStartIndex()) return false; - if (!getChildHash() - .equals(other.getChildHash())) return false; - if (getTxCount() - != other.getTxCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + STARTINDEX_FIELD_NUMBER; - hash = (53 * hash) + getStartIndex(); - hash = (37 * hash) + CHILDHASH_FIELD_NUMBER; - hash = (53 * hash) + getChildHash().hashCode(); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getTxCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *记录平行链第一笔交易的index,以及平行链的roothash
-     * title:子链名字,主链的默认是main
-     * startIndex:子链第一笔交易的索引
-     * childHash:子链的根hash
-     * txCount:子链交易的数量
-     * 
- * - * Protobuf type {@code ChildChain} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ChildChain) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - startIndex_ = 0; - - childHash_ = com.google.protobuf.ByteString.EMPTY; - - txCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain(this); - result.title_ = title_; - result.startIndex_ = startIndex_; - result.childHash_ = childHash_; - result.txCount_ = txCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (other.getStartIndex() != 0) { - setStartIndex(other.getStartIndex()); - } - if (other.getChildHash() != com.google.protobuf.ByteString.EMPTY) { - setChildHash(other.getChildHash()); - } - if (other.getTxCount() != 0) { - setTxCount(other.getTxCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 1; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private int startIndex_ ; - /** - * int32 startIndex = 2; - * @return The startIndex. - */ - public int getStartIndex() { - return startIndex_; - } - /** - * int32 startIndex = 2; - * @param value The startIndex to set. - * @return This builder for chaining. - */ - public Builder setStartIndex(int value) { - - startIndex_ = value; - onChanged(); - return this; - } - /** - * int32 startIndex = 2; - * @return This builder for chaining. - */ - public Builder clearStartIndex() { - - startIndex_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString childHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes childHash = 3; - * @return The childHash. - */ - public com.google.protobuf.ByteString getChildHash() { - return childHash_; - } - /** - * bytes childHash = 3; - * @param value The childHash to set. - * @return This builder for chaining. - */ - public Builder setChildHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - childHash_ = value; - onChanged(); - return this; - } - /** - * bytes childHash = 3; - * @return This builder for chaining. - */ - public Builder clearChildHash() { - - childHash_ = getDefaultInstance().getChildHash(); - onChanged(); - return this; - } - - private int txCount_ ; - /** - * int32 txCount = 4; - * @return The txCount. - */ - public int getTxCount() { - return txCount_; - } - /** - * int32 txCount = 4; - * @param value The txCount to set. - * @return This builder for chaining. - */ - public Builder setTxCount(int value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * int32 txCount = 4; - * @return This builder for chaining. - */ - public Builder clearTxCount() { - - txCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChildChain) - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - // @@protoc_insertion_point(class_scope:ChildChain) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChildChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChildChain(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * Protobuf type {@code HeadersPid} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HeadersPid) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.Builder.class); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public interface ReqHeightByTitleOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqHeightByTitle) - com.google.protobuf.MessageOrBuilder { + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * int64 height = 1; - * @return The height. - */ - long getHeight(); + @java.lang.Override + public Builder clear() { + super.clear(); + pid_ = ""; + + if (headersBuilder_ == null) { + headers_ = null; + } else { + headers_ = null; + headersBuilder_ = null; + } + return this; + } - /** - * string title = 2; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 2; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeadersPid_descriptor; + } - /** - * int32 count = 3; - * @return The count. - */ - int getCount(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.getDefaultInstance(); + } - /** - * int32 direction = 4; - * @return The direction. - */ - int getDirection(); - } - /** - *
-   *通过指定title以及height翻页获取拥有此title交易的区块高度列表
-   * 
- * - * Protobuf type {@code ReqHeightByTitle} - */ - public static final class ReqHeightByTitle extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqHeightByTitle) - ReqHeightByTitleOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqHeightByTitle.newBuilder() to construct. - private ReqHeightByTitle(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqHeightByTitle() { - title_ = ""; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqHeightByTitle(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid( + this); + result.pid_ = pid_; + if (headersBuilder_ == null) { + result.headers_ = headers_; + } else { + result.headers_ = headersBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqHeightByTitle( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 24: { - - count_ = input.readInt32(); - break; - } - case 32: { - - direction_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_descriptor; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.Builder.class); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int COUNT_FIELD_NUMBER = 3; - private int count_; - /** - * int32 count = 3; - * @return The count. - */ - public int getCount() { - return count_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int DIRECTION_FIELD_NUMBER = 4; - private int direction_; - /** - * int32 direction = 4; - * @return The direction. - */ - public int getDirection() { - return direction_; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid) other); + } else { + super.mergeFrom(other); + return this; + } + } - memoizedIsInitialized = 1; - return true; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid.getDefaultInstance()) + return this; + if (!other.getPid().isEmpty()) { + pid_ = other.pid_; + onChanged(); + } + if (other.hasHeaders()) { + mergeHeaders(other.getHeaders()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - if (count_ != 0) { - output.writeInt32(3, count_); - } - if (direction_ != 0) { - output.writeInt32(4, direction_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, count_); - } - if (direction_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, direction_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (getCount() - != other.getCount()) return false; - if (getDirection() - != other.getDirection()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private java.lang.Object pid_ = ""; + + /** + * string pid = 1; + * + * @return The pid. + */ + public java.lang.String getPid() { + java.lang.Object ref = pid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + getDirection(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string pid = 1; + * + * @return The bytes for pid. + */ + public com.google.protobuf.ByteString getPidBytes() { + java.lang.Object ref = pid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + pid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string pid = 1; + * + * @param value + * The pid to set. + * + * @return This builder for chaining. + */ + public Builder setPid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pid_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string pid = 1; + * + * @return This builder for chaining. + */ + public Builder clearPid() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *通过指定title以及height翻页获取拥有此title交易的区块高度列表
-     * 
- * - * Protobuf type {@code ReqHeightByTitle} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqHeightByTitle) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - title_ = ""; - - count_ = 0; - - direction_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle(this); - result.height_ = height_; - result.title_ = title_; - result.count_ = count_; - result.direction_ = direction_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.getDirection() != 0) { - setDirection(other.getDirection()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 2; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 2; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 2; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private int count_ ; - /** - * int32 count = 3; - * @return The count. - */ - public int getCount() { - return count_; - } - /** - * int32 count = 3; - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * int32 count = 3; - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private int direction_ ; - /** - * int32 direction = 4; - * @return The direction. - */ - public int getDirection() { - return direction_; - } - /** - * int32 direction = 4; - * @param value The direction to set. - * @return This builder for chaining. - */ - public Builder setDirection(int value) { - - direction_ = value; - onChanged(); - return this; - } - /** - * int32 direction = 4; - * @return This builder for chaining. - */ - public Builder clearDirection() { - - direction_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqHeightByTitle) - } + pid_ = getDefaultInstance().getPid(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReqHeightByTitle) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle(); - } + /** + * string pid = 1; + * + * @param value + * The bytes for pid to set. + * + * @return This builder for chaining. + */ + public Builder setPidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pid_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers headers_; + private com.google.protobuf.SingleFieldBuilderV3 headersBuilder_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqHeightByTitle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqHeightByTitle(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .Headers headers = 2; + * + * @return Whether the headers field is set. + */ + public boolean hasHeaders() { + return headersBuilder_ != null || headers_ != null; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .Headers headers = 2; + * + * @return The headers. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders() { + if (headersBuilder_ == null) { + return headers_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance() + : headers_; + } else { + return headersBuilder_.getMessage(); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * .Headers headers = 2; + */ + public Builder setHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers value) { + if (headersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headers_ = value; + onChanged(); + } else { + headersBuilder_.setMessage(value); + } + + return this; + } - } + /** + * .Headers headers = 2; + */ + public Builder setHeaders( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder builderForValue) { + if (headersBuilder_ == null) { + headers_ = builderForValue.build(); + onChanged(); + } else { + headersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - public interface ReplyHeightByTitleOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyHeightByTitle) - com.google.protobuf.MessageOrBuilder { + /** + * .Headers headers = 2; + */ + public Builder mergeHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers value) { + if (headersBuilder_ == null) { + if (headers_ != null) { + headers_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.newBuilder(headers_) + .mergeFrom(value).buildPartial(); + } else { + headers_ = value; + } + onChanged(); + } else { + headersBuilder_.mergeFrom(value); + } + + return this; + } - /** - * string title = 1; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 1; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + /** + * .Headers headers = 2; + */ + public Builder clearHeaders() { + if (headersBuilder_ == null) { + headers_ = null; + onChanged(); + } else { + headers_ = null; + headersBuilder_ = null; + } + + return this; + } - /** - * repeated .BlockInfo items = 2; - */ - java.util.List - getItemsList(); - /** - * repeated .BlockInfo items = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getItems(int index); - /** - * repeated .BlockInfo items = 2; - */ - int getItemsCount(); - /** - * repeated .BlockInfo items = 2; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .BlockInfo items = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder getItemsOrBuilder( - int index); - } - /** - * Protobuf type {@code ReplyHeightByTitle} - */ - public static final class ReplyHeightByTitle extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyHeightByTitle) - ReplyHeightByTitleOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyHeightByTitle.newBuilder() to construct. - private ReplyHeightByTitle(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyHeightByTitle() { - title_ = ""; - items_ = java.util.Collections.emptyList(); - } + /** + * .Headers headers = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.Builder getHeadersBuilder() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyHeightByTitle(); - } + onChanged(); + return getHeadersFieldBuilder().getBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyHeightByTitle( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_descriptor; - } + /** + * .Headers headers = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersOrBuilder getHeadersOrBuilder() { + if (headersBuilder_ != null) { + return headersBuilder_.getMessageOrBuilder(); + } else { + return headers_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance() + : headers_; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.Builder.class); - } + /** + * .Headers headers = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeadersFieldBuilder() { + if (headersBuilder_ == null) { + headersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeaders(), getParentForChildren(), isClean()); + headers_ = null; + } + return headersBuilder_; + } - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int ITEMS_FIELD_NUMBER = 2; - private java.util.List items_; - /** - * repeated .BlockInfo items = 2; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .BlockInfo items = 2; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .BlockInfo items = 2; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .BlockInfo items = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getItems(int index) { - return items_.get(index); - } - /** - * repeated .BlockInfo items = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(builder_scope:HeadersPid) + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(class_scope:HeadersPid) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(2, items_.get(i)); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeadersPid parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeadersPid(input, extensionRegistry); + } + }; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeadersPid getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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 ReplyHeightByTitle} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyHeightByTitle) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle(this); - int from_bitField0_ = bitField0_; - result.title_ = title_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object title_ = ""; - /** - * string title = 1; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder> itemsBuilder_; - - /** - * repeated .BlockInfo items = 2; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .BlockInfo items = 2; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .BlockInfo items = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .BlockInfo items = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .BlockInfo items = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .BlockInfo items = 2; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .BlockInfo items = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance()); - } - /** - * repeated .BlockInfo items = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance()); - } - /** - * repeated .BlockInfo items = 2; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyHeightByTitle) - } + public interface BlockOverviewOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockOverview) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(class_scope:ReplyHeightByTitle) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle(); - } + /** + * .Header head = 1; + * + * @return Whether the head field is set. + */ + boolean hasHead(); - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * .Header head = 1; + * + * @return The head. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHead(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyHeightByTitle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyHeightByTitle(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .Header head = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadOrBuilder(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * int64 txCount = 2; + * + * @return The txCount. + */ + long getTxCount(); - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated bytes txHashes = 3; + * + * @return A list containing the txHashes. + */ + java.util.List getTxHashesList(); - } + /** + * repeated bytes txHashes = 3; + * + * @return The count of txHashes. + */ + int getTxHashesCount(); - public interface BlockInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockInfo) - com.google.protobuf.MessageOrBuilder { + /** + * repeated bytes txHashes = 3; + * + * @param index + * The index of the element to return. + * + * @return The txHashes at the given index. + */ + com.google.protobuf.ByteString getTxHashes(int index); + } /** - * int64 height = 1; - * @return The height. + *
+     *区块视图
+     * 	 head : 区块头信息
+     *	 txCount :区块上交易个数
+     * 	 txHashes : 区块上交易的哈希列表
+     * 
+ * + * Protobuf type {@code BlockOverview} */ - long getHeight(); + public static final class BlockOverview extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockOverview) + BlockOverviewOrBuilder { + private static final long serialVersionUID = 0L; - /** - * bytes hash = 2; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); - } - /** - *
-   * title平行链交易所在主链区块的信息
-   * 
- * - * Protobuf type {@code BlockInfo} - */ - public static final class BlockInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockInfo) - BlockInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockInfo.newBuilder() to construct. - private BlockInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockInfo() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } + // Use BlockOverview.newBuilder() to construct. + private BlockOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockInfo(); - } + private BlockOverview() { + txHashes_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 18: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_descriptor; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockOverview(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder.class); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } + private BlockOverview(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; + if (head_ != null) { + subBuilder = head_.toBuilder(); + } + head_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(head_); + head_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + txCount_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txHashes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txHashes_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txHashes_ = java.util.Collections.unmodifiableList(txHashes_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 2; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + public static final int HEAD_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header head_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (!hash_.isEmpty()) { - output.writeBytes(2, hash_); - } - unknownFields.writeTo(output); - } + /** + * .Header head = 1; + * + * @return Whether the head field is set. + */ + @java.lang.Override + public boolean hasHead() { + return head_ != null; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * .Header head = 1; + * + * @return The head. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHead() { + return head_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : head_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * .Header head = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadOrBuilder() { + return getHead(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int TXCOUNT_FIELD_NUMBER = 2; + private long txCount_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int64 txCount = 2; + * + * @return The txCount. + */ + @java.lang.Override + public long getTxCount() { + return txCount_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int TXHASHES_FIELD_NUMBER = 3; + private java.util.List txHashes_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * title平行链交易所在主链区块的信息
-     * 
- * - * Protobuf type {@code BlockInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockInfo) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo(this); - result.height_ = height_; - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 2; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 2; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 2; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockInfo) - } + /** + * repeated bytes txHashes = 3; + * + * @return A list containing the txHashes. + */ + @java.lang.Override + public java.util.List getTxHashesList() { + return txHashes_; + } - // @@protoc_insertion_point(class_scope:BlockInfo) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo(); - } + /** + * repeated bytes txHashes = 3; + * + * @return The count of txHashes. + */ + public int getTxHashesCount() { + return txHashes_.size(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated bytes txHashes = 3; + * + * @param index + * The index of the element to return. + * + * @return The txHashes at the given index. + */ + public com.google.protobuf.ByteString getTxHashes(int index) { + return txHashes_.get(index); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (head_ != null) { + output.writeMessage(1, getHead()); + } + if (txCount_ != 0L) { + output.writeInt64(2, txCount_); + } + for (int i = 0; i < txHashes_.size(); i++) { + output.writeBytes(3, txHashes_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - } + size = 0; + if (head_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHead()); + } + if (txCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, txCount_); + } + { + int dataSize = 0; + for (int i = 0; i < txHashes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(txHashes_.get(i)); + } + size += dataSize; + size += 1 * getTxHashesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public interface ReqParaTxByHeightOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqParaTxByHeight) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview) obj; - /** - * repeated int64 items = 1; - * @return A list containing the items. - */ - java.util.List getItemsList(); - /** - * repeated int64 items = 1; - * @return The count of items. - */ - int getItemsCount(); - /** - * repeated int64 items = 1; - * @param index The index of the element to return. - * @return The items at the given index. - */ - long getItems(int index); + if (hasHead() != other.hasHead()) + return false; + if (hasHead()) { + if (!getHead().equals(other.getHead())) + return false; + } + if (getTxCount() != other.getTxCount()) + return false; + if (!getTxHashesList().equals(other.getTxHashesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHead()) { + hash = (37 * hash) + HEAD_FIELD_NUMBER; + hash = (53 * hash) + getHead().hashCode(); + } + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTxCount()); + if (getTxHashesCount() > 0) { + hash = (37 * hash) + TXHASHES_FIELD_NUMBER; + hash = (53 * hash) + getTxHashesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * string title = 2; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 2; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); - } - /** - *
-   *通过高度列表和title获取平行链交易
-   * 
- * - * Protobuf type {@code ReqParaTxByHeight} - */ - public static final class ReqParaTxByHeight extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqParaTxByHeight) - ReqParaTxByHeightOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqParaTxByHeight.newBuilder() to construct. - private ReqParaTxByHeight(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqParaTxByHeight() { - items_ = emptyLongList(); - title_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqParaTxByHeight(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqParaTxByHeight( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - items_.addLong(input.readInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - items_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - items_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int ITEMS_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList items_; - /** - * repeated int64 items = 1; - * @return A list containing the items. - */ - public java.util.List - getItemsList() { - return items_; - } - /** - * repeated int64 items = 1; - * @return The count of items. - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated int64 items = 1; - * @param index The index of the element to return. - * @return The items at the given index. - */ - public long getItems(int index) { - return items_.getLong(index); - } - private int itemsMemoizedSerializedSize = -1; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getItemsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(itemsMemoizedSerializedSize); - } - for (int i = 0; i < items_.size(); i++) { - output.writeInt64NoTag(items_.getLong(i)); - } - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < items_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(items_.getLong(i)); - } - size += dataSize; - if (!getItemsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - itemsMemoizedSerializedSize = dataSize; - } - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *通过高度列表和title获取平行链交易
-     * 
- * - * Protobuf type {@code ReqParaTxByHeight} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqParaTxByHeight) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeightOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - items_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - title_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - items_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - result.title_ = title_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.getDefaultInstance()) return this; - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList items_ = emptyLongList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = mutableCopy(items_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 items = 1; - * @return A list containing the items. - */ - public java.util.List - getItemsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(items_) : items_; - } - /** - * repeated int64 items = 1; - * @return The count of items. - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated int64 items = 1; - * @param index The index of the element to return. - * @return The items at the given index. - */ - public long getItems(int index) { - return items_.getLong(index); - } - /** - * repeated int64 items = 1; - * @param index The index to set the value at. - * @param value The items to set. - * @return This builder for chaining. - */ - public Builder setItems( - int index, long value) { - ensureItemsIsMutable(); - items_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 items = 1; - * @param value The items to add. - * @return This builder for chaining. - */ - public Builder addItems(long value) { - ensureItemsIsMutable(); - items_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 items = 1; - * @param values The items to add. - * @return This builder for chaining. - */ - public Builder addAllItems( - java.lang.Iterable values) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - return this; - } - /** - * repeated int64 items = 1; - * @return This builder for chaining. - */ - public Builder clearItems() { - items_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 2; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 2; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 2; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqParaTxByHeight) - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - // @@protoc_insertion_point(class_scope:ReqParaTxByHeight) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqParaTxByHeight parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqParaTxByHeight(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+         *区块视图
+         * 	 head : 区块头信息
+         *	 txCount :区块上交易个数
+         * 	 txHashes : 区块上交易的哈希列表
+         * 
+ * + * Protobuf type {@code BlockOverview} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockOverview) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverviewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.Builder.class); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public interface CmpBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:CmpBlock) - com.google.protobuf.MessageOrBuilder { + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - boolean hasBlock(); - /** - * .Block block = 1; - * @return The block. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); - /** - * .Block block = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); + @java.lang.Override + public Builder clear() { + super.clear(); + if (headBuilder_ == null) { + head_ = null; + } else { + head_ = null; + headBuilder_ = null; + } + txCount_ = 0L; + + txHashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - /** - * bytes cmpHash = 2; - * @return The cmpHash. - */ - com.google.protobuf.ByteString getCmpHash(); - } - /** - *
-   *用于比较最优区块的消息结构
-   * 
- * - * Protobuf type {@code CmpBlock} - */ - public static final class CmpBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CmpBlock) - CmpBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use CmpBlock.newBuilder() to construct. - private CmpBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CmpBlock() { - cmpHash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockOverview_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CmpBlock(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CmpBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - cmpHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview( + this); + int from_bitField0_ = bitField0_; + if (headBuilder_ == null) { + result.head_ = head_; + } else { + result.head_ = headBuilder_.build(); + } + result.txCount_ = txCount_; + if (((bitField0_ & 0x00000001) != 0)) { + txHashes_ = java.util.Collections.unmodifiableList(txHashes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txHashes_ = txHashes_; + onBuilt(); + return result; + } - public static final int BLOCK_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .Block block = 1; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - return getBlock(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int CMPHASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString cmpHash_; - /** - * bytes cmpHash = 2; - * @return The cmpHash. - */ - public com.google.protobuf.ByteString getCmpHash() { - return cmpHash_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (block_ != null) { - output.writeMessage(1, getBlock()); - } - if (!cmpHash_.isEmpty()) { - output.writeBytes(2, cmpHash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlock()); - } - if (!cmpHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, cmpHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock) obj; - - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (!getCmpHash() - .equals(other.getCmpHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - hash = (37 * hash) + CMPHASH_FIELD_NUMBER; - hash = (53 * hash) + getCmpHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.getDefaultInstance()) + return this; + if (other.hasHead()) { + mergeHead(other.getHead()); + } + if (other.getTxCount() != 0L) { + setTxCount(other.getTxCount()); + } + if (!other.txHashes_.isEmpty()) { + if (txHashes_.isEmpty()) { + txHashes_ = other.txHashes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxHashesIsMutable(); + txHashes_.addAll(other.txHashes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *用于比较最优区块的消息结构
-     * 
- * - * Protobuf type {@code CmpBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CmpBlock) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - cmpHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock(this); - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - result.cmpHash_ = cmpHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.getDefaultInstance()) return this; - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - if (other.getCmpHash() != com.google.protobuf.ByteString.EMPTY) { - setCmpHash(other.getCmpHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> blockBuilder_; - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .Block block = 1; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .Block block = 1; - */ - public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder setBlock( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - } - /** - * .Block block = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - - private com.google.protobuf.ByteString cmpHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes cmpHash = 2; - * @return The cmpHash. - */ - public com.google.protobuf.ByteString getCmpHash() { - return cmpHash_; - } - /** - * bytes cmpHash = 2; - * @param value The cmpHash to set. - * @return This builder for chaining. - */ - public Builder setCmpHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - cmpHash_ = value; - onChanged(); - return this; - } - /** - * bytes cmpHash = 2; - * @return This builder for chaining. - */ - public Builder clearCmpHash() { - - cmpHash_ = getDefaultInstance().getCmpHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CmpBlock) - } + private int bitField0_; - // @@protoc_insertion_point(class_scope:CmpBlock) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock(); - } + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header head_; + private com.google.protobuf.SingleFieldBuilderV3 headBuilder_; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * .Header head = 1; + * + * @return Whether the head field is set. + */ + public boolean hasHead() { + return headBuilder_ != null || head_ != null; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CmpBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CmpBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .Header head = 1; + * + * @return The head. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHead() { + if (headBuilder_ == null) { + return head_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : head_; + } else { + return headBuilder_.getMessage(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .Header head = 1; + */ + public Builder setHead(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + head_ = value; + onChanged(); + } else { + headBuilder_.setMessage(value); + } + + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * .Header head = 1; + */ + public Builder setHead( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headBuilder_ == null) { + head_ = builderForValue.build(); + onChanged(); + } else { + headBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - } + /** + * .Header head = 1; + */ + public Builder mergeHead(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headBuilder_ == null) { + if (head_ != null) { + head_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(head_) + .mergeFrom(value).buildPartial(); + } else { + head_ = value; + } + onChanged(); + } else { + headBuilder_.mergeFrom(value); + } + + return this; + } - public interface BlockBodysOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockBodys) - com.google.protobuf.MessageOrBuilder { + /** + * .Header head = 1; + */ + public Builder clearHead() { + if (headBuilder_ == null) { + head_ = null; + onChanged(); + } else { + head_ = null; + headBuilder_ = null; + } + + return this; + } - /** - * repeated .BlockBody items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .BlockBody items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getItems(int index); - /** - * repeated .BlockBody items = 1; - */ - int getItemsCount(); - /** - * repeated .BlockBody items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .BlockBody items = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder getItemsOrBuilder( - int index); - } - /** - *
-   * BlockBodys
-   * 
- * - * Protobuf type {@code BlockBodys} - */ - public static final class BlockBodys extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockBodys) - BlockBodysOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockBodys.newBuilder() to construct. - private BlockBodys(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockBodys() { - items_ = java.util.Collections.emptyList(); - } + /** + * .Header head = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeadBuilder() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockBodys(); - } + onChanged(); + return getHeadFieldBuilder().getBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockBodys( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_descriptor; - } + /** + * .Header head = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadOrBuilder() { + if (headBuilder_ != null) { + return headBuilder_.getMessageOrBuilder(); + } else { + return head_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : head_; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.Builder.class); - } + /** + * .Header head = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeadFieldBuilder() { + if (headBuilder_ == null) { + headBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHead(), getParentForChildren(), isClean()); + head_ = null; + } + return headBuilder_; + } - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .BlockBody items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .BlockBody items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .BlockBody items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .BlockBody items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getItems(int index) { - return items_.get(index); - } - /** - * repeated .BlockBody items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + private long txCount_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * int64 txCount = 2; + * + * @return The txCount. + */ + @java.lang.Override + public long getTxCount() { + return txCount_; + } - memoizedIsInitialized = 1; - return true; - } + /** + * int64 txCount = 2; + * + * @param value + * The txCount to set. + * + * @return This builder for chaining. + */ + public Builder setTxCount(long value) { + + txCount_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * int64 txCount = 2; + * + * @return This builder for chaining. + */ + public Builder clearTxCount() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + txCount_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private java.util.List txHashes_ = java.util.Collections.emptyList(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void ensureTxHashesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txHashes_ = new java.util.ArrayList(txHashes_); + bitField0_ |= 0x00000001; + } + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated bytes txHashes = 3; + * + * @return A list containing the txHashes. + */ + public java.util.List getTxHashesList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(txHashes_) : txHashes_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated bytes txHashes = 3; + * + * @return The count of txHashes. + */ + public int getTxHashesCount() { + return txHashes_.size(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * BlockBodys
-     * 
- * - * Protobuf type {@code BlockBodys} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BlockBodys) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder> itemsBuilder_; - - /** - * repeated .BlockBody items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .BlockBody items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .BlockBody items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .BlockBody items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .BlockBody items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .BlockBody items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .BlockBody items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .BlockBody items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance()); - } - /** - * repeated .BlockBody items = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance()); - } - /** - * repeated .BlockBody items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockBodys) - } + /** + * repeated bytes txHashes = 3; + * + * @param index + * The index of the element to return. + * + * @return The txHashes at the given index. + */ + public com.google.protobuf.ByteString getTxHashes(int index) { + return txHashes_.get(index); + } - // @@protoc_insertion_point(class_scope:BlockBodys) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys(); - } + /** + * repeated bytes txHashes = 3; + * + * @param index + * The index to set the value at. + * @param value + * The txHashes to set. + * + * @return This builder for chaining. + */ + public Builder setTxHashes(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashesIsMutable(); + txHashes_.set(index, value); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated bytes txHashes = 3; + * + * @param value + * The txHashes to add. + * + * @return This builder for chaining. + */ + public Builder addTxHashes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashesIsMutable(); + txHashes_.add(value); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockBodys parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockBodys(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated bytes txHashes = 3; + * + * @param values + * The txHashes to add. + * + * @return This builder for chaining. + */ + public Builder addAllTxHashes(java.lang.Iterable values) { + ensureTxHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHashes_); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated bytes txHashes = 3; + * + * @return This builder for chaining. + */ + public Builder clearTxHashes() { + txHashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public interface ChunkRecordsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChunkRecords) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:BlockOverview) + } - /** - * repeated .ChunkInfo infos = 1; - */ - java.util.List - getInfosList(); - /** - * repeated .ChunkInfo infos = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getInfos(int index); - /** - * repeated .ChunkInfo infos = 1; - */ - int getInfosCount(); - /** - * repeated .ChunkInfo infos = 1; - */ - java.util.List - getInfosOrBuilderList(); - /** - * repeated .ChunkInfo infos = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder getInfosOrBuilder( - int index); - } - /** - *
-   * ChunkRecords
-   * 
- * - * Protobuf type {@code ChunkRecords} - */ - public static final class ChunkRecords extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChunkRecords) - ChunkRecordsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChunkRecords.newBuilder() to construct. - private ChunkRecords(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChunkRecords() { - infos_ = java.util.Collections.emptyList(); - } + // @@protoc_insertion_point(class_scope:BlockOverview) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChunkRecords(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChunkRecords( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - infos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - infos_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - infos_ = java.util.Collections.unmodifiableList(infos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_descriptor; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockOverview parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockOverview(input, extensionRegistry); + } + }; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.Builder.class); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int INFOS_FIELD_NUMBER = 1; - private java.util.List infos_; - /** - * repeated .ChunkInfo infos = 1; - */ - public java.util.List getInfosList() { - return infos_; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public java.util.List - getInfosOrBuilderList() { - return infos_; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public int getInfosCount() { - return infos_.size(); - } - /** - * repeated .ChunkInfo infos = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getInfos(int index) { - return infos_.get(index); - } - /** - * repeated .ChunkInfo infos = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder getInfosOrBuilder( - int index) { - return infos_.get(index); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < infos_.size(); i++) { - output.writeMessage(1, infos_.get(i)); - } - unknownFields.writeTo(output); - } + public interface BlockDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockDetail) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < infos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, infos_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + boolean hasBlock(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords) obj; - - if (!getInfosList() - .equals(other.getInfosList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * .Block block = 1; + * + * @return The block. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInfosCount() > 0) { - hash = (37 * hash) + INFOS_FIELD_NUMBER; - hash = (53 * hash) + getInfosList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * .Block block = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .ReceiptData receipts = 2; + */ + java.util.List getReceiptsList(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated .ReceiptData receipts = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * ChunkRecords
-     * 
- * - * Protobuf type {@code ChunkRecords} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ChunkRecords) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecordsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInfosFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infosBuilder_ == null) { - infos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - infosBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords(this); - int from_bitField0_ = bitField0_; - if (infosBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - infos_ = java.util.Collections.unmodifiableList(infos_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.infos_ = infos_; - } else { - result.infos_ = infosBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.getDefaultInstance()) return this; - if (infosBuilder_ == null) { - if (!other.infos_.isEmpty()) { - if (infos_.isEmpty()) { - infos_ = other.infos_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInfosIsMutable(); - infos_.addAll(other.infos_); - } - onChanged(); - } - } else { - if (!other.infos_.isEmpty()) { - if (infosBuilder_.isEmpty()) { - infosBuilder_.dispose(); - infosBuilder_ = null; - infos_ = other.infos_; - bitField0_ = (bitField0_ & ~0x00000001); - infosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInfosFieldBuilder() : null; - } else { - infosBuilder_.addAllMessages(other.infos_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List infos_ = - java.util.Collections.emptyList(); - private void ensureInfosIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - infos_ = new java.util.ArrayList(infos_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder> infosBuilder_; - - /** - * repeated .ChunkInfo infos = 1; - */ - public java.util.List getInfosList() { - if (infosBuilder_ == null) { - return java.util.Collections.unmodifiableList(infos_); - } else { - return infosBuilder_.getMessageList(); - } - } - /** - * repeated .ChunkInfo infos = 1; - */ - public int getInfosCount() { - if (infosBuilder_ == null) { - return infos_.size(); - } else { - return infosBuilder_.getCount(); - } - } - /** - * repeated .ChunkInfo infos = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getInfos(int index) { - if (infosBuilder_ == null) { - return infos_.get(index); - } else { - return infosBuilder_.getMessage(index); - } - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder setInfos( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo value) { - if (infosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfosIsMutable(); - infos_.set(index, value); - onChanged(); - } else { - infosBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder setInfos( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder builderForValue) { - if (infosBuilder_ == null) { - ensureInfosIsMutable(); - infos_.set(index, builderForValue.build()); - onChanged(); - } else { - infosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder addInfos(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo value) { - if (infosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfosIsMutable(); - infos_.add(value); - onChanged(); - } else { - infosBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder addInfos( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo value) { - if (infosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfosIsMutable(); - infos_.add(index, value); - onChanged(); - } else { - infosBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder addInfos( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder builderForValue) { - if (infosBuilder_ == null) { - ensureInfosIsMutable(); - infos_.add(builderForValue.build()); - onChanged(); - } else { - infosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder addInfos( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder builderForValue) { - if (infosBuilder_ == null) { - ensureInfosIsMutable(); - infos_.add(index, builderForValue.build()); - onChanged(); - } else { - infosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder addAllInfos( - java.lang.Iterable values) { - if (infosBuilder_ == null) { - ensureInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, infos_); - onChanged(); - } else { - infosBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder clearInfos() { - if (infosBuilder_ == null) { - infos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - infosBuilder_.clear(); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public Builder removeInfos(int index) { - if (infosBuilder_ == null) { - ensureInfosIsMutable(); - infos_.remove(index); - onChanged(); - } else { - infosBuilder_.remove(index); - } - return this; - } - /** - * repeated .ChunkInfo infos = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder getInfosBuilder( - int index) { - return getInfosFieldBuilder().getBuilder(index); - } - /** - * repeated .ChunkInfo infos = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder getInfosOrBuilder( - int index) { - if (infosBuilder_ == null) { - return infos_.get(index); } else { - return infosBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ChunkInfo infos = 1; - */ - public java.util.List - getInfosOrBuilderList() { - if (infosBuilder_ != null) { - return infosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(infos_); - } - } - /** - * repeated .ChunkInfo infos = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder addInfosBuilder() { - return getInfosFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance()); - } - /** - * repeated .ChunkInfo infos = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder addInfosBuilder( - int index) { - return getInfosFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance()); - } - /** - * repeated .ChunkInfo infos = 1; - */ - public java.util.List - getInfosBuilderList() { - return getInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder> - getInfosFieldBuilder() { - if (infosBuilder_ == null) { - infosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder>( - infos_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - infos_ = null; - } - return infosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChunkRecords) - } + /** + * repeated .ReceiptData receipts = 2; + */ + int getReceiptsCount(); - // @@protoc_insertion_point(class_scope:ChunkRecords) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords(); - } + /** + * repeated .ReceiptData receipts = 2; + */ + java.util.List getReceiptsOrBuilderList(); - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .ReceiptData receipts = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder(int index); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChunkRecords parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChunkRecords(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .KeyValue KV = 3; + */ + java.util.List getKVList(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .KeyValue KV = 3; + */ + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index); - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .KeyValue KV = 3; + */ + int getKVCount(); - } + /** + * repeated .KeyValue KV = 3; + */ + java.util.List getKVOrBuilderList(); - public interface ChunkInfoMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChunkInfoMsg) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .KeyValue KV = 3; + */ + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder(int index); - /** - * bytes chunkHash = 1; - * @return The chunkHash. - */ - com.google.protobuf.ByteString getChunkHash(); + /** + * bytes prevStatusHash = 4; + * + * @return The prevStatusHash. + */ + com.google.protobuf.ByteString getPrevStatusHash(); + } /** - * int64 start = 2; - * @return The start. + *
+     *区块详细信息
+     * 	 block : 区块信息
+     *	 receipts :区块上所有交易的收据信息列表
+     * 
+ * + * Protobuf type {@code BlockDetail} */ - long getStart(); + public static final class BlockDetail extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockDetail) + BlockDetailOrBuilder { + private static final long serialVersionUID = 0L; - /** - * int64 end = 3; - * @return The end. - */ - long getEnd(); - } - /** - *
-   * ChunkInfoMsg 用于消息传递
-   * 
- * - * Protobuf type {@code ChunkInfoMsg} - */ - public static final class ChunkInfoMsg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChunkInfoMsg) - ChunkInfoMsgOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChunkInfoMsg.newBuilder() to construct. - private ChunkInfoMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChunkInfoMsg() { - chunkHash_ = com.google.protobuf.ByteString.EMPTY; - } + // Use BlockDetail.newBuilder() to construct. + private BlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChunkInfoMsg(); - } + private BlockDetail() { + receipts_ = java.util.Collections.emptyList(); + kV_ = java.util.Collections.emptyList(); + prevStatusHash_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChunkInfoMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - chunkHash_ = input.readBytes(); - break; - } - case 16: { - - start_ = input.readInt64(); - break; - } - case 24: { - - end_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_descriptor; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockDetail(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.Builder.class); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int CHUNKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString chunkHash_; - /** - * bytes chunkHash = 1; - * @return The chunkHash. - */ - public com.google.protobuf.ByteString getChunkHash() { - return chunkHash_; - } + private BlockDetail(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; + if (block_ != null) { + subBuilder = block_.toBuilder(); + } + block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(block_); + block_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + receipts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + receipts_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), + extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + kV_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + kV_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.parser(), + extensionRegistry)); + break; + } + case 34: { + + prevStatusHash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + kV_ = java.util.Collections.unmodifiableList(kV_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int START_FIELD_NUMBER = 2; - private long start_; - /** - * int64 start = 2; - * @return The start. - */ - public long getStart() { - return start_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_descriptor; + } - public static final int END_FIELD_NUMBER = 3; - private long end_; - /** - * int64 end = 3; - * @return The end. - */ - public long getEnd() { - return end_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder.class); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int BLOCK_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - memoizedIsInitialized = 1; - return true; - } + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return block_ != null; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!chunkHash_.isEmpty()) { - output.writeBytes(1, chunkHash_); - } - if (start_ != 0L) { - output.writeInt64(2, start_); - } - if (end_ != 0L) { - output.writeInt64(3, end_); - } - unknownFields.writeTo(output); - } + /** + * .Block block = 1; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() + : block_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!chunkHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, chunkHash_); - } - if (start_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, start_); - } - if (end_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, end_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * .Block block = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + return getBlock(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg) obj; - - if (!getChunkHash() - .equals(other.getChunkHash())) return false; - if (getStart() - != other.getStart()) return false; - if (getEnd() - != other.getEnd()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static final int RECEIPTS_FIELD_NUMBER = 2; + private java.util.List receipts_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHUNKHASH_FIELD_NUMBER; - hash = (53 * hash) + getChunkHash().hashCode(); - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStart()); - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEnd()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public java.util.List getReceiptsList() { + return receipts_; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public java.util.List getReceiptsOrBuilderList() { + return receipts_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public int getReceiptsCount() { + return receipts_.size(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * ChunkInfoMsg 用于消息传递
-     * 
- * - * Protobuf type {@code ChunkInfoMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ChunkInfoMsg) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - chunkHash_ = com.google.protobuf.ByteString.EMPTY; - - start_ = 0L; - - end_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg(this); - result.chunkHash_ = chunkHash_; - result.start_ = start_; - result.end_ = end_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.getDefaultInstance()) return this; - if (other.getChunkHash() != com.google.protobuf.ByteString.EMPTY) { - setChunkHash(other.getChunkHash()); - } - if (other.getStart() != 0L) { - setStart(other.getStart()); - } - if (other.getEnd() != 0L) { - setEnd(other.getEnd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString chunkHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes chunkHash = 1; - * @return The chunkHash. - */ - public com.google.protobuf.ByteString getChunkHash() { - return chunkHash_; - } - /** - * bytes chunkHash = 1; - * @param value The chunkHash to set. - * @return This builder for chaining. - */ - public Builder setChunkHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - chunkHash_ = value; - onChanged(); - return this; - } - /** - * bytes chunkHash = 1; - * @return This builder for chaining. - */ - public Builder clearChunkHash() { - - chunkHash_ = getDefaultInstance().getChunkHash(); - onChanged(); - return this; - } - - private long start_ ; - /** - * int64 start = 2; - * @return The start. - */ - public long getStart() { - return start_; - } - /** - * int64 start = 2; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(long value) { - - start_ = value; - onChanged(); - return this; - } - /** - * int64 start = 2; - * @return This builder for chaining. - */ - public Builder clearStart() { - - start_ = 0L; - onChanged(); - return this; - } - - private long end_ ; - /** - * int64 end = 3; - * @return The end. - */ - public long getEnd() { - return end_; - } - /** - * int64 end = 3; - * @param value The end to set. - * @return This builder for chaining. - */ - public Builder setEnd(long value) { - - end_ = value; - onChanged(); - return this; - } - /** - * int64 end = 3; - * @return This builder for chaining. - */ - public Builder clearEnd() { - - end_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChunkInfoMsg) - } + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { + return receipts_.get(index); + } - // @@protoc_insertion_point(class_scope:ChunkInfoMsg) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg(); - } + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( + int index) { + return receipts_.get(index); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int KV_FIELD_NUMBER = 3; + private java.util.List kV_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChunkInfoMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChunkInfoMsg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .KeyValue KV = 3; + */ + @java.lang.Override + public java.util.List getKVList() { + return kV_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .KeyValue KV = 3; + */ + @java.lang.Override + public java.util.List getKVOrBuilderList() { + return kV_; + } + + /** + * repeated .KeyValue KV = 3; + */ + @java.lang.Override + public int getKVCount() { + return kV_.size(); + } + + /** + * repeated .KeyValue KV = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { + return kV_.get(index); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .KeyValue KV = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder(int index) { + return kV_.get(index); + } - } + public static final int PREVSTATUSHASH_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString prevStatusHash_; - public interface ChunkInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChunkInfo) - com.google.protobuf.MessageOrBuilder { + /** + * bytes prevStatusHash = 4; + * + * @return The prevStatusHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrevStatusHash() { + return prevStatusHash_; + } - /** - * int64 chunkNum = 1; - * @return The chunkNum. - */ - long getChunkNum(); + private byte memoizedIsInitialized = -1; - /** - * bytes chunkHash = 2; - * @return The chunkHash. - */ - com.google.protobuf.ByteString getChunkHash(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - /** - * int64 start = 3; - * @return The start. - */ - long getStart(); + memoizedIsInitialized = 1; + return true; + } - /** - * int64 end = 4; - * @return The end. - */ - long getEnd(); - } - /** - *
-   * ChunkInfo用于记录chunk的信息
-   * 
- * - * Protobuf type {@code ChunkInfo} - */ - public static final class ChunkInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChunkInfo) - ChunkInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChunkInfo.newBuilder() to construct. - private ChunkInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChunkInfo() { - chunkHash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (block_ != null) { + output.writeMessage(1, getBlock()); + } + for (int i = 0; i < receipts_.size(); i++) { + output.writeMessage(2, receipts_.get(i)); + } + for (int i = 0; i < kV_.size(); i++) { + output.writeMessage(3, kV_.get(i)); + } + if (!prevStatusHash_.isEmpty()) { + output.writeBytes(4, prevStatusHash_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChunkInfo(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChunkInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - chunkNum_ = input.readInt64(); - break; - } - case 18: { - - chunkHash_ = input.readBytes(); - break; - } - case 24: { - - start_ = input.readInt64(); - break; - } - case 32: { - - end_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_descriptor; - } + size = 0; + if (block_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlock()); + } + for (int i = 0; i < receipts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, receipts_.get(i)); + } + for (int i = 0; i < kV_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, kV_.get(i)); + } + if (!prevStatusHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, prevStatusHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail) obj; - public static final int CHUNKNUM_FIELD_NUMBER = 1; - private long chunkNum_; - /** - * int64 chunkNum = 1; - * @return The chunkNum. - */ - public long getChunkNum() { - return chunkNum_; - } + if (hasBlock() != other.hasBlock()) + return false; + if (hasBlock()) { + if (!getBlock().equals(other.getBlock())) + return false; + } + if (!getReceiptsList().equals(other.getReceiptsList())) + return false; + if (!getKVList().equals(other.getKVList())) + return false; + if (!getPrevStatusHash().equals(other.getPrevStatusHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlock()) { + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + } + if (getReceiptsCount() > 0) { + hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; + hash = (53 * hash) + getReceiptsList().hashCode(); + } + if (getKVCount() > 0) { + hash = (37 * hash) + KV_FIELD_NUMBER; + hash = (53 * hash) + getKVList().hashCode(); + } + hash = (37 * hash) + PREVSTATUSHASH_FIELD_NUMBER; + hash = (53 * hash) + getPrevStatusHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int CHUNKHASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString chunkHash_; - /** - * bytes chunkHash = 2; - * @return The chunkHash. - */ - public com.google.protobuf.ByteString getChunkHash() { - return chunkHash_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int START_FIELD_NUMBER = 3; - private long start_; - /** - * int64 start = 3; - * @return The start. - */ - public long getStart() { - return start_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int END_FIELD_NUMBER = 4; - private long end_; - /** - * int64 end = 4; - * @return The end. - */ - public long getEnd() { - return end_; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (chunkNum_ != 0L) { - output.writeInt64(1, chunkNum_); - } - if (!chunkHash_.isEmpty()) { - output.writeBytes(2, chunkHash_); - } - if (start_ != 0L) { - output.writeInt64(3, start_); - } - if (end_ != 0L) { - output.writeInt64(4, end_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (chunkNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, chunkNum_); - } - if (!chunkHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, chunkHash_); - } - if (start_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, start_); - } - if (end_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, end_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo) obj; - - if (getChunkNum() - != other.getChunkNum()) return false; - if (!getChunkHash() - .equals(other.getChunkHash())) return false; - if (getStart() - != other.getStart()) return false; - if (getEnd() - != other.getEnd()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHUNKNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getChunkNum()); - hash = (37 * hash) + CHUNKHASH_FIELD_NUMBER; - hash = (53 * hash) + getChunkHash().hashCode(); - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStart()); - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEnd()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * ChunkInfo用于记录chunk的信息
-     * 
- * - * Protobuf type {@code ChunkInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ChunkInfo) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - chunkNum_ = 0L; - - chunkHash_ = com.google.protobuf.ByteString.EMPTY; - - start_ = 0L; - - end_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo(this); - result.chunkNum_ = chunkNum_; - result.chunkHash_ = chunkHash_; - result.start_ = start_; - result.end_ = end_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance()) return this; - if (other.getChunkNum() != 0L) { - setChunkNum(other.getChunkNum()); - } - if (other.getChunkHash() != com.google.protobuf.ByteString.EMPTY) { - setChunkHash(other.getChunkHash()); - } - if (other.getStart() != 0L) { - setStart(other.getStart()); - } - if (other.getEnd() != 0L) { - setEnd(other.getEnd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long chunkNum_ ; - /** - * int64 chunkNum = 1; - * @return The chunkNum. - */ - public long getChunkNum() { - return chunkNum_; - } - /** - * int64 chunkNum = 1; - * @param value The chunkNum to set. - * @return This builder for chaining. - */ - public Builder setChunkNum(long value) { - - chunkNum_ = value; - onChanged(); - return this; - } - /** - * int64 chunkNum = 1; - * @return This builder for chaining. - */ - public Builder clearChunkNum() { - - chunkNum_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString chunkHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes chunkHash = 2; - * @return The chunkHash. - */ - public com.google.protobuf.ByteString getChunkHash() { - return chunkHash_; - } - /** - * bytes chunkHash = 2; - * @param value The chunkHash to set. - * @return This builder for chaining. - */ - public Builder setChunkHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - chunkHash_ = value; - onChanged(); - return this; - } - /** - * bytes chunkHash = 2; - * @return This builder for chaining. - */ - public Builder clearChunkHash() { - - chunkHash_ = getDefaultInstance().getChunkHash(); - onChanged(); - return this; - } - - private long start_ ; - /** - * int64 start = 3; - * @return The start. - */ - public long getStart() { - return start_; - } - /** - * int64 start = 3; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(long value) { - - start_ = value; - onChanged(); - return this; - } - /** - * int64 start = 3; - * @return This builder for chaining. - */ - public Builder clearStart() { - - start_ = 0L; - onChanged(); - return this; - } - - private long end_ ; - /** - * int64 end = 4; - * @return The end. - */ - public long getEnd() { - return end_; - } - /** - * int64 end = 4; - * @param value The end to set. - * @return This builder for chaining. - */ - public Builder setEnd(long value) { - - end_ = value; - onChanged(); - return this; - } - /** - * int64 end = 4; - * @return This builder for chaining. - */ - public Builder clearEnd() { - - end_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChunkInfo) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:ChunkInfo) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChunkInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChunkInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - } + /** + *
+         *区块详细信息
+         * 	 block : 区块信息
+         *	 receipts :区块上所有交易的收据信息列表
+         * 
+ * + * Protobuf type {@code BlockDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockDetail) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_descriptor; + } - public interface ReqChunkRecordsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqChunkRecords) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder.class); + } - /** - * int64 start = 1; - * @return The start. - */ - long getStart(); + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * int64 end = 2; - * @return The end. - */ - long getEnd(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * bool isDetail = 3; - * @return The isDetail. + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReceiptsFieldBuilder(); + getKVFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (blockBuilder_ == null) { + block_ = null; + } else { + block_ = null; + blockBuilder_ = null; + } + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + receiptsBuilder_.clear(); + } + if (kVBuilder_ == null) { + kV_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + kVBuilder_.clear(); + } + prevStatusHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockDetail_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail( + this); + int from_bitField0_ = bitField0_; + if (blockBuilder_ == null) { + result.block_ = block_; + } else { + result.block_ = blockBuilder_.build(); + } + if (receiptsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.receipts_ = receipts_; + } else { + result.receipts_ = receiptsBuilder_.build(); + } + if (kVBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + kV_ = java.util.Collections.unmodifiableList(kV_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.kV_ = kV_; + } else { + result.kV_ = kVBuilder_.build(); + } + result.prevStatusHash_ = prevStatusHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance()) + return this; + if (other.hasBlock()) { + mergeBlock(other.getBlock()); + } + if (receiptsBuilder_ == null) { + if (!other.receipts_.isEmpty()) { + if (receipts_.isEmpty()) { + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReceiptsIsMutable(); + receipts_.addAll(other.receipts_); + } + onChanged(); + } + } else { + if (!other.receipts_.isEmpty()) { + if (receiptsBuilder_.isEmpty()) { + receiptsBuilder_.dispose(); + receiptsBuilder_ = null; + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000001); + receiptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReceiptsFieldBuilder() : null; + } else { + receiptsBuilder_.addAllMessages(other.receipts_); + } + } + } + if (kVBuilder_ == null) { + if (!other.kV_.isEmpty()) { + if (kV_.isEmpty()) { + kV_ = other.kV_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureKVIsMutable(); + kV_.addAll(other.kV_); + } + onChanged(); + } + } else { + if (!other.kV_.isEmpty()) { + if (kVBuilder_.isEmpty()) { + kVBuilder_.dispose(); + kVBuilder_ = null; + kV_ = other.kV_; + bitField0_ = (bitField0_ & ~0x00000002); + kVBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKVFieldBuilder() : null; + } else { + kVBuilder_.addAllMessages(other.kV_); + } + } + } + if (other.getPrevStatusHash() != com.google.protobuf.ByteString.EMPTY) { + setPrevStatusHash(other.getPrevStatusHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; + private com.google.protobuf.SingleFieldBuilderV3 blockBuilder_; + + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + public boolean hasBlock() { + return blockBuilder_ != null || block_ != null; + } + + /** + * .Block block = 1; + * + * @return The block. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + if (blockBuilder_ == null) { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } else { + return blockBuilder_.getMessage(); + } + } + + /** + * .Block block = 1; + */ + public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + block_ = value; + onChanged(); + } else { + blockBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder setBlock( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (blockBuilder_ == null) { + block_ = builderForValue.build(); + onChanged(); + } else { + blockBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (block_ != null) { + block_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_) + .mergeFrom(value).buildPartial(); + } else { + block_ = value; + } + onChanged(); + } else { + blockBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder clearBlock() { + if (blockBuilder_ == null) { + block_ = null; + onChanged(); + } else { + block_ = null; + blockBuilder_ = null; + } + + return this; + } + + /** + * .Block block = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { + + onChanged(); + return getBlockFieldBuilder().getBuilder(); + } + + /** + * .Block block = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + if (blockBuilder_ != null) { + return blockBuilder_.getMessageOrBuilder(); + } else { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } + } + + /** + * .Block block = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockFieldBuilder() { + if (blockBuilder_ == null) { + blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getBlock(), getParentForChildren(), isClean()); + block_ = null; + } + return blockBuilder_; + } + + private java.util.List receipts_ = java.util.Collections + .emptyList(); + + private void ensureReceiptsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + receipts_ = new java.util.ArrayList( + receipts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 receiptsBuilder_; + + /** + * repeated .ReceiptData receipts = 2; + */ + public java.util.List getReceiptsList() { + if (receiptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(receipts_); + } else { + return receiptsBuilder_.getMessageList(); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public int getReceiptsCount() { + if (receiptsBuilder_ == null) { + return receipts_.size(); + } else { + return receiptsBuilder_.getCount(); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessage(index); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.set(index, value); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.set(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(value); + onChanged(); + } else { + receiptsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(index, value); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addAllReceipts( + java.lang.Iterable values) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receipts_); + onChanged(); + } else { + receiptsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder clearReceipts() { + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + receiptsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder removeReceipts(int index) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.remove(index); + onChanged(); + } else { + receiptsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( + int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public java.util.List getReceiptsOrBuilderList() { + if (receiptsBuilder_ != null) { + return receiptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(receipts_); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder() { + return getReceiptsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public java.util.List getReceiptsBuilderList() { + return getReceiptsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getReceiptsFieldBuilder() { + if (receiptsBuilder_ == null) { + receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + receipts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + receipts_ = null; + } + return receiptsBuilder_; + } + + private java.util.List kV_ = java.util.Collections + .emptyList(); + + private void ensureKVIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + kV_ = new java.util.ArrayList(kV_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 kVBuilder_; + + /** + * repeated .KeyValue KV = 3; + */ + public java.util.List getKVList() { + if (kVBuilder_ == null) { + return java.util.Collections.unmodifiableList(kV_); + } else { + return kVBuilder_.getMessageList(); + } + } + + /** + * repeated .KeyValue KV = 3; + */ + public int getKVCount() { + if (kVBuilder_ == null) { + return kV_.size(); + } else { + return kVBuilder_.getCount(); + } + } + + /** + * repeated .KeyValue KV = 3; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { + if (kVBuilder_ == null) { + return kV_.get(index); + } else { + return kVBuilder_.getMessage(index); + } + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder setKV(int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { + if (kVBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKVIsMutable(); + kV_.set(index, value); + onChanged(); + } else { + kVBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder setKV(int index, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.set(index, builderForValue.build()); + onChanged(); + } else { + kVBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder addKV(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { + if (kVBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKVIsMutable(); + kV_.add(value); + onChanged(); + } else { + kVBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder addKV(int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { + if (kVBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKVIsMutable(); + kV_.add(index, value); + onChanged(); + } else { + kVBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder addKV(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.add(builderForValue.build()); + onChanged(); + } else { + kVBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder addKV(int index, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.add(index, builderForValue.build()); + onChanged(); + } else { + kVBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder addAllKV( + java.lang.Iterable values) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kV_); + onChanged(); + } else { + kVBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder clearKV() { + if (kVBuilder_ == null) { + kV_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + kVBuilder_.clear(); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public Builder removeKV(int index) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.remove(index); + onChanged(); + } else { + kVBuilder_.remove(index); + } + return this; + } + + /** + * repeated .KeyValue KV = 3; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder getKVBuilder(int index) { + return getKVFieldBuilder().getBuilder(index); + } + + /** + * repeated .KeyValue KV = 3; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder(int index) { + if (kVBuilder_ == null) { + return kV_.get(index); + } else { + return kVBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .KeyValue KV = 3; + */ + public java.util.List getKVOrBuilderList() { + if (kVBuilder_ != null) { + return kVBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(kV_); + } + } + + /** + * repeated .KeyValue KV = 3; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder() { + return getKVFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); + } + + /** + * repeated .KeyValue KV = 3; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder(int index) { + return getKVFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); + } + + /** + * repeated .KeyValue KV = 3; + */ + public java.util.List getKVBuilderList() { + return getKVFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getKVFieldBuilder() { + if (kVBuilder_ == null) { + kVBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + kV_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + kV_ = null; + } + return kVBuilder_; + } + + private com.google.protobuf.ByteString prevStatusHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes prevStatusHash = 4; + * + * @return The prevStatusHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrevStatusHash() { + return prevStatusHash_; + } + + /** + * bytes prevStatusHash = 4; + * + * @param value + * The prevStatusHash to set. + * + * @return This builder for chaining. + */ + public Builder setPrevStatusHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + prevStatusHash_ = value; + onChanged(); + return this; + } + + /** + * bytes prevStatusHash = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrevStatusHash() { + + prevStatusHash_ = getDefaultInstance().getPrevStatusHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BlockDetail) + } + + // @@protoc_insertion_point(class_scope:BlockDetail) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockDetail parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Receipts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Receipt receipts = 1; + */ + java.util.List getReceiptsList(); + + /** + * repeated .Receipt receipts = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getReceipts(int index); + + /** + * repeated .Receipt receipts = 1; + */ + int getReceiptsCount(); + + /** + * repeated .Receipt receipts = 1; + */ + java.util.List getReceiptsOrBuilderList(); + + /** + * repeated .Receipt receipts = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder getReceiptsOrBuilder(int index); + } + + /** + * Protobuf type {@code Receipts} + */ + public static final class Receipts extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Receipts) + ReceiptsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Receipts.newBuilder() to construct. + private Receipts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Receipts() { + receipts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Receipts(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Receipts(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + receipts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + receipts_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.Builder.class); + } + + public static final int RECEIPTS_FIELD_NUMBER = 1; + private java.util.List receipts_; + + /** + * repeated .Receipt receipts = 1; + */ + @java.lang.Override + public java.util.List getReceiptsList() { + return receipts_; + } + + /** + * repeated .Receipt receipts = 1; + */ + @java.lang.Override + public java.util.List getReceiptsOrBuilderList() { + return receipts_; + } + + /** + * repeated .Receipt receipts = 1; + */ + @java.lang.Override + public int getReceiptsCount() { + return receipts_.size(); + } + + /** + * repeated .Receipt receipts = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getReceipts(int index) { + return receipts_.get(index); + } + + /** + * repeated .Receipt receipts = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder getReceiptsOrBuilder( + int index) { + return receipts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < receipts_.size(); i++) { + output.writeMessage(1, receipts_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < receipts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receipts_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts) obj; + + if (!getReceiptsList().equals(other.getReceiptsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReceiptsCount() > 0) { + hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; + hash = (53 * hash) + getReceiptsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Receipts} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Receipts) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReceiptsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + receiptsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_Receipts_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts( + this); + int from_bitField0_ = bitField0_; + if (receiptsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.receipts_ = receipts_; + } else { + result.receipts_ = receiptsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts.getDefaultInstance()) + return this; + if (receiptsBuilder_ == null) { + if (!other.receipts_.isEmpty()) { + if (receipts_.isEmpty()) { + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReceiptsIsMutable(); + receipts_.addAll(other.receipts_); + } + onChanged(); + } + } else { + if (!other.receipts_.isEmpty()) { + if (receiptsBuilder_.isEmpty()) { + receiptsBuilder_.dispose(); + receiptsBuilder_ = null; + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000001); + receiptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReceiptsFieldBuilder() : null; + } else { + receiptsBuilder_.addAllMessages(other.receipts_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List receipts_ = java.util.Collections + .emptyList(); + + private void ensureReceiptsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + receipts_ = new java.util.ArrayList( + receipts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 receiptsBuilder_; + + /** + * repeated .Receipt receipts = 1; + */ + public java.util.List getReceiptsList() { + if (receiptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(receipts_); + } else { + return receiptsBuilder_.getMessageList(); + } + } + + /** + * repeated .Receipt receipts = 1; + */ + public int getReceiptsCount() { + if (receiptsBuilder_ == null) { + return receipts_.size(); + } else { + return receiptsBuilder_.getCount(); + } + } + + /** + * repeated .Receipt receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getReceipts(int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessage(index); + } + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.set(index, value); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.set(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(value); + onChanged(); + } else { + receiptsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(index, value); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder addReceipts( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder addAllReceipts( + java.lang.Iterable values) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receipts_); + onChanged(); + } else { + receiptsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder clearReceipts() { + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + receiptsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public Builder removeReceipts(int index) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.remove(index); + onChanged(); + } else { + receiptsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Receipt receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder getReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Receipt receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder getReceiptsOrBuilder( + int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Receipt receipts = 1; + */ + public java.util.List getReceiptsOrBuilderList() { + if (receiptsBuilder_ != null) { + return receiptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(receipts_); + } + } + + /** + * repeated .Receipt receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder addReceiptsBuilder() { + return getReceiptsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance()); + } + + /** + * repeated .Receipt receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder addReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance()); + } + + /** + * repeated .Receipt receipts = 1; + */ + public java.util.List getReceiptsBuilderList() { + return getReceiptsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getReceiptsFieldBuilder() { + if (receiptsBuilder_ == null) { + receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + receipts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + receipts_ = null; + } + return receiptsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Receipts) + } + + // @@protoc_insertion_point(class_scope:Receipts) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Receipts parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Receipts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Receipts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptCheckTxListOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptCheckTxList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string errs = 1; + * + * @return A list containing the errs. + */ + java.util.List getErrsList(); + + /** + * repeated string errs = 1; + * + * @return The count of errs. + */ + int getErrsCount(); + + /** + * repeated string errs = 1; + * + * @param index + * The index of the element to return. + * + * @return The errs at the given index. + */ + java.lang.String getErrs(int index); + + /** + * repeated string errs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the errs at the given index. + */ + com.google.protobuf.ByteString getErrsBytes(int index); + } + + /** + * Protobuf type {@code ReceiptCheckTxList} + */ + public static final class ReceiptCheckTxList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptCheckTxList) + ReceiptCheckTxListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptCheckTxList.newBuilder() to construct. + private ReceiptCheckTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptCheckTxList() { + errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptCheckTxList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptCheckTxList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + errs_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + errs_ = errs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.Builder.class); + } + + public static final int ERRS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList errs_; + + /** + * repeated string errs = 1; + * + * @return A list containing the errs. + */ + public com.google.protobuf.ProtocolStringList getErrsList() { + return errs_; + } + + /** + * repeated string errs = 1; + * + * @return The count of errs. + */ + public int getErrsCount() { + return errs_.size(); + } + + /** + * repeated string errs = 1; + * + * @param index + * The index of the element to return. + * + * @return The errs at the given index. + */ + public java.lang.String getErrs(int index) { + return errs_.get(index); + } + + /** + * repeated string errs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the errs at the given index. + */ + public com.google.protobuf.ByteString getErrsBytes(int index) { + return errs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < errs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < errs_.size(); i++) { + dataSize += computeStringSizeNoTag(errs_.getRaw(i)); + } + size += dataSize; + size += 1 * getErrsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList) obj; + + if (!getErrsList().equals(other.getErrsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrsCount() > 0) { + hash = (37 * hash) + ERRS_FIELD_NUMBER; + hash = (53 * hash) + getErrsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptCheckTxList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptCheckTxList) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReceiptCheckTxList_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + errs_ = errs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errs_ = errs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList + .getDefaultInstance()) + return this; + if (!other.errs_.isEmpty()) { + if (errs_.isEmpty()) { + errs_ = other.errs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrsIsMutable(); + errs_.addAll(other.errs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureErrsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errs_ = new com.google.protobuf.LazyStringArrayList(errs_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string errs = 1; + * + * @return A list containing the errs. + */ + public com.google.protobuf.ProtocolStringList getErrsList() { + return errs_.getUnmodifiableView(); + } + + /** + * repeated string errs = 1; + * + * @return The count of errs. + */ + public int getErrsCount() { + return errs_.size(); + } + + /** + * repeated string errs = 1; + * + * @param index + * The index of the element to return. + * + * @return The errs at the given index. + */ + public java.lang.String getErrs(int index) { + return errs_.get(index); + } + + /** + * repeated string errs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the errs at the given index. + */ + public com.google.protobuf.ByteString getErrsBytes(int index) { + return errs_.getByteString(index); + } + + /** + * repeated string errs = 1; + * + * @param index + * The index to set the value at. + * @param value + * The errs to set. + * + * @return This builder for chaining. + */ + public Builder setErrs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrsIsMutable(); + errs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string errs = 1; + * + * @param value + * The errs to add. + * + * @return This builder for chaining. + */ + public Builder addErrs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrsIsMutable(); + errs_.add(value); + onChanged(); + return this; + } + + /** + * repeated string errs = 1; + * + * @param values + * The errs to add. + * + * @return This builder for chaining. + */ + public Builder addAllErrs(java.lang.Iterable values) { + ensureErrsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errs_); + onChanged(); + return this; + } + + /** + * repeated string errs = 1; + * + * @return This builder for chaining. + */ + public Builder clearErrs() { + errs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string errs = 1; + * + * @param value + * The bytes of the errs to add. + * + * @return This builder for chaining. + */ + public Builder addErrsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureErrsIsMutable(); + errs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptCheckTxList) + } + + // @@protoc_insertion_point(class_scope:ReceiptCheckTxList) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptCheckTxList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptCheckTxList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReceiptCheckTxList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChainStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:ChainStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 currentHeight = 1; + * + * @return The currentHeight. + */ + long getCurrentHeight(); + + /** + * int64 mempoolSize = 2; + * + * @return The mempoolSize. + */ + long getMempoolSize(); + + /** + * int64 msgQueueSize = 3; + * + * @return The msgQueueSize. + */ + long getMsgQueueSize(); + } + + /** + *
+     *区块链状态
+     * 	 currentHeight : 区块最新高度
+     *	 mempoolSize :内存池大小
+     * 	 msgQueueSize : 消息队列大小
+     * 
+ * + * Protobuf type {@code ChainStatus} + */ + public static final class ChainStatus extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ChainStatus) + ChainStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ChainStatus.newBuilder() to construct. + private ChainStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChainStatus() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChainStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChainStatus(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + currentHeight_ = input.readInt64(); + break; + } + case 16: { + + mempoolSize_ = input.readInt64(); + break; + } + case 24: { + + msgQueueSize_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.Builder.class); + } + + public static final int CURRENTHEIGHT_FIELD_NUMBER = 1; + private long currentHeight_; + + /** + * int64 currentHeight = 1; + * + * @return The currentHeight. + */ + @java.lang.Override + public long getCurrentHeight() { + return currentHeight_; + } + + public static final int MEMPOOLSIZE_FIELD_NUMBER = 2; + private long mempoolSize_; + + /** + * int64 mempoolSize = 2; + * + * @return The mempoolSize. + */ + @java.lang.Override + public long getMempoolSize() { + return mempoolSize_; + } + + public static final int MSGQUEUESIZE_FIELD_NUMBER = 3; + private long msgQueueSize_; + + /** + * int64 msgQueueSize = 3; + * + * @return The msgQueueSize. + */ + @java.lang.Override + public long getMsgQueueSize() { + return msgQueueSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (currentHeight_ != 0L) { + output.writeInt64(1, currentHeight_); + } + if (mempoolSize_ != 0L) { + output.writeInt64(2, mempoolSize_); + } + if (msgQueueSize_ != 0L) { + output.writeInt64(3, msgQueueSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (currentHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, currentHeight_); + } + if (mempoolSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, mempoolSize_); + } + if (msgQueueSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, msgQueueSize_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus) obj; + + if (getCurrentHeight() != other.getCurrentHeight()) + return false; + if (getMempoolSize() != other.getMempoolSize()) + return false; + if (getMsgQueueSize() != other.getMsgQueueSize()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CURRENTHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentHeight()); + hash = (37 * hash) + MEMPOOLSIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMempoolSize()); + hash = (37 * hash) + MSGQUEUESIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMsgQueueSize()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *区块链状态
+         * 	 currentHeight : 区块最新高度
+         *	 mempoolSize :内存池大小
+         * 	 msgQueueSize : 消息队列大小
+         * 
+ * + * Protobuf type {@code ChainStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ChainStatus) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + currentHeight_ = 0L; + + mempoolSize_ = 0L; + + msgQueueSize_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainStatus_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus( + this); + result.currentHeight_ = currentHeight_; + result.mempoolSize_ = mempoolSize_; + result.msgQueueSize_ = msgQueueSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus.getDefaultInstance()) + return this; + if (other.getCurrentHeight() != 0L) { + setCurrentHeight(other.getCurrentHeight()); + } + if (other.getMempoolSize() != 0L) { + setMempoolSize(other.getMempoolSize()); + } + if (other.getMsgQueueSize() != 0L) { + setMsgQueueSize(other.getMsgQueueSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long currentHeight_; + + /** + * int64 currentHeight = 1; + * + * @return The currentHeight. + */ + @java.lang.Override + public long getCurrentHeight() { + return currentHeight_; + } + + /** + * int64 currentHeight = 1; + * + * @param value + * The currentHeight to set. + * + * @return This builder for chaining. + */ + public Builder setCurrentHeight(long value) { + + currentHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 currentHeight = 1; + * + * @return This builder for chaining. + */ + public Builder clearCurrentHeight() { + + currentHeight_ = 0L; + onChanged(); + return this; + } + + private long mempoolSize_; + + /** + * int64 mempoolSize = 2; + * + * @return The mempoolSize. + */ + @java.lang.Override + public long getMempoolSize() { + return mempoolSize_; + } + + /** + * int64 mempoolSize = 2; + * + * @param value + * The mempoolSize to set. + * + * @return This builder for chaining. + */ + public Builder setMempoolSize(long value) { + + mempoolSize_ = value; + onChanged(); + return this; + } + + /** + * int64 mempoolSize = 2; + * + * @return This builder for chaining. + */ + public Builder clearMempoolSize() { + + mempoolSize_ = 0L; + onChanged(); + return this; + } + + private long msgQueueSize_; + + /** + * int64 msgQueueSize = 3; + * + * @return The msgQueueSize. + */ + @java.lang.Override + public long getMsgQueueSize() { + return msgQueueSize_; + } + + /** + * int64 msgQueueSize = 3; + * + * @param value + * The msgQueueSize to set. + * + * @return This builder for chaining. + */ + public Builder setMsgQueueSize(long value) { + + msgQueueSize_ = value; + onChanged(); + return this; + } + + /** + * int64 msgQueueSize = 3; + * + * @return This builder for chaining. + */ + public Builder clearMsgQueueSize() { + + msgQueueSize_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ChainStatus) + } + + // @@protoc_insertion_point(class_scope:ChainStatus) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChainStatus parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChainStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqBlocksOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqBlocks) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 start = 1; + * + * @return The start. + */ + long getStart(); + + /** + * int64 end = 2; + * + * @return The end. + */ + long getEnd(); + + /** + * bool isDetail = 3; + * + * @return The isDetail. + */ + boolean getIsDetail(); + + /** + * repeated string pid = 4; + * + * @return A list containing the pid. + */ + java.util.List getPidList(); + + /** + * repeated string pid = 4; + * + * @return The count of pid. + */ + int getPidCount(); + + /** + * repeated string pid = 4; + * + * @param index + * The index of the element to return. + * + * @return The pid at the given index. + */ + java.lang.String getPid(int index); + + /** + * repeated string pid = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pid at the given index. + */ + com.google.protobuf.ByteString getPidBytes(int index); + } + + /** + *
+     *获取区块信息
+     * 	 start : 获取区块的开始高度
+     *	 end :获取区块的结束高度
+     * 	 Isdetail : 是否需要获取区块的详细信息
+     * 	 pid : peer列表
+     * 
+ * + * Protobuf type {@code ReqBlocks} + */ + public static final class ReqBlocks extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqBlocks) + ReqBlocksOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqBlocks.newBuilder() to construct. + private ReqBlocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqBlocks() { + pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqBlocks(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqBlocks(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + start_ = input.readInt64(); + break; + } + case 16: { + + end_ = input.readInt64(); + break; + } + case 24: { + + isDetail_ = input.readBool(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pid_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pid_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + pid_ = pid_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.Builder.class); + } + + public static final int START_FIELD_NUMBER = 1; + private long start_; + + /** + * int64 start = 1; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 2; + private long end_; + + /** + * int64 end = 2; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + public static final int ISDETAIL_FIELD_NUMBER = 3; + private boolean isDetail_; + + /** + * bool isDetail = 3; + * + * @return The isDetail. + */ + @java.lang.Override + public boolean getIsDetail() { + return isDetail_; + } + + public static final int PID_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList pid_; + + /** + * repeated string pid = 4; + * + * @return A list containing the pid. + */ + public com.google.protobuf.ProtocolStringList getPidList() { + return pid_; + } + + /** + * repeated string pid = 4; + * + * @return The count of pid. + */ + public int getPidCount() { + return pid_.size(); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the element to return. + * + * @return The pid at the given index. + */ + public java.lang.String getPid(int index) { + return pid_.get(index); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pid at the given index. + */ + public com.google.protobuf.ByteString getPidBytes(int index) { + return pid_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (start_ != 0L) { + output.writeInt64(1, start_); + } + if (end_ != 0L) { + output.writeInt64(2, end_); + } + if (isDetail_ != false) { + output.writeBool(3, isDetail_); + } + for (int i = 0; i < pid_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pid_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, end_); + } + if (isDetail_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isDetail_); + } + { + int dataSize = 0; + for (int i = 0; i < pid_.size(); i++) { + dataSize += computeStringSizeNoTag(pid_.getRaw(i)); + } + size += dataSize; + size += 1 * getPidList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) obj; + + if (getStart() != other.getStart()) + return false; + if (getEnd() != other.getEnd()) + return false; + if (getIsDetail() != other.getIsDetail()) + return false; + if (!getPidList().equals(other.getPidList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (37 * hash) + ISDETAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDetail()); + if (getPidCount() > 0) { + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPidList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *获取区块信息
+         * 	 start : 获取区块的开始高度
+         *	 end :获取区块的结束高度
+         * 	 Isdetail : 是否需要获取区块的详细信息
+         * 	 pid : peer列表
+         * 
+ * + * Protobuf type {@code ReqBlocks} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqBlocks) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + start_ = 0L; + + end_ = 0L; + + isDetail_ = false; + + pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqBlocks_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks( + this); + int from_bitField0_ = bitField0_; + result.start_ = start_; + result.end_ = end_; + result.isDetail_ = isDetail_; + if (((bitField0_ & 0x00000001) != 0)) { + pid_ = pid_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pid_ = pid_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.getDefaultInstance()) + return this; + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + if (other.getIsDetail() != false) { + setIsDetail(other.getIsDetail()); + } + if (!other.pid_.isEmpty()) { + if (pid_.isEmpty()) { + pid_ = other.pid_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePidIsMutable(); + pid_.addAll(other.pid_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long start_; + + /** + * int64 start = 1; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + /** + * int64 start = 1; + * + * @param value + * The start to set. + * + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + onChanged(); + return this; + } + + /** + * int64 start = 1; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0L; + onChanged(); + return this; + } + + private long end_; + + /** + * int64 end = 2; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + /** + * int64 end = 2; + * + * @param value + * The end to set. + * + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + onChanged(); + return this; + } + + /** + * int64 end = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnd() { + + end_ = 0L; + onChanged(); + return this; + } + + private boolean isDetail_; + + /** + * bool isDetail = 3; + * + * @return The isDetail. + */ + @java.lang.Override + public boolean getIsDetail() { + return isDetail_; + } + + /** + * bool isDetail = 3; + * + * @param value + * The isDetail to set. + * + * @return This builder for chaining. + */ + public Builder setIsDetail(boolean value) { + + isDetail_ = value; + onChanged(); + return this; + } + + /** + * bool isDetail = 3; + * + * @return This builder for chaining. + */ + public Builder clearIsDetail() { + + isDetail_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePidIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pid_ = new com.google.protobuf.LazyStringArrayList(pid_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string pid = 4; + * + * @return A list containing the pid. + */ + public com.google.protobuf.ProtocolStringList getPidList() { + return pid_.getUnmodifiableView(); + } + + /** + * repeated string pid = 4; + * + * @return The count of pid. + */ + public int getPidCount() { + return pid_.size(); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the element to return. + * + * @return The pid at the given index. + */ + public java.lang.String getPid(int index) { + return pid_.get(index); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pid at the given index. + */ + public com.google.protobuf.ByteString getPidBytes(int index) { + return pid_.getByteString(index); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index to set the value at. + * @param value + * The pid to set. + * + * @return This builder for chaining. + */ + public Builder setPid(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidIsMutable(); + pid_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @param value + * The pid to add. + * + * @return This builder for chaining. + */ + public Builder addPid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidIsMutable(); + pid_.add(value); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @param values + * The pid to add. + * + * @return This builder for chaining. + */ + public Builder addAllPid(java.lang.Iterable values) { + ensurePidIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pid_); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @return This builder for chaining. + */ + public Builder clearPid() { + pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @param value + * The bytes of the pid to add. + * + * @return This builder for chaining. + */ + public Builder addPidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePidIsMutable(); + pid_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqBlocks) + } + + // @@protoc_insertion_point(class_scope:ReqBlocks) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqBlocks parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqBlocks(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MempoolSizeOrBuilder extends + // @@protoc_insertion_point(interface_extends:MempoolSize) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 size = 1; + * + * @return The size. + */ + long getSize(); + } + + /** + * Protobuf type {@code MempoolSize} + */ + public static final class MempoolSize extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:MempoolSize) + MempoolSizeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MempoolSize.newBuilder() to construct. + private MempoolSize(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MempoolSize() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MempoolSize(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MempoolSize(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + size_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.Builder.class); + } + + public static final int SIZE_FIELD_NUMBER = 1; + private long size_; + + /** + * int64 size = 1; + * + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (size_ != 0L) { + output.writeInt64(1, size_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, size_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize) obj; + + if (getSize() != other.getSize()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 MempoolSize} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:MempoolSize) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSizeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + size_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_MempoolSize_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize( + this); + result.size_ = size_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize.getDefaultInstance()) + return this; + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long size_; + + /** + * int64 size = 1; + * + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + /** + * int64 size = 1; + * + * @param value + * The size to set. + * + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + + /** + * int64 size = 1; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:MempoolSize) + } + + // @@protoc_insertion_point(class_scope:MempoolSize) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MempoolSize parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MempoolSize(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.MempoolSize getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyBlockHeightOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyBlockHeight) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 height = 1; + * + * @return The height. + */ + long getHeight(); + } + + /** + * Protobuf type {@code ReplyBlockHeight} + */ + public static final class ReplyBlockHeight extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyBlockHeight) + ReplyBlockHeightOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyBlockHeight.newBuilder() to construct. + private ReplyBlockHeight(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyBlockHeight() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyBlockHeight(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyBlockHeight(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + height_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.Builder.class); + } + + public static final int HEIGHT_FIELD_NUMBER = 1; + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (height_ != 0L) { + output.writeInt64(1, height_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, height_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight) obj; + + if (getHeight() != other.getHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyBlockHeight} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyBlockHeight) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeightOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyBlockHeight_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight( + this); + result.height_ = height_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight.getDefaultInstance()) + return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 1; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyBlockHeight) + } + + // @@protoc_insertion_point(class_scope:ReplyBlockHeight) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyBlockHeight parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyBlockHeight(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyBlockHeight getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockBodyOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockBody) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); + + /** + * repeated .Transaction txs = 1; + */ + int getTxsCount(); + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder(int index); + + /** + * repeated .ReceiptData receipts = 2; + */ + java.util.List getReceiptsList(); + + /** + * repeated .ReceiptData receipts = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index); + + /** + * repeated .ReceiptData receipts = 2; + */ + int getReceiptsCount(); + + /** + * repeated .ReceiptData receipts = 2; + */ + java.util.List getReceiptsOrBuilderList(); + + /** + * repeated .ReceiptData receipts = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder(int index); + + /** + * bytes mainHash = 3; + * + * @return The mainHash. + */ + com.google.protobuf.ByteString getMainHash(); + + /** + * int64 mainHeight = 4; + * + * @return The mainHeight. + */ + long getMainHeight(); + + /** + * bytes hash = 5; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * int64 height = 6; + * + * @return The height. + */ + long getHeight(); + } + + /** + *
+     *区块体信息
+     * 	 txs : 区块上所有交易列表
+     *	 receipts :区块上所有交易的收据信息列表
+     * 	 mainHash : 主链区块hash,平行链使用
+     *	 mainHeight :主链区块高度,平行链使用
+     * 	 hash : 本链区块hash
+     *	 height :本链区块高度
+     * 
+ * + * Protobuf type {@code BlockBody} + */ + public static final class BlockBody extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockBody) + BlockBodyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BlockBody.newBuilder() to construct. + private BlockBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BlockBody() { + txs_ = java.util.Collections.emptyList(); + receipts_ = java.util.Collections.emptyList(); + mainHash_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockBody(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BlockBody(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + receipts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + receipts_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), + extensionRegistry)); + break; + } + case 26: { + + mainHash_ = input.readBytes(); + break; + } + case 32: { + + mainHeight_ = input.readInt64(); + break; + } + case 42: { + + hash_ = input.readBytes(); + break; + } + case 48: { + + height_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder.class); + } + + public static final int TXS_FIELD_NUMBER = 1; + private java.util.List txs_; + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } + + public static final int RECEIPTS_FIELD_NUMBER = 2; + private java.util.List receipts_; + + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public java.util.List getReceiptsList() { + return receipts_; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public java.util.List getReceiptsOrBuilderList() { + return receipts_; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public int getReceiptsCount() { + return receipts_.size(); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { + return receipts_.get(index); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( + int index) { + return receipts_.get(index); + } + + public static final int MAINHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString mainHash_; + + /** + * bytes mainHash = 3; + * + * @return The mainHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainHash() { + return mainHash_; + } + + public static final int MAINHEIGHT_FIELD_NUMBER = 4; + private long mainHeight_; + + /** + * int64 mainHeight = 4; + * + * @return The mainHeight. + */ + @java.lang.Override + public long getMainHeight() { + return mainHeight_; + } + + public static final int HASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 5; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int HEIGHT_FIELD_NUMBER = 6; + private long height_; + + /** + * int64 height = 6; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(1, txs_.get(i)); + } + for (int i = 0; i < receipts_.size(); i++) { + output.writeMessage(2, receipts_.get(i)); + } + if (!mainHash_.isEmpty()) { + output.writeBytes(3, mainHash_); + } + if (mainHeight_ != 0L) { + output.writeInt64(4, mainHeight_); + } + if (!hash_.isEmpty()) { + output.writeBytes(5, hash_); + } + if (height_ != 0L) { + output.writeInt64(6, height_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, txs_.get(i)); + } + for (int i = 0; i < receipts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, receipts_.get(i)); + } + if (!mainHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, mainHash_); + } + if (mainHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, mainHeight_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, hash_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, height_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody) obj; + + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!getReceiptsList().equals(other.getReceiptsList())) + return false; + if (!getMainHash().equals(other.getMainHash())) + return false; + if (getMainHeight() != other.getMainHeight()) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + if (getReceiptsCount() > 0) { + hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; + hash = (53 * hash) + getReceiptsList().hashCode(); + } + hash = (37 * hash) + MAINHASH_FIELD_NUMBER; + hash = (53 * hash) + getMainHash().hashCode(); + hash = (37 * hash) + MAINHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMainHeight()); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *区块体信息
+         * 	 txs : 区块上所有交易列表
+         *	 receipts :区块上所有交易的收据信息列表
+         * 	 mainHash : 主链区块hash,平行链使用
+         *	 mainHeight :主链区块高度,平行链使用
+         * 	 hash : 本链区块hash
+         *	 height :本链区块高度
+         * 
+ * + * Protobuf type {@code BlockBody} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockBody) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + getReceiptsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txsBuilder_.clear(); + } + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + receiptsBuilder_.clear(); + } + mainHash_ = com.google.protobuf.ByteString.EMPTY; + + mainHeight_ = 0L; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + height_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBody_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody( + this); + int from_bitField0_ = bitField0_; + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + if (receiptsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.receipts_ = receipts_; + } else { + result.receipts_ = receiptsBuilder_.build(); + } + result.mainHash_ = mainHash_; + result.mainHeight_ = mainHeight_; + result.hash_ = hash_; + result.height_ = height_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance()) + return this; + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + if (receiptsBuilder_ == null) { + if (!other.receipts_.isEmpty()) { + if (receipts_.isEmpty()) { + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReceiptsIsMutable(); + receipts_.addAll(other.receipts_); + } + onChanged(); + } + } else { + if (!other.receipts_.isEmpty()) { + if (receiptsBuilder_.isEmpty()) { + receiptsBuilder_.dispose(); + receiptsBuilder_ = null; + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000002); + receiptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReceiptsFieldBuilder() : null; + } else { + receiptsBuilder_.addAllMessages(other.receipts_); + } + } + } + if (other.getMainHash() != com.google.protobuf.ByteString.EMPTY) { + setMainHash(other.getMainHash()); + } + if (other.getMainHeight() != 0L) { + setMainHeight(other.getMainHeight()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List txs_ = java.util.Collections + .emptyList(); + + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { + return getTxsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } + + private java.util.List receipts_ = java.util.Collections + .emptyList(); + + private void ensureReceiptsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + receipts_ = new java.util.ArrayList( + receipts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 receiptsBuilder_; + + /** + * repeated .ReceiptData receipts = 2; + */ + public java.util.List getReceiptsList() { + if (receiptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(receipts_); + } else { + return receiptsBuilder_.getMessageList(); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public int getReceiptsCount() { + if (receiptsBuilder_ == null) { + return receipts_.size(); + } else { + return receiptsBuilder_.getCount(); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessage(index); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.set(index, value); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.set(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(value); + onChanged(); + } else { + receiptsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(index, value); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder addAllReceipts( + java.lang.Iterable values) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receipts_); + onChanged(); + } else { + receiptsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder clearReceipts() { + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + receiptsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public Builder removeReceipts(int index) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.remove(index); + onChanged(); + } else { + receiptsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( + int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public java.util.List getReceiptsOrBuilderList() { + if (receiptsBuilder_ != null) { + return receiptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(receipts_); + } + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder() { + return getReceiptsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); + } + + /** + * repeated .ReceiptData receipts = 2; + */ + public java.util.List getReceiptsBuilderList() { + return getReceiptsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getReceiptsFieldBuilder() { + if (receiptsBuilder_ == null) { + receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + receipts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + receipts_ = null; + } + return receiptsBuilder_; + } + + private com.google.protobuf.ByteString mainHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes mainHash = 3; + * + * @return The mainHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainHash() { + return mainHash_; + } + + /** + * bytes mainHash = 3; + * + * @param value + * The mainHash to set. + * + * @return This builder for chaining. + */ + public Builder setMainHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + mainHash_ = value; + onChanged(); + return this; + } + + /** + * bytes mainHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearMainHash() { + + mainHash_ = getDefaultInstance().getMainHash(); + onChanged(); + return this; + } + + private long mainHeight_; + + /** + * int64 mainHeight = 4; + * + * @return The mainHeight. + */ + @java.lang.Override + public long getMainHeight() { + return mainHeight_; + } + + /** + * int64 mainHeight = 4; + * + * @param value + * The mainHeight to set. + * + * @return This builder for chaining. + */ + public Builder setMainHeight(long value) { + + mainHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 mainHeight = 4; + * + * @return This builder for chaining. + */ + public Builder clearMainHeight() { + + mainHeight_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 5; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 5; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 5; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private long height_; + + /** + * int64 height = 6; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 6; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 6; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BlockBody) + } + + // @@protoc_insertion_point(class_scope:BlockBody) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockBody parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockBody(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockReceiptOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockReceipt) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ReceiptData receipts = 1; + */ + java.util.List getReceiptsList(); + + /** + * repeated .ReceiptData receipts = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index); + + /** + * repeated .ReceiptData receipts = 1; + */ + int getReceiptsCount(); + + /** + * repeated .ReceiptData receipts = 1; + */ + java.util.List getReceiptsOrBuilderList(); + + /** + * repeated .ReceiptData receipts = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder(int index); + + /** + * bytes hash = 2; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * int64 height = 3; + * + * @return The height. + */ + long getHeight(); + } + + /** + *
+     *区块回执
+     *	 receipts :区块上所有交易的收据信息列表
+     * 	 hash : 本链区块hash
+     *	 height :本链区块高度
+     * 
+ * + * Protobuf type {@code BlockReceipt} + */ + public static final class BlockReceipt extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockReceipt) + BlockReceiptOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BlockReceipt.newBuilder() to construct. + private BlockReceipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BlockReceipt() { + receipts_ = java.util.Collections.emptyList(); + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockReceipt(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BlockReceipt(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + receipts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + receipts_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), + extensionRegistry)); + break; + } + case 18: { + + hash_ = input.readBytes(); + break; + } + case 24: { + + height_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.Builder.class); + } + + public static final int RECEIPTS_FIELD_NUMBER = 1; + private java.util.List receipts_; + + /** + * repeated .ReceiptData receipts = 1; + */ + @java.lang.Override + public java.util.List getReceiptsList() { + return receipts_; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + @java.lang.Override + public java.util.List getReceiptsOrBuilderList() { + return receipts_; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + @java.lang.Override + public int getReceiptsCount() { + return receipts_.size(); + } + + /** + * repeated .ReceiptData receipts = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { + return receipts_.get(index); + } + + /** + * repeated .ReceiptData receipts = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( + int index) { + return receipts_.get(index); + } + + public static final int HASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int HEIGHT_FIELD_NUMBER = 3; + private long height_; + + /** + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < receipts_.size(); i++) { + output.writeMessage(1, receipts_.get(i)); + } + if (!hash_.isEmpty()) { + output.writeBytes(2, hash_); + } + if (height_ != 0L) { + output.writeInt64(3, height_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < receipts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receipts_.get(i)); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hash_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, height_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt) obj; + + if (!getReceiptsList().equals(other.getReceiptsList())) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReceiptsCount() > 0) { + hash = (37 * hash) + RECEIPTS_FIELD_NUMBER; + hash = (53 * hash) + getReceiptsList().hashCode(); + } + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *区块回执
+         *	 receipts :区块上所有交易的收据信息列表
+         * 	 hash : 本链区块hash
+         *	 height :本链区块高度
+         * 
+ * + * Protobuf type {@code BlockReceipt} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockReceipt) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceiptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReceiptsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + receiptsBuilder_.clear(); + } + hash_ = com.google.protobuf.ByteString.EMPTY; + + height_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockReceipt_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt( + this); + int from_bitField0_ = bitField0_; + if (receiptsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + receipts_ = java.util.Collections.unmodifiableList(receipts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.receipts_ = receipts_; + } else { + result.receipts_ = receiptsBuilder_.build(); + } + result.hash_ = hash_; + result.height_ = height_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt.getDefaultInstance()) + return this; + if (receiptsBuilder_ == null) { + if (!other.receipts_.isEmpty()) { + if (receipts_.isEmpty()) { + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReceiptsIsMutable(); + receipts_.addAll(other.receipts_); + } + onChanged(); + } + } else { + if (!other.receipts_.isEmpty()) { + if (receiptsBuilder_.isEmpty()) { + receiptsBuilder_.dispose(); + receiptsBuilder_ = null; + receipts_ = other.receipts_; + bitField0_ = (bitField0_ & ~0x00000001); + receiptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReceiptsFieldBuilder() : null; + } else { + receiptsBuilder_.addAllMessages(other.receipts_); + } + } + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List receipts_ = java.util.Collections + .emptyList(); + + private void ensureReceiptsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + receipts_ = new java.util.ArrayList( + receipts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 receiptsBuilder_; + + /** + * repeated .ReceiptData receipts = 1; + */ + public java.util.List getReceiptsList() { + if (receiptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(receipts_); + } else { + return receiptsBuilder_.getMessageList(); + } + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public int getReceiptsCount() { + if (receiptsBuilder_ == null) { + return receipts_.size(); + } else { + return receiptsBuilder_.getCount(); + } + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipts(int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessage(index); + } + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.set(index, value); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder setReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.set(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder addReceipts(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(value); + onChanged(); + } else { + receiptsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceiptsIsMutable(); + receipts_.add(index, value); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder addReceipts( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder addReceipts(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.add(index, builderForValue.build()); + onChanged(); + } else { + receiptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder addAllReceipts( + java.lang.Iterable values) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receipts_); + onChanged(); + } else { + receiptsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder clearReceipts() { + if (receiptsBuilder_ == null) { + receipts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + receiptsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public Builder removeReceipts(int index) { + if (receiptsBuilder_ == null) { + ensureReceiptsIsMutable(); + receipts_.remove(index); + onChanged(); + } else { + receiptsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptsOrBuilder( + int index) { + if (receiptsBuilder_ == null) { + return receipts_.get(index); + } else { + return receiptsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public java.util.List getReceiptsOrBuilderList() { + if (receiptsBuilder_ != null) { + return receiptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(receipts_); + } + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder() { + return getReceiptsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder addReceiptsBuilder( + int index) { + return getReceiptsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()); + } + + /** + * repeated .ReceiptData receipts = 1; + */ + public java.util.List getReceiptsBuilderList() { + return getReceiptsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getReceiptsFieldBuilder() { + if (receiptsBuilder_ == null) { + receiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + receipts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + receipts_ = null; + } + return receiptsBuilder_; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 2; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 2; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private long height_; + + /** + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 3; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 3; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BlockReceipt) + } + + // @@protoc_insertion_point(class_scope:BlockReceipt) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockReceipt parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockReceipt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockReceipt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IsCaughtUpOrBuilder extends + // @@protoc_insertion_point(interface_extends:IsCaughtUp) + com.google.protobuf.MessageOrBuilder { + + /** + * bool Iscaughtup = 1; + * + * @return The iscaughtup. + */ + boolean getIscaughtup(); + } + + /** + *
+     *  区块追赶主链状态,用于判断本节点区块是否已经同步好
+     * 
+ * + * Protobuf type {@code IsCaughtUp} + */ + public static final class IsCaughtUp extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:IsCaughtUp) + IsCaughtUpOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IsCaughtUp.newBuilder() to construct. + private IsCaughtUp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IsCaughtUp() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IsCaughtUp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IsCaughtUp(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + iscaughtup_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.Builder.class); + } + + public static final int ISCAUGHTUP_FIELD_NUMBER = 1; + private boolean iscaughtup_; + + /** + * bool Iscaughtup = 1; + * + * @return The iscaughtup. + */ + @java.lang.Override + public boolean getIscaughtup() { + return iscaughtup_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (iscaughtup_ != false) { + output.writeBool(1, iscaughtup_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (iscaughtup_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, iscaughtup_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp) obj; + + if (getIscaughtup() != other.getIscaughtup()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISCAUGHTUP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIscaughtup()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 IsCaughtUp} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:IsCaughtUp) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + iscaughtup_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsCaughtUp_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp( + this); + result.iscaughtup_ = iscaughtup_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp.getDefaultInstance()) + return this; + if (other.getIscaughtup() != false) { + setIscaughtup(other.getIscaughtup()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean iscaughtup_; + + /** + * bool Iscaughtup = 1; + * + * @return The iscaughtup. + */ + @java.lang.Override + public boolean getIscaughtup() { + return iscaughtup_; + } + + /** + * bool Iscaughtup = 1; + * + * @param value + * The iscaughtup to set. + * + * @return This builder for chaining. + */ + public Builder setIscaughtup(boolean value) { + + iscaughtup_ = value; + onChanged(); + return this; + } + + /** + * bool Iscaughtup = 1; + * + * @return This builder for chaining. + */ + public Builder clearIscaughtup() { + + iscaughtup_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:IsCaughtUp) + } + + // @@protoc_insertion_point(class_scope:IsCaughtUp) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IsCaughtUp parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IsCaughtUp(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsCaughtUp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IsNtpClockSyncOrBuilder extends + // @@protoc_insertion_point(interface_extends:IsNtpClockSync) + com.google.protobuf.MessageOrBuilder { + + /** + * bool isntpclocksync = 1; + * + * @return The isntpclocksync. + */ + boolean getIsntpclocksync(); + } + + /** + *
+     * ntp时钟状态
+     * 
+ * + * Protobuf type {@code IsNtpClockSync} + */ + public static final class IsNtpClockSync extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:IsNtpClockSync) + IsNtpClockSyncOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IsNtpClockSync.newBuilder() to construct. + private IsNtpClockSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IsNtpClockSync() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IsNtpClockSync(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IsNtpClockSync(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + isntpclocksync_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.Builder.class); + } + + public static final int ISNTPCLOCKSYNC_FIELD_NUMBER = 1; + private boolean isntpclocksync_; + + /** + * bool isntpclocksync = 1; + * + * @return The isntpclocksync. + */ + @java.lang.Override + public boolean getIsntpclocksync() { + return isntpclocksync_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isntpclocksync_ != false) { + output.writeBool(1, isntpclocksync_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (isntpclocksync_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isntpclocksync_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync) obj; + + if (getIsntpclocksync() != other.getIsntpclocksync()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISNTPCLOCKSYNC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsntpclocksync()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * ntp时钟状态
+         * 
+ * + * Protobuf type {@code IsNtpClockSync} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:IsNtpClockSync) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSyncOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + isntpclocksync_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_IsNtpClockSync_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync( + this); + result.isntpclocksync_ = isntpclocksync_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync.getDefaultInstance()) + return this; + if (other.getIsntpclocksync() != false) { + setIsntpclocksync(other.getIsntpclocksync()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean isntpclocksync_; + + /** + * bool isntpclocksync = 1; + * + * @return The isntpclocksync. + */ + @java.lang.Override + public boolean getIsntpclocksync() { + return isntpclocksync_; + } + + /** + * bool isntpclocksync = 1; + * + * @param value + * The isntpclocksync to set. + * + * @return This builder for chaining. + */ + public Builder setIsntpclocksync(boolean value) { + + isntpclocksync_ = value; + onChanged(); + return this; + } + + /** + * bool isntpclocksync = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsntpclocksync() { + + isntpclocksync_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:IsNtpClockSync) + } + + // @@protoc_insertion_point(class_scope:IsNtpClockSync) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IsNtpClockSync parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IsNtpClockSync(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.IsNtpClockSync getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChainExecutorOrBuilder extends + // @@protoc_insertion_point(interface_extends:ChainExecutor) + com.google.protobuf.MessageOrBuilder { + + /** + * string driver = 1; + * + * @return The driver. + */ + java.lang.String getDriver(); + + /** + * string driver = 1; + * + * @return The bytes for driver. + */ + com.google.protobuf.ByteString getDriverBytes(); + + /** + * string funcName = 2; + * + * @return The funcName. + */ + java.lang.String getFuncName(); + + /** + * string funcName = 2; + * + * @return The bytes for funcName. + */ + com.google.protobuf.ByteString getFuncNameBytes(); + + /** + * bytes stateHash = 3; + * + * @return The stateHash. + */ + com.google.protobuf.ByteString getStateHash(); + + /** + * bytes param = 4; + * + * @return The param. + */ + com.google.protobuf.ByteString getParam(); + + /** + *
+         *扩展字段,用于额外的用途
+         * 
+ * + * bytes extra = 5; + * + * @return The extra. + */ + com.google.protobuf.ByteString getExtra(); + } + + /** + * Protobuf type {@code ChainExecutor} + */ + public static final class ChainExecutor extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ChainExecutor) + ChainExecutorOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ChainExecutor.newBuilder() to construct. + private ChainExecutor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChainExecutor() { + driver_ = ""; + funcName_ = ""; + stateHash_ = com.google.protobuf.ByteString.EMPTY; + param_ = com.google.protobuf.ByteString.EMPTY; + extra_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChainExecutor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChainExecutor(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + driver_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + funcName_ = s; + break; + } + case 26: { + + stateHash_ = input.readBytes(); + break; + } + case 34: { + + param_ = input.readBytes(); + break; + } + case 42: { + + extra_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.Builder.class); + } + + public static final int DRIVER_FIELD_NUMBER = 1; + private volatile java.lang.Object driver_; + + /** + * string driver = 1; + * + * @return The driver. + */ + @java.lang.Override + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + driver_ = s; + return s; + } + } + + /** + * string driver = 1; + * + * @return The bytes for driver. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FUNCNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object funcName_; + + /** + * string funcName = 2; + * + * @return The funcName. + */ + @java.lang.Override + public java.lang.String getFuncName() { + java.lang.Object ref = funcName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + funcName_ = s; + return s; + } + } + + /** + * string funcName = 2; + * + * @return The bytes for funcName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFuncNameBytes() { + java.lang.Object ref = funcName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + funcName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATEHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString stateHash_; + + /** + * bytes stateHash = 3; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } + + public static final int PARAM_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString param_; + + /** + * bytes param = 4; + * + * @return The param. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParam() { + return param_; + } + + public static final int EXTRA_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString extra_; + + /** + *
+         *扩展字段,用于额外的用途
+         * 
+ * + * bytes extra = 5; + * + * @return The extra. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtra() { + return extra_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDriverBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); + } + if (!getFuncNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, funcName_); + } + if (!stateHash_.isEmpty()) { + output.writeBytes(3, stateHash_); + } + if (!param_.isEmpty()) { + output.writeBytes(4, param_); + } + if (!extra_.isEmpty()) { + output.writeBytes(5, extra_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getDriverBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); + } + if (!getFuncNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, funcName_); + } + if (!stateHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, stateHash_); + } + if (!param_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, param_); + } + if (!extra_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, extra_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) obj; + + if (!getDriver().equals(other.getDriver())) + return false; + if (!getFuncName().equals(other.getFuncName())) + return false; + if (!getStateHash().equals(other.getStateHash())) + return false; + if (!getParam().equals(other.getParam())) + return false; + if (!getExtra().equals(other.getExtra())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DRIVER_FIELD_NUMBER; + hash = (53 * hash) + getDriver().hashCode(); + hash = (37 * hash) + FUNCNAME_FIELD_NUMBER; + hash = (53 * hash) + getFuncName().hashCode(); + hash = (37 * hash) + STATEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStateHash().hashCode(); + hash = (37 * hash) + PARAM_FIELD_NUMBER; + hash = (53 * hash) + getParam().hashCode(); + hash = (37 * hash) + EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getExtra().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ChainExecutor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ChainExecutor) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + driver_ = ""; + + funcName_ = ""; + + stateHash_ = com.google.protobuf.ByteString.EMPTY; + + param_ = com.google.protobuf.ByteString.EMPTY; + + extra_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChainExecutor_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor( + this); + result.driver_ = driver_; + result.funcName_ = funcName_; + result.stateHash_ = stateHash_; + result.param_ = param_; + result.extra_ = extra_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.getDefaultInstance()) + return this; + if (!other.getDriver().isEmpty()) { + driver_ = other.driver_; + onChanged(); + } + if (!other.getFuncName().isEmpty()) { + funcName_ = other.funcName_; + onChanged(); + } + if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { + setStateHash(other.getStateHash()); + } + if (other.getParam() != com.google.protobuf.ByteString.EMPTY) { + setParam(other.getParam()); + } + if (other.getExtra() != com.google.protobuf.ByteString.EMPTY) { + setExtra(other.getExtra()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object driver_ = ""; + + /** + * string driver = 1; + * + * @return The driver. + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + driver_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string driver = 1; + * + * @return The bytes for driver. + */ + public com.google.protobuf.ByteString getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string driver = 1; + * + * @param value + * The driver to set. + * + * @return This builder for chaining. + */ + public Builder setDriver(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + driver_ = value; + onChanged(); + return this; + } + + /** + * string driver = 1; + * + * @return This builder for chaining. + */ + public Builder clearDriver() { + + driver_ = getDefaultInstance().getDriver(); + onChanged(); + return this; + } + + /** + * string driver = 1; + * + * @param value + * The bytes for driver to set. + * + * @return This builder for chaining. + */ + public Builder setDriverBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + driver_ = value; + onChanged(); + return this; + } + + private java.lang.Object funcName_ = ""; + + /** + * string funcName = 2; + * + * @return The funcName. + */ + public java.lang.String getFuncName() { + java.lang.Object ref = funcName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + funcName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string funcName = 2; + * + * @return The bytes for funcName. + */ + public com.google.protobuf.ByteString getFuncNameBytes() { + java.lang.Object ref = funcName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + funcName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string funcName = 2; + * + * @param value + * The funcName to set. + * + * @return This builder for chaining. + */ + public Builder setFuncName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + funcName_ = value; + onChanged(); + return this; + } + + /** + * string funcName = 2; + * + * @return This builder for chaining. + */ + public Builder clearFuncName() { + + funcName_ = getDefaultInstance().getFuncName(); + onChanged(); + return this; + } + + /** + * string funcName = 2; + * + * @param value + * The bytes for funcName to set. + * + * @return This builder for chaining. + */ + public Builder setFuncNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + funcName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes stateHash = 3; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } + + /** + * bytes stateHash = 3; + * + * @param value + * The stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateHash_ = value; + onChanged(); + return this; + } + + /** + * bytes stateHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearStateHash() { + + stateHash_ = getDefaultInstance().getStateHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString param_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes param = 4; + * + * @return The param. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParam() { + return param_; + } + + /** + * bytes param = 4; + * + * @param value + * The param to set. + * + * @return This builder for chaining. + */ + public Builder setParam(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + param_ = value; + onChanged(); + return this; + } + + /** + * bytes param = 4; + * + * @return This builder for chaining. + */ + public Builder clearParam() { + + param_ = getDefaultInstance().getParam(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString extra_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *扩展字段,用于额外的用途
+             * 
+ * + * bytes extra = 5; + * + * @return The extra. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtra() { + return extra_; + } + + /** + *
+             *扩展字段,用于额外的用途
+             * 
+ * + * bytes extra = 5; + * + * @param value + * The extra to set. + * + * @return This builder for chaining. + */ + public Builder setExtra(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extra_ = value; + onChanged(); + return this; + } + + /** + *
+             *扩展字段,用于额外的用途
+             * 
+ * + * bytes extra = 5; + * + * @return This builder for chaining. + */ + public Builder clearExtra() { + + extra_ = getDefaultInstance().getExtra(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ChainExecutor) + } + + // @@protoc_insertion_point(class_scope:ChainExecutor) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChainExecutor parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChainExecutor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockSequenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockSequence) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes Hash = 1; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * int64 Type = 2; + * + * @return The type. + */ + long getType(); + } + + /** + *
+     *  通过block hash记录block的操作类型及add/del:1/2
+     * 
+ * + * Protobuf type {@code BlockSequence} + */ + public static final class BlockSequence extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockSequence) + BlockSequenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BlockSequence.newBuilder() to construct. + private BlockSequence(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BlockSequence() { + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockSequence(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BlockSequence(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + hash_ = input.readBytes(); + break; + } + case 16: { + + type_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString hash_; + + /** + * bytes Hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private long type_; + + /** + * int64 Type = 2; + * + * @return The type. + */ + @java.lang.Override + public long getType() { + return type_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!hash_.isEmpty()) { + output.writeBytes(1, hash_); + } + if (type_ != 0L) { + output.writeInt64(2, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, hash_); + } + if (type_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, type_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence) obj; + + if (!getHash().equals(other.getHash())) + return false; + if (getType() != other.getType()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getType()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *  通过block hash记录block的操作类型及add/del:1/2
+         * 
+ * + * Protobuf type {@code BlockSequence} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockSequence) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = com.google.protobuf.ByteString.EMPTY; + + type_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequence_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence( + this); + result.hash_ = hash_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance()) + return this; + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getType() != 0L) { + setType(other.getType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes Hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes Hash = 1; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes Hash = 1; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private long type_; + + /** + * int64 Type = 2; + * + * @return The type. + */ + @java.lang.Override + public long getType() { + return type_; + } + + /** + * int64 Type = 2; + * + * @param value + * The type to set. + * + * @return This builder for chaining. + */ + public Builder setType(long value) { + + type_ = value; + onChanged(); + return this; + } + + /** + * int64 Type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BlockSequence) + } + + // @@protoc_insertion_point(class_scope:BlockSequence) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockSequence parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockSequence(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockSequencesOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockSequences) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .BlockSequence items = 1; + */ + java.util.List getItemsList(); + + /** + * repeated .BlockSequence items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getItems(int index); + + /** + * repeated .BlockSequence items = 1; + */ + int getItemsCount(); + + /** + * repeated .BlockSequence items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .BlockSequence items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getItemsOrBuilder(int index); + } + + /** + *
+     * resp
+     * 
+ * + * Protobuf type {@code BlockSequences} + */ + public static final class BlockSequences extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockSequences) + BlockSequencesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BlockSequences.newBuilder() to construct. + private BlockSequences(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BlockSequences() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockSequences(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BlockSequences(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; + + /** + * repeated .BlockSequence items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated .BlockSequence items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } + + /** + * repeated .BlockSequence items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated .BlockSequence items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getItems(int index) { + return items_.get(index); + } + + /** + * repeated .BlockSequence items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences) obj; + + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * resp
+         * 
+ * + * Protobuf type {@code BlockSequences} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockSequences) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequencesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockSequences_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List items_ = java.util.Collections + .emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .BlockSequence items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * repeated .BlockSequence items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * repeated .BlockSequence items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .BlockSequence items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + + /** + * repeated .BlockSequence items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .BlockSequence items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * repeated .BlockSequence items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance()); + } + + /** + * repeated .BlockSequence items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance()); + } + + /** + * repeated .BlockSequence items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BlockSequences) + } + + // @@protoc_insertion_point(class_scope:BlockSequences) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockSequences parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockSequences(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequences getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParaChainBlockDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:ParaChainBlockDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * .BlockDetail blockdetail = 1; + * + * @return Whether the blockdetail field is set. + */ + boolean hasBlockdetail(); + + /** + * .BlockDetail blockdetail = 1; + * + * @return The blockdetail. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getBlockdetail(); + + /** + * .BlockDetail blockdetail = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getBlockdetailOrBuilder(); + + /** + * int64 sequence = 2; + * + * @return The sequence. + */ + long getSequence(); + + /** + * bool isSync = 3; + * + * @return The isSync. + */ + boolean getIsSync(); + } + + /** + *
+     *平行链区块详细信息
+     * 	 blockdetail : 区块详细信息
+     *	 sequence :区块序列号
+     *   isSync:写数据库时是否需要刷盘
+     * 
+ * + * Protobuf type {@code ParaChainBlockDetail} + */ + public static final class ParaChainBlockDetail extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ParaChainBlockDetail) + ParaChainBlockDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ParaChainBlockDetail.newBuilder() to construct. + private ParaChainBlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParaChainBlockDetail() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParaChainBlockDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParaChainBlockDetail(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder subBuilder = null; + if (blockdetail_ != null) { + subBuilder = blockdetail_.toBuilder(); + } + blockdetail_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(blockdetail_); + blockdetail_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + sequence_ = input.readInt64(); + break; + } + case 24: { + + isSync_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.Builder.class); + } + + public static final int BLOCKDETAIL_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail blockdetail_; + + /** + * .BlockDetail blockdetail = 1; + * + * @return Whether the blockdetail field is set. + */ + @java.lang.Override + public boolean hasBlockdetail() { + return blockdetail_ != null; + } + + /** + * .BlockDetail blockdetail = 1; + * + * @return The blockdetail. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getBlockdetail() { + return blockdetail_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() + : blockdetail_; + } + + /** + * .BlockDetail blockdetail = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getBlockdetailOrBuilder() { + return getBlockdetail(); + } + + public static final int SEQUENCE_FIELD_NUMBER = 2; + private long sequence_; + + /** + * int64 sequence = 2; + * + * @return The sequence. + */ + @java.lang.Override + public long getSequence() { + return sequence_; + } + + public static final int ISSYNC_FIELD_NUMBER = 3; + private boolean isSync_; + + /** + * bool isSync = 3; + * + * @return The isSync. + */ + @java.lang.Override + public boolean getIsSync() { + return isSync_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (blockdetail_ != null) { + output.writeMessage(1, getBlockdetail()); + } + if (sequence_ != 0L) { + output.writeInt64(2, sequence_); + } + if (isSync_ != false) { + output.writeBool(3, isSync_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (blockdetail_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlockdetail()); + } + if (sequence_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sequence_); + } + if (isSync_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isSync_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail) obj; + + if (hasBlockdetail() != other.hasBlockdetail()) + return false; + if (hasBlockdetail()) { + if (!getBlockdetail().equals(other.getBlockdetail())) + return false; + } + if (getSequence() != other.getSequence()) + return false; + if (getIsSync() != other.getIsSync()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlockdetail()) { + hash = (37 * hash) + BLOCKDETAIL_FIELD_NUMBER; + hash = (53 * hash) + getBlockdetail().hashCode(); + } + hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSequence()); + hash = (37 * hash) + ISSYNC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSync()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *平行链区块详细信息
+         * 	 blockdetail : 区块详细信息
+         *	 sequence :区块序列号
+         *   isSync:写数据库时是否需要刷盘
+         * 
+ * + * Protobuf type {@code ParaChainBlockDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ParaChainBlockDetail) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (blockdetailBuilder_ == null) { + blockdetail_ = null; + } else { + blockdetail_ = null; + blockdetailBuilder_ = null; + } + sequence_ = 0L; + + isSync_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaChainBlockDetail_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail( + this); + if (blockdetailBuilder_ == null) { + result.blockdetail_ = blockdetail_; + } else { + result.blockdetail_ = blockdetailBuilder_.build(); + } + result.sequence_ = sequence_; + result.isSync_ = isSync_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail + .getDefaultInstance()) + return this; + if (other.hasBlockdetail()) { + mergeBlockdetail(other.getBlockdetail()); + } + if (other.getSequence() != 0L) { + setSequence(other.getSequence()); + } + if (other.getIsSync() != false) { + setIsSync(other.getIsSync()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail blockdetail_; + private com.google.protobuf.SingleFieldBuilderV3 blockdetailBuilder_; + + /** + * .BlockDetail blockdetail = 1; + * + * @return Whether the blockdetail field is set. + */ + public boolean hasBlockdetail() { + return blockdetailBuilder_ != null || blockdetail_ != null; + } + + /** + * .BlockDetail blockdetail = 1; + * + * @return The blockdetail. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail getBlockdetail() { + if (blockdetailBuilder_ == null) { + return blockdetail_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() + : blockdetail_; + } else { + return blockdetailBuilder_.getMessage(); + } + } + + /** + * .BlockDetail blockdetail = 1; + */ + public Builder setBlockdetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { + if (blockdetailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blockdetail_ = value; + onChanged(); + } else { + blockdetailBuilder_.setMessage(value); + } + + return this; + } + + /** + * .BlockDetail blockdetail = 1; + */ + public Builder setBlockdetail( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder builderForValue) { + if (blockdetailBuilder_ == null) { + blockdetail_ = builderForValue.build(); + onChanged(); + } else { + blockdetailBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .BlockDetail blockdetail = 1; + */ + public Builder mergeBlockdetail(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail value) { + if (blockdetailBuilder_ == null) { + if (blockdetail_ != null) { + blockdetail_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail + .newBuilder(blockdetail_).mergeFrom(value).buildPartial(); + } else { + blockdetail_ = value; + } + onChanged(); + } else { + blockdetailBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .BlockDetail blockdetail = 1; + */ + public Builder clearBlockdetail() { + if (blockdetailBuilder_ == null) { + blockdetail_ = null; + onChanged(); + } else { + blockdetail_ = null; + blockdetailBuilder_ = null; + } + + return this; + } + + /** + * .BlockDetail blockdetail = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.Builder getBlockdetailBuilder() { + + onChanged(); + return getBlockdetailFieldBuilder().getBuilder(); + } + + /** + * .BlockDetail blockdetail = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetailOrBuilder getBlockdetailOrBuilder() { + if (blockdetailBuilder_ != null) { + return blockdetailBuilder_.getMessageOrBuilder(); + } else { + return blockdetail_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetail.getDefaultInstance() + : blockdetail_; + } + } + + /** + * .BlockDetail blockdetail = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockdetailFieldBuilder() { + if (blockdetailBuilder_ == null) { + blockdetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getBlockdetail(), getParentForChildren(), isClean()); + blockdetail_ = null; + } + return blockdetailBuilder_; + } + + private long sequence_; + + /** + * int64 sequence = 2; + * + * @return The sequence. + */ + @java.lang.Override + public long getSequence() { + return sequence_; + } + + /** + * int64 sequence = 2; + * + * @param value + * The sequence to set. + * + * @return This builder for chaining. + */ + public Builder setSequence(long value) { + + sequence_ = value; + onChanged(); + return this; + } + + /** + * int64 sequence = 2; + * + * @return This builder for chaining. + */ + public Builder clearSequence() { + + sequence_ = 0L; + onChanged(); + return this; + } + + private boolean isSync_; + + /** + * bool isSync = 3; + * + * @return The isSync. + */ + @java.lang.Override + public boolean getIsSync() { + return isSync_; + } + + /** + * bool isSync = 3; + * + * @param value + * The isSync to set. + * + * @return This builder for chaining. + */ + public Builder setIsSync(boolean value) { + + isSync_ = value; + onChanged(); + return this; + } + + /** + * bool isSync = 3; + * + * @return This builder for chaining. + */ + public Builder clearIsSync() { + + isSync_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ParaChainBlockDetail) + } + + // @@protoc_insertion_point(class_scope:ParaChainBlockDetail) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParaChainBlockDetail parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParaChainBlockDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaChainBlockDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParaTxDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:ParaTxDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ParaTxDetail items = 1; + */ + java.util.List getItemsList(); + + /** + * repeated .ParaTxDetail items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getItems(int index); + + /** + * repeated .ParaTxDetail items = 1; + */ + int getItemsCount(); + + /** + * repeated .ParaTxDetail items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .ParaTxDetail items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder getItemsOrBuilder(int index); + } + + /** + *
+     * 定义para交易结构
+     * 
+ * + * Protobuf type {@code ParaTxDetails} + */ + public static final class ParaTxDetails extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ParaTxDetails) + ParaTxDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ParaTxDetails.newBuilder() to construct. + private ParaTxDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParaTxDetails() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParaTxDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParaTxDetails(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; + + /** + * repeated .ParaTxDetail items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated .ParaTxDetail items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getItems(int index) { + return items_.get(index); + } + + /** + * repeated .ParaTxDetail items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails) obj; + + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 定义para交易结构
+         * 
+ * + * Protobuf type {@code ParaTxDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ParaTxDetails) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetails_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List items_ = java.util.Collections + .emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .ParaTxDetail items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance()); + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance()); + } + + /** + * repeated .ParaTxDetail items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ParaTxDetails) + } + + // @@protoc_insertion_point(class_scope:ParaTxDetails) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParaTxDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParaTxDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParaTxDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:ParaTxDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 type = 1; + * + * @return The type. + */ + long getType(); + + /** + * .Header header = 2; + * + * @return Whether the header field is set. + */ + boolean hasHeader(); + + /** + * .Header header = 2; + * + * @return The header. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); + + /** + * .Header header = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + + /** + * repeated .TxDetail txDetails = 3; + */ + java.util.List getTxDetailsList(); + + /** + * repeated .TxDetail txDetails = 3; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getTxDetails(int index); + + /** + * repeated .TxDetail txDetails = 3; + */ + int getTxDetailsCount(); + + /** + * repeated .TxDetail txDetails = 3; + */ + java.util.List getTxDetailsOrBuilderList(); + + /** + * repeated .TxDetail txDetails = 3; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder getTxDetailsOrBuilder(int index); + + /** + * bytes childHash = 4; + * + * @return The childHash. + */ + com.google.protobuf.ByteString getChildHash(); + + /** + * uint32 index = 5; + * + * @return The index. + */ + int getIndex(); + + /** + * repeated bytes proofs = 6; + * + * @return A list containing the proofs. + */ + java.util.List getProofsList(); + + /** + * repeated bytes proofs = 6; + * + * @return The count of proofs. + */ + int getProofsCount(); + + /** + * repeated bytes proofs = 6; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + com.google.protobuf.ByteString getProofs(int index); + } + + /** + *
+     * type:平行链交易所在区块add/del操作,方便平行链回滚
+     * header:平行链交易所在区块头信息
+     * txDetails:本区块中指定title平行链的所有交易
+     * proofs:对应平行链子roothash的存在证明路径
+     * childHash:此平行链交易的子roothash
+     * index:对应平行链子roothash在整个区块中的索引
+     * 
+ * + * Protobuf type {@code ParaTxDetail} + */ + public static final class ParaTxDetail extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ParaTxDetail) + ParaTxDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ParaTxDetail.newBuilder() to construct. + private ParaTxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParaTxDetail() { + txDetails_ = java.util.Collections.emptyList(); + childHash_ = com.google.protobuf.ByteString.EMPTY; + proofs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParaTxDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParaTxDetail(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + type_ = input.readInt64(); + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txDetails_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txDetails_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.parser(), + extensionRegistry)); + break; + } + case 34: { + + childHash_ = input.readBytes(); + break; + } + case 40: { + + index_ = input.readUInt32(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + proofs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + proofs_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txDetails_ = java.util.Collections.unmodifiableList(txDetails_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private long type_; + + /** + * int64 type = 1; + * + * @return The type. + */ + @java.lang.Override + public long getType() { + return type_; + } + + public static final int HEADER_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + + /** + * .Header header = 2; + * + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + + /** + * .Header header = 2; + * + * @return The header. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + + /** + * .Header header = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int TXDETAILS_FIELD_NUMBER = 3; + private java.util.List txDetails_; + + /** + * repeated .TxDetail txDetails = 3; + */ + @java.lang.Override + public java.util.List getTxDetailsList() { + return txDetails_; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + @java.lang.Override + public java.util.List getTxDetailsOrBuilderList() { + return txDetails_; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + @java.lang.Override + public int getTxDetailsCount() { + return txDetails_.size(); + } + + /** + * repeated .TxDetail txDetails = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getTxDetails(int index) { + return txDetails_.get(index); + } + + /** + * repeated .TxDetail txDetails = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder getTxDetailsOrBuilder(int index) { + return txDetails_.get(index); + } + + public static final int CHILDHASH_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString childHash_; + + /** + * bytes childHash = 4; + * + * @return The childHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildHash() { + return childHash_; + } + + public static final int INDEX_FIELD_NUMBER = 5; + private int index_; + + /** + * uint32 index = 5; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int PROOFS_FIELD_NUMBER = 6; + private java.util.List proofs_; + + /** + * repeated bytes proofs = 6; + * + * @return A list containing the proofs. + */ + @java.lang.Override + public java.util.List getProofsList() { + return proofs_; + } + + /** + * repeated bytes proofs = 6; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } + + /** + * repeated bytes proofs = 6; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ != 0L) { + output.writeInt64(1, type_); + } + if (header_ != null) { + output.writeMessage(2, getHeader()); + } + for (int i = 0; i < txDetails_.size(); i++) { + output.writeMessage(3, txDetails_.get(i)); + } + if (!childHash_.isEmpty()) { + output.writeBytes(4, childHash_); + } + if (index_ != 0) { + output.writeUInt32(5, index_); + } + for (int i = 0; i < proofs_.size(); i++) { + output.writeBytes(6, proofs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (type_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, type_); + } + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHeader()); + } + for (int i = 0; i < txDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, txDetails_.get(i)); + } + if (!childHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, childHash_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, index_); + } + { + int dataSize = 0; + for (int i = 0; i < proofs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(proofs_.get(i)); + } + size += dataSize; + size += 1 * getProofsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail) obj; + + if (getType() != other.getType()) + return false; + if (hasHeader() != other.hasHeader()) + return false; + if (hasHeader()) { + if (!getHeader().equals(other.getHeader())) + return false; + } + if (!getTxDetailsList().equals(other.getTxDetailsList())) + return false; + if (!getChildHash().equals(other.getChildHash())) + return false; + if (getIndex() != other.getIndex()) + return false; + if (!getProofsList().equals(other.getProofsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getType()); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getTxDetailsCount() > 0) { + hash = (37 * hash) + TXDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTxDetailsList().hashCode(); + } + hash = (37 * hash) + CHILDHASH_FIELD_NUMBER; + hash = (53 * hash) + getChildHash().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + if (getProofsCount() > 0) { + hash = (37 * hash) + PROOFS_FIELD_NUMBER; + hash = (53 * hash) + getProofsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * type:平行链交易所在区块add/del操作,方便平行链回滚
+         * header:平行链交易所在区块头信息
+         * txDetails:本区块中指定title平行链的所有交易
+         * proofs:对应平行链子roothash的存在证明路径
+         * childHash:此平行链交易的子roothash
+         * index:对应平行链子roothash在整个区块中的索引
+         * 
+ * + * Protobuf type {@code ParaTxDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ParaTxDetail) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0L; + + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (txDetailsBuilder_ == null) { + txDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txDetailsBuilder_.clear(); + } + childHash_ = com.google.protobuf.ByteString.EMPTY; + + index_ = 0; + + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ParaTxDetail_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail( + this); + int from_bitField0_ = bitField0_; + result.type_ = type_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (txDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txDetails_ = java.util.Collections.unmodifiableList(txDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txDetails_ = txDetails_; + } else { + result.txDetails_ = txDetailsBuilder_.build(); + } + result.childHash_ = childHash_; + result.index_ = index_; + if (((bitField0_ & 0x00000002) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.proofs_ = proofs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail.getDefaultInstance()) + return this; + if (other.getType() != 0L) { + setType(other.getType()); + } + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (txDetailsBuilder_ == null) { + if (!other.txDetails_.isEmpty()) { + if (txDetails_.isEmpty()) { + txDetails_ = other.txDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxDetailsIsMutable(); + txDetails_.addAll(other.txDetails_); + } + onChanged(); + } + } else { + if (!other.txDetails_.isEmpty()) { + if (txDetailsBuilder_.isEmpty()) { + txDetailsBuilder_.dispose(); + txDetailsBuilder_ = null; + txDetails_ = other.txDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + txDetailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxDetailsFieldBuilder() : null; + } else { + txDetailsBuilder_.addAllMessages(other.txDetails_); + } + } + } + if (other.getChildHash() != com.google.protobuf.ByteString.EMPTY) { + setChildHash(other.getChildHash()); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (!other.proofs_.isEmpty()) { + if (proofs_.isEmpty()) { + proofs_ = other.proofs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureProofsIsMutable(); + proofs_.addAll(other.proofs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long type_; + + /** + * int64 type = 1; + * + * @return The type. + */ + @java.lang.Override + public long getType() { + return type_; + } + + /** + * int64 type = 1; + * + * @param value + * The type to set. + * + * @return This builder for chaining. + */ + public Builder setType(long value) { + + type_ = value; + onChanged(); + return this; + } + + /** + * int64 type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0L; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + private com.google.protobuf.SingleFieldBuilderV3 headerBuilder_; + + /** + * .Header header = 2; + * + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + + /** + * .Header header = 2; + * + * @return The header. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + if (headerBuilder_ == null) { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } else { + return headerBuilder_.getMessage(); + } + } + + /** + * .Header header = 2; + */ + public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Header header = 2; + */ + public Builder setHeader( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Header header = 2; + */ + public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_) + .mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Header header = 2; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + + /** + * .Header header = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + + /** + * .Header header = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + } + + /** + * .Header header = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeader(), getParentForChildren(), isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.util.List txDetails_ = java.util.Collections + .emptyList(); + + private void ensureTxDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txDetails_ = new java.util.ArrayList( + txDetails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txDetailsBuilder_; + + /** + * repeated .TxDetail txDetails = 3; + */ + public java.util.List getTxDetailsList() { + if (txDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txDetails_); + } else { + return txDetailsBuilder_.getMessageList(); + } + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public int getTxDetailsCount() { + if (txDetailsBuilder_ == null) { + return txDetails_.size(); + } else { + return txDetailsBuilder_.getCount(); + } + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getTxDetails(int index) { + if (txDetailsBuilder_ == null) { + return txDetails_.get(index); + } else { + return txDetailsBuilder_.getMessage(index); + } + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder setTxDetails(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail value) { + if (txDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxDetailsIsMutable(); + txDetails_.set(index, value); + onChanged(); + } else { + txDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder setTxDetails(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder builderForValue) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + txDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder addTxDetails(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail value) { + if (txDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxDetailsIsMutable(); + txDetails_.add(value); + onChanged(); + } else { + txDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder addTxDetails(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail value) { + if (txDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxDetailsIsMutable(); + txDetails_.add(index, value); + onChanged(); + } else { + txDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder addTxDetails( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder builderForValue) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.add(builderForValue.build()); + onChanged(); + } else { + txDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder addTxDetails(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder builderForValue) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + txDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder addAllTxDetails( + java.lang.Iterable values) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txDetails_); + onChanged(); + } else { + txDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder clearTxDetails() { + if (txDetailsBuilder_ == null) { + txDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txDetailsBuilder_.clear(); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public Builder removeTxDetails(int index) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.remove(index); + onChanged(); + } else { + txDetailsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder getTxDetailsBuilder( + int index) { + return getTxDetailsFieldBuilder().getBuilder(index); + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder getTxDetailsOrBuilder( + int index) { + if (txDetailsBuilder_ == null) { + return txDetails_.get(index); + } else { + return txDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public java.util.List getTxDetailsOrBuilderList() { + if (txDetailsBuilder_ != null) { + return txDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txDetails_); + } + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder addTxDetailsBuilder() { + return getTxDetailsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance()); + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder addTxDetailsBuilder( + int index) { + return getTxDetailsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance()); + } + + /** + * repeated .TxDetail txDetails = 3; + */ + public java.util.List getTxDetailsBuilderList() { + return getTxDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxDetailsFieldBuilder() { + if (txDetailsBuilder_ == null) { + txDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txDetails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txDetails_ = null; + } + return txDetailsBuilder_; + } + + private com.google.protobuf.ByteString childHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes childHash = 4; + * + * @return The childHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildHash() { + return childHash_; + } + + /** + * bytes childHash = 4; + * + * @param value + * The childHash to set. + * + * @return This builder for chaining. + */ + public Builder setChildHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + childHash_ = value; + onChanged(); + return this; + } + + /** + * bytes childHash = 4; + * + * @return This builder for chaining. + */ + public Builder clearChildHash() { + + childHash_ = getDefaultInstance().getChildHash(); + onChanged(); + return this; + } + + private int index_; + + /** + * uint32 index = 5; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + /** + * uint32 index = 5; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + + /** + * uint32 index = 5; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private java.util.List proofs_ = java.util.Collections.emptyList(); + + private void ensureProofsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + proofs_ = new java.util.ArrayList(proofs_); + bitField0_ |= 0x00000002; + } + } + + /** + * repeated bytes proofs = 6; + * + * @return A list containing the proofs. + */ + public java.util.List getProofsList() { + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(proofs_) : proofs_; + } + + /** + * repeated bytes proofs = 6; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } + + /** + * repeated bytes proofs = 6; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } + + /** + * repeated bytes proofs = 6; + * + * @param index + * The index to set the value at. + * @param value + * The proofs to set. + * + * @return This builder for chaining. + */ + public Builder setProofs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 6; + * + * @param value + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addProofs(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 6; + * + * @param values + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addAllProofs(java.lang.Iterable values) { + ensureProofsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proofs_); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 6; + * + * @return This builder for chaining. + */ + public Builder clearProofs() { + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ParaTxDetail) + } + + // @@protoc_insertion_point(class_scope:ParaTxDetail) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParaTxDetail parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParaTxDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TxDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:TxDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 index = 1; + * + * @return The index. + */ + int getIndex(); + + /** + * .Transaction tx = 2; + * + * @return Whether the tx field is set. + */ + boolean hasTx(); + + /** + * .Transaction tx = 2; + * + * @return The tx. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); + + /** + * .Transaction tx = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + + /** + * .ReceiptData receipt = 3; + * + * @return Whether the receipt field is set. + */ + boolean hasReceipt(); + + /** + * .ReceiptData receipt = 3; + * + * @return The receipt. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt(); + + /** + * .ReceiptData receipt = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder(); + + /** + * repeated bytes proofs = 4; + * + * @return A list containing the proofs. + */ + java.util.List getProofsList(); + + /** + * repeated bytes proofs = 4; + * + * @return The count of proofs. + */ + int getProofsCount(); + + /** + * repeated bytes proofs = 4; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + com.google.protobuf.ByteString getProofs(int index); + } + + /** + *
+     *交易的详情:
+     * index:本交易在block中索引值,用于proof的证明
+     * tx:本交易内容
+     * receipt:本交易在主链的执行回执
+     * proofs:本交易hash在block中merkel中的路径
+     * 
+ * + * Protobuf type {@code TxDetail} + */ + public static final class TxDetail extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TxDetail) + TxDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TxDetail.newBuilder() to construct. + private TxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TxDetail() { + proofs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TxDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TxDetail(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + index_ = input.readUInt32(); + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; + if (tx_ != null) { + subBuilder = tx_.toBuilder(); + } + tx_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tx_); + tx_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; + if (receipt_ != null) { + subBuilder = receipt_.toBuilder(); + } + receipt_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receipt_); + receipt_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + proofs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + proofs_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder.class); + } + + public static final int INDEX_FIELD_NUMBER = 1; + private int index_; + + /** + * uint32 index = 1; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int TX_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + + /** + * .Transaction tx = 2; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return tx_ != null; + } + + /** + * .Transaction tx = 2; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; + } + + /** + * .Transaction tx = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + return getTx(); + } + + public static final int RECEIPT_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; + + /** + * .ReceiptData receipt = 3; + * + * @return Whether the receipt field is set. + */ + @java.lang.Override + public boolean hasReceipt() { + return receipt_ != null; + } + + /** + * .ReceiptData receipt = 3; + * + * @return The receipt. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } + + /** + * .ReceiptData receipt = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { + return getReceipt(); + } + + public static final int PROOFS_FIELD_NUMBER = 4; + private java.util.List proofs_; + + /** + * repeated bytes proofs = 4; + * + * @return A list containing the proofs. + */ + @java.lang.Override + public java.util.List getProofsList() { + return proofs_; + } + + /** + * repeated bytes proofs = 4; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } + + /** + * repeated bytes proofs = 4; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (index_ != 0) { + output.writeUInt32(1, index_); + } + if (tx_ != null) { + output.writeMessage(2, getTx()); + } + if (receipt_ != null) { + output.writeMessage(3, getReceipt()); + } + for (int i = 0; i < proofs_.size(); i++) { + output.writeBytes(4, proofs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, index_); + } + if (tx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTx()); + } + if (receipt_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReceipt()); + } + { + int dataSize = 0; + for (int i = 0; i < proofs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(proofs_.get(i)); + } + size += dataSize; + size += 1 * getProofsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail) obj; + + if (getIndex() != other.getIndex()) + return false; + if (hasTx() != other.hasTx()) + return false; + if (hasTx()) { + if (!getTx().equals(other.getTx())) + return false; + } + if (hasReceipt() != other.hasReceipt()) + return false; + if (hasReceipt()) { + if (!getReceipt().equals(other.getReceipt())) + return false; + } + if (!getProofsList().equals(other.getProofsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + if (hasTx()) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + } + if (hasReceipt()) { + hash = (37 * hash) + RECEIPT_FIELD_NUMBER; + hash = (53 * hash) + getReceipt().hashCode(); + } + if (getProofsCount() > 0) { + hash = (37 * hash) + PROOFS_FIELD_NUMBER; + hash = (53 * hash) + getProofsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *交易的详情:
+         * index:本交易在block中索引值,用于proof的证明
+         * tx:本交易内容
+         * receipt:本交易在主链的执行回执
+         * proofs:本交易hash在block中merkel中的路径
+         * 
+ * + * Protobuf type {@code TxDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TxDetail) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + index_ = 0; + + if (txBuilder_ == null) { + tx_ = null; + } else { + tx_ = null; + txBuilder_ = null; + } + if (receiptBuilder_ == null) { + receipt_ = null; + } else { + receipt_ = null; + receiptBuilder_ = null; + } + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_TxDetail_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail( + this); + int from_bitField0_ = bitField0_; + result.index_ = index_; + if (txBuilder_ == null) { + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + if (receiptBuilder_ == null) { + result.receipt_ = receipt_; + } else { + result.receipt_ = receiptBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.proofs_ = proofs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail.getDefaultInstance()) + return this; + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.hasTx()) { + mergeTx(other.getTx()); + } + if (other.hasReceipt()) { + mergeReceipt(other.getReceipt()); + } + if (!other.proofs_.isEmpty()) { + if (proofs_.isEmpty()) { + proofs_ = other.proofs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProofsIsMutable(); + proofs_.addAll(other.proofs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int index_; + + /** + * uint32 index = 1; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + /** + * uint32 index = 1; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + + /** + * uint32 index = 1; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + private com.google.protobuf.SingleFieldBuilderV3 txBuilder_; + + /** + * .Transaction tx = 2; + * + * @return Whether the tx field is set. + */ + public boolean hasTx() { + return txBuilder_ != null || tx_ != null; + } + + /** + * .Transaction tx = 2; + * + * @return The tx. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + if (txBuilder_ == null) { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } else { + return txBuilder_.getMessage(); + } + } + + /** + * .Transaction tx = 2; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tx_ = value; + onChanged(); + } else { + txBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Transaction tx = 2; + */ + public Builder setTx( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txBuilder_ == null) { + tx_ = builderForValue.build(); + onChanged(); + } else { + txBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Transaction tx = 2; + */ + public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (tx_ != null) { + tx_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_) + .mergeFrom(value).buildPartial(); + } else { + tx_ = value; + } + onChanged(); + } else { + txBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Transaction tx = 2; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = null; + onChanged(); + } else { + tx_ = null; + txBuilder_ = null; + } + + return this; + } + + /** + * .Transaction tx = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { + + onChanged(); + return getTxFieldBuilder().getBuilder(); + } + + /** + * .Transaction tx = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilder(); + } else { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } + } + + /** + * .Transaction tx = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTx(), getParentForChildren(), isClean()); + tx_ = null; + } + return txBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; + private com.google.protobuf.SingleFieldBuilderV3 receiptBuilder_; + + /** + * .ReceiptData receipt = 3; + * + * @return Whether the receipt field is set. + */ + public boolean hasReceipt() { + return receiptBuilder_ != null || receipt_ != null; + } + + /** + * .ReceiptData receipt = 3; + * + * @return The receipt. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { + if (receiptBuilder_ == null) { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } else { + return receiptBuilder_.getMessage(); + } + } + + /** + * .ReceiptData receipt = 3; + */ + public Builder setReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + receipt_ = value; + onChanged(); + } else { + receiptBuilder_.setMessage(value); + } + + return this; + } + + /** + * .ReceiptData receipt = 3; + */ + public Builder setReceipt( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptBuilder_ == null) { + receipt_ = builderForValue.build(); + onChanged(); + } else { + receiptBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .ReceiptData receipt = 3; + */ + public Builder mergeReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptBuilder_ == null) { + if (receipt_ != null) { + receipt_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData + .newBuilder(receipt_).mergeFrom(value).buildPartial(); + } else { + receipt_ = value; + } + onChanged(); + } else { + receiptBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .ReceiptData receipt = 3; + */ + public Builder clearReceipt() { + if (receiptBuilder_ == null) { + receipt_ = null; + onChanged(); + } else { + receipt_ = null; + receiptBuilder_ = null; + } + + return this; + } + + /** + * .ReceiptData receipt = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptBuilder() { + + onChanged(); + return getReceiptFieldBuilder().getBuilder(); + } + + /** + * .ReceiptData receipt = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { + if (receiptBuilder_ != null) { + return receiptBuilder_.getMessageOrBuilder(); + } else { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } + } + + /** + * .ReceiptData receipt = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getReceiptFieldBuilder() { + if (receiptBuilder_ == null) { + receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getReceipt(), getParentForChildren(), isClean()); + receipt_ = null; + } + return receiptBuilder_; + } + + private java.util.List proofs_ = java.util.Collections.emptyList(); + + private void ensureProofsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + proofs_ = new java.util.ArrayList(proofs_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated bytes proofs = 4; + * + * @return A list containing the proofs. + */ + public java.util.List getProofsList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(proofs_) : proofs_; + } + + /** + * repeated bytes proofs = 4; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } + + /** + * repeated bytes proofs = 4; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } + + /** + * repeated bytes proofs = 4; + * + * @param index + * The index to set the value at. + * @param value + * The proofs to set. + * + * @return This builder for chaining. + */ + public Builder setProofs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 4; + * + * @param value + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addProofs(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 4; + * + * @param values + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addAllProofs(java.lang.Iterable values) { + ensureProofsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proofs_); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 4; + * + * @return This builder for chaining. + */ + public Builder clearProofs() { + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TxDetail) + } + + // @@protoc_insertion_point(class_scope:TxDetail) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TxDetail parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TxDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.TxDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqParaTxByTitleOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqParaTxByTitle) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 start = 1; + * + * @return The start. + */ + long getStart(); + + /** + * int64 end = 2; + * + * @return The end. + */ + long getEnd(); + + /** + * string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * bool isSeq = 4; + * + * @return The isSeq. + */ + boolean getIsSeq(); + } + + /** + *
+     * 通过seq区间和title请求平行链的交易
+     * 
+ * + * Protobuf type {@code ReqParaTxByTitle} + */ + public static final class ReqParaTxByTitle extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqParaTxByTitle) + ReqParaTxByTitleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqParaTxByTitle.newBuilder() to construct. + private ReqParaTxByTitle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqParaTxByTitle() { + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqParaTxByTitle(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqParaTxByTitle(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + start_ = input.readInt64(); + break; + } + case 16: { + + end_ = input.readInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 32: { + + isSeq_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.Builder.class); + } + + public static final int START_FIELD_NUMBER = 1; + private long start_; + + /** + * int64 start = 1; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 2; + private long end_; + + /** + * int64 end = 2; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + public static final int TITLE_FIELD_NUMBER = 3; + private volatile java.lang.Object title_; + + /** + * string title = 3; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 3; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISSEQ_FIELD_NUMBER = 4; + private boolean isSeq_; + + /** + * bool isSeq = 4; + * + * @return The isSeq. + */ + @java.lang.Override + public boolean getIsSeq() { + return isSeq_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (start_ != 0L) { + output.writeInt64(1, start_); + } + if (end_ != 0L) { + output.writeInt64(2, end_); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); + } + if (isSeq_ != false) { + output.writeBool(4, isSeq_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, end_); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); + } + if (isSeq_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isSeq_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) obj; + + if (getStart() != other.getStart()) + return false; + if (getEnd() != other.getEnd()) + return false; + if (!getTitle().equals(other.getTitle())) + return false; + if (getIsSeq() != other.getIsSeq()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + ISSEQ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSeq()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 通过seq区间和title请求平行链的交易
+         * 
+ * + * Protobuf type {@code ReqParaTxByTitle} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqParaTxByTitle) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + start_ = 0L; + + end_ = 0L; + + title_ = ""; + + isSeq_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByTitle_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle( + this); + result.start_ = start_; + result.end_ = end_; + result.title_ = title_; + result.isSeq_ = isSeq_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.getDefaultInstance()) + return this; + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (other.getIsSeq() != false) { + setIsSeq(other.getIsSeq()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long start_; + + /** + * int64 start = 1; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + /** + * int64 start = 1; + * + * @param value + * The start to set. + * + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + onChanged(); + return this; + } + + /** + * int64 start = 1; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0L; + onChanged(); + return this; + } + + private long end_; + + /** + * int64 end = 2; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + /** + * int64 end = 2; + * + * @param value + * The end to set. + * + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + onChanged(); + return this; + } + + /** + * int64 end = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnd() { + + end_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * string title = 3; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 3; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 3; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 3; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private boolean isSeq_; + + /** + * bool isSeq = 4; + * + * @return The isSeq. + */ + @java.lang.Override + public boolean getIsSeq() { + return isSeq_; + } + + /** + * bool isSeq = 4; + * + * @param value + * The isSeq to set. + * + * @return This builder for chaining. + */ + public Builder setIsSeq(boolean value) { + + isSeq_ = value; + onChanged(); + return this; + } + + /** + * bool isSeq = 4; + * + * @return This builder for chaining. + */ + public Builder clearIsSeq() { + + isSeq_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqParaTxByTitle) + } + + // @@protoc_insertion_point(class_scope:ReqParaTxByTitle) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqParaTxByTitle parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqParaTxByTitle(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FileHeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:FileHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 startHeight = 1; + * + * @return The startHeight. + */ + long getStartHeight(); + + /** + * string driver = 2; + * + * @return The driver. + */ + java.lang.String getDriver(); + + /** + * string driver = 2; + * + * @return The bytes for driver. + */ + com.google.protobuf.ByteString getDriverBytes(); + + /** + * string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * bool testNet = 4; + * + * @return The testNet. + */ + boolean getTestNet(); + } + + /** + *
+     * 导出block文件头信息
+     * 
+ * + * Protobuf type {@code FileHeader} + */ + public static final class FileHeader extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:FileHeader) + FileHeaderOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FileHeader.newBuilder() to construct. + private FileHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileHeader() { + driver_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FileHeader(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + startHeight_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + driver_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 32: { + + testNet_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.Builder.class); + } + + public static final int STARTHEIGHT_FIELD_NUMBER = 1; + private long startHeight_; + + /** + * int64 startHeight = 1; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } + + public static final int DRIVER_FIELD_NUMBER = 2; + private volatile java.lang.Object driver_; + + /** + * string driver = 2; + * + * @return The driver. + */ + @java.lang.Override + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + driver_ = s; + return s; + } + } + + /** + * string driver = 2; + * + * @return The bytes for driver. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 3; + private volatile java.lang.Object title_; + + /** + * string title = 3; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 3; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TESTNET_FIELD_NUMBER = 4; + private boolean testNet_; + + /** + * bool testNet = 4; + * + * @return The testNet. + */ + @java.lang.Override + public boolean getTestNet() { + return testNet_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startHeight_ != 0L) { + output.writeInt64(1, startHeight_); + } + if (!getDriverBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); + } + if (testNet_ != false) { + output.writeBool(4, testNet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (startHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startHeight_); + } + if (!getDriverBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); + } + if (testNet_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, testNet_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader) obj; + + if (getStartHeight() != other.getStartHeight()) + return false; + if (!getDriver().equals(other.getDriver())) + return false; + if (!getTitle().equals(other.getTitle())) + return false; + if (getTestNet() != other.getTestNet()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartHeight()); + hash = (37 * hash) + DRIVER_FIELD_NUMBER; + hash = (53 * hash) + getDriver().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + TESTNET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTestNet()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 导出block文件头信息
+         * 
+ * + * Protobuf type {@code FileHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:FileHeader) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + startHeight_ = 0L; + + driver_ = ""; + + title_ = ""; + + testNet_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_FileHeader_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader( + this); + result.startHeight_ = startHeight_; + result.driver_ = driver_; + result.title_ = title_; + result.testNet_ = testNet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader.getDefaultInstance()) + return this; + if (other.getStartHeight() != 0L) { + setStartHeight(other.getStartHeight()); + } + if (!other.getDriver().isEmpty()) { + driver_ = other.driver_; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (other.getTestNet() != false) { + setTestNet(other.getTestNet()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long startHeight_; + + /** + * int64 startHeight = 1; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } + + /** + * int64 startHeight = 1; + * + * @param value + * The startHeight to set. + * + * @return This builder for chaining. + */ + public Builder setStartHeight(long value) { + + startHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 startHeight = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartHeight() { + + startHeight_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object driver_ = ""; + + /** + * string driver = 2; + * + * @return The driver. + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + driver_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string driver = 2; + * + * @return The bytes for driver. + */ + public com.google.protobuf.ByteString getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string driver = 2; + * + * @param value + * The driver to set. + * + * @return This builder for chaining. + */ + public Builder setDriver(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + driver_ = value; + onChanged(); + return this; + } + + /** + * string driver = 2; + * + * @return This builder for chaining. + */ + public Builder clearDriver() { + + driver_ = getDefaultInstance().getDriver(); + onChanged(); + return this; + } + + /** + * string driver = 2; + * + * @param value + * The bytes for driver to set. + * + * @return This builder for chaining. + */ + public Builder setDriverBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + driver_ = value; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * string title = 3; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 3; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 3; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 3; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private boolean testNet_; + + /** + * bool testNet = 4; + * + * @return The testNet. + */ + @java.lang.Override + public boolean getTestNet() { + return testNet_; + } + + /** + * bool testNet = 4; + * + * @param value + * The testNet to set. + * + * @return This builder for chaining. + */ + public Builder setTestNet(boolean value) { + + testNet_ = value; + onChanged(); + return this; + } + + /** + * bool testNet = 4; + * + * @return This builder for chaining. + */ + public Builder clearTestNet() { + + testNet_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:FileHeader) + } + + // @@protoc_insertion_point(class_scope:FileHeader) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileHeader parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileHeader(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.FileHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EndBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:EndBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 height = 1; + * + * @return The height. + */ + long getHeight(); + + /** + * bytes hash = 2; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + } + + /** + *
+     * 存储block高度和hash
+     * 
+ * + * Protobuf type {@code EndBlock} + */ + public static final class EndBlock extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EndBlock) + EndBlockOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EndBlock.newBuilder() to construct. + private EndBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EndBlock() { + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EndBlock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EndBlock(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + height_ = input.readInt64(); + break; + } + case 18: { + + hash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.Builder.class); + } + + public static final int HEIGHT_FIELD_NUMBER = 1; + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int HASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (height_ != 0L) { + output.writeInt64(1, height_); + } + if (!hash_.isEmpty()) { + output.writeBytes(2, hash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, height_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hash_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock) obj; + + if (getHeight() != other.getHeight()) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 存储block高度和hash
+         * 
+ * + * Protobuf type {@code EndBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EndBlock) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_EndBlock_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock( + this); + result.height_ = height_; + result.hash_ = hash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock.getDefaultInstance()) + return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 1; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 2; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 2; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EndBlock) + } + + // @@protoc_insertion_point(class_scope:EndBlock) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndBlock parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EndBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.EndBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HeaderSeqOrBuilder extends + // @@protoc_insertion_point(interface_extends:HeaderSeq) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 num = 1; + * + * @return The num. + */ + long getNum(); + + /** + * .BlockSequence seq = 2; + * + * @return Whether the seq field is set. + */ + boolean hasSeq(); + + /** + * .BlockSequence seq = 2; + * + * @return The seq. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq(); + + /** + * .BlockSequence seq = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder(); + + /** + * .Header header = 3; + * + * @return Whether the header field is set. + */ + boolean hasHeader(); + + /** + * .Header header = 3; + * + * @return The header. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); + + /** + * .Header header = 3; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + } + + /** + *
+     * 通过seq获取区块的header信息
+     * 
+ * + * Protobuf type {@code HeaderSeq} + */ + public static final class HeaderSeq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HeaderSeq) + HeaderSeqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HeaderSeq.newBuilder() to construct. + private HeaderSeq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HeaderSeq() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HeaderSeq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HeaderSeq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + num_ = input.readInt64(); + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder subBuilder = null; + if (seq_ != null) { + subBuilder = seq_.toBuilder(); + } + seq_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(seq_); + seq_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder.class); + } + + public static final int NUM_FIELD_NUMBER = 1; + private long num_; + + /** + * int64 num = 1; + * + * @return The num. + */ + @java.lang.Override + public long getNum() { + return num_; + } + + public static final int SEQ_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; + + /** + * .BlockSequence seq = 2; + * + * @return Whether the seq field is set. + */ + @java.lang.Override + public boolean hasSeq() { + return seq_ != null; + } + + /** + * .BlockSequence seq = 2; + * + * @return The seq. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { + return seq_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() : seq_; + } + + /** + * .BlockSequence seq = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { + return getSeq(); + } + + public static final int HEADER_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + + /** + * .Header header = 3; + * + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + + /** + * .Header header = 3; + * + * @return The header. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + + /** + * .Header header = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (num_ != 0L) { + output.writeInt64(1, num_); + } + if (seq_ != null) { + output.writeMessage(2, getSeq()); + } + if (header_ != null) { + output.writeMessage(3, getHeader()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (num_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, num_); + } + if (seq_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSeq()); + } + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHeader()); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq) obj; + + if (getNum() != other.getNum()) + return false; + if (hasSeq() != other.hasSeq()) + return false; + if (hasSeq()) { + if (!getSeq().equals(other.getSeq())) + return false; + } + if (hasHeader() != other.hasHeader()) + return false; + if (hasHeader()) { + if (!getHeader().equals(other.getHeader())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNum()); + if (hasSeq()) { + hash = (37 * hash) + SEQ_FIELD_NUMBER; + hash = (53 * hash) + getSeq().hashCode(); + } + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 通过seq获取区块的header信息
+         * 
+ * + * Protobuf type {@code HeaderSeq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HeaderSeq) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + num_ = 0L; + + if (seqBuilder_ == null) { + seq_ = null; + } else { + seq_ = null; + seqBuilder_ = null; + } + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq( + this); + result.num_ = num_; + if (seqBuilder_ == null) { + result.seq_ = seq_; + } else { + result.seq_ = seqBuilder_.build(); + } + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance()) + return this; + if (other.getNum() != 0L) { + setNum(other.getNum()); + } + if (other.hasSeq()) { + mergeSeq(other.getSeq()); + } + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long num_; + + /** + * int64 num = 1; + * + * @return The num. + */ + @java.lang.Override + public long getNum() { + return num_; + } + + /** + * int64 num = 1; + * + * @param value + * The num to set. + * + * @return This builder for chaining. + */ + public Builder setNum(long value) { + + num_ = value; + onChanged(); + return this; + } + + /** + * int64 num = 1; + * + * @return This builder for chaining. + */ + public Builder clearNum() { + + num_ = 0L; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence seq_; + private com.google.protobuf.SingleFieldBuilderV3 seqBuilder_; + + /** + * .BlockSequence seq = 2; + * + * @return Whether the seq field is set. + */ + public boolean hasSeq() { + return seqBuilder_ != null || seq_ != null; + } + + /** + * .BlockSequence seq = 2; + * + * @return The seq. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence getSeq() { + if (seqBuilder_ == null) { + return seq_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() + : seq_; + } else { + return seqBuilder_.getMessage(); + } + } + + /** + * .BlockSequence seq = 2; + */ + public Builder setSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { + if (seqBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + seq_ = value; + onChanged(); + } else { + seqBuilder_.setMessage(value); + } + + return this; + } + + /** + * .BlockSequence seq = 2; + */ + public Builder setSeq( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder builderForValue) { + if (seqBuilder_ == null) { + seq_ = builderForValue.build(); + onChanged(); + } else { + seqBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .BlockSequence seq = 2; + */ + public Builder mergeSeq(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence value) { + if (seqBuilder_ == null) { + if (seq_ != null) { + seq_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.newBuilder(seq_) + .mergeFrom(value).buildPartial(); + } else { + seq_ = value; + } + onChanged(); + } else { + seqBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .BlockSequence seq = 2; + */ + public Builder clearSeq() { + if (seqBuilder_ == null) { + seq_ = null; + onChanged(); + } else { + seq_ = null; + seqBuilder_ = null; + } + + return this; + } + + /** + * .BlockSequence seq = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.Builder getSeqBuilder() { + + onChanged(); + return getSeqFieldBuilder().getBuilder(); + } + + /** + * .BlockSequence seq = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequenceOrBuilder getSeqOrBuilder() { + if (seqBuilder_ != null) { + return seqBuilder_.getMessageOrBuilder(); + } else { + return seq_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSequence.getDefaultInstance() + : seq_; + } + } + + /** + * .BlockSequence seq = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getSeqFieldBuilder() { + if (seqBuilder_ == null) { + seqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getSeq(), getParentForChildren(), isClean()); + seq_ = null; + } + return seqBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + private com.google.protobuf.SingleFieldBuilderV3 headerBuilder_; + + /** + * .Header header = 3; + * + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + + /** + * .Header header = 3; + * + * @return The header. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + if (headerBuilder_ == null) { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } else { + return headerBuilder_.getMessage(); + } + } + + /** + * .Header header = 3; + */ + public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Header header = 3; + */ + public Builder setHeader( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Header header = 3; + */ + public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_) + .mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Header header = 3; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + + /** + * .Header header = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + + /** + * .Header header = 3; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + } + + /** + * .Header header = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeader(), getParentForChildren(), isClean()); + header_ = null; + } + return headerBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:HeaderSeq) + } + + // @@protoc_insertion_point(class_scope:HeaderSeq) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeaderSeq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeaderSeq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HeaderSeqsOrBuilder extends + // @@protoc_insertion_point(interface_extends:HeaderSeqs) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .HeaderSeq seqs = 1; + */ + java.util.List getSeqsList(); + + /** + * repeated .HeaderSeq seqs = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getSeqs(int index); + + /** + * repeated .HeaderSeq seqs = 1; + */ + int getSeqsCount(); + + /** + * repeated .HeaderSeq seqs = 1; + */ + java.util.List getSeqsOrBuilderList(); + + /** + * repeated .HeaderSeq seqs = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder getSeqsOrBuilder(int index); + } + + /** + *
+     * 批量推送区块的header信息
+     * 
+ * + * Protobuf type {@code HeaderSeqs} + */ + public static final class HeaderSeqs extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HeaderSeqs) + HeaderSeqsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HeaderSeqs.newBuilder() to construct. + private HeaderSeqs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HeaderSeqs() { + seqs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HeaderSeqs(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HeaderSeqs(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + seqs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + seqs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + seqs_ = java.util.Collections.unmodifiableList(seqs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.Builder.class); + } + + public static final int SEQS_FIELD_NUMBER = 1; + private java.util.List seqs_; + + /** + * repeated .HeaderSeq seqs = 1; + */ + @java.lang.Override + public java.util.List getSeqsList() { + return seqs_; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + @java.lang.Override + public java.util.List getSeqsOrBuilderList() { + return seqs_; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + @java.lang.Override + public int getSeqsCount() { + return seqs_.size(); + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getSeqs(int index) { + return seqs_.get(index); + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder getSeqsOrBuilder(int index) { + return seqs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < seqs_.size(); i++) { + output.writeMessage(1, seqs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < seqs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, seqs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs) obj; + + if (!getSeqsList().equals(other.getSeqsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSeqsCount() > 0) { + hash = (37 * hash) + SEQS_FIELD_NUMBER; + hash = (53 * hash) + getSeqsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 批量推送区块的header信息
+         * 
+ * + * Protobuf type {@code HeaderSeqs} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HeaderSeqs) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSeqsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (seqsBuilder_ == null) { + seqs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + seqsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeaderSeqs_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs( + this); + int from_bitField0_ = bitField0_; + if (seqsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + seqs_ = java.util.Collections.unmodifiableList(seqs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.seqs_ = seqs_; + } else { + result.seqs_ = seqsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs.getDefaultInstance()) + return this; + if (seqsBuilder_ == null) { + if (!other.seqs_.isEmpty()) { + if (seqs_.isEmpty()) { + seqs_ = other.seqs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSeqsIsMutable(); + seqs_.addAll(other.seqs_); + } + onChanged(); + } + } else { + if (!other.seqs_.isEmpty()) { + if (seqsBuilder_.isEmpty()) { + seqsBuilder_.dispose(); + seqsBuilder_ = null; + seqs_ = other.seqs_; + bitField0_ = (bitField0_ & ~0x00000001); + seqsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSeqsFieldBuilder() : null; + } else { + seqsBuilder_.addAllMessages(other.seqs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List seqs_ = java.util.Collections + .emptyList(); + + private void ensureSeqsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + seqs_ = new java.util.ArrayList( + seqs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 seqsBuilder_; + + /** + * repeated .HeaderSeq seqs = 1; + */ + public java.util.List getSeqsList() { + if (seqsBuilder_ == null) { + return java.util.Collections.unmodifiableList(seqs_); + } else { + return seqsBuilder_.getMessageList(); + } + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public int getSeqsCount() { + if (seqsBuilder_ == null) { + return seqs_.size(); + } else { + return seqsBuilder_.getCount(); + } + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq getSeqs(int index) { + if (seqsBuilder_ == null) { + return seqs_.get(index); + } else { + return seqsBuilder_.getMessage(index); + } + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder setSeqs(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq value) { + if (seqsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeqsIsMutable(); + seqs_.set(index, value); + onChanged(); + } else { + seqsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder setSeqs(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder builderForValue) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.set(index, builderForValue.build()); + onChanged(); + } else { + seqsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder addSeqs(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq value) { + if (seqsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeqsIsMutable(); + seqs_.add(value); + onChanged(); + } else { + seqsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder addSeqs(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq value) { + if (seqsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeqsIsMutable(); + seqs_.add(index, value); + onChanged(); + } else { + seqsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder addSeqs( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder builderForValue) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.add(builderForValue.build()); + onChanged(); + } else { + seqsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder addSeqs(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder builderForValue) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.add(index, builderForValue.build()); + onChanged(); + } else { + seqsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder addAllSeqs( + java.lang.Iterable values) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, seqs_); + onChanged(); + } else { + seqsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder clearSeqs() { + if (seqsBuilder_ == null) { + seqs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + seqsBuilder_.clear(); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public Builder removeSeqs(int index) { + if (seqsBuilder_ == null) { + ensureSeqsIsMutable(); + seqs_.remove(index); + onChanged(); + } else { + seqsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder getSeqsBuilder(int index) { + return getSeqsFieldBuilder().getBuilder(index); + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqOrBuilder getSeqsOrBuilder(int index) { + if (seqsBuilder_ == null) { + return seqs_.get(index); + } else { + return seqsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public java.util.List getSeqsOrBuilderList() { + if (seqsBuilder_ != null) { + return seqsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(seqs_); + } + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder addSeqsBuilder() { + return getSeqsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance()); + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.Builder addSeqsBuilder(int index) { + return getSeqsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeq.getDefaultInstance()); + } + + /** + * repeated .HeaderSeq seqs = 1; + */ + public java.util.List getSeqsBuilderList() { + return getSeqsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getSeqsFieldBuilder() { + if (seqsBuilder_ == null) { + seqsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + seqs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + seqs_ = null; + } + return seqsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:HeaderSeqs) + } + + // @@protoc_insertion_point(class_scope:HeaderSeqs) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeaderSeqs parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeaderSeqs(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderSeqs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HeightParaOrBuilder extends + // @@protoc_insertion_point(interface_extends:HeightPara) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 height = 1; + * + * @return The height. + */ + long getHeight(); + + /** + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * bytes hash = 3; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * bytes childHash = 4; + * + * @return The childHash. + */ + com.google.protobuf.ByteString getChildHash(); + + /** + * int32 startIndex = 5; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * uint32 childHashIndex = 6; + * + * @return The childHashIndex. + */ + int getChildHashIndex(); + + /** + * int32 txCount = 7; + * + * @return The txCount. + */ + int getTxCount(); + } + + /** + *
+     *记录本平行链所在区块的信息以及子根hash值
+     * childHash:平行链子roothash值
+     * startIndex:此平行链的第一笔交易的index索引值
+     * childHashIndex:此平行链子roothash在本区块中的索引值
+     * txCount:此平行链交易的个数
+     * 
+ * + * Protobuf type {@code HeightPara} + */ + public static final class HeightPara extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HeightPara) + HeightParaOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HeightPara.newBuilder() to construct. + private HeightPara(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HeightPara() { + title_ = ""; + hash_ = com.google.protobuf.ByteString.EMPTY; + childHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HeightPara(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HeightPara(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + height_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: { + + hash_ = input.readBytes(); + break; + } + case 34: { + + childHash_ = input.readBytes(); + break; + } + case 40: { + + startIndex_ = input.readInt32(); + break; + } + case 48: { + + childHashIndex_ = input.readUInt32(); + break; + } + case 56: { + + txCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder.class); + } + + public static final int HEIGHT_FIELD_NUMBER = 1; + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; + + /** + * string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 3; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int CHILDHASH_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString childHash_; + + /** + * bytes childHash = 4; + * + * @return The childHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildHash() { + return childHash_; + } + + public static final int STARTINDEX_FIELD_NUMBER = 5; + private int startIndex_; + + /** + * int32 startIndex = 5; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int CHILDHASHINDEX_FIELD_NUMBER = 6; + private int childHashIndex_; + + /** + * uint32 childHashIndex = 6; + * + * @return The childHashIndex. + */ + @java.lang.Override + public int getChildHashIndex() { + return childHashIndex_; + } + + public static final int TXCOUNT_FIELD_NUMBER = 7; + private int txCount_; + + /** + * int32 txCount = 7; + * + * @return The txCount. + */ + @java.lang.Override + public int getTxCount() { + return txCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (height_ != 0L) { + output.writeInt64(1, height_); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (!hash_.isEmpty()) { + output.writeBytes(3, hash_); + } + if (!childHash_.isEmpty()) { + output.writeBytes(4, childHash_); + } + if (startIndex_ != 0) { + output.writeInt32(5, startIndex_); + } + if (childHashIndex_ != 0) { + output.writeUInt32(6, childHashIndex_); + } + if (txCount_ != 0) { + output.writeInt32(7, txCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, height_); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, hash_); + } + if (!childHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, childHash_); + } + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, startIndex_); + } + if (childHashIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, childHashIndex_); + } + if (txCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, txCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara) obj; + + if (getHeight() != other.getHeight()) + return false; + if (!getTitle().equals(other.getTitle())) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (!getChildHash().equals(other.getChildHash())) + return false; + if (getStartIndex() != other.getStartIndex()) + return false; + if (getChildHashIndex() != other.getChildHashIndex()) + return false; + if (getTxCount() != other.getTxCount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + CHILDHASH_FIELD_NUMBER; + hash = (53 * hash) + getChildHash().hashCode(); + hash = (37 * hash) + STARTINDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + CHILDHASHINDEX_FIELD_NUMBER; + hash = (53 * hash) + getChildHashIndex(); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTxCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *记录本平行链所在区块的信息以及子根hash值
+         * childHash:平行链子roothash值
+         * startIndex:此平行链的第一笔交易的index索引值
+         * childHashIndex:此平行链子roothash在本区块中的索引值
+         * txCount:此平行链交易的个数
+         * 
+ * + * Protobuf type {@code HeightPara} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HeightPara) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; + + title_ = ""; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + childHash_ = com.google.protobuf.ByteString.EMPTY; + + startIndex_ = 0; + + childHashIndex_ = 0; + + txCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightPara_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara( + this); + result.height_ = height_; + result.title_ = title_; + result.hash_ = hash_; + result.childHash_ = childHash_; + result.startIndex_ = startIndex_; + result.childHashIndex_ = childHashIndex_; + result.txCount_ = txCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance()) + return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getChildHash() != com.google.protobuf.ByteString.EMPTY) { + setChildHash(other.getChildHash()); + } + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getChildHashIndex() != 0) { + setChildHashIndex(other.getChildHashIndex()); + } + if (other.getTxCount() != 0) { + setTxCount(other.getTxCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 1; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 2; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 2; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 3; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 3; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 3; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString childHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes childHash = 4; + * + * @return The childHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildHash() { + return childHash_; + } + + /** + * bytes childHash = 4; + * + * @param value + * The childHash to set. + * + * @return This builder for chaining. + */ + public Builder setChildHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + childHash_ = value; + onChanged(); + return this; + } + + /** + * bytes childHash = 4; + * + * @return This builder for chaining. + */ + public Builder clearChildHash() { + + childHash_ = getDefaultInstance().getChildHash(); + onChanged(); + return this; + } + + private int startIndex_; + + /** + * int32 startIndex = 5; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + /** + * int32 startIndex = 5; + * + * @param value + * The startIndex to set. + * + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + onChanged(); + return this; + } + + /** + * int32 startIndex = 5; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + + startIndex_ = 0; + onChanged(); + return this; + } + + private int childHashIndex_; + + /** + * uint32 childHashIndex = 6; + * + * @return The childHashIndex. + */ + @java.lang.Override + public int getChildHashIndex() { + return childHashIndex_; + } + + /** + * uint32 childHashIndex = 6; + * + * @param value + * The childHashIndex to set. + * + * @return This builder for chaining. + */ + public Builder setChildHashIndex(int value) { + + childHashIndex_ = value; + onChanged(); + return this; + } + + /** + * uint32 childHashIndex = 6; + * + * @return This builder for chaining. + */ + public Builder clearChildHashIndex() { + + childHashIndex_ = 0; + onChanged(); + return this; + } + + private int txCount_; + + /** + * int32 txCount = 7; + * + * @return The txCount. + */ + @java.lang.Override + public int getTxCount() { + return txCount_; + } + + /** + * int32 txCount = 7; + * + * @param value + * The txCount to set. + * + * @return This builder for chaining. + */ + public Builder setTxCount(int value) { + + txCount_ = value; + onChanged(); + return this; + } + + /** + * int32 txCount = 7; + * + * @return This builder for chaining. + */ + public Builder clearTxCount() { + + txCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:HeightPara) + } + + // @@protoc_insertion_point(class_scope:HeightPara) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeightPara parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeightPara(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HeightParasOrBuilder extends + // @@protoc_insertion_point(interface_extends:HeightParas) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .HeightPara items = 1; + */ + java.util.List getItemsList(); + + /** + * repeated .HeightPara items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getItems(int index); + + /** + * repeated .HeightPara items = 1; + */ + int getItemsCount(); + + /** + * repeated .HeightPara items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .HeightPara items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder getItemsOrBuilder(int index); + } + + /** + * Protobuf type {@code HeightParas} + */ + public static final class HeightParas extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HeightParas) + HeightParasOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HeightParas.newBuilder() to construct. + private HeightParas(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HeightParas() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HeightParas(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HeightParas(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; + + /** + * repeated .HeightPara items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated .HeightPara items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } + + /** + * repeated .HeightPara items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated .HeightPara items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getItems(int index) { + return items_.get(index); + } + + /** + * repeated .HeightPara items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas) obj; + + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 HeightParas} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HeightParas) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_HeightParas_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List items_ = java.util.Collections + .emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .HeightPara items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * repeated .HeightPara items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * repeated .HeightPara items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder setItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder addItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .HeightPara items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } + + /** + * repeated .HeightPara items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParaOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .HeightPara items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * repeated .HeightPara items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance()); + } + + /** + * repeated .HeightPara items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightPara.getDefaultInstance()); + } + + /** + * repeated .HeightPara items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:HeightParas) + } + + // @@protoc_insertion_point(class_scope:HeightParas) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeightParas parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeightParas(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeightParas getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChildChainOrBuilder extends + // @@protoc_insertion_point(interface_extends:ChildChain) + com.google.protobuf.MessageOrBuilder { + + /** + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * int32 startIndex = 2; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * bytes childHash = 3; + * + * @return The childHash. + */ + com.google.protobuf.ByteString getChildHash(); + + /** + * int32 txCount = 4; + * + * @return The txCount. + */ + int getTxCount(); + } + + /** + *
+     *记录平行链第一笔交易的index,以及平行链的roothash
+     * title:子链名字,主链的默认是main
+     * startIndex:子链第一笔交易的索引
+     * childHash:子链的根hash
+     * txCount:子链交易的数量
+     * 
+ * + * Protobuf type {@code ChildChain} + */ + public static final class ChildChain extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ChildChain) + ChildChainOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ChildChain.newBuilder() to construct. + private ChildChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChildChain() { + title_ = ""; + childHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChildChain(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChildChain(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 16: { + + startIndex_ = input.readInt32(); + break; + } + case 26: { + + childHash_ = input.readBytes(); + break; + } + case 32: { + + txCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object title_; + + /** + * string title = 1; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 1; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STARTINDEX_FIELD_NUMBER = 2; + private int startIndex_; + + /** + * int32 startIndex = 2; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int CHILDHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString childHash_; + + /** + * bytes childHash = 3; + * + * @return The childHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildHash() { + return childHash_; + } + + public static final int TXCOUNT_FIELD_NUMBER = 4; + private int txCount_; + + /** + * int32 txCount = 4; + * + * @return The txCount. + */ + @java.lang.Override + public int getTxCount() { + return txCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); + } + if (startIndex_ != 0) { + output.writeInt32(2, startIndex_); + } + if (!childHash_.isEmpty()) { + output.writeBytes(3, childHash_); + } + if (txCount_ != 0) { + output.writeInt32(4, txCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); + } + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_); + } + if (!childHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, childHash_); + } + if (txCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, txCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain) obj; + + if (!getTitle().equals(other.getTitle())) + return false; + if (getStartIndex() != other.getStartIndex()) + return false; + if (!getChildHash().equals(other.getChildHash())) + return false; + if (getTxCount() != other.getTxCount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + STARTINDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + CHILDHASH_FIELD_NUMBER; + hash = (53 * hash) + getChildHash().hashCode(); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTxCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *记录平行链第一笔交易的index,以及平行链的roothash
+         * title:子链名字,主链的默认是main
+         * startIndex:子链第一笔交易的索引
+         * childHash:子链的根hash
+         * txCount:子链交易的数量
+         * 
+ * + * Protobuf type {@code ChildChain} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ChildChain) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + title_ = ""; + + startIndex_ = 0; + + childHash_ = com.google.protobuf.ByteString.EMPTY; + + txCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChildChain_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain( + this); + result.title_ = title_; + result.startIndex_ = startIndex_; + result.childHash_ = childHash_; + result.txCount_ = txCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getChildHash() != com.google.protobuf.ByteString.EMPTY) { + setChildHash(other.getChildHash()); + } + if (other.getTxCount() != 0) { + setTxCount(other.getTxCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object title_ = ""; + + /** + * string title = 1; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 1; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 1; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 1; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private int startIndex_; + + /** + * int32 startIndex = 2; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + /** + * int32 startIndex = 2; + * + * @param value + * The startIndex to set. + * + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + onChanged(); + return this; + } + + /** + * int32 startIndex = 2; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + + startIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString childHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes childHash = 3; + * + * @return The childHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildHash() { + return childHash_; + } + + /** + * bytes childHash = 3; + * + * @param value + * The childHash to set. + * + * @return This builder for chaining. + */ + public Builder setChildHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + childHash_ = value; + onChanged(); + return this; + } + + /** + * bytes childHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearChildHash() { + + childHash_ = getDefaultInstance().getChildHash(); + onChanged(); + return this; + } + + private int txCount_; + + /** + * int32 txCount = 4; + * + * @return The txCount. + */ + @java.lang.Override + public int getTxCount() { + return txCount_; + } + + /** + * int32 txCount = 4; + * + * @param value + * The txCount to set. + * + * @return This builder for chaining. + */ + public Builder setTxCount(int value) { + + txCount_ = value; + onChanged(); + return this; + } + + /** + * int32 txCount = 4; + * + * @return This builder for chaining. + */ + public Builder clearTxCount() { + + txCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ChildChain) + } + + // @@protoc_insertion_point(class_scope:ChildChain) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChildChain parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChildChain(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChildChain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqHeightByTitleOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqHeightByTitle) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 height = 1; + * + * @return The height. + */ + long getHeight(); + + /** + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * int32 count = 3; + * + * @return The count. + */ + int getCount(); + + /** + * int32 direction = 4; + * + * @return The direction. + */ + int getDirection(); + } + + /** + *
+     * 通过指定title以及height翻页获取拥有此title交易的区块高度列表
+     * 
+ * + * Protobuf type {@code ReqHeightByTitle} + */ + public static final class ReqHeightByTitle extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqHeightByTitle) + ReqHeightByTitleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqHeightByTitle.newBuilder() to construct. + private ReqHeightByTitle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqHeightByTitle() { + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqHeightByTitle(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqHeightByTitle(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + height_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 24: { + + count_ = input.readInt32(); + break; + } + case 32: { + + direction_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.Builder.class); + } + + public static final int HEIGHT_FIELD_NUMBER = 1; + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; + + /** + * string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 3; + private int count_; + + /** + * int32 count = 3; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + public static final int DIRECTION_FIELD_NUMBER = 4; + private int direction_; + + /** + * int32 direction = 4; + * + * @return The direction. + */ + @java.lang.Override + public int getDirection() { + return direction_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (height_ != 0L) { + output.writeInt64(1, height_); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (count_ != 0) { + output.writeInt32(3, count_); + } + if (direction_ != 0) { + output.writeInt32(4, direction_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, height_); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, count_); + } + if (direction_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, direction_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) obj; + + if (getHeight() != other.getHeight()) + return false; + if (!getTitle().equals(other.getTitle())) + return false; + if (getCount() != other.getCount()) + return false; + if (getDirection() != other.getDirection()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getDirection(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 通过指定title以及height翻页获取拥有此title交易的区块高度列表
+         * 
+ * + * Protobuf type {@code ReqHeightByTitle} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqHeightByTitle) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; + + title_ = ""; + + count_ = 0; + + direction_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqHeightByTitle_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle( + this); + result.height_ = height_; + result.title_ = title_; + result.count_ = count_; + result.direction_ = direction_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.getDefaultInstance()) + return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (other.getCount() != 0) { + setCount(other.getCount()); + } + if (other.getDirection() != 0) { + setDirection(other.getDirection()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 1; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 2; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 2; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private int count_; + + /** + * int32 count = 3; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + /** + * int32 count = 3; + * + * @param value + * The count to set. + * + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + + /** + * int32 count = 3; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0; + onChanged(); + return this; + } + + private int direction_; + + /** + * int32 direction = 4; + * + * @return The direction. + */ + @java.lang.Override + public int getDirection() { + return direction_; + } + + /** + * int32 direction = 4; + * + * @param value + * The direction to set. + * + * @return This builder for chaining. + */ + public Builder setDirection(int value) { + + direction_ = value; + onChanged(); + return this; + } + + /** + * int32 direction = 4; + * + * @return This builder for chaining. + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqHeightByTitle) + } + + // @@protoc_insertion_point(class_scope:ReqHeightByTitle) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqHeightByTitle parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqHeightByTitle(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyHeightByTitleOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyHeightByTitle) + com.google.protobuf.MessageOrBuilder { + + /** + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * repeated .BlockInfo items = 2; + */ + java.util.List getItemsList(); + + /** + * repeated .BlockInfo items = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getItems(int index); + + /** + * repeated .BlockInfo items = 2; + */ + int getItemsCount(); + + /** + * repeated .BlockInfo items = 2; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .BlockInfo items = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder getItemsOrBuilder(int index); + } + + /** + * Protobuf type {@code ReplyHeightByTitle} + */ + public static final class ReplyHeightByTitle extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyHeightByTitle) + ReplyHeightByTitleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyHeightByTitle.newBuilder() to construct. + private ReplyHeightByTitle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyHeightByTitle() { + title_ = ""; + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyHeightByTitle(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyHeightByTitle(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object title_; + + /** + * string title = 1; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 1; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + + /** + * repeated .BlockInfo items = 2; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated .BlockInfo items = 2; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } + + /** + * repeated .BlockInfo items = 2; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated .BlockInfo items = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getItems(int index) { + return items_.get(index); + } + + /** + * repeated .BlockInfo items = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle) obj; + + if (!getTitle().equals(other.getTitle())) + return false; + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyHeightByTitle} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyHeightByTitle) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + title_ = ""; + + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplyHeightByTitle_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle( + this); + int from_bitField0_ = bitField0_; + result.title_ = title_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle + .getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object title_ = ""; + + /** + * string title = 1; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 1; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 1; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 1; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.util.List items_ = java.util.Collections + .emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .BlockInfo items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * repeated .BlockInfo items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * repeated .BlockInfo items = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder setItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder addItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .BlockInfo items = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } + + /** + * repeated .BlockInfo items = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .BlockInfo items = 2; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * repeated .BlockInfo items = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance()); + } + + /** + * repeated .BlockInfo items = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance()); + } + + /** + * repeated .BlockInfo items = 2; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyHeightByTitle) + } + + // @@protoc_insertion_point(class_scope:ReplyHeightByTitle) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyHeightByTitle parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyHeightByTitle(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 height = 1; + * + * @return The height. + */ + long getHeight(); + + /** + * bytes hash = 2; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + } + + /** + *
+     * title平行链交易所在主链区块的信息
+     * 
+ * + * Protobuf type {@code BlockInfo} + */ + public static final class BlockInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockInfo) + BlockInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BlockInfo.newBuilder() to construct. + private BlockInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BlockInfo() { + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BlockInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + height_ = input.readInt64(); + break; + } + case 18: { + + hash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder.class); + } + + public static final int HEIGHT_FIELD_NUMBER = 1; + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int HASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (height_ != 0L) { + output.writeInt64(1, height_); + } + if (!hash_.isEmpty()) { + output.writeBytes(2, hash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, height_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hash_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo) obj; + + if (getHeight() != other.getHeight()) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * title平行链交易所在主链区块的信息
+         * 
+ * + * Protobuf type {@code BlockInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockInfo) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo( + this); + result.height_ = height_; + result.hash_ = hash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo.getDefaultInstance()) + return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 1; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 2; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 2; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BlockInfo) + } + + // @@protoc_insertion_point(class_scope:BlockInfo) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqParaTxByHeightOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqParaTxByHeight) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated int64 items = 1; + * + * @return A list containing the items. + */ + java.util.List getItemsList(); + + /** + * repeated int64 items = 1; + * + * @return The count of items. + */ + int getItemsCount(); + + /** + * repeated int64 items = 1; + * + * @param index + * The index of the element to return. + * + * @return The items at the given index. + */ + long getItems(int index); + + /** + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + + /** + *
+     * 通过高度列表和title获取平行链交易
+     * 
+ * + * Protobuf type {@code ReqParaTxByHeight} + */ + public static final class ReqParaTxByHeight extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqParaTxByHeight) + ReqParaTxByHeightOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqParaTxByHeight.newBuilder() to construct. + private ReqParaTxByHeight(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqParaTxByHeight() { + items_ = emptyLongList(); + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqParaTxByHeight(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqParaTxByHeight(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + items_.addLong(input.readInt64()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + items_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + items_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.LongList items_; + + /** + * repeated int64 items = 1; + * + * @return A list containing the items. + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated int64 items = 1; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated int64 items = 1; + * + * @param index + * The index of the element to return. + * + * @return The items at the given index. + */ + public long getItems(int index) { + return items_.getLong(index); + } + + private int itemsMemoizedSerializedSize = -1; + + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; + + /** + * string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getItemsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(itemsMemoizedSerializedSize); + } + for (int i = 0; i < items_.size(); i++) { + output.writeInt64NoTag(items_.getLong(i)); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < items_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(items_.getLong(i)); + } + size += dataSize; + if (!getItemsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + itemsMemoizedSerializedSize = dataSize; + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) obj; + + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!getTitle().equals(other.getTitle())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 通过高度列表和title获取平行链交易
+         * 
+ * + * Protobuf type {@code ReqParaTxByHeight} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqParaTxByHeight) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeightOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + items_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + title_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqParaTxByHeight_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + items_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + result.title_ = title_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight + .getDefaultInstance()) + return this; + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Internal.LongList items_ = emptyLongList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = mutableCopy(items_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated int64 items = 1; + * + * @return A list containing the items. + */ + public java.util.List getItemsList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(items_) : items_; + } + + /** + * repeated int64 items = 1; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated int64 items = 1; + * + * @param index + * The index of the element to return. + * + * @return The items at the given index. + */ + public long getItems(int index) { + return items_.getLong(index); + } + + /** + * repeated int64 items = 1; + * + * @param index + * The index to set the value at. + * @param value + * The items to set. + * + * @return This builder for chaining. + */ + public Builder setItems(int index, long value) { + ensureItemsIsMutable(); + items_.setLong(index, value); + onChanged(); + return this; + } + + /** + * repeated int64 items = 1; + * + * @param value + * The items to add. + * + * @return This builder for chaining. + */ + public Builder addItems(long value) { + ensureItemsIsMutable(); + items_.addLong(value); + onChanged(); + return this; + } + + /** + * repeated int64 items = 1; + * + * @param values + * The items to add. + * + * @return This builder for chaining. + */ + public Builder addAllItems(java.lang.Iterable values) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + return this; + } + + /** + * repeated int64 items = 1; + * + * @return This builder for chaining. + */ + public Builder clearItems() { + items_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 2; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 2; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqParaTxByHeight) + } + + // @@protoc_insertion_point(class_scope:ReqParaTxByHeight) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqParaTxByHeight parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqParaTxByHeight(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CmpBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:CmpBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + boolean hasBlock(); + + /** + * .Block block = 1; + * + * @return The block. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); + + /** + * .Block block = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); + + /** + * bytes cmpHash = 2; + * + * @return The cmpHash. + */ + com.google.protobuf.ByteString getCmpHash(); + } + + /** + *
+     * 用于比较最优区块的消息结构
+     * 
+ * + * Protobuf type {@code CmpBlock} + */ + public static final class CmpBlock extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CmpBlock) + CmpBlockOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmpBlock.newBuilder() to construct. + private CmpBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmpBlock() { + cmpHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmpBlock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CmpBlock(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; + if (block_ != null) { + subBuilder = block_.toBuilder(); + } + block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(block_); + block_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + cmpHash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.Builder.class); + } + + public static final int BLOCK_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; + + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return block_ != null; + } + + /** + * .Block block = 1; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() + : block_; + } + + /** + * .Block block = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + return getBlock(); + } + + public static final int CMPHASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString cmpHash_; + + /** + * bytes cmpHash = 2; + * + * @return The cmpHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCmpHash() { + return cmpHash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (block_ != null) { + output.writeMessage(1, getBlock()); + } + if (!cmpHash_.isEmpty()) { + output.writeBytes(2, cmpHash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (block_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlock()); + } + if (!cmpHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, cmpHash_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock) obj; + + if (hasBlock() != other.hasBlock()) + return false; + if (hasBlock()) { + if (!getBlock().equals(other.getBlock())) + return false; + } + if (!getCmpHash().equals(other.getCmpHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlock()) { + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + } + hash = (37 * hash) + CMPHASH_FIELD_NUMBER; + hash = (53 * hash) + getCmpHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 CmpBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CmpBlock) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (blockBuilder_ == null) { + block_ = null; + } else { + block_ = null; + blockBuilder_ = null; + } + cmpHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_CmpBlock_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock( + this); + if (blockBuilder_ == null) { + result.block_ = block_; + } else { + result.block_ = blockBuilder_.build(); + } + result.cmpHash_ = cmpHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock.getDefaultInstance()) + return this; + if (other.hasBlock()) { + mergeBlock(other.getBlock()); + } + if (other.getCmpHash() != com.google.protobuf.ByteString.EMPTY) { + setCmpHash(other.getCmpHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; + private com.google.protobuf.SingleFieldBuilderV3 blockBuilder_; + + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + public boolean hasBlock() { + return blockBuilder_ != null || block_ != null; + } + + /** + * .Block block = 1; + * + * @return The block. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + if (blockBuilder_ == null) { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } else { + return blockBuilder_.getMessage(); + } + } + + /** + * .Block block = 1; + */ + public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + block_ = value; + onChanged(); + } else { + blockBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder setBlock( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (blockBuilder_ == null) { + block_ = builderForValue.build(); + onChanged(); + } else { + blockBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (block_ != null) { + block_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_) + .mergeFrom(value).buildPartial(); + } else { + block_ = value; + } + onChanged(); + } else { + blockBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder clearBlock() { + if (blockBuilder_ == null) { + block_ = null; + onChanged(); + } else { + block_ = null; + blockBuilder_ = null; + } + + return this; + } + + /** + * .Block block = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { + + onChanged(); + return getBlockFieldBuilder().getBuilder(); + } + + /** + * .Block block = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + if (blockBuilder_ != null) { + return blockBuilder_.getMessageOrBuilder(); + } else { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } + } + + /** + * .Block block = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockFieldBuilder() { + if (blockBuilder_ == null) { + blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getBlock(), getParentForChildren(), isClean()); + block_ = null; + } + return blockBuilder_; + } + + private com.google.protobuf.ByteString cmpHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes cmpHash = 2; + * + * @return The cmpHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCmpHash() { + return cmpHash_; + } + + /** + * bytes cmpHash = 2; + * + * @param value + * The cmpHash to set. + * + * @return This builder for chaining. + */ + public Builder setCmpHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + cmpHash_ = value; + onChanged(); + return this; + } + + /** + * bytes cmpHash = 2; + * + * @return This builder for chaining. + */ + public Builder clearCmpHash() { + + cmpHash_ = getDefaultInstance().getCmpHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CmpBlock) + } + + // @@protoc_insertion_point(class_scope:CmpBlock) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmpBlock parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CmpBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.CmpBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockBodysOrBuilder extends + // @@protoc_insertion_point(interface_extends:BlockBodys) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .BlockBody items = 1; + */ + java.util.List getItemsList(); + + /** + * repeated .BlockBody items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getItems(int index); + + /** + * repeated .BlockBody items = 1; + */ + int getItemsCount(); + + /** + * repeated .BlockBody items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .BlockBody items = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder getItemsOrBuilder(int index); + } + + /** + *
+     * BlockBodys
+     * 
+ * + * Protobuf type {@code BlockBodys} + */ + public static final class BlockBodys extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BlockBodys) + BlockBodysOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BlockBodys.newBuilder() to construct. + private BlockBodys(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BlockBodys() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlockBodys(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BlockBodys(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; + + /** + * repeated .BlockBody items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated .BlockBody items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } + + /** + * repeated .BlockBody items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated .BlockBody items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getItems(int index) { + return items_.get(index); + } + + /** + * repeated .BlockBody items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys) obj; + + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * BlockBodys
+         * 
+ * + * Protobuf type {@code BlockBodys} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BlockBodys) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodysOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_BlockBodys_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List items_ = java.util.Collections + .emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .BlockBody items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * repeated .BlockBody items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * repeated .BlockBody items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder setItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder addItems(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .BlockBody items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } + + /** + * repeated .BlockBody items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodyOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .BlockBody items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * repeated .BlockBody items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance()); + } + + /** + * repeated .BlockBody items = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBody.getDefaultInstance()); + } + + /** + * repeated .BlockBody items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BlockBodys) + } + + // @@protoc_insertion_point(class_scope:BlockBodys) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockBodys parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlockBodys(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockBodys getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChunkRecordsOrBuilder extends + // @@protoc_insertion_point(interface_extends:ChunkRecords) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ChunkInfo infos = 1; + */ + java.util.List getInfosList(); + + /** + * repeated .ChunkInfo infos = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getInfos(int index); + + /** + * repeated .ChunkInfo infos = 1; + */ + int getInfosCount(); + + /** + * repeated .ChunkInfo infos = 1; + */ + java.util.List getInfosOrBuilderList(); + + /** + * repeated .ChunkInfo infos = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder getInfosOrBuilder(int index); + } + + /** + *
+     * ChunkRecords
+     * 
+ * + * Protobuf type {@code ChunkRecords} + */ + public static final class ChunkRecords extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ChunkRecords) + ChunkRecordsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ChunkRecords.newBuilder() to construct. + private ChunkRecords(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChunkRecords() { + infos_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChunkRecords(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChunkRecords(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + infos_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + infos_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + infos_ = java.util.Collections.unmodifiableList(infos_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.Builder.class); + } + + public static final int INFOS_FIELD_NUMBER = 1; + private java.util.List infos_; + + /** + * repeated .ChunkInfo infos = 1; + */ + @java.lang.Override + public java.util.List getInfosList() { + return infos_; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + @java.lang.Override + public java.util.List getInfosOrBuilderList() { + return infos_; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + @java.lang.Override + public int getInfosCount() { + return infos_.size(); + } + + /** + * repeated .ChunkInfo infos = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getInfos(int index) { + return infos_.get(index); + } + + /** + * repeated .ChunkInfo infos = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder getInfosOrBuilder(int index) { + return infos_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < infos_.size(); i++) { + output.writeMessage(1, infos_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < infos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, infos_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords) obj; + + if (!getInfosList().equals(other.getInfosList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInfosCount() > 0) { + hash = (37 * hash) + INFOS_FIELD_NUMBER; + hash = (53 * hash) + getInfosList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * ChunkRecords
+         * 
+ * + * Protobuf type {@code ChunkRecords} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ChunkRecords) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecordsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInfosFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (infosBuilder_ == null) { + infos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + infosBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkRecords_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords( + this); + int from_bitField0_ = bitField0_; + if (infosBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + infos_ = java.util.Collections.unmodifiableList(infos_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.infos_ = infos_; + } else { + result.infos_ = infosBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords.getDefaultInstance()) + return this; + if (infosBuilder_ == null) { + if (!other.infos_.isEmpty()) { + if (infos_.isEmpty()) { + infos_ = other.infos_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfosIsMutable(); + infos_.addAll(other.infos_); + } + onChanged(); + } + } else { + if (!other.infos_.isEmpty()) { + if (infosBuilder_.isEmpty()) { + infosBuilder_.dispose(); + infosBuilder_ = null; + infos_ = other.infos_; + bitField0_ = (bitField0_ & ~0x00000001); + infosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInfosFieldBuilder() : null; + } else { + infosBuilder_.addAllMessages(other.infos_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List infos_ = java.util.Collections + .emptyList(); + + private void ensureInfosIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + infos_ = new java.util.ArrayList( + infos_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 infosBuilder_; + + /** + * repeated .ChunkInfo infos = 1; + */ + public java.util.List getInfosList() { + if (infosBuilder_ == null) { + return java.util.Collections.unmodifiableList(infos_); + } else { + return infosBuilder_.getMessageList(); + } + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public int getInfosCount() { + if (infosBuilder_ == null) { + return infos_.size(); + } else { + return infosBuilder_.getCount(); + } + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getInfos(int index) { + if (infosBuilder_ == null) { + return infos_.get(index); + } else { + return infosBuilder_.getMessage(index); + } + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder setInfos(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo value) { + if (infosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfosIsMutable(); + infos_.set(index, value); + onChanged(); + } else { + infosBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder setInfos(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder builderForValue) { + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.set(index, builderForValue.build()); + onChanged(); + } else { + infosBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder addInfos(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo value) { + if (infosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfosIsMutable(); + infos_.add(value); + onChanged(); + } else { + infosBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder addInfos(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo value) { + if (infosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfosIsMutable(); + infos_.add(index, value); + onChanged(); + } else { + infosBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder addInfos( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder builderForValue) { + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.add(builderForValue.build()); + onChanged(); + } else { + infosBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder addInfos(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder builderForValue) { + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.add(index, builderForValue.build()); + onChanged(); + } else { + infosBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder addAllInfos( + java.lang.Iterable values) { + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, infos_); + onChanged(); + } else { + infosBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder clearInfos() { + if (infosBuilder_ == null) { + infos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infosBuilder_.clear(); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public Builder removeInfos(int index) { + if (infosBuilder_ == null) { + ensureInfosIsMutable(); + infos_.remove(index); + onChanged(); + } else { + infosBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder getInfosBuilder(int index) { + return getInfosFieldBuilder().getBuilder(index); + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder getInfosOrBuilder( + int index) { + if (infosBuilder_ == null) { + return infos_.get(index); + } else { + return infosBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public java.util.List getInfosOrBuilderList() { + if (infosBuilder_ != null) { + return infosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(infos_); + } + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder addInfosBuilder() { + return getInfosFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance()); + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder addInfosBuilder(int index) { + return getInfosFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance()); + } + + /** + * repeated .ChunkInfo infos = 1; + */ + public java.util.List getInfosBuilderList() { + return getInfosFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getInfosFieldBuilder() { + if (infosBuilder_ == null) { + infosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + infos_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + infos_ = null; + } + return infosBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ChunkRecords) + } + + // @@protoc_insertion_point(class_scope:ChunkRecords) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkRecords parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChunkRecords(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkRecords getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChunkInfoMsgOrBuilder extends + // @@protoc_insertion_point(interface_extends:ChunkInfoMsg) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes chunkHash = 1; + * + * @return The chunkHash. + */ + com.google.protobuf.ByteString getChunkHash(); + + /** + * int64 start = 2; + * + * @return The start. + */ + long getStart(); + + /** + * int64 end = 3; + * + * @return The end. + */ + long getEnd(); + } + + /** + *
+     * ChunkInfoMsg 用于消息传递
+     * 
+ * + * Protobuf type {@code ChunkInfoMsg} + */ + public static final class ChunkInfoMsg extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ChunkInfoMsg) + ChunkInfoMsgOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ChunkInfoMsg.newBuilder() to construct. + private ChunkInfoMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChunkInfoMsg() { + chunkHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChunkInfoMsg(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChunkInfoMsg(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + chunkHash_ = input.readBytes(); + break; + } + case 16: { + + start_ = input.readInt64(); + break; + } + case 24: { + + end_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.Builder.class); + } + + public static final int CHUNKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString chunkHash_; + + /** + * bytes chunkHash = 1; + * + * @return The chunkHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChunkHash() { + return chunkHash_; + } + + public static final int START_FIELD_NUMBER = 2; + private long start_; + + /** + * int64 start = 2; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 3; + private long end_; + + /** + * int64 end = 3; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!chunkHash_.isEmpty()) { + output.writeBytes(1, chunkHash_); + } + if (start_ != 0L) { + output.writeInt64(2, start_); + } + if (end_ != 0L) { + output.writeInt64(3, end_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!chunkHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, chunkHash_); + } + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, end_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg) obj; + + if (!getChunkHash().equals(other.getChunkHash())) + return false; + if (getStart() != other.getStart()) + return false; + if (getEnd() != other.getEnd()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHUNKHASH_FIELD_NUMBER; + hash = (53 * hash) + getChunkHash().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * ChunkInfoMsg 用于消息传递
+         * 
+ * + * Protobuf type {@code ChunkInfoMsg} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ChunkInfoMsg) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + chunkHash_ = com.google.protobuf.ByteString.EMPTY; + + start_ = 0L; + + end_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfoMsg_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg( + this); + result.chunkHash_ = chunkHash_; + result.start_ = start_; + result.end_ = end_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg.getDefaultInstance()) + return this; + if (other.getChunkHash() != com.google.protobuf.ByteString.EMPTY) { + setChunkHash(other.getChunkHash()); + } + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString chunkHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes chunkHash = 1; + * + * @return The chunkHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChunkHash() { + return chunkHash_; + } + + /** + * bytes chunkHash = 1; + * + * @param value + * The chunkHash to set. + * + * @return This builder for chaining. + */ + public Builder setChunkHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + chunkHash_ = value; + onChanged(); + return this; + } + + /** + * bytes chunkHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearChunkHash() { + + chunkHash_ = getDefaultInstance().getChunkHash(); + onChanged(); + return this; + } + + private long start_; + + /** + * int64 start = 2; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + /** + * int64 start = 2; + * + * @param value + * The start to set. + * + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + onChanged(); + return this; + } + + /** + * int64 start = 2; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0L; + onChanged(); + return this; + } + + private long end_; + + /** + * int64 end = 3; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + /** + * int64 end = 3; + * + * @param value + * The end to set. + * + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + onChanged(); + return this; + } + + /** + * int64 end = 3; + * + * @return This builder for chaining. + */ + public Builder clearEnd() { + + end_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ChunkInfoMsg) + } + + // @@protoc_insertion_point(class_scope:ChunkInfoMsg) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkInfoMsg parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChunkInfoMsg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoMsg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChunkInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ChunkInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 chunkNum = 1; + * + * @return The chunkNum. + */ + long getChunkNum(); + + /** + * bytes chunkHash = 2; + * + * @return The chunkHash. + */ + com.google.protobuf.ByteString getChunkHash(); + + /** + * int64 start = 3; + * + * @return The start. + */ + long getStart(); + + /** + * int64 end = 4; + * + * @return The end. + */ + long getEnd(); + } + + /** + *
+     * ChunkInfo用于记录chunk的信息
+     * 
+ * + * Protobuf type {@code ChunkInfo} + */ + public static final class ChunkInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ChunkInfo) + ChunkInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ChunkInfo.newBuilder() to construct. + private ChunkInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChunkInfo() { + chunkHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChunkInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChunkInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + chunkNum_ = input.readInt64(); + break; + } + case 18: { + + chunkHash_ = input.readBytes(); + break; + } + case 24: { + + start_ = input.readInt64(); + break; + } + case 32: { + + end_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder.class); + } + + public static final int CHUNKNUM_FIELD_NUMBER = 1; + private long chunkNum_; + + /** + * int64 chunkNum = 1; + * + * @return The chunkNum. + */ + @java.lang.Override + public long getChunkNum() { + return chunkNum_; + } + + public static final int CHUNKHASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString chunkHash_; + + /** + * bytes chunkHash = 2; + * + * @return The chunkHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChunkHash() { + return chunkHash_; + } + + public static final int START_FIELD_NUMBER = 3; + private long start_; + + /** + * int64 start = 3; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 4; + private long end_; + + /** + * int64 end = 4; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (chunkNum_ != 0L) { + output.writeInt64(1, chunkNum_); + } + if (!chunkHash_.isEmpty()) { + output.writeBytes(2, chunkHash_); + } + if (start_ != 0L) { + output.writeInt64(3, start_); + } + if (end_ != 0L) { + output.writeInt64(4, end_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (chunkNum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, chunkNum_); + } + if (!chunkHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, chunkHash_); + } + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, end_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo) obj; + + if (getChunkNum() != other.getChunkNum()) + return false; + if (!getChunkHash().equals(other.getChunkHash())) + return false; + if (getStart() != other.getStart()) + return false; + if (getEnd() != other.getEnd()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHUNKNUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getChunkNum()); + hash = (37 * hash) + CHUNKHASH_FIELD_NUMBER; + hash = (53 * hash) + getChunkHash().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * ChunkInfo用于记录chunk的信息
+         * 
+ * + * Protobuf type {@code ChunkInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ChunkInfo) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + chunkNum_ = 0L; + + chunkHash_ = com.google.protobuf.ByteString.EMPTY; + + start_ = 0L; + + end_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ChunkInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo( + this); + result.chunkNum_ = chunkNum_; + result.chunkHash_ = chunkHash_; + result.start_ = start_; + result.end_ = end_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo.getDefaultInstance()) + return this; + if (other.getChunkNum() != 0L) { + setChunkNum(other.getChunkNum()); + } + if (other.getChunkHash() != com.google.protobuf.ByteString.EMPTY) { + setChunkHash(other.getChunkHash()); + } + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long chunkNum_; + + /** + * int64 chunkNum = 1; + * + * @return The chunkNum. + */ + @java.lang.Override + public long getChunkNum() { + return chunkNum_; + } + + /** + * int64 chunkNum = 1; + * + * @param value + * The chunkNum to set. + * + * @return This builder for chaining. + */ + public Builder setChunkNum(long value) { + + chunkNum_ = value; + onChanged(); + return this; + } + + /** + * int64 chunkNum = 1; + * + * @return This builder for chaining. + */ + public Builder clearChunkNum() { + + chunkNum_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString chunkHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes chunkHash = 2; + * + * @return The chunkHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChunkHash() { + return chunkHash_; + } + + /** + * bytes chunkHash = 2; + * + * @param value + * The chunkHash to set. + * + * @return This builder for chaining. + */ + public Builder setChunkHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + chunkHash_ = value; + onChanged(); + return this; + } + + /** + * bytes chunkHash = 2; + * + * @return This builder for chaining. + */ + public Builder clearChunkHash() { + + chunkHash_ = getDefaultInstance().getChunkHash(); + onChanged(); + return this; + } + + private long start_; + + /** + * int64 start = 3; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + /** + * int64 start = 3; + * + * @param value + * The start to set. + * + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + onChanged(); + return this; + } + + /** + * int64 start = 3; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0L; + onChanged(); + return this; + } + + private long end_; + + /** + * int64 end = 4; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + /** + * int64 end = 4; + * + * @param value + * The end to set. + * + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + onChanged(); + return this; + } + + /** + * int64 end = 4; + * + * @return This builder for chaining. + */ + public Builder clearEnd() { + + end_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ChunkInfo) + } + + // @@protoc_insertion_point(class_scope:ChunkInfo) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChunkInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChunkInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqChunkRecordsOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqChunkRecords) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 start = 1; + * + * @return The start. + */ + long getStart(); + + /** + * int64 end = 2; + * + * @return The end. + */ + long getEnd(); + + /** + * bool isDetail = 3; + * + * @return The isDetail. + */ + boolean getIsDetail(); + + /** + * repeated string pid = 4; + * + * @return A list containing the pid. + */ + java.util.List getPidList(); + + /** + * repeated string pid = 4; + * + * @return The count of pid. + */ + int getPidCount(); + + /** + * repeated string pid = 4; + * + * @param index + * The index of the element to return. + * + * @return The pid at the given index. + */ + java.lang.String getPid(int index); + + /** + * repeated string pid = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pid at the given index. + */ + com.google.protobuf.ByteString getPidBytes(int index); + } + + /** + *
+     *获取ChunkRecord信息
+     * 	 start : 获取Chunk的开始高度
+     *	 end :获取Chunk的结束高度
+     * 	 Isdetail : 是否需要获取所有Chunk Record 信息,false时候获取到chunkNum--->chunkhash的KV对,true获取全部
+     * 	 pid : peer列表
+     * 
+ * + * Protobuf type {@code ReqChunkRecords} + */ + public static final class ReqChunkRecords extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqChunkRecords) + ReqChunkRecordsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqChunkRecords.newBuilder() to construct. + private ReqChunkRecords(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqChunkRecords() { + pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqChunkRecords(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqChunkRecords(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + start_ = input.readInt64(); + break; + } + case 16: { + + end_ = input.readInt64(); + break; + } + case 24: { + + isDetail_ = input.readBool(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pid_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pid_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + pid_ = pid_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.Builder.class); + } + + public static final int START_FIELD_NUMBER = 1; + private long start_; + + /** + * int64 start = 1; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 2; + private long end_; + + /** + * int64 end = 2; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + public static final int ISDETAIL_FIELD_NUMBER = 3; + private boolean isDetail_; + + /** + * bool isDetail = 3; + * + * @return The isDetail. + */ + @java.lang.Override + public boolean getIsDetail() { + return isDetail_; + } + + public static final int PID_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList pid_; + + /** + * repeated string pid = 4; + * + * @return A list containing the pid. + */ + public com.google.protobuf.ProtocolStringList getPidList() { + return pid_; + } + + /** + * repeated string pid = 4; + * + * @return The count of pid. + */ + public int getPidCount() { + return pid_.size(); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the element to return. + * + * @return The pid at the given index. + */ + public java.lang.String getPid(int index) { + return pid_.get(index); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pid at the given index. + */ + public com.google.protobuf.ByteString getPidBytes(int index) { + return pid_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (start_ != 0L) { + output.writeInt64(1, start_); + } + if (end_ != 0L) { + output.writeInt64(2, end_); + } + if (isDetail_ != false) { + output.writeBool(3, isDetail_); + } + for (int i = 0; i < pid_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pid_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, end_); + } + if (isDetail_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isDetail_); + } + { + int dataSize = 0; + for (int i = 0; i < pid_.size(); i++) { + dataSize += computeStringSizeNoTag(pid_.getRaw(i)); + } + size += dataSize; + size += 1 * getPidList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords) obj; + + if (getStart() != other.getStart()) + return false; + if (getEnd() != other.getEnd()) + return false; + if (getIsDetail() != other.getIsDetail()) + return false; + if (!getPidList().equals(other.getPidList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (37 * hash) + ISDETAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDetail()); + if (getPidCount() > 0) { + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPidList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *获取ChunkRecord信息
+         * 	 start : 获取Chunk的开始高度
+         *	 end :获取Chunk的结束高度
+         * 	 Isdetail : 是否需要获取所有Chunk Record 信息,false时候获取到chunkNum--->chunkhash的KV对,true获取全部
+         * 	 pid : peer列表
+         * 
+ * + * Protobuf type {@code ReqChunkRecords} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqChunkRecords) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecordsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + start_ = 0L; + + end_ = 0L; + + isDetail_ = false; + + pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords( + this); + int from_bitField0_ = bitField0_; + result.start_ = start_; + result.end_ = end_; + result.isDetail_ = isDetail_; + if (((bitField0_ & 0x00000001) != 0)) { + pid_ = pid_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pid_ = pid_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.getDefaultInstance()) + return this; + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + if (other.getIsDetail() != false) { + setIsDetail(other.getIsDetail()); + } + if (!other.pid_.isEmpty()) { + if (pid_.isEmpty()) { + pid_ = other.pid_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePidIsMutable(); + pid_.addAll(other.pid_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long start_; + + /** + * int64 start = 1; + * + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + /** + * int64 start = 1; + * + * @param value + * The start to set. + * + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + onChanged(); + return this; + } + + /** + * int64 start = 1; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0L; + onChanged(); + return this; + } + + private long end_; + + /** + * int64 end = 2; + * + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + /** + * int64 end = 2; + * + * @param value + * The end to set. + * + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + onChanged(); + return this; + } + + /** + * int64 end = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnd() { + + end_ = 0L; + onChanged(); + return this; + } + + private boolean isDetail_; + + /** + * bool isDetail = 3; + * + * @return The isDetail. + */ + @java.lang.Override + public boolean getIsDetail() { + return isDetail_; + } + + /** + * bool isDetail = 3; + * + * @param value + * The isDetail to set. + * + * @return This builder for chaining. + */ + public Builder setIsDetail(boolean value) { + + isDetail_ = value; + onChanged(); + return this; + } + + /** + * bool isDetail = 3; + * + * @return This builder for chaining. + */ + public Builder clearIsDetail() { + + isDetail_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePidIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pid_ = new com.google.protobuf.LazyStringArrayList(pid_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string pid = 4; + * + * @return A list containing the pid. + */ + public com.google.protobuf.ProtocolStringList getPidList() { + return pid_.getUnmodifiableView(); + } + + /** + * repeated string pid = 4; + * + * @return The count of pid. + */ + public int getPidCount() { + return pid_.size(); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the element to return. + * + * @return The pid at the given index. + */ + public java.lang.String getPid(int index) { + return pid_.get(index); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pid at the given index. + */ + public com.google.protobuf.ByteString getPidBytes(int index) { + return pid_.getByteString(index); + } + + /** + * repeated string pid = 4; + * + * @param index + * The index to set the value at. + * @param value + * The pid to set. + * + * @return This builder for chaining. + */ + public Builder setPid(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidIsMutable(); + pid_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @param value + * The pid to add. + * + * @return This builder for chaining. + */ + public Builder addPid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidIsMutable(); + pid_.add(value); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @param values + * The pid to add. + * + * @return This builder for chaining. + */ + public Builder addAllPid(java.lang.Iterable values) { + ensurePidIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pid_); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @return This builder for chaining. + */ + public Builder clearPid() { + pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string pid = 4; + * + * @param value + * The bytes of the pid to add. + * + * @return This builder for chaining. + */ + public Builder addPidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePidIsMutable(); + pid_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqChunkRecords) + } + + // @@protoc_insertion_point(class_scope:ReqChunkRecords) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqChunkRecords parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqChunkRecords(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PushSubscribeReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:PushSubscribeReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string URL = 2; + * + * @return The uRL. + */ + java.lang.String getURL(); + + /** + * string URL = 2; + * + * @return The bytes for uRL. + */ + com.google.protobuf.ByteString getURLBytes(); + + /** + * string encode = 3; + * + * @return The encode. + */ + java.lang.String getEncode(); + + /** + * string encode = 3; + * + * @return The bytes for encode. + */ + com.google.protobuf.ByteString getEncodeBytes(); + + /** + * int64 lastSequence = 4; + * + * @return The lastSequence. + */ + long getLastSequence(); + + /** + * int64 lastHeight = 5; + * + * @return The lastHeight. + */ + long getLastHeight(); + + /** + * string lastBlockHash = 6; + * + * @return The lastBlockHash. + */ + java.lang.String getLastBlockHash(); + + /** + * string lastBlockHash = 6; + * + * @return The bytes for lastBlockHash. + */ + com.google.protobuf.ByteString getLastBlockHashBytes(); + + /** + *
+         * 0:代表区块;1:代表区块头信息;2:代表交易回执
+         * 
+ * + * int32 type = 7; + * + * @return The type. + */ + int getType(); + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + int getContractCount(); + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + boolean containsContract(java.lang.String key); + + /** + * Use {@link #getContractMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getContract(); + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + java.util.Map getContractMap(); + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + + boolean getContractOrDefault(java.lang.String key, boolean defaultValue); + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + + boolean getContractOrThrow(java.lang.String key); + } + + /** + * Protobuf type {@code PushSubscribeReq} + */ + public static final class PushSubscribeReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:PushSubscribeReq) + PushSubscribeReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PushSubscribeReq.newBuilder() to construct. + private PushSubscribeReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PushSubscribeReq() { + name_ = ""; + uRL_ = ""; + encode_ = ""; + lastBlockHash_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PushSubscribeReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PushSubscribeReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + uRL_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + encode_ = s; + break; + } + case 32: { + + lastSequence_ = input.readInt64(); + break; + } + case 40: { + + lastHeight_ = input.readInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + lastBlockHash_ = s; + break; + } + case 56: { + + type_ = input.readInt32(); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contract_ = com.google.protobuf.MapField + .newMapField(ContractDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry contract__ = input + .readMessage(ContractDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + contract_.getMutableMap().put(contract__.getKey(), contract__.getValue()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + return internalGetContract(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FIELD_NUMBER = 2; + private volatile java.lang.Object uRL_; + + /** + * string URL = 2; + * + * @return The uRL. + */ + @java.lang.Override + public java.lang.String getURL() { + java.lang.Object ref = uRL_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uRL_ = s; + return s; + } + } + + /** + * string URL = 2; + * + * @return The bytes for uRL. + */ + @java.lang.Override + public com.google.protobuf.ByteString getURLBytes() { + java.lang.Object ref = uRL_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uRL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENCODE_FIELD_NUMBER = 3; + private volatile java.lang.Object encode_; + + /** + * string encode = 3; + * + * @return The encode. + */ + @java.lang.Override + public java.lang.String getEncode() { + java.lang.Object ref = encode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + encode_ = s; + return s; + } + } + + /** + * string encode = 3; + * + * @return The bytes for encode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodeBytes() { + java.lang.Object ref = encode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + encode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTSEQUENCE_FIELD_NUMBER = 4; + private long lastSequence_; + + /** + * int64 lastSequence = 4; + * + * @return The lastSequence. + */ + @java.lang.Override + public long getLastSequence() { + return lastSequence_; + } + + public static final int LASTHEIGHT_FIELD_NUMBER = 5; + private long lastHeight_; + + /** + * int64 lastHeight = 5; + * + * @return The lastHeight. + */ + @java.lang.Override + public long getLastHeight() { + return lastHeight_; + } + + public static final int LASTBLOCKHASH_FIELD_NUMBER = 6; + private volatile java.lang.Object lastBlockHash_; + + /** + * string lastBlockHash = 6; + * + * @return The lastBlockHash. + */ + @java.lang.Override + public java.lang.String getLastBlockHash() { + java.lang.Object ref = lastBlockHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastBlockHash_ = s; + return s; + } + } + + /** + * string lastBlockHash = 6; + * + * @return The bytes for lastBlockHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLastBlockHashBytes() { + java.lang.Object ref = lastBlockHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastBlockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 7; + private int type_; + + /** + *
+         * 0:代表区块;1:代表区块头信息;2:代表交易回执
+         * 
+ * + * int32 type = 7; + * + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + + public static final int CONTRACT_FIELD_NUMBER = 8; + + private static final class ContractDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_ContractEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BOOL, + false); + } + + private com.google.protobuf.MapField contract_; + + private com.google.protobuf.MapField internalGetContract() { + if (contract_ == null) { + return com.google.protobuf.MapField.emptyMapField(ContractDefaultEntryHolder.defaultEntry); + } + return contract_; + } + + public int getContractCount() { + return internalGetContract().getMap().size(); + } + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + + @java.lang.Override + public boolean containsContract(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetContract().getMap().containsKey(key); + } + + /** + * Use {@link #getContractMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getContract() { + return getContractMap(); + } + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + @java.lang.Override + + public java.util.Map getContractMap() { + return internalGetContract().getMap(); + } + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + @java.lang.Override + + public boolean getContractOrDefault(java.lang.String key, boolean defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetContract().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * 允许订阅多个类型的交易回执
+         * 
+ * + * map<string, bool> contract = 8; + */ + @java.lang.Override + + public boolean getContractOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetContract().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getURLBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uRL_); + } + if (!getEncodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, encode_); + } + if (lastSequence_ != 0L) { + output.writeInt64(4, lastSequence_); + } + if (lastHeight_ != 0L) { + output.writeInt64(5, lastHeight_); + } + if (!getLastBlockHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lastBlockHash_); + } + if (type_ != 0) { + output.writeInt32(7, type_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(output, internalGetContract(), + ContractDefaultEntryHolder.defaultEntry, 8); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getURLBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uRL_); + } + if (!getEncodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, encode_); + } + if (lastSequence_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, lastSequence_); + } + if (lastHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, lastHeight_); + } + if (!getLastBlockHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lastBlockHash_); + } + if (type_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, type_); + } + for (java.util.Map.Entry entry : internalGetContract().getMap() + .entrySet()) { + com.google.protobuf.MapEntry contract__ = ContractDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, contract__); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getURL().equals(other.getURL())) + return false; + if (!getEncode().equals(other.getEncode())) + return false; + if (getLastSequence() != other.getLastSequence()) + return false; + if (getLastHeight() != other.getLastHeight()) + return false; + if (!getLastBlockHash().equals(other.getLastBlockHash())) + return false; + if (getType() != other.getType()) + return false; + if (!internalGetContract().equals(other.internalGetContract())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getURL().hashCode(); + hash = (37 * hash) + ENCODE_FIELD_NUMBER; + hash = (53 * hash) + getEncode().hashCode(); + hash = (37 * hash) + LASTSEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastSequence()); + hash = (37 * hash) + LASTHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastHeight()); + hash = (37 * hash) + LASTBLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getLastBlockHash().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType(); + if (!internalGetContract().getMap().isEmpty()) { + hash = (37 * hash) + CONTRACT_FIELD_NUMBER; + hash = (53 * hash) + internalGetContract().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 PushSubscribeReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:PushSubscribeReq) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + return internalGetContract(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 8: + return internalGetMutableContract(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + uRL_ = ""; + + encode_ = ""; + + lastSequence_ = 0L; + + lastHeight_ = 0L; + + lastBlockHash_ = ""; + + type_ = 0; + + internalGetMutableContract().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq( + this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.uRL_ = uRL_; + result.encode_ = encode_; + result.lastSequence_ = lastSequence_; + result.lastHeight_ = lastHeight_; + result.lastBlockHash_ = lastBlockHash_; + result.type_ = type_; + result.contract_ = internalGetContract(); + result.contract_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getURL().isEmpty()) { + uRL_ = other.uRL_; + onChanged(); + } + if (!other.getEncode().isEmpty()) { + encode_ = other.encode_; + onChanged(); + } + if (other.getLastSequence() != 0L) { + setLastSequence(other.getLastSequence()); + } + if (other.getLastHeight() != 0L) { + setLastHeight(other.getLastHeight()); + } + if (!other.getLastBlockHash().isEmpty()) { + lastBlockHash_ = other.lastBlockHash_; + onChanged(); + } + if (other.getType() != 0) { + setType(other.getType()); + } + internalGetMutableContract().mergeFrom(other.internalGetContract()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object uRL_ = ""; + + /** + * string URL = 2; + * + * @return The uRL. + */ + public java.lang.String getURL() { + java.lang.Object ref = uRL_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uRL_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string URL = 2; + * + * @return The bytes for uRL. + */ + public com.google.protobuf.ByteString getURLBytes() { + java.lang.Object ref = uRL_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + uRL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string URL = 2; + * + * @param value + * The uRL to set. + * + * @return This builder for chaining. + */ + public Builder setURL(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uRL_ = value; + onChanged(); + return this; + } + + /** + * string URL = 2; + * + * @return This builder for chaining. + */ + public Builder clearURL() { + + uRL_ = getDefaultInstance().getURL(); + onChanged(); + return this; + } + + /** + * string URL = 2; + * + * @param value + * The bytes for uRL to set. + * + * @return This builder for chaining. + */ + public Builder setURLBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uRL_ = value; + onChanged(); + return this; + } + + private java.lang.Object encode_ = ""; + + /** + * string encode = 3; + * + * @return The encode. + */ + public java.lang.String getEncode() { + java.lang.Object ref = encode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + encode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string encode = 3; + * + * @return The bytes for encode. + */ + public com.google.protobuf.ByteString getEncodeBytes() { + java.lang.Object ref = encode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + encode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string encode = 3; + * + * @param value + * The encode to set. + * + * @return This builder for chaining. + */ + public Builder setEncode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + encode_ = value; + onChanged(); + return this; + } + + /** + * string encode = 3; + * + * @return This builder for chaining. + */ + public Builder clearEncode() { + + encode_ = getDefaultInstance().getEncode(); + onChanged(); + return this; + } + + /** + * string encode = 3; + * + * @param value + * The bytes for encode to set. + * + * @return This builder for chaining. + */ + public Builder setEncodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + encode_ = value; + onChanged(); + return this; + } + + private long lastSequence_; + + /** + * int64 lastSequence = 4; + * + * @return The lastSequence. + */ + @java.lang.Override + public long getLastSequence() { + return lastSequence_; + } + + /** + * int64 lastSequence = 4; + * + * @param value + * The lastSequence to set. + * + * @return This builder for chaining. + */ + public Builder setLastSequence(long value) { + + lastSequence_ = value; + onChanged(); + return this; + } + + /** + * int64 lastSequence = 4; + * + * @return This builder for chaining. + */ + public Builder clearLastSequence() { + + lastSequence_ = 0L; + onChanged(); + return this; + } + + private long lastHeight_; + + /** + * int64 lastHeight = 5; + * + * @return The lastHeight. + */ + @java.lang.Override + public long getLastHeight() { + return lastHeight_; + } + + /** + * int64 lastHeight = 5; + * + * @param value + * The lastHeight to set. + * + * @return This builder for chaining. + */ + public Builder setLastHeight(long value) { + + lastHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 lastHeight = 5; + * + * @return This builder for chaining. + */ + public Builder clearLastHeight() { + + lastHeight_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object lastBlockHash_ = ""; + + /** + * string lastBlockHash = 6; + * + * @return The lastBlockHash. + */ + public java.lang.String getLastBlockHash() { + java.lang.Object ref = lastBlockHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastBlockHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string lastBlockHash = 6; + * + * @return The bytes for lastBlockHash. + */ + public com.google.protobuf.ByteString getLastBlockHashBytes() { + java.lang.Object ref = lastBlockHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + lastBlockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string lastBlockHash = 6; + * + * @param value + * The lastBlockHash to set. + * + * @return This builder for chaining. + */ + public Builder setLastBlockHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastBlockHash_ = value; + onChanged(); + return this; + } + + /** + * string lastBlockHash = 6; + * + * @return This builder for chaining. + */ + public Builder clearLastBlockHash() { + + lastBlockHash_ = getDefaultInstance().getLastBlockHash(); + onChanged(); + return this; + } + + /** + * string lastBlockHash = 6; + * + * @param value + * The bytes for lastBlockHash to set. + * + * @return This builder for chaining. + */ + public Builder setLastBlockHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastBlockHash_ = value; + onChanged(); + return this; + } + + private int type_; + + /** + *
+             * 0:代表区块;1:代表区块头信息;2:代表交易回执
+             * 
+ * + * int32 type = 7; + * + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + + /** + *
+             * 0:代表区块;1:代表区块头信息;2:代表交易回执
+             * 
+ * + * int32 type = 7; + * + * @param value + * The type to set. + * + * @return This builder for chaining. + */ + public Builder setType(int value) { + + type_ = value; + onChanged(); + return this; + } + + /** + *
+             * 0:代表区块;1:代表区块头信息;2:代表交易回执
+             * 
+ * + * int32 type = 7; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField contract_; + + private com.google.protobuf.MapField internalGetContract() { + if (contract_ == null) { + return com.google.protobuf.MapField.emptyMapField(ContractDefaultEntryHolder.defaultEntry); + } + return contract_; + } + + private com.google.protobuf.MapField internalGetMutableContract() { + onChanged(); + ; + if (contract_ == null) { + contract_ = com.google.protobuf.MapField.newMapField(ContractDefaultEntryHolder.defaultEntry); + } + if (!contract_.isMutable()) { + contract_ = contract_.copy(); + } + return contract_; + } + + public int getContractCount() { + return internalGetContract().getMap().size(); + } + + /** + *
+             * 允许订阅多个类型的交易回执
+             * 
+ * + * map<string, bool> contract = 8; + */ + + @java.lang.Override + public boolean containsContract(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetContract().getMap().containsKey(key); + } + + /** + * Use {@link #getContractMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getContract() { + return getContractMap(); + } + + /** + *
+             * 允许订阅多个类型的交易回执
+             * 
+ * + * map<string, bool> contract = 8; + */ + @java.lang.Override + + public java.util.Map getContractMap() { + return internalGetContract().getMap(); + } + + /** + *
+             * 允许订阅多个类型的交易回执
+             * 
+ * + * map<string, bool> contract = 8; + */ + @java.lang.Override + + public boolean getContractOrDefault(java.lang.String key, boolean defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetContract().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+             * 允许订阅多个类型的交易回执
+             * 
+ * + * map<string, bool> contract = 8; + */ + @java.lang.Override + + public boolean getContractOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetContract().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearContract() { + internalGetMutableContract().getMutableMap().clear(); + return this; + } + + /** + *
+             * 允许订阅多个类型的交易回执
+             * 
+ * + * map<string, bool> contract = 8; + */ + + public Builder removeContract(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableContract().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableContract() { + return internalGetMutableContract().getMutableMap(); + } + + /** + *
+             * 允许订阅多个类型的交易回执
+             * 
+ * + * map<string, bool> contract = 8; + */ + public Builder putContract(java.lang.String key, boolean value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + + internalGetMutableContract().getMutableMap().put(key, value); + return this; + } + + /** + *
+             * 允许订阅多个类型的交易回执
+             * 
+ * + * map<string, bool> contract = 8; + */ + + public Builder putAllContract(java.util.Map values) { + internalGetMutableContract().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:PushSubscribeReq) + } + + // @@protoc_insertion_point(class_scope:PushSubscribeReq) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushSubscribeReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushSubscribeReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PushWithStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:PushWithStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * .PushSubscribeReq push = 1; + * + * @return Whether the push field is set. + */ + boolean hasPush(); + + /** + * .PushSubscribeReq push = 1; + * + * @return The push. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPush(); + + /** + * .PushSubscribeReq push = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushOrBuilder(); + + /** + * int32 status = 2; + * + * @return The status. + */ + int getStatus(); + } + + /** + * Protobuf type {@code PushWithStatus} */ - boolean getIsDetail(); + public static final class PushWithStatus extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:PushWithStatus) + PushWithStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PushWithStatus.newBuilder() to construct. + private PushWithStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PushWithStatus() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PushWithStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PushWithStatus(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder subBuilder = null; + if (push_ != null) { + subBuilder = push_.toBuilder(); + } + push_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(push_); + push_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + status_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.Builder.class); + } + + public static final int PUSH_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq push_; + + /** + * .PushSubscribeReq push = 1; + * + * @return Whether the push field is set. + */ + @java.lang.Override + public boolean hasPush() { + return push_ != null; + } + + /** + * .PushSubscribeReq push = 1; + * + * @return The push. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPush() { + return push_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance() + : push_; + } + + /** + * .PushSubscribeReq push = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushOrBuilder() { + return getPush(); + } - /** - * repeated string pid = 4; - * @return A list containing the pid. - */ - java.util.List - getPidList(); - /** - * repeated string pid = 4; - * @return The count of pid. - */ - int getPidCount(); - /** - * repeated string pid = 4; - * @param index The index of the element to return. - * @return The pid at the given index. - */ - java.lang.String getPid(int index); - /** - * repeated string pid = 4; - * @param index The index of the value to return. - * @return The bytes of the pid at the given index. - */ - com.google.protobuf.ByteString - getPidBytes(int index); - } - /** - *
-   *获取ChunkRecord信息
-   * 	 start : 获取Chunk的开始高度
-   *	 end :获取Chunk的结束高度
-   * 	 Isdetail : 是否需要获取所有Chunk Record 信息,false时候获取到chunkNum--->chunkhash的KV对,true获取全部
-   * 	 pid : peer列表
-   * 
- * - * Protobuf type {@code ReqChunkRecords} - */ - public static final class ReqChunkRecords extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqChunkRecords) - ReqChunkRecordsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqChunkRecords.newBuilder() to construct. - private ReqChunkRecords(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqChunkRecords() { - pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqChunkRecords(); - } + /** + * int32 status = 2; + * + * @return The status. + */ + @java.lang.Override + public int getStatus() { + return status_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqChunkRecords( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - start_ = input.readInt64(); - break; - } - case 16: { - - end_ = input.readInt64(); - break; - } - case 24: { - - isDetail_ = input.readBool(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pid_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pid_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pid_ = pid_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_descriptor; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (push_ != null) { + output.writeMessage(1, getPush()); + } + if (status_ != 0) { + output.writeInt32(2, status_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (push_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPush()); + } + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, status_); + } + 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 cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus) obj; + + if (hasPush() != other.hasPush()) + return false; + if (hasPush()) { + if (!getPush().equals(other.getPush())) + return false; + } + if (getStatus() != other.getStatus()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPush()) { + hash = (37 * hash) + PUSH_FIELD_NUMBER; + hash = (53 * hash) + getPush().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 PushWithStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:PushWithStatus) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (pushBuilder_ == null) { + push_ = null; + } else { + push_ = null; + pushBuilder_ = null; + } + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus( + this); + if (pushBuilder_ == null) { + result.push_ = push_; + } else { + result.push_ = pushBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.getDefaultInstance()) + return this; + if (other.hasPush()) { + mergePush(other.getPush()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq push_; + private com.google.protobuf.SingleFieldBuilderV3 pushBuilder_; + + /** + * .PushSubscribeReq push = 1; + * + * @return Whether the push field is set. + */ + public boolean hasPush() { + return pushBuilder_ != null || push_ != null; + } + + /** + * .PushSubscribeReq push = 1; + * + * @return The push. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPush() { + if (pushBuilder_ == null) { + return push_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance() + : push_; + } else { + return pushBuilder_.getMessage(); + } + } + + /** + * .PushSubscribeReq push = 1; + */ + public Builder setPush(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { + if (pushBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + push_ = value; + onChanged(); + } else { + pushBuilder_.setMessage(value); + } + + return this; + } + + /** + * .PushSubscribeReq push = 1; + */ + public Builder setPush( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { + if (pushBuilder_ == null) { + push_ = builderForValue.build(); + onChanged(); + } else { + pushBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .PushSubscribeReq push = 1; + */ + public Builder mergePush(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { + if (pushBuilder_ == null) { + if (push_ != null) { + push_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.newBuilder(push_) + .mergeFrom(value).buildPartial(); + } else { + push_ = value; + } + onChanged(); + } else { + pushBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .PushSubscribeReq push = 1; + */ + public Builder clearPush() { + if (pushBuilder_ == null) { + push_ = null; + onChanged(); + } else { + push_ = null; + pushBuilder_ = null; + } + + return this; + } + + /** + * .PushSubscribeReq push = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder getPushBuilder() { + + onChanged(); + return getPushFieldBuilder().getBuilder(); + } + + /** + * .PushSubscribeReq push = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushOrBuilder() { + if (pushBuilder_ != null) { + return pushBuilder_.getMessageOrBuilder(); + } else { + return push_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance() + : push_; + } + } + + /** + * .PushSubscribeReq push = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPushFieldBuilder() { + if (pushBuilder_ == null) { + pushBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPush(), getParentForChildren(), isClean()); + push_ = null; + } + return pushBuilder_; + } + + private int status_; + + /** + * int32 status = 2; + * + * @return The status. + */ + @java.lang.Override + public int getStatus() { + return status_; + } + + /** + * int32 status = 2; + * + * @param value + * The status to set. + * + * @return This builder for chaining. + */ + public Builder setStatus(int value) { + + status_ = value; + onChanged(); + return this; + } + + /** + * int32 status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:PushWithStatus) + } + + // @@protoc_insertion_point(class_scope:PushWithStatus) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus(); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushWithStatus parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushWithStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int START_FIELD_NUMBER = 1; - private long start_; - /** - * int64 start = 1; - * @return The start. - */ - public long getStart() { - return start_; } - public static final int END_FIELD_NUMBER = 2; - private long end_; - /** - * int64 end = 2; - * @return The end. - */ - public long getEnd() { - return end_; + public interface PushSubscribesOrBuilder extends + // @@protoc_insertion_point(interface_extends:PushSubscribes) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + java.util.List getPushesList(); + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPushes(int index); + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + int getPushesCount(); + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + java.util.List getPushesOrBuilderList(); + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushesOrBuilder(int index); } - public static final int ISDETAIL_FIELD_NUMBER = 3; - private boolean isDetail_; /** - * bool isDetail = 3; - * @return The isDetail. + * Protobuf type {@code PushSubscribes} */ - public boolean getIsDetail() { - return isDetail_; - } + public static final class PushSubscribes extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:PushSubscribes) + PushSubscribesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PushSubscribes.newBuilder() to construct. + private PushSubscribes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PushSubscribes() { + pushes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PushSubscribes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PushSubscribes(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pushes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pushes_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + pushes_ = java.util.Collections.unmodifiableList(pushes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.Builder.class); + } + + public static final int PUSHES_FIELD_NUMBER = 1; + private java.util.List pushes_; + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + @java.lang.Override + public java.util.List getPushesList() { + return pushes_; + } + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + @java.lang.Override + public java.util.List getPushesOrBuilderList() { + return pushes_; + } + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + @java.lang.Override + public int getPushesCount() { + return pushes_.size(); + } + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPushes(int index) { + return pushes_.get(index); + } + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushesOrBuilder( + int index) { + return pushes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < pushes_.size(); i++) { + output.writeMessage(1, pushes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < pushes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pushes_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes) obj; + + if (!getPushesList().equals(other.getPushesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPushesCount() > 0) { + hash = (37 * hash) + PUSHES_FIELD_NUMBER; + hash = (53 * hash) + getPushesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 PushSubscribes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:PushSubscribes) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int PID_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList pid_; - /** - * repeated string pid = 4; - * @return A list containing the pid. - */ - public com.google.protobuf.ProtocolStringList - getPidList() { - return pid_; - } - /** - * repeated string pid = 4; - * @return The count of pid. - */ - public int getPidCount() { - return pid_.size(); - } - /** - * repeated string pid = 4; - * @param index The index of the element to return. - * @return The pid at the given index. - */ - public java.lang.String getPid(int index) { - return pid_.get(index); - } - /** - * repeated string pid = 4; - * @param index The index of the value to return. - * @return The bytes of the pid at the given index. - */ - public com.google.protobuf.ByteString - getPidBytes(int index) { - return pid_.getByteString(index); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPushesFieldBuilder(); + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clear() { + super.clear(); + if (pushesBuilder_ == null) { + pushes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pushesBuilder_.clear(); + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (start_ != 0L) { - output.writeInt64(1, start_); - } - if (end_ != 0L) { - output.writeInt64(2, end_); - } - if (isDetail_ != false) { - output.writeBool(3, isDetail_); - } - for (int i = 0; i < pid_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pid_.getRaw(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.getDefaultInstance(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (start_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, start_); - } - if (end_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, end_); - } - if (isDetail_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isDetail_); - } - { - int dataSize = 0; - for (int i = 0; i < pid_.size(); i++) { - dataSize += computeStringSizeNoTag(pid_.getRaw(i)); - } - size += dataSize; - size += 1 * getPidList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords) obj; - - if (getStart() - != other.getStart()) return false; - if (getEnd() - != other.getEnd()) return false; - if (getIsDetail() - != other.getIsDetail()) return false; - if (!getPidList() - .equals(other.getPidList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes( + this); + int from_bitField0_ = bitField0_; + if (pushesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pushes_ = java.util.Collections.unmodifiableList(pushes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pushes_ = pushes_; + } else { + result.pushes_ = pushesBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStart()); - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEnd()); - hash = (37 * hash) + ISDETAIL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDetail()); - if (getPidCount() > 0) { - hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + getPidList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *获取ChunkRecord信息
-     * 	 start : 获取Chunk的开始高度
-     *	 end :获取Chunk的结束高度
-     * 	 Isdetail : 是否需要获取所有Chunk Record 信息,false时候获取到chunkNum--->chunkhash的KV对,true获取全部
-     * 	 pid : peer列表
-     * 
- * - * Protobuf type {@code ReqChunkRecords} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqChunkRecords) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecordsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - start_ = 0L; - - end_ = 0L; - - isDetail_ = false; - - pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReqChunkRecords_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords(this); - int from_bitField0_ = bitField0_; - result.start_ = start_; - result.end_ = end_; - result.isDetail_ = isDetail_; - if (((bitField0_ & 0x00000001) != 0)) { - pid_ = pid_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pid_ = pid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords.getDefaultInstance()) return this; - if (other.getStart() != 0L) { - setStart(other.getStart()); - } - if (other.getEnd() != 0L) { - setEnd(other.getEnd()); - } - if (other.getIsDetail() != false) { - setIsDetail(other.getIsDetail()); - } - if (!other.pid_.isEmpty()) { - if (pid_.isEmpty()) { - pid_ = other.pid_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePidIsMutable(); - pid_.addAll(other.pid_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long start_ ; - /** - * int64 start = 1; - * @return The start. - */ - public long getStart() { - return start_; - } - /** - * int64 start = 1; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(long value) { - - start_ = value; - onChanged(); - return this; - } - /** - * int64 start = 1; - * @return This builder for chaining. - */ - public Builder clearStart() { - - start_ = 0L; - onChanged(); - return this; - } - - private long end_ ; - /** - * int64 end = 2; - * @return The end. - */ - public long getEnd() { - return end_; - } - /** - * int64 end = 2; - * @param value The end to set. - * @return This builder for chaining. - */ - public Builder setEnd(long value) { - - end_ = value; - onChanged(); - return this; - } - /** - * int64 end = 2; - * @return This builder for chaining. - */ - public Builder clearEnd() { - - end_ = 0L; - onChanged(); - return this; - } - - private boolean isDetail_ ; - /** - * bool isDetail = 3; - * @return The isDetail. - */ - public boolean getIsDetail() { - return isDetail_; - } - /** - * bool isDetail = 3; - * @param value The isDetail to set. - * @return This builder for chaining. - */ - public Builder setIsDetail(boolean value) { - - isDetail_ = value; - onChanged(); - return this; - } - /** - * bool isDetail = 3; - * @return This builder for chaining. - */ - public Builder clearIsDetail() { - - isDetail_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePidIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pid_ = new com.google.protobuf.LazyStringArrayList(pid_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string pid = 4; - * @return A list containing the pid. - */ - public com.google.protobuf.ProtocolStringList - getPidList() { - return pid_.getUnmodifiableView(); - } - /** - * repeated string pid = 4; - * @return The count of pid. - */ - public int getPidCount() { - return pid_.size(); - } - /** - * repeated string pid = 4; - * @param index The index of the element to return. - * @return The pid at the given index. - */ - public java.lang.String getPid(int index) { - return pid_.get(index); - } - /** - * repeated string pid = 4; - * @param index The index of the value to return. - * @return The bytes of the pid at the given index. - */ - public com.google.protobuf.ByteString - getPidBytes(int index) { - return pid_.getByteString(index); - } - /** - * repeated string pid = 4; - * @param index The index to set the value at. - * @param value The pid to set. - * @return This builder for chaining. - */ - public Builder setPid( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePidIsMutable(); - pid_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @param value The pid to add. - * @return This builder for chaining. - */ - public Builder addPid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePidIsMutable(); - pid_.add(value); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @param values The pid to add. - * @return This builder for chaining. - */ - public Builder addAllPid( - java.lang.Iterable values) { - ensurePidIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pid_); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @return This builder for chaining. - */ - public Builder clearPid() { - pid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string pid = 4; - * @param value The bytes of the pid to add. - * @return This builder for chaining. - */ - public Builder addPidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePidIsMutable(); - pid_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqChunkRecords) - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - // @@protoc_insertion_point(class_scope:ReqChunkRecords) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords(); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqChunkRecords parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqChunkRecords(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.getDefaultInstance()) + return this; + if (pushesBuilder_ == null) { + if (!other.pushes_.isEmpty()) { + if (pushes_.isEmpty()) { + pushes_ = other.pushes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePushesIsMutable(); + pushes_.addAll(other.pushes_); + } + onChanged(); + } + } else { + if (!other.pushes_.isEmpty()) { + if (pushesBuilder_.isEmpty()) { + pushesBuilder_.dispose(); + pushesBuilder_ = null; + pushes_ = other.pushes_; + bitField0_ = (bitField0_ & ~0x00000001); + pushesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPushesFieldBuilder() : null; + } else { + pushesBuilder_.addAllMessages(other.pushes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqChunkRecords getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public interface PushSubscribeReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PushSubscribeReq) - com.google.protobuf.MessageOrBuilder { + private int bitField0_; - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + private java.util.List pushes_ = java.util.Collections + .emptyList(); - /** - * string URL = 2; - * @return The uRL. - */ - java.lang.String getURL(); - /** - * string URL = 2; - * @return The bytes for uRL. - */ - com.google.protobuf.ByteString - getURLBytes(); + private void ensurePushesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pushes_ = new java.util.ArrayList( + pushes_); + bitField0_ |= 0x00000001; + } + } - /** - * string encode = 3; - * @return The encode. - */ - java.lang.String getEncode(); - /** - * string encode = 3; - * @return The bytes for encode. - */ - com.google.protobuf.ByteString - getEncodeBytes(); + private com.google.protobuf.RepeatedFieldBuilderV3 pushesBuilder_; + + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public java.util.List getPushesList() { + if (pushesBuilder_ == null) { + return java.util.Collections.unmodifiableList(pushes_); + } else { + return pushesBuilder_.getMessageList(); + } + } - /** - * int64 lastSequence = 4; - * @return The lastSequence. - */ - long getLastSequence(); + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public int getPushesCount() { + if (pushesBuilder_ == null) { + return pushes_.size(); + } else { + return pushesBuilder_.getCount(); + } + } - /** - * int64 lastHeight = 5; - * @return The lastHeight. - */ - long getLastHeight(); + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPushes(int index) { + if (pushesBuilder_ == null) { + return pushes_.get(index); + } else { + return pushesBuilder_.getMessage(index); + } + } - /** - * string lastBlockHash = 6; - * @return The lastBlockHash. - */ - java.lang.String getLastBlockHash(); - /** - * string lastBlockHash = 6; - * @return The bytes for lastBlockHash. - */ - com.google.protobuf.ByteString - getLastBlockHashBytes(); + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder setPushes(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { + if (pushesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePushesIsMutable(); + pushes_.set(index, value); + onChanged(); + } else { + pushesBuilder_.setMessage(index, value); + } + return this; + } - /** - *
-     * 0:代表区块;1:代表区块头信息;2:代表交易回执
-     * 
- * - * int32 type = 7; - * @return The type. - */ - int getType(); + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder setPushes(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { + if (pushesBuilder_ == null) { + ensurePushesIsMutable(); + pushes_.set(index, builderForValue.build()); + onChanged(); + } else { + pushesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ - int getContractCount(); - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ - boolean containsContract( - java.lang.String key); - /** - * Use {@link #getContractMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getContract(); - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ - java.util.Map - getContractMap(); - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder addPushes(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { + if (pushesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePushesIsMutable(); + pushes_.add(value); + onChanged(); + } else { + pushesBuilder_.addMessage(value); + } + return this; + } - boolean getContractOrDefault( - java.lang.String key, - boolean defaultValue); - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder addPushes(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { + if (pushesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePushesIsMutable(); + pushes_.add(index, value); + onChanged(); + } else { + pushesBuilder_.addMessage(index, value); + } + return this; + } - boolean getContractOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code PushSubscribeReq} - */ - public static final class PushSubscribeReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PushSubscribeReq) - PushSubscribeReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PushSubscribeReq.newBuilder() to construct. - private PushSubscribeReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PushSubscribeReq() { - name_ = ""; - uRL_ = ""; - encode_ = ""; - lastBlockHash_ = ""; - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder addPushes( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { + if (pushesBuilder_ == null) { + ensurePushesIsMutable(); + pushes_.add(builderForValue.build()); + onChanged(); + } else { + pushesBuilder_.addMessage(builderForValue.build()); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PushSubscribeReq(); - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder addPushes(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { + if (pushesBuilder_ == null) { + ensurePushesIsMutable(); + pushes_.add(index, builderForValue.build()); + onChanged(); + } else { + pushesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PushSubscribeReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - uRL_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - encode_ = s; - break; - } - case 32: { - - lastSequence_ = input.readInt64(); - break; - } - case 40: { - - lastHeight_ = input.readInt64(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - lastBlockHash_ = s; - break; - } - case 56: { - - type_ = input.readInt32(); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contract_ = com.google.protobuf.MapField.newMapField( - ContractDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - contract__ = input.readMessage( - ContractDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - contract_.getMutableMap().put( - contract__.getKey(), contract__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_descriptor; - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder addAllPushes( + java.lang.Iterable values) { + if (pushesBuilder_ == null) { + ensurePushesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pushes_); + onChanged(); + } else { + pushesBuilder_.addAllMessages(values); + } + return this; + } - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetContract(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder.class); - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder clearPushes() { + if (pushesBuilder_ == null) { + pushes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pushesBuilder_.clear(); + } + return this; + } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public Builder removePushes(int index) { + if (pushesBuilder_ == null) { + ensurePushesIsMutable(); + pushes_.remove(index); + onChanged(); + } else { + pushesBuilder_.remove(index); + } + return this; + } - public static final int URL_FIELD_NUMBER = 2; - private volatile java.lang.Object uRL_; - /** - * string URL = 2; - * @return The uRL. - */ - public java.lang.String getURL() { - java.lang.Object ref = uRL_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uRL_ = s; - return s; - } - } - /** - * string URL = 2; - * @return The bytes for uRL. - */ - public com.google.protobuf.ByteString - getURLBytes() { - java.lang.Object ref = uRL_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uRL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder getPushesBuilder( + int index) { + return getPushesFieldBuilder().getBuilder(index); + } - public static final int ENCODE_FIELD_NUMBER = 3; - private volatile java.lang.Object encode_; - /** - * string encode = 3; - * @return The encode. - */ - public java.lang.String getEncode() { - java.lang.Object ref = encode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - encode_ = s; - return s; - } - } - /** - * string encode = 3; - * @return The bytes for encode. - */ - public com.google.protobuf.ByteString - getEncodeBytes() { - java.lang.Object ref = encode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - encode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushesOrBuilder( + int index) { + if (pushesBuilder_ == null) { + return pushes_.get(index); + } else { + return pushesBuilder_.getMessageOrBuilder(index); + } + } - public static final int LASTSEQUENCE_FIELD_NUMBER = 4; - private long lastSequence_; - /** - * int64 lastSequence = 4; - * @return The lastSequence. - */ - public long getLastSequence() { - return lastSequence_; - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public java.util.List getPushesOrBuilderList() { + if (pushesBuilder_ != null) { + return pushesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pushes_); + } + } - public static final int LASTHEIGHT_FIELD_NUMBER = 5; - private long lastHeight_; - /** - * int64 lastHeight = 5; - * @return The lastHeight. - */ - public long getLastHeight() { - return lastHeight_; - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder addPushesBuilder() { + return getPushesFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance()); + } - public static final int LASTBLOCKHASH_FIELD_NUMBER = 6; - private volatile java.lang.Object lastBlockHash_; - /** - * string lastBlockHash = 6; - * @return The lastBlockHash. - */ - public java.lang.String getLastBlockHash() { - java.lang.Object ref = lastBlockHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - lastBlockHash_ = s; - return s; - } - } - /** - * string lastBlockHash = 6; - * @return The bytes for lastBlockHash. - */ - public com.google.protobuf.ByteString - getLastBlockHashBytes() { - java.lang.Object ref = lastBlockHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lastBlockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder addPushesBuilder( + int index) { + return getPushesFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance()); + } - public static final int TYPE_FIELD_NUMBER = 7; - private int type_; - /** - *
-     * 0:代表区块;1:代表区块头信息;2:代表交易回执
-     * 
- * - * int32 type = 7; - * @return The type. - */ - public int getType() { - return type_; - } + /** + * repeated .PushSubscribeReq pushes = 1; + */ + public java.util.List getPushesBuilderList() { + return getPushesFieldBuilder().getBuilderList(); + } - public static final int CONTRACT_FIELD_NUMBER = 8; - private static final class ContractDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Boolean> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_ContractEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.BOOL, - false); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Boolean> contract_; - private com.google.protobuf.MapField - internalGetContract() { - if (contract_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ContractDefaultEntryHolder.defaultEntry); - } - return contract_; - } + private com.google.protobuf.RepeatedFieldBuilderV3 getPushesFieldBuilder() { + if (pushesBuilder_ == null) { + pushesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + pushes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pushes_ = null; + } + return pushesBuilder_; + } - public int getContractCount() { - return internalGetContract().getMap().size(); - } - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public boolean containsContract( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetContract().getMap().containsKey(key); - } - /** - * Use {@link #getContractMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getContract() { - return getContractMap(); - } - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public java.util.Map getContractMap() { - return internalGetContract().getMap(); - } - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ + // @@protoc_insertion_point(builder_scope:PushSubscribes) + } - public boolean getContractOrDefault( - java.lang.String key, - boolean defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetContract().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     *允许订阅多个类型的交易回执
-     * 
- * - * map<string, bool> contract = 8; - */ + // @@protoc_insertion_point(class_scope:PushSubscribes) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes(); + } - public boolean getContractOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetContract().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushSubscribes parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushSubscribes(input, extensionRegistry); + } + }; - memoizedIsInitialized = 1; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getURLBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uRL_); - } - if (!getEncodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, encode_); - } - if (lastSequence_ != 0L) { - output.writeInt64(4, lastSequence_); - } - if (lastHeight_ != 0L) { - output.writeInt64(5, lastHeight_); - } - if (!getLastBlockHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lastBlockHash_); - } - if (type_ != 0) { - output.writeInt32(7, type_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetContract(), - ContractDefaultEntryHolder.defaultEntry, - 8); - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getURLBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uRL_); - } - if (!getEncodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, encode_); - } - if (lastSequence_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, lastSequence_); - } - if (lastHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, lastHeight_); - } - if (!getLastBlockHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lastBlockHash_); - } - if (type_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, type_); - } - for (java.util.Map.Entry entry - : internalGetContract().getMap().entrySet()) { - com.google.protobuf.MapEntry - contract__ = ContractDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, contract__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getURL() - .equals(other.getURL())) return false; - if (!getEncode() - .equals(other.getEncode())) return false; - if (getLastSequence() - != other.getLastSequence()) return false; - if (getLastHeight() - != other.getLastHeight()) return false; - if (!getLastBlockHash() - .equals(other.getLastBlockHash())) return false; - if (getType() - != other.getType()) return false; - if (!internalGetContract().equals( - other.internalGetContract())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getURL().hashCode(); - hash = (37 * hash) + ENCODE_FIELD_NUMBER; - hash = (53 * hash) + getEncode().hashCode(); - hash = (37 * hash) + LASTSEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastSequence()); - hash = (37 * hash) + LASTHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastHeight()); - hash = (37 * hash) + LASTBLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getLastBlockHash().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType(); - if (!internalGetContract().getMap().isEmpty()) { - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + internalGetContract().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public interface ReplySubscribePushOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplySubscribePush) + com.google.protobuf.MessageOrBuilder { - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * bool isOk = 1; + * + * @return The isOk. + */ + boolean getIsOk(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string msg = 2; + * + * @return The msg. + */ + java.lang.String getMsg(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string msg = 2; + * + * @return The bytes for msg. + */ + com.google.protobuf.ByteString getMsgBytes(); } + /** - * Protobuf type {@code PushSubscribeReq} + * Protobuf type {@code ReplySubscribePush} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PushSubscribeReq) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetContract(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 8: - return internalGetMutableContract(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - uRL_ = ""; - - encode_ = ""; - - lastSequence_ = 0L; - - lastHeight_ = 0L; - - lastBlockHash_ = ""; - - type_ = 0; - - internalGetMutableContract().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribeReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.uRL_ = uRL_; - result.encode_ = encode_; - result.lastSequence_ = lastSequence_; - result.lastHeight_ = lastHeight_; - result.lastBlockHash_ = lastBlockHash_; - result.type_ = type_; - result.contract_ = internalGetContract(); - result.contract_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getURL().isEmpty()) { - uRL_ = other.uRL_; - onChanged(); - } - if (!other.getEncode().isEmpty()) { - encode_ = other.encode_; - onChanged(); - } - if (other.getLastSequence() != 0L) { - setLastSequence(other.getLastSequence()); - } - if (other.getLastHeight() != 0L) { - setLastHeight(other.getLastHeight()); - } - if (!other.getLastBlockHash().isEmpty()) { - lastBlockHash_ = other.lastBlockHash_; - onChanged(); - } - if (other.getType() != 0) { - setType(other.getType()); - } - internalGetMutableContract().mergeFrom( - other.internalGetContract()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object uRL_ = ""; - /** - * string URL = 2; - * @return The uRL. - */ - public java.lang.String getURL() { - java.lang.Object ref = uRL_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uRL_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string URL = 2; - * @return The bytes for uRL. - */ - public com.google.protobuf.ByteString - getURLBytes() { - java.lang.Object ref = uRL_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uRL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string URL = 2; - * @param value The uRL to set. - * @return This builder for chaining. - */ - public Builder setURL( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uRL_ = value; - onChanged(); - return this; - } - /** - * string URL = 2; - * @return This builder for chaining. - */ - public Builder clearURL() { - - uRL_ = getDefaultInstance().getURL(); - onChanged(); - return this; - } - /** - * string URL = 2; - * @param value The bytes for uRL to set. - * @return This builder for chaining. - */ - public Builder setURLBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uRL_ = value; - onChanged(); - return this; - } - - private java.lang.Object encode_ = ""; - /** - * string encode = 3; - * @return The encode. - */ - public java.lang.String getEncode() { - java.lang.Object ref = encode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - encode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string encode = 3; - * @return The bytes for encode. - */ - public com.google.protobuf.ByteString - getEncodeBytes() { - java.lang.Object ref = encode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - encode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string encode = 3; - * @param value The encode to set. - * @return This builder for chaining. - */ - public Builder setEncode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - encode_ = value; - onChanged(); - return this; - } - /** - * string encode = 3; - * @return This builder for chaining. - */ - public Builder clearEncode() { - - encode_ = getDefaultInstance().getEncode(); - onChanged(); - return this; - } - /** - * string encode = 3; - * @param value The bytes for encode to set. - * @return This builder for chaining. - */ - public Builder setEncodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - encode_ = value; - onChanged(); - return this; - } - - private long lastSequence_ ; - /** - * int64 lastSequence = 4; - * @return The lastSequence. - */ - public long getLastSequence() { - return lastSequence_; - } - /** - * int64 lastSequence = 4; - * @param value The lastSequence to set. - * @return This builder for chaining. - */ - public Builder setLastSequence(long value) { - - lastSequence_ = value; - onChanged(); - return this; - } - /** - * int64 lastSequence = 4; - * @return This builder for chaining. - */ - public Builder clearLastSequence() { - - lastSequence_ = 0L; - onChanged(); - return this; - } - - private long lastHeight_ ; - /** - * int64 lastHeight = 5; - * @return The lastHeight. - */ - public long getLastHeight() { - return lastHeight_; - } - /** - * int64 lastHeight = 5; - * @param value The lastHeight to set. - * @return This builder for chaining. - */ - public Builder setLastHeight(long value) { - - lastHeight_ = value; - onChanged(); - return this; - } - /** - * int64 lastHeight = 5; - * @return This builder for chaining. - */ - public Builder clearLastHeight() { - - lastHeight_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object lastBlockHash_ = ""; - /** - * string lastBlockHash = 6; - * @return The lastBlockHash. - */ - public java.lang.String getLastBlockHash() { - java.lang.Object ref = lastBlockHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - lastBlockHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string lastBlockHash = 6; - * @return The bytes for lastBlockHash. - */ - public com.google.protobuf.ByteString - getLastBlockHashBytes() { - java.lang.Object ref = lastBlockHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lastBlockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string lastBlockHash = 6; - * @param value The lastBlockHash to set. - * @return This builder for chaining. - */ - public Builder setLastBlockHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastBlockHash_ = value; - onChanged(); - return this; - } - /** - * string lastBlockHash = 6; - * @return This builder for chaining. - */ - public Builder clearLastBlockHash() { - - lastBlockHash_ = getDefaultInstance().getLastBlockHash(); - onChanged(); - return this; - } - /** - * string lastBlockHash = 6; - * @param value The bytes for lastBlockHash to set. - * @return This builder for chaining. - */ - public Builder setLastBlockHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastBlockHash_ = value; - onChanged(); - return this; - } - - private int type_ ; - /** - *
-       * 0:代表区块;1:代表区块头信息;2:代表交易回执
-       * 
- * - * int32 type = 7; - * @return The type. - */ - public int getType() { - return type_; - } - /** - *
-       * 0:代表区块;1:代表区块头信息;2:代表交易回执
-       * 
- * - * int32 type = 7; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * 0:代表区块;1:代表区块头信息;2:代表交易回执
-       * 
- * - * int32 type = 7; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Boolean> contract_; - private com.google.protobuf.MapField - internalGetContract() { - if (contract_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ContractDefaultEntryHolder.defaultEntry); - } - return contract_; - } - private com.google.protobuf.MapField - internalGetMutableContract() { - onChanged();; - if (contract_ == null) { - contract_ = com.google.protobuf.MapField.newMapField( - ContractDefaultEntryHolder.defaultEntry); - } - if (!contract_.isMutable()) { - contract_ = contract_.copy(); - } - return contract_; - } - - public int getContractCount() { - return internalGetContract().getMap().size(); - } - /** - *
-       *允许订阅多个类型的交易回执
-       * 
- * - * map<string, bool> contract = 8; - */ - - public boolean containsContract( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetContract().getMap().containsKey(key); - } - /** - * Use {@link #getContractMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getContract() { - return getContractMap(); - } - /** - *
-       *允许订阅多个类型的交易回执
-       * 
- * - * map<string, bool> contract = 8; - */ - - public java.util.Map getContractMap() { - return internalGetContract().getMap(); - } - /** - *
-       *允许订阅多个类型的交易回执
-       * 
- * - * map<string, bool> contract = 8; - */ - - public boolean getContractOrDefault( - java.lang.String key, - boolean defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetContract().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       *允许订阅多个类型的交易回执
-       * 
- * - * map<string, bool> contract = 8; - */ - - public boolean getContractOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetContract().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearContract() { - internalGetMutableContract().getMutableMap() - .clear(); - return this; - } - /** - *
-       *允许订阅多个类型的交易回执
-       * 
- * - * map<string, bool> contract = 8; - */ - - public Builder removeContract( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableContract().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableContract() { - return internalGetMutableContract().getMutableMap(); - } - /** - *
-       *允许订阅多个类型的交易回执
-       * 
- * - * map<string, bool> contract = 8; - */ - public Builder putContract( - java.lang.String key, - boolean value) { - if (key == null) { throw new java.lang.NullPointerException(); } - - internalGetMutableContract().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       *允许订阅多个类型的交易回执
-       * 
- * - * map<string, bool> contract = 8; - */ - - public Builder putAllContract( - java.util.Map values) { - internalGetMutableContract().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PushSubscribeReq) - } + public static final class ReplySubscribePush extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplySubscribePush) + ReplySubscribePushOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:PushSubscribeReq) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq(); - } + // Use ReplySubscribePush.newBuilder() to construct. + private ReplySubscribePush(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplySubscribePush() { + msg_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplySubscribePush(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplySubscribePush(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + isOk_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + msg_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PushSubscribeReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PushSubscribeReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int ISOK_FIELD_NUMBER = 1; + private boolean isOk_; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bool isOk = 1; + * + * @return The isOk. + */ + @java.lang.Override + public boolean getIsOk() { + return isOk_; + } - } + public static final int MSG_FIELD_NUMBER = 2; + private volatile java.lang.Object msg_; - public interface PushWithStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:PushWithStatus) - com.google.protobuf.MessageOrBuilder { + /** + * string msg = 2; + * + * @return The msg. + */ + @java.lang.Override + public java.lang.String getMsg() { + java.lang.Object ref = msg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + msg_ = s; + return s; + } + } - /** - * .PushSubscribeReq push = 1; - * @return Whether the push field is set. - */ - boolean hasPush(); - /** - * .PushSubscribeReq push = 1; - * @return The push. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPush(); - /** - * .PushSubscribeReq push = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushOrBuilder(); + /** + * string msg = 2; + * + * @return The bytes for msg. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMsgBytes() { + java.lang.Object ref = msg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + msg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int32 status = 2; - * @return The status. - */ - int getStatus(); - } - /** - * Protobuf type {@code PushWithStatus} - */ - public static final class PushWithStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PushWithStatus) - PushWithStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use PushWithStatus.newBuilder() to construct. - private PushWithStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PushWithStatus() { - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PushWithStatus(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PushWithStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder subBuilder = null; - if (push_ != null) { - subBuilder = push_.toBuilder(); - } - push_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(push_); - push_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - status_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.Builder.class); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isOk_ != false) { + output.writeBool(1, isOk_); + } + if (!getMsgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_); + } + unknownFields.writeTo(output); + } - public static final int PUSH_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq push_; - /** - * .PushSubscribeReq push = 1; - * @return Whether the push field is set. - */ - public boolean hasPush() { - return push_ != null; - } - /** - * .PushSubscribeReq push = 1; - * @return The push. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPush() { - return push_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance() : push_; - } - /** - * .PushSubscribeReq push = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushOrBuilder() { - return getPush(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - * int32 status = 2; - * @return The status. - */ - public int getStatus() { - return status_; - } + size = 0; + if (isOk_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isOk_); + } + if (!getMsgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush) obj; - memoizedIsInitialized = 1; - return true; - } + if (getIsOk() != other.getIsOk()) + return false; + if (!getMsg().equals(other.getMsg())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (push_ != null) { - output.writeMessage(1, getPush()); - } - if (status_ != 0) { - output.writeInt32(2, status_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISOK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsOk()); + hash = (37 * hash) + MSG_FIELD_NUMBER; + hash = (53 * hash) + getMsg().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (push_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPush()); - } - if (status_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, status_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus) obj; - - if (hasPush() != other.hasPush()) return false; - if (hasPush()) { - if (!getPush() - .equals(other.getPush())) return false; - } - if (getStatus() - != other.getStatus()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPush()) { - hash = (37 * hash) + PUSH_FIELD_NUMBER; - hash = (53 * hash) + getPush().hashCode(); - } - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PushWithStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PushWithStatus) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pushBuilder_ == null) { - push_ = null; - } else { - push_ = null; - pushBuilder_ = null; - } - status_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushWithStatus_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus(this); - if (pushBuilder_ == null) { - result.push_ = push_; - } else { - result.push_ = pushBuilder_.build(); - } - result.status_ = status_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus.getDefaultInstance()) return this; - if (other.hasPush()) { - mergePush(other.getPush()); - } - if (other.getStatus() != 0) { - setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq push_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder> pushBuilder_; - /** - * .PushSubscribeReq push = 1; - * @return Whether the push field is set. - */ - public boolean hasPush() { - return pushBuilder_ != null || push_ != null; - } - /** - * .PushSubscribeReq push = 1; - * @return The push. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPush() { - if (pushBuilder_ == null) { - return push_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance() : push_; - } else { - return pushBuilder_.getMessage(); - } - } - /** - * .PushSubscribeReq push = 1; - */ - public Builder setPush(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { - if (pushBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - push_ = value; - onChanged(); - } else { - pushBuilder_.setMessage(value); - } - - return this; - } - /** - * .PushSubscribeReq push = 1; - */ - public Builder setPush( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { - if (pushBuilder_ == null) { - push_ = builderForValue.build(); - onChanged(); - } else { - pushBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .PushSubscribeReq push = 1; - */ - public Builder mergePush(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { - if (pushBuilder_ == null) { - if (push_ != null) { - push_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.newBuilder(push_).mergeFrom(value).buildPartial(); - } else { - push_ = value; - } - onChanged(); - } else { - pushBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .PushSubscribeReq push = 1; - */ - public Builder clearPush() { - if (pushBuilder_ == null) { - push_ = null; - onChanged(); - } else { - push_ = null; - pushBuilder_ = null; - } - - return this; - } - /** - * .PushSubscribeReq push = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder getPushBuilder() { - - onChanged(); - return getPushFieldBuilder().getBuilder(); - } - /** - * .PushSubscribeReq push = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushOrBuilder() { - if (pushBuilder_ != null) { - return pushBuilder_.getMessageOrBuilder(); - } else { - return push_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance() : push_; - } - } - /** - * .PushSubscribeReq push = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder> - getPushFieldBuilder() { - if (pushBuilder_ == null) { - pushBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder>( - getPush(), - getParentForChildren(), - isClean()); - push_ = null; - } - return pushBuilder_; - } - - private int status_ ; - /** - * int32 status = 2; - * @return The status. - */ - public int getStatus() { - return status_; - } - /** - * int32 status = 2; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * int32 status = 2; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PushWithStatus) - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:PushWithStatus) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus(); - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PushWithStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PushWithStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushWithStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface PushSubscribesOrBuilder extends - // @@protoc_insertion_point(interface_extends:PushSubscribes) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - java.util.List - getPushesList(); - /** - * repeated .PushSubscribeReq pushes = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPushes(int index); - /** - * repeated .PushSubscribeReq pushes = 1; - */ - int getPushesCount(); - /** - * repeated .PushSubscribeReq pushes = 1; - */ - java.util.List - getPushesOrBuilderList(); - /** - * repeated .PushSubscribeReq pushes = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushesOrBuilder( - int index); - } - /** - * Protobuf type {@code PushSubscribes} - */ - public static final class PushSubscribes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PushSubscribes) - PushSubscribesOrBuilder { - private static final long serialVersionUID = 0L; - // Use PushSubscribes.newBuilder() to construct. - private PushSubscribes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PushSubscribes() { - pushes_ = java.util.Collections.emptyList(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PushSubscribes(); - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PushSubscribes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pushes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pushes_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pushes_ = java.util.Collections.unmodifiableList(pushes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_descriptor; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.Builder.class); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int PUSHES_FIELD_NUMBER = 1; - private java.util.List pushes_; - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public java.util.List getPushesList() { - return pushes_; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public java.util.List - getPushesOrBuilderList() { - return pushes_; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public int getPushesCount() { - return pushes_.size(); - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPushes(int index) { - return pushes_.get(index); - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushesOrBuilder( - int index) { - return pushes_.get(index); - } + /** + * Protobuf type {@code ReplySubscribePush} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplySubscribePush) + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePushOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.class, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pushes_.size(); i++) { - output.writeMessage(1, pushes_.get(i)); - } - unknownFields.writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pushes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pushes_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes) obj; - - if (!getPushesList() - .equals(other.getPushesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + isOk_ = false; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPushesCount() > 0) { - hash = (37 * hash) + PUSHES_FIELD_NUMBER; - hash = (53 * hash) + getPushesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + msg_ = ""; - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PushSubscribes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PushSubscribes) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPushesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pushesBuilder_ == null) { - pushes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pushesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_PushSubscribes_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes(this); - int from_bitField0_ = bitField0_; - if (pushesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pushes_ = java.util.Collections.unmodifiableList(pushes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pushes_ = pushes_; - } else { - result.pushes_ = pushesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes.getDefaultInstance()) return this; - if (pushesBuilder_ == null) { - if (!other.pushes_.isEmpty()) { - if (pushes_.isEmpty()) { - pushes_ = other.pushes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePushesIsMutable(); - pushes_.addAll(other.pushes_); - } - onChanged(); - } - } else { - if (!other.pushes_.isEmpty()) { - if (pushesBuilder_.isEmpty()) { - pushesBuilder_.dispose(); - pushesBuilder_ = null; - pushes_ = other.pushes_; - bitField0_ = (bitField0_ & ~0x00000001); - pushesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPushesFieldBuilder() : null; - } else { - pushesBuilder_.addAllMessages(other.pushes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List pushes_ = - java.util.Collections.emptyList(); - private void ensurePushesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pushes_ = new java.util.ArrayList(pushes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder> pushesBuilder_; - - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public java.util.List getPushesList() { - if (pushesBuilder_ == null) { - return java.util.Collections.unmodifiableList(pushes_); - } else { - return pushesBuilder_.getMessageList(); - } - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public int getPushesCount() { - if (pushesBuilder_ == null) { - return pushes_.size(); - } else { - return pushesBuilder_.getCount(); - } - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq getPushes(int index) { - if (pushesBuilder_ == null) { - return pushes_.get(index); - } else { - return pushesBuilder_.getMessage(index); - } - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder setPushes( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { - if (pushesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePushesIsMutable(); - pushes_.set(index, value); - onChanged(); - } else { - pushesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder setPushes( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { - if (pushesBuilder_ == null) { - ensurePushesIsMutable(); - pushes_.set(index, builderForValue.build()); - onChanged(); - } else { - pushesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder addPushes(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { - if (pushesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePushesIsMutable(); - pushes_.add(value); - onChanged(); - } else { - pushesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder addPushes( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq value) { - if (pushesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePushesIsMutable(); - pushes_.add(index, value); - onChanged(); - } else { - pushesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder addPushes( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { - if (pushesBuilder_ == null) { - ensurePushesIsMutable(); - pushes_.add(builderForValue.build()); - onChanged(); - } else { - pushesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder addPushes( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder builderForValue) { - if (pushesBuilder_ == null) { - ensurePushesIsMutable(); - pushes_.add(index, builderForValue.build()); - onChanged(); - } else { - pushesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder addAllPushes( - java.lang.Iterable values) { - if (pushesBuilder_ == null) { - ensurePushesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pushes_); - onChanged(); - } else { - pushesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder clearPushes() { - if (pushesBuilder_ == null) { - pushes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pushesBuilder_.clear(); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public Builder removePushes(int index) { - if (pushesBuilder_ == null) { - ensurePushesIsMutable(); - pushes_.remove(index); - onChanged(); - } else { - pushesBuilder_.remove(index); - } - return this; - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder getPushesBuilder( - int index) { - return getPushesFieldBuilder().getBuilder(index); - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder getPushesOrBuilder( - int index) { - if (pushesBuilder_ == null) { - return pushes_.get(index); } else { - return pushesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public java.util.List - getPushesOrBuilderList() { - if (pushesBuilder_ != null) { - return pushesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pushes_); - } - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder addPushesBuilder() { - return getPushesFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance()); - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder addPushesBuilder( - int index) { - return getPushesFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.getDefaultInstance()); - } - /** - * repeated .PushSubscribeReq pushes = 1; - */ - public java.util.List - getPushesBuilderList() { - return getPushesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder> - getPushesFieldBuilder() { - if (pushesBuilder_ == null) { - pushesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReq.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribeReqOrBuilder>( - pushes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pushes_ = null; - } - return pushesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PushSubscribes) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:PushSubscribes) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush build() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush buildPartial() { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush( + this); + result.isOk_ = isOk_; + result.msg_ = msg_; + onBuilt(); + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PushSubscribes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PushSubscribes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.PushSubscribes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public interface ReplySubscribePushOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplySubscribePush) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * bool isOk = 1; - * @return The isOk. - */ - boolean getIsOk(); + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - /** - * string msg = 2; - * @return The msg. - */ - java.lang.String getMsg(); - /** - * string msg = 2; - * @return The bytes for msg. - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code ReplySubscribePush} - */ - public static final class ReplySubscribePush extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplySubscribePush) - ReplySubscribePushOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplySubscribePush.newBuilder() to construct. - private ReplySubscribePush(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplySubscribePush() { - msg_ = ""; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplySubscribePush(); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush other) { + if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush + .getDefaultInstance()) + return this; + if (other.getIsOk() != false) { + setIsOk(other.getIsOk()); + } + if (!other.getMsg().isEmpty()) { + msg_ = other.msg_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplySubscribePush( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isOk_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - msg_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.Builder.class); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int ISOK_FIELD_NUMBER = 1; - private boolean isOk_; - /** - * bool isOk = 1; - * @return The isOk. - */ - public boolean getIsOk() { - return isOk_; - } + private boolean isOk_; - public static final int MSG_FIELD_NUMBER = 2; - private volatile java.lang.Object msg_; - /** - * string msg = 2; - * @return The msg. - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * bool isOk = 1; + * + * @return The isOk. + */ + @java.lang.Override + public boolean getIsOk() { + return isOk_; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * bool isOk = 1; + * + * @param value + * The isOk to set. + * + * @return This builder for chaining. + */ + public Builder setIsOk(boolean value) { + + isOk_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * bool isOk = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsOk() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isOk_ != false) { - output.writeBool(1, isOk_); - } - if (!getMsgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_); - } - unknownFields.writeTo(output); - } + isOk_ = false; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isOk_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isOk_); - } - if (!getMsgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private java.lang.Object msg_ = ""; + + /** + * string msg = 2; + * + * @return The msg. + */ + public java.lang.String getMsg() { + java.lang.Object ref = msg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + msg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush other = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush) obj; - - if (getIsOk() - != other.getIsOk()) return false; - if (!getMsg() - .equals(other.getMsg())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string msg = 2; + * + * @return The bytes for msg. + */ + public com.google.protobuf.ByteString getMsgBytes() { + java.lang.Object ref = msg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + msg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISOK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsOk()); - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string msg = 2; + * + * @param value + * The msg to set. + * + * @return This builder for chaining. + */ + public Builder setMsg(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + msg_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string msg = 2; + * + * @return This builder for chaining. + */ + public Builder clearMsg() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + msg_ = getDefaultInstance().getMsg(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplySubscribePush} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplySubscribePush) - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePushOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.class, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isOk_ = false; - - msg_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.internal_static_ReplySubscribePush_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush build() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush buildPartial() { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush result = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush(this); - result.isOk_ = isOk_; - result.msg_ = msg_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush other) { - if (other == cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush.getDefaultInstance()) return this; - if (other.getIsOk() != false) { - setIsOk(other.getIsOk()); - } - if (!other.getMsg().isEmpty()) { - msg_ = other.msg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isOk_ ; - /** - * bool isOk = 1; - * @return The isOk. - */ - public boolean getIsOk() { - return isOk_; - } - /** - * bool isOk = 1; - * @param value The isOk to set. - * @return This builder for chaining. - */ - public Builder setIsOk(boolean value) { - - isOk_ = value; - onChanged(); - return this; - } - /** - * bool isOk = 1; - * @return This builder for chaining. - */ - public Builder clearIsOk() { - - isOk_ = false; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msg = 2; - * @param value The msg to set. - * @return This builder for chaining. - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - msg_ = value; - onChanged(); - return this; - } - /** - * string msg = 2; - * @return This builder for chaining. - */ - public Builder clearMsg() { - - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * string msg = 2; - * @param value The bytes for msg to set. - * @return This builder for chaining. - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - msg_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplySubscribePush) - } + /** + * string msg = 2; + * + * @param value + * The bytes for msg to set. + * + * @return This builder for chaining. + */ + public Builder setMsgBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + msg_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReplySubscribePush) - private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplySubscribePush parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplySubscribePush(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:ReplySubscribePush) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:ReplySubscribePush) + private static final cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush getDefaultInstance() { + return DEFAULT_INSTANCE; + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Header_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Header_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Block_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Block_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Blocks_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Blocks_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockSeq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockSeq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockSeqs_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockSeqs_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockPid_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockPid_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockDetails_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockDetails_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Headers_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Headers_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HeadersPid_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HeadersPid_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockOverview_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockOverview_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Receipts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Receipts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptCheckTxList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptCheckTxList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChainStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChainStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqBlocks_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqBlocks_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MempoolSize_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MempoolSize_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyBlockHeight_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyBlockHeight_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockBody_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockBody_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockReceipt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockReceipt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_IsCaughtUp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_IsCaughtUp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_IsNtpClockSync_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_IsNtpClockSync_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChainExecutor_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChainExecutor_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockSequence_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockSequence_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockSequences_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockSequences_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ParaChainBlockDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ParaChainBlockDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ParaTxDetails_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ParaTxDetails_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ParaTxDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ParaTxDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TxDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TxDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqParaTxByTitle_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqParaTxByTitle_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_FileHeader_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_FileHeader_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EndBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EndBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HeaderSeq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HeaderSeq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HeaderSeqs_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HeaderSeqs_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HeightPara_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HeightPara_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HeightParas_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HeightParas_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChildChain_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChildChain_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqHeightByTitle_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqHeightByTitle_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyHeightByTitle_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyHeightByTitle_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqParaTxByHeight_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqParaTxByHeight_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CmpBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CmpBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockBodys_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockBodys_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChunkRecords_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChunkRecords_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChunkInfoMsg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChunkInfoMsg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChunkInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChunkInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqChunkRecords_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqChunkRecords_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PushSubscribeReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PushSubscribeReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PushSubscribeReq_ContractEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PushSubscribeReq_ContractEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PushWithStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PushWithStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PushSubscribes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PushSubscribes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplySubscribePush_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplySubscribePush_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020blockchain.proto\032\021transaction.proto\032\014c" + - "ommon.proto\"\305\001\n\006Header\022\017\n\007version\030\001 \001(\003\022" + - "\022\n\nparentHash\030\002 \001(\014\022\016\n\006txHash\030\003 \001(\014\022\021\n\ts" + - "tateHash\030\004 \001(\014\022\016\n\006height\030\005 \001(\003\022\021\n\tblockT" + - "ime\030\006 \001(\003\022\017\n\007txCount\030\t \001(\003\022\014\n\004hash\030\n \001(\014" + - "\022\022\n\ndifficulty\030\013 \001(\r\022\035\n\tsignature\030\010 \001(\0132" + - "\n.Signature\"\346\001\n\005Block\022\017\n\007version\030\001 \001(\003\022\022" + - "\n\nparentHash\030\002 \001(\014\022\016\n\006txHash\030\003 \001(\014\022\021\n\tst" + - "ateHash\030\004 \001(\014\022\016\n\006height\030\005 \001(\003\022\021\n\tblockTi" + - "me\030\006 \001(\003\022\022\n\ndifficulty\030\013 \001(\r\022\020\n\010mainHash" + - "\030\014 \001(\014\022\022\n\nmainHeight\030\r \001(\003\022\035\n\tsignature\030" + - "\010 \001(\0132\n.Signature\022\031\n\003txs\030\007 \003(\0132\014.Transac" + - "tion\"\037\n\006Blocks\022\025\n\005items\030\001 \003(\0132\006.Block\"R\n" + - "\010BlockSeq\022\013\n\003num\030\001 \001(\003\022\033\n\003seq\030\002 \001(\0132\016.Bl" + - "ockSequence\022\034\n\006detail\030\003 \001(\0132\014.BlockDetai" + - "l\"$\n\tBlockSeqs\022\027\n\004seqs\030\001 \003(\0132\t.BlockSeq\"" + - ".\n\010BlockPid\022\013\n\003pid\030\001 \001(\t\022\025\n\005block\030\002 \001(\0132" + - "\006.Block\"+\n\014BlockDetails\022\033\n\005items\030\001 \003(\0132\014" + - ".BlockDetail\"!\n\007Headers\022\026\n\005items\030\001 \003(\0132\007" + - ".Header\"4\n\nHeadersPid\022\013\n\003pid\030\001 \001(\t\022\031\n\007he" + - "aders\030\002 \001(\0132\010.Headers\"I\n\rBlockOverview\022\025" + - "\n\004head\030\001 \001(\0132\007.Header\022\017\n\007txCount\030\002 \001(\003\022\020" + - "\n\010txHashes\030\003 \003(\014\"s\n\013BlockDetail\022\025\n\005block" + - "\030\001 \001(\0132\006.Block\022\036\n\010receipts\030\002 \003(\0132\014.Recei" + - "ptData\022\025\n\002KV\030\003 \003(\0132\t.KeyValue\022\026\n\016prevSta" + - "tusHash\030\004 \001(\014\"&\n\010Receipts\022\032\n\010receipts\030\001 " + - "\003(\0132\010.Receipt\"\"\n\022ReceiptCheckTxList\022\014\n\004e" + - "rrs\030\001 \003(\t\"O\n\013ChainStatus\022\025\n\rcurrentHeigh" + - "t\030\001 \001(\003\022\023\n\013mempoolSize\030\002 \001(\003\022\024\n\014msgQueue" + - "Size\030\003 \001(\003\"F\n\tReqBlocks\022\r\n\005start\030\001 \001(\003\022\013" + - "\n\003end\030\002 \001(\003\022\020\n\010isDetail\030\003 \001(\010\022\013\n\003pid\030\004 \003" + - "(\t\"\033\n\013MempoolSize\022\014\n\004size\030\001 \001(\003\"\"\n\020Reply" + - "BlockHeight\022\016\n\006height\030\001 \001(\003\"\212\001\n\tBlockBod" + - "y\022\031\n\003txs\030\001 \003(\0132\014.Transaction\022\036\n\010receipts" + - "\030\002 \003(\0132\014.ReceiptData\022\020\n\010mainHash\030\003 \001(\014\022\022" + - "\n\nmainHeight\030\004 \001(\003\022\014\n\004hash\030\005 \001(\014\022\016\n\006heig" + - "ht\030\006 \001(\003\"L\n\014BlockReceipt\022\036\n\010receipts\030\001 \003" + - "(\0132\014.ReceiptData\022\014\n\004hash\030\002 \001(\014\022\016\n\006height" + - "\030\003 \001(\003\" \n\nIsCaughtUp\022\022\n\nIscaughtup\030\001 \001(\010" + - "\"(\n\016IsNtpClockSync\022\026\n\016isntpclocksync\030\001 \001" + - "(\010\"b\n\rChainExecutor\022\016\n\006driver\030\001 \001(\t\022\020\n\010f" + - "uncName\030\002 \001(\t\022\021\n\tstateHash\030\003 \001(\014\022\r\n\005para" + - "m\030\004 \001(\014\022\r\n\005extra\030\005 \001(\014\"+\n\rBlockSequence\022" + - "\014\n\004Hash\030\001 \001(\014\022\014\n\004Type\030\002 \001(\003\"/\n\016BlockSequ" + - "ences\022\035\n\005items\030\001 \003(\0132\016.BlockSequence\"[\n\024" + - "ParaChainBlockDetail\022!\n\013blockdetail\030\001 \001(" + - "\0132\014.BlockDetail\022\020\n\010sequence\030\002 \001(\003\022\016\n\006isS" + - "ync\030\003 \001(\010\"-\n\rParaTxDetails\022\034\n\005items\030\001 \003(" + - "\0132\r.ParaTxDetail\"\205\001\n\014ParaTxDetail\022\014\n\004typ" + - "e\030\001 \001(\003\022\027\n\006header\030\002 \001(\0132\007.Header\022\034\n\ttxDe" + - "tails\030\003 \003(\0132\t.TxDetail\022\021\n\tchildHash\030\004 \001(" + - "\014\022\r\n\005index\030\005 \001(\r\022\016\n\006proofs\030\006 \003(\014\"b\n\010TxDe" + - "tail\022\r\n\005index\030\001 \001(\r\022\030\n\002tx\030\002 \001(\0132\014.Transa" + - "ction\022\035\n\007receipt\030\003 \001(\0132\014.ReceiptData\022\016\n\006" + - "proofs\030\004 \003(\014\"L\n\020ReqParaTxByTitle\022\r\n\005star" + - "t\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\r\n\005title\030\003 \001(\t\022\r\n\005i" + - "sSeq\030\004 \001(\010\"Q\n\nFileHeader\022\023\n\013startHeight\030" + - "\001 \001(\003\022\016\n\006driver\030\002 \001(\t\022\r\n\005title\030\003 \001(\t\022\017\n\007" + - "testNet\030\004 \001(\010\"(\n\010EndBlock\022\016\n\006height\030\001 \001(" + - "\003\022\014\n\004hash\030\002 \001(\014\"N\n\tHeaderSeq\022\013\n\003num\030\001 \001(" + - "\003\022\033\n\003seq\030\002 \001(\0132\016.BlockSequence\022\027\n\006header" + - "\030\003 \001(\0132\007.Header\"&\n\nHeaderSeqs\022\030\n\004seqs\030\001 " + - "\003(\0132\n.HeaderSeq\"\211\001\n\nHeightPara\022\016\n\006height" + - "\030\001 \001(\003\022\r\n\005title\030\002 \001(\t\022\014\n\004hash\030\003 \001(\014\022\021\n\tc" + - "hildHash\030\004 \001(\014\022\022\n\nstartIndex\030\005 \001(\005\022\026\n\016ch" + - "ildHashIndex\030\006 \001(\r\022\017\n\007txCount\030\007 \001(\005\")\n\013H" + - "eightParas\022\032\n\005items\030\001 \003(\0132\013.HeightPara\"S" + - "\n\nChildChain\022\r\n\005title\030\001 \001(\t\022\022\n\nstartInde" + - "x\030\002 \001(\005\022\021\n\tchildHash\030\003 \001(\014\022\017\n\007txCount\030\004 " + - "\001(\005\"S\n\020ReqHeightByTitle\022\016\n\006height\030\001 \001(\003\022" + - "\r\n\005title\030\002 \001(\t\022\r\n\005count\030\003 \001(\005\022\021\n\tdirecti" + - "on\030\004 \001(\005\">\n\022ReplyHeightByTitle\022\r\n\005title\030" + - "\001 \001(\t\022\031\n\005items\030\002 \003(\0132\n.BlockInfo\")\n\tBloc" + - "kInfo\022\016\n\006height\030\001 \001(\003\022\014\n\004hash\030\002 \001(\014\"1\n\021R" + - "eqParaTxByHeight\022\r\n\005items\030\001 \003(\003\022\r\n\005title" + - "\030\002 \001(\t\"2\n\010CmpBlock\022\025\n\005block\030\001 \001(\0132\006.Bloc" + - "k\022\017\n\007cmpHash\030\002 \001(\014\"\'\n\nBlockBodys\022\031\n\005item" + - "s\030\001 \003(\0132\n.BlockBody\")\n\014ChunkRecords\022\031\n\005i" + - "nfos\030\001 \003(\0132\n.ChunkInfo\"=\n\014ChunkInfoMsg\022\021" + - "\n\tchunkHash\030\001 \001(\014\022\r\n\005start\030\002 \001(\003\022\013\n\003end\030" + - "\003 \001(\003\"L\n\tChunkInfo\022\020\n\010chunkNum\030\001 \001(\003\022\021\n\t" + - "chunkHash\030\002 \001(\014\022\r\n\005start\030\003 \001(\003\022\013\n\003end\030\004 " + - "\001(\003\"L\n\017ReqChunkRecords\022\r\n\005start\030\001 \001(\003\022\013\n" + - "\003end\030\002 \001(\003\022\020\n\010isDetail\030\003 \001(\010\022\013\n\003pid\030\004 \003(" + - "\t\"\360\001\n\020PushSubscribeReq\022\014\n\004name\030\001 \001(\t\022\013\n\003" + - "URL\030\002 \001(\t\022\016\n\006encode\030\003 \001(\t\022\024\n\014lastSequenc" + - "e\030\004 \001(\003\022\022\n\nlastHeight\030\005 \001(\003\022\025\n\rlastBlock" + - "Hash\030\006 \001(\t\022\014\n\004type\030\007 \001(\005\0221\n\010contract\030\010 \003" + - "(\0132\037.PushSubscribeReq.ContractEntry\032/\n\rC" + - "ontractEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010" + - ":\0028\001\"A\n\016PushWithStatus\022\037\n\004push\030\001 \001(\0132\021.P" + - "ushSubscribeReq\022\016\n\006status\030\002 \001(\005\"3\n\016PushS" + - "ubscribes\022!\n\006pushes\030\001 \003(\0132\021.PushSubscrib" + - "eReq\"/\n\022ReplySubscribePush\022\014\n\004isOk\030\001 \001(\010" + - "\022\013\n\003msg\030\002 \001(\tB7\n!cn.chain33.javasdk.mode" + - "l.protobufB\022BlockchainProtobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), - }); - internal_static_Header_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Header_descriptor, - new java.lang.String[] { "Version", "ParentHash", "TxHash", "StateHash", "Height", "BlockTime", "TxCount", "Hash", "Difficulty", "Signature", }); - internal_static_Block_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_Block_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Block_descriptor, - new java.lang.String[] { "Version", "ParentHash", "TxHash", "StateHash", "Height", "BlockTime", "Difficulty", "MainHash", "MainHeight", "Signature", "Txs", }); - internal_static_Blocks_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_Blocks_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Blocks_descriptor, - new java.lang.String[] { "Items", }); - internal_static_BlockSeq_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_BlockSeq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockSeq_descriptor, - new java.lang.String[] { "Num", "Seq", "Detail", }); - internal_static_BlockSeqs_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_BlockSeqs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockSeqs_descriptor, - new java.lang.String[] { "Seqs", }); - internal_static_BlockPid_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_BlockPid_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockPid_descriptor, - new java.lang.String[] { "Pid", "Block", }); - internal_static_BlockDetails_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_BlockDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockDetails_descriptor, - new java.lang.String[] { "Items", }); - internal_static_Headers_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_Headers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Headers_descriptor, - new java.lang.String[] { "Items", }); - internal_static_HeadersPid_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_HeadersPid_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HeadersPid_descriptor, - new java.lang.String[] { "Pid", "Headers", }); - internal_static_BlockOverview_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_BlockOverview_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockOverview_descriptor, - new java.lang.String[] { "Head", "TxCount", "TxHashes", }); - internal_static_BlockDetail_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_BlockDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockDetail_descriptor, - new java.lang.String[] { "Block", "Receipts", "KV", "PrevStatusHash", }); - internal_static_Receipts_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_Receipts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Receipts_descriptor, - new java.lang.String[] { "Receipts", }); - internal_static_ReceiptCheckTxList_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_ReceiptCheckTxList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptCheckTxList_descriptor, - new java.lang.String[] { "Errs", }); - internal_static_ChainStatus_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_ChainStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChainStatus_descriptor, - new java.lang.String[] { "CurrentHeight", "MempoolSize", "MsgQueueSize", }); - internal_static_ReqBlocks_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_ReqBlocks_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqBlocks_descriptor, - new java.lang.String[] { "Start", "End", "IsDetail", "Pid", }); - internal_static_MempoolSize_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_MempoolSize_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MempoolSize_descriptor, - new java.lang.String[] { "Size", }); - internal_static_ReplyBlockHeight_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_ReplyBlockHeight_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyBlockHeight_descriptor, - new java.lang.String[] { "Height", }); - internal_static_BlockBody_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_BlockBody_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockBody_descriptor, - new java.lang.String[] { "Txs", "Receipts", "MainHash", "MainHeight", "Hash", "Height", }); - internal_static_BlockReceipt_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_BlockReceipt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockReceipt_descriptor, - new java.lang.String[] { "Receipts", "Hash", "Height", }); - internal_static_IsCaughtUp_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_IsCaughtUp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_IsCaughtUp_descriptor, - new java.lang.String[] { "Iscaughtup", }); - internal_static_IsNtpClockSync_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_IsNtpClockSync_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_IsNtpClockSync_descriptor, - new java.lang.String[] { "Isntpclocksync", }); - internal_static_ChainExecutor_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_ChainExecutor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChainExecutor_descriptor, - new java.lang.String[] { "Driver", "FuncName", "StateHash", "Param", "Extra", }); - internal_static_BlockSequence_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_BlockSequence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockSequence_descriptor, - new java.lang.String[] { "Hash", "Type", }); - internal_static_BlockSequences_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_BlockSequences_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockSequences_descriptor, - new java.lang.String[] { "Items", }); - internal_static_ParaChainBlockDetail_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_ParaChainBlockDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ParaChainBlockDetail_descriptor, - new java.lang.String[] { "Blockdetail", "Sequence", "IsSync", }); - internal_static_ParaTxDetails_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_ParaTxDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ParaTxDetails_descriptor, - new java.lang.String[] { "Items", }); - internal_static_ParaTxDetail_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_ParaTxDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ParaTxDetail_descriptor, - new java.lang.String[] { "Type", "Header", "TxDetails", "ChildHash", "Index", "Proofs", }); - internal_static_TxDetail_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_TxDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TxDetail_descriptor, - new java.lang.String[] { "Index", "Tx", "Receipt", "Proofs", }); - internal_static_ReqParaTxByTitle_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_ReqParaTxByTitle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqParaTxByTitle_descriptor, - new java.lang.String[] { "Start", "End", "Title", "IsSeq", }); - internal_static_FileHeader_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_FileHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_FileHeader_descriptor, - new java.lang.String[] { "StartHeight", "Driver", "Title", "TestNet", }); - internal_static_EndBlock_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_EndBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EndBlock_descriptor, - new java.lang.String[] { "Height", "Hash", }); - internal_static_HeaderSeq_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_HeaderSeq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HeaderSeq_descriptor, - new java.lang.String[] { "Num", "Seq", "Header", }); - internal_static_HeaderSeqs_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_HeaderSeqs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HeaderSeqs_descriptor, - new java.lang.String[] { "Seqs", }); - internal_static_HeightPara_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_HeightPara_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HeightPara_descriptor, - new java.lang.String[] { "Height", "Title", "Hash", "ChildHash", "StartIndex", "ChildHashIndex", "TxCount", }); - internal_static_HeightParas_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_HeightParas_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HeightParas_descriptor, - new java.lang.String[] { "Items", }); - internal_static_ChildChain_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_ChildChain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChildChain_descriptor, - new java.lang.String[] { "Title", "StartIndex", "ChildHash", "TxCount", }); - internal_static_ReqHeightByTitle_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_ReqHeightByTitle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqHeightByTitle_descriptor, - new java.lang.String[] { "Height", "Title", "Count", "Direction", }); - internal_static_ReplyHeightByTitle_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_ReplyHeightByTitle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyHeightByTitle_descriptor, - new java.lang.String[] { "Title", "Items", }); - internal_static_BlockInfo_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_BlockInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockInfo_descriptor, - new java.lang.String[] { "Height", "Hash", }); - internal_static_ReqParaTxByHeight_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_ReqParaTxByHeight_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqParaTxByHeight_descriptor, - new java.lang.String[] { "Items", "Title", }); - internal_static_CmpBlock_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_CmpBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CmpBlock_descriptor, - new java.lang.String[] { "Block", "CmpHash", }); - internal_static_BlockBodys_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_BlockBodys_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockBodys_descriptor, - new java.lang.String[] { "Items", }); - internal_static_ChunkRecords_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_ChunkRecords_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChunkRecords_descriptor, - new java.lang.String[] { "Infos", }); - internal_static_ChunkInfoMsg_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_ChunkInfoMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChunkInfoMsg_descriptor, - new java.lang.String[] { "ChunkHash", "Start", "End", }); - internal_static_ChunkInfo_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_ChunkInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChunkInfo_descriptor, - new java.lang.String[] { "ChunkNum", "ChunkHash", "Start", "End", }); - internal_static_ReqChunkRecords_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_ReqChunkRecords_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqChunkRecords_descriptor, - new java.lang.String[] { "Start", "End", "IsDetail", "Pid", }); - internal_static_PushSubscribeReq_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_PushSubscribeReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PushSubscribeReq_descriptor, - new java.lang.String[] { "Name", "URL", "Encode", "LastSequence", "LastHeight", "LastBlockHash", "Type", "Contract", }); - internal_static_PushSubscribeReq_ContractEntry_descriptor = - internal_static_PushSubscribeReq_descriptor.getNestedTypes().get(0); - internal_static_PushSubscribeReq_ContractEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PushSubscribeReq_ContractEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_PushWithStatus_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_PushWithStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PushWithStatus_descriptor, - new java.lang.String[] { "Push", "Status", }); - internal_static_PushSubscribes_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_PushSubscribes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PushSubscribes_descriptor, - new java.lang.String[] { "Pushes", }); - internal_static_ReplySubscribePush_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_ReplySubscribePush_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplySubscribePush_descriptor, - new java.lang.String[] { "IsOk", "Msg", }); - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplySubscribePush parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplySubscribePush(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplySubscribePush getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Header_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Header_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Block_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Block_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Blocks_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Blocks_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockSeq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockSeq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockSeqs_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockSeqs_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockPid_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockPid_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockDetails_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Headers_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Headers_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HeadersPid_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HeadersPid_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockOverview_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockOverview_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Receipts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Receipts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptCheckTxList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptCheckTxList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChainStatus_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChainStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqBlocks_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqBlocks_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_MempoolSize_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_MempoolSize_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyBlockHeight_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyBlockHeight_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockBody_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockBody_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockReceipt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockReceipt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_IsCaughtUp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_IsCaughtUp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_IsNtpClockSync_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_IsNtpClockSync_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChainExecutor_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChainExecutor_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockSequence_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockSequence_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockSequences_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockSequences_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ParaChainBlockDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ParaChainBlockDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ParaTxDetails_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ParaTxDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ParaTxDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ParaTxDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TxDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TxDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqParaTxByTitle_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqParaTxByTitle_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_FileHeader_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_FileHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EndBlock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EndBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HeaderSeq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HeaderSeq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HeaderSeqs_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HeaderSeqs_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HeightPara_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HeightPara_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HeightParas_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HeightParas_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChildChain_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChildChain_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqHeightByTitle_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqHeightByTitle_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyHeightByTitle_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyHeightByTitle_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqParaTxByHeight_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqParaTxByHeight_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CmpBlock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CmpBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BlockBodys_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BlockBodys_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChunkRecords_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChunkRecords_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChunkInfoMsg_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChunkInfoMsg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChunkInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChunkInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqChunkRecords_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqChunkRecords_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_PushSubscribeReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PushSubscribeReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_PushSubscribeReq_ContractEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PushSubscribeReq_ContractEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_PushWithStatus_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PushWithStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_PushSubscribes_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PushSubscribes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplySubscribePush_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplySubscribePush_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\020blockchain.proto\032\021transaction.proto\032\014c" + + "ommon.proto\"\305\001\n\006Header\022\017\n\007version\030\001 \001(\003\022" + + "\022\n\nparentHash\030\002 \001(\014\022\016\n\006txHash\030\003 \001(\014\022\021\n\ts" + + "tateHash\030\004 \001(\014\022\016\n\006height\030\005 \001(\003\022\021\n\tblockT" + + "ime\030\006 \001(\003\022\017\n\007txCount\030\t \001(\003\022\014\n\004hash\030\n \001(\014" + + "\022\022\n\ndifficulty\030\013 \001(\r\022\035\n\tsignature\030\010 \001(\0132" + + "\n.Signature\"\346\001\n\005Block\022\017\n\007version\030\001 \001(\003\022\022" + + "\n\nparentHash\030\002 \001(\014\022\016\n\006txHash\030\003 \001(\014\022\021\n\tst" + + "ateHash\030\004 \001(\014\022\016\n\006height\030\005 \001(\003\022\021\n\tblockTi" + + "me\030\006 \001(\003\022\022\n\ndifficulty\030\013 \001(\r\022\020\n\010mainHash" + + "\030\014 \001(\014\022\022\n\nmainHeight\030\r \001(\003\022\035\n\tsignature\030" + + "\010 \001(\0132\n.Signature\022\031\n\003txs\030\007 \003(\0132\014.Transac" + + "tion\"\037\n\006Blocks\022\025\n\005items\030\001 \003(\0132\006.Block\"R\n" + + "\010BlockSeq\022\013\n\003num\030\001 \001(\003\022\033\n\003seq\030\002 \001(\0132\016.Bl" + + "ockSequence\022\034\n\006detail\030\003 \001(\0132\014.BlockDetai" + + "l\"$\n\tBlockSeqs\022\027\n\004seqs\030\001 \003(\0132\t.BlockSeq\"" + + ".\n\010BlockPid\022\013\n\003pid\030\001 \001(\t\022\025\n\005block\030\002 \001(\0132" + + "\006.Block\"+\n\014BlockDetails\022\033\n\005items\030\001 \003(\0132\014" + + ".BlockDetail\"!\n\007Headers\022\026\n\005items\030\001 \003(\0132\007" + + ".Header\"4\n\nHeadersPid\022\013\n\003pid\030\001 \001(\t\022\031\n\007he" + + "aders\030\002 \001(\0132\010.Headers\"I\n\rBlockOverview\022\025" + + "\n\004head\030\001 \001(\0132\007.Header\022\017\n\007txCount\030\002 \001(\003\022\020" + + "\n\010txHashes\030\003 \003(\014\"s\n\013BlockDetail\022\025\n\005block" + + "\030\001 \001(\0132\006.Block\022\036\n\010receipts\030\002 \003(\0132\014.Recei" + + "ptData\022\025\n\002KV\030\003 \003(\0132\t.KeyValue\022\026\n\016prevSta" + + "tusHash\030\004 \001(\014\"&\n\010Receipts\022\032\n\010receipts\030\001 " + + "\003(\0132\010.Receipt\"\"\n\022ReceiptCheckTxList\022\014\n\004e" + + "rrs\030\001 \003(\t\"O\n\013ChainStatus\022\025\n\rcurrentHeigh" + + "t\030\001 \001(\003\022\023\n\013mempoolSize\030\002 \001(\003\022\024\n\014msgQueue" + + "Size\030\003 \001(\003\"F\n\tReqBlocks\022\r\n\005start\030\001 \001(\003\022\013" + + "\n\003end\030\002 \001(\003\022\020\n\010isDetail\030\003 \001(\010\022\013\n\003pid\030\004 \003" + + "(\t\"\033\n\013MempoolSize\022\014\n\004size\030\001 \001(\003\"\"\n\020Reply" + + "BlockHeight\022\016\n\006height\030\001 \001(\003\"\212\001\n\tBlockBod" + + "y\022\031\n\003txs\030\001 \003(\0132\014.Transaction\022\036\n\010receipts" + + "\030\002 \003(\0132\014.ReceiptData\022\020\n\010mainHash\030\003 \001(\014\022\022" + + "\n\nmainHeight\030\004 \001(\003\022\014\n\004hash\030\005 \001(\014\022\016\n\006heig" + + "ht\030\006 \001(\003\"L\n\014BlockReceipt\022\036\n\010receipts\030\001 \003" + + "(\0132\014.ReceiptData\022\014\n\004hash\030\002 \001(\014\022\016\n\006height" + + "\030\003 \001(\003\" \n\nIsCaughtUp\022\022\n\nIscaughtup\030\001 \001(\010" + + "\"(\n\016IsNtpClockSync\022\026\n\016isntpclocksync\030\001 \001" + + "(\010\"b\n\rChainExecutor\022\016\n\006driver\030\001 \001(\t\022\020\n\010f" + + "uncName\030\002 \001(\t\022\021\n\tstateHash\030\003 \001(\014\022\r\n\005para" + + "m\030\004 \001(\014\022\r\n\005extra\030\005 \001(\014\"+\n\rBlockSequence\022" + + "\014\n\004Hash\030\001 \001(\014\022\014\n\004Type\030\002 \001(\003\"/\n\016BlockSequ" + + "ences\022\035\n\005items\030\001 \003(\0132\016.BlockSequence\"[\n\024" + + "ParaChainBlockDetail\022!\n\013blockdetail\030\001 \001(" + + "\0132\014.BlockDetail\022\020\n\010sequence\030\002 \001(\003\022\016\n\006isS" + + "ync\030\003 \001(\010\"-\n\rParaTxDetails\022\034\n\005items\030\001 \003(" + + "\0132\r.ParaTxDetail\"\205\001\n\014ParaTxDetail\022\014\n\004typ" + + "e\030\001 \001(\003\022\027\n\006header\030\002 \001(\0132\007.Header\022\034\n\ttxDe" + + "tails\030\003 \003(\0132\t.TxDetail\022\021\n\tchildHash\030\004 \001(" + + "\014\022\r\n\005index\030\005 \001(\r\022\016\n\006proofs\030\006 \003(\014\"b\n\010TxDe" + + "tail\022\r\n\005index\030\001 \001(\r\022\030\n\002tx\030\002 \001(\0132\014.Transa" + + "ction\022\035\n\007receipt\030\003 \001(\0132\014.ReceiptData\022\016\n\006" + + "proofs\030\004 \003(\014\"L\n\020ReqParaTxByTitle\022\r\n\005star" + + "t\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\r\n\005title\030\003 \001(\t\022\r\n\005i" + + "sSeq\030\004 \001(\010\"Q\n\nFileHeader\022\023\n\013startHeight\030" + + "\001 \001(\003\022\016\n\006driver\030\002 \001(\t\022\r\n\005title\030\003 \001(\t\022\017\n\007" + + "testNet\030\004 \001(\010\"(\n\010EndBlock\022\016\n\006height\030\001 \001(" + + "\003\022\014\n\004hash\030\002 \001(\014\"N\n\tHeaderSeq\022\013\n\003num\030\001 \001(" + + "\003\022\033\n\003seq\030\002 \001(\0132\016.BlockSequence\022\027\n\006header" + + "\030\003 \001(\0132\007.Header\"&\n\nHeaderSeqs\022\030\n\004seqs\030\001 " + + "\003(\0132\n.HeaderSeq\"\211\001\n\nHeightPara\022\016\n\006height" + + "\030\001 \001(\003\022\r\n\005title\030\002 \001(\t\022\014\n\004hash\030\003 \001(\014\022\021\n\tc" + + "hildHash\030\004 \001(\014\022\022\n\nstartIndex\030\005 \001(\005\022\026\n\016ch" + + "ildHashIndex\030\006 \001(\r\022\017\n\007txCount\030\007 \001(\005\")\n\013H" + + "eightParas\022\032\n\005items\030\001 \003(\0132\013.HeightPara\"S" + + "\n\nChildChain\022\r\n\005title\030\001 \001(\t\022\022\n\nstartInde" + + "x\030\002 \001(\005\022\021\n\tchildHash\030\003 \001(\014\022\017\n\007txCount\030\004 " + + "\001(\005\"S\n\020ReqHeightByTitle\022\016\n\006height\030\001 \001(\003\022" + + "\r\n\005title\030\002 \001(\t\022\r\n\005count\030\003 \001(\005\022\021\n\tdirecti" + + "on\030\004 \001(\005\">\n\022ReplyHeightByTitle\022\r\n\005title\030" + + "\001 \001(\t\022\031\n\005items\030\002 \003(\0132\n.BlockInfo\")\n\tBloc" + + "kInfo\022\016\n\006height\030\001 \001(\003\022\014\n\004hash\030\002 \001(\014\"1\n\021R" + + "eqParaTxByHeight\022\r\n\005items\030\001 \003(\003\022\r\n\005title" + + "\030\002 \001(\t\"2\n\010CmpBlock\022\025\n\005block\030\001 \001(\0132\006.Bloc" + + "k\022\017\n\007cmpHash\030\002 \001(\014\"\'\n\nBlockBodys\022\031\n\005item" + + "s\030\001 \003(\0132\n.BlockBody\")\n\014ChunkRecords\022\031\n\005i" + + "nfos\030\001 \003(\0132\n.ChunkInfo\"=\n\014ChunkInfoMsg\022\021" + + "\n\tchunkHash\030\001 \001(\014\022\r\n\005start\030\002 \001(\003\022\013\n\003end\030" + + "\003 \001(\003\"L\n\tChunkInfo\022\020\n\010chunkNum\030\001 \001(\003\022\021\n\t" + + "chunkHash\030\002 \001(\014\022\r\n\005start\030\003 \001(\003\022\013\n\003end\030\004 " + + "\001(\003\"L\n\017ReqChunkRecords\022\r\n\005start\030\001 \001(\003\022\013\n" + + "\003end\030\002 \001(\003\022\020\n\010isDetail\030\003 \001(\010\022\013\n\003pid\030\004 \003(" + + "\t\"\360\001\n\020PushSubscribeReq\022\014\n\004name\030\001 \001(\t\022\013\n\003" + + "URL\030\002 \001(\t\022\016\n\006encode\030\003 \001(\t\022\024\n\014lastSequenc" + + "e\030\004 \001(\003\022\022\n\nlastHeight\030\005 \001(\003\022\025\n\rlastBlock" + + "Hash\030\006 \001(\t\022\014\n\004type\030\007 \001(\005\0221\n\010contract\030\010 \003" + + "(\0132\037.PushSubscribeReq.ContractEntry\032/\n\rC" + + "ontractEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010" + + ":\0028\001\"A\n\016PushWithStatus\022\037\n\004push\030\001 \001(\0132\021.P" + + "ushSubscribeReq\022\016\n\006status\030\002 \001(\005\"3\n\016PushS" + + "ubscribes\022!\n\006pushes\030\001 \003(\0132\021.PushSubscrib" + + "eReq\"/\n\022ReplySubscribePush\022\014\n\004isOk\030\001 \001(\010" + + "\022\013\n\003msg\030\002 \001(\tB7\n!cn.chain33.javasdk.mode" + + "l.protobufB\022BlockchainProtobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), }); + internal_static_Header_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Header_descriptor, new java.lang.String[] { "Version", "ParentHash", "TxHash", + "StateHash", "Height", "BlockTime", "TxCount", "Hash", "Difficulty", "Signature", }); + internal_static_Block_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_Block_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Block_descriptor, + new java.lang.String[] { "Version", "ParentHash", "TxHash", "StateHash", "Height", "BlockTime", + "Difficulty", "MainHash", "MainHeight", "Signature", "Txs", }); + internal_static_Blocks_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_Blocks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Blocks_descriptor, new java.lang.String[] { "Items", }); + internal_static_BlockSeq_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_BlockSeq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockSeq_descriptor, new java.lang.String[] { "Num", "Seq", "Detail", }); + internal_static_BlockSeqs_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_BlockSeqs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockSeqs_descriptor, new java.lang.String[] { "Seqs", }); + internal_static_BlockPid_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_BlockPid_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockPid_descriptor, new java.lang.String[] { "Pid", "Block", }); + internal_static_BlockDetails_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_BlockDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockDetails_descriptor, new java.lang.String[] { "Items", }); + internal_static_Headers_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_Headers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Headers_descriptor, new java.lang.String[] { "Items", }); + internal_static_HeadersPid_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_HeadersPid_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HeadersPid_descriptor, new java.lang.String[] { "Pid", "Headers", }); + internal_static_BlockOverview_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_BlockOverview_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockOverview_descriptor, new java.lang.String[] { "Head", "TxCount", "TxHashes", }); + internal_static_BlockDetail_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_BlockDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockDetail_descriptor, + new java.lang.String[] { "Block", "Receipts", "KV", "PrevStatusHash", }); + internal_static_Receipts_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_Receipts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Receipts_descriptor, new java.lang.String[] { "Receipts", }); + internal_static_ReceiptCheckTxList_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_ReceiptCheckTxList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptCheckTxList_descriptor, new java.lang.String[] { "Errs", }); + internal_static_ChainStatus_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_ChainStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ChainStatus_descriptor, + new java.lang.String[] { "CurrentHeight", "MempoolSize", "MsgQueueSize", }); + internal_static_ReqBlocks_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_ReqBlocks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqBlocks_descriptor, new java.lang.String[] { "Start", "End", "IsDetail", "Pid", }); + internal_static_MempoolSize_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_MempoolSize_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_MempoolSize_descriptor, new java.lang.String[] { "Size", }); + internal_static_ReplyBlockHeight_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_ReplyBlockHeight_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyBlockHeight_descriptor, new java.lang.String[] { "Height", }); + internal_static_BlockBody_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_BlockBody_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockBody_descriptor, + new java.lang.String[] { "Txs", "Receipts", "MainHash", "MainHeight", "Hash", "Height", }); + internal_static_BlockReceipt_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_BlockReceipt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockReceipt_descriptor, new java.lang.String[] { "Receipts", "Hash", "Height", }); + internal_static_IsCaughtUp_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_IsCaughtUp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_IsCaughtUp_descriptor, new java.lang.String[] { "Iscaughtup", }); + internal_static_IsNtpClockSync_descriptor = getDescriptor().getMessageTypes().get(20); + internal_static_IsNtpClockSync_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_IsNtpClockSync_descriptor, new java.lang.String[] { "Isntpclocksync", }); + internal_static_ChainExecutor_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_ChainExecutor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ChainExecutor_descriptor, + new java.lang.String[] { "Driver", "FuncName", "StateHash", "Param", "Extra", }); + internal_static_BlockSequence_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_BlockSequence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockSequence_descriptor, new java.lang.String[] { "Hash", "Type", }); + internal_static_BlockSequences_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_BlockSequences_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockSequences_descriptor, new java.lang.String[] { "Items", }); + internal_static_ParaChainBlockDetail_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_ParaChainBlockDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ParaChainBlockDetail_descriptor, + new java.lang.String[] { "Blockdetail", "Sequence", "IsSync", }); + internal_static_ParaTxDetails_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_ParaTxDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ParaTxDetails_descriptor, new java.lang.String[] { "Items", }); + internal_static_ParaTxDetail_descriptor = getDescriptor().getMessageTypes().get(26); + internal_static_ParaTxDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ParaTxDetail_descriptor, + new java.lang.String[] { "Type", "Header", "TxDetails", "ChildHash", "Index", "Proofs", }); + internal_static_TxDetail_descriptor = getDescriptor().getMessageTypes().get(27); + internal_static_TxDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TxDetail_descriptor, new java.lang.String[] { "Index", "Tx", "Receipt", "Proofs", }); + internal_static_ReqParaTxByTitle_descriptor = getDescriptor().getMessageTypes().get(28); + internal_static_ReqParaTxByTitle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqParaTxByTitle_descriptor, + new java.lang.String[] { "Start", "End", "Title", "IsSeq", }); + internal_static_FileHeader_descriptor = getDescriptor().getMessageTypes().get(29); + internal_static_FileHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_FileHeader_descriptor, + new java.lang.String[] { "StartHeight", "Driver", "Title", "TestNet", }); + internal_static_EndBlock_descriptor = getDescriptor().getMessageTypes().get(30); + internal_static_EndBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EndBlock_descriptor, new java.lang.String[] { "Height", "Hash", }); + internal_static_HeaderSeq_descriptor = getDescriptor().getMessageTypes().get(31); + internal_static_HeaderSeq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HeaderSeq_descriptor, new java.lang.String[] { "Num", "Seq", "Header", }); + internal_static_HeaderSeqs_descriptor = getDescriptor().getMessageTypes().get(32); + internal_static_HeaderSeqs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HeaderSeqs_descriptor, new java.lang.String[] { "Seqs", }); + internal_static_HeightPara_descriptor = getDescriptor().getMessageTypes().get(33); + internal_static_HeightPara_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HeightPara_descriptor, new java.lang.String[] { "Height", "Title", "Hash", "ChildHash", + "StartIndex", "ChildHashIndex", "TxCount", }); + internal_static_HeightParas_descriptor = getDescriptor().getMessageTypes().get(34); + internal_static_HeightParas_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HeightParas_descriptor, new java.lang.String[] { "Items", }); + internal_static_ChildChain_descriptor = getDescriptor().getMessageTypes().get(35); + internal_static_ChildChain_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ChildChain_descriptor, + new java.lang.String[] { "Title", "StartIndex", "ChildHash", "TxCount", }); + internal_static_ReqHeightByTitle_descriptor = getDescriptor().getMessageTypes().get(36); + internal_static_ReqHeightByTitle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqHeightByTitle_descriptor, + new java.lang.String[] { "Height", "Title", "Count", "Direction", }); + internal_static_ReplyHeightByTitle_descriptor = getDescriptor().getMessageTypes().get(37); + internal_static_ReplyHeightByTitle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyHeightByTitle_descriptor, new java.lang.String[] { "Title", "Items", }); + internal_static_BlockInfo_descriptor = getDescriptor().getMessageTypes().get(38); + internal_static_BlockInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockInfo_descriptor, new java.lang.String[] { "Height", "Hash", }); + internal_static_ReqParaTxByHeight_descriptor = getDescriptor().getMessageTypes().get(39); + internal_static_ReqParaTxByHeight_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqParaTxByHeight_descriptor, new java.lang.String[] { "Items", "Title", }); + internal_static_CmpBlock_descriptor = getDescriptor().getMessageTypes().get(40); + internal_static_CmpBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CmpBlock_descriptor, new java.lang.String[] { "Block", "CmpHash", }); + internal_static_BlockBodys_descriptor = getDescriptor().getMessageTypes().get(41); + internal_static_BlockBodys_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BlockBodys_descriptor, new java.lang.String[] { "Items", }); + internal_static_ChunkRecords_descriptor = getDescriptor().getMessageTypes().get(42); + internal_static_ChunkRecords_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ChunkRecords_descriptor, new java.lang.String[] { "Infos", }); + internal_static_ChunkInfoMsg_descriptor = getDescriptor().getMessageTypes().get(43); + internal_static_ChunkInfoMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ChunkInfoMsg_descriptor, new java.lang.String[] { "ChunkHash", "Start", "End", }); + internal_static_ChunkInfo_descriptor = getDescriptor().getMessageTypes().get(44); + internal_static_ChunkInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ChunkInfo_descriptor, + new java.lang.String[] { "ChunkNum", "ChunkHash", "Start", "End", }); + internal_static_ReqChunkRecords_descriptor = getDescriptor().getMessageTypes().get(45); + internal_static_ReqChunkRecords_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqChunkRecords_descriptor, + new java.lang.String[] { "Start", "End", "IsDetail", "Pid", }); + internal_static_PushSubscribeReq_descriptor = getDescriptor().getMessageTypes().get(46); + internal_static_PushSubscribeReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_PushSubscribeReq_descriptor, new java.lang.String[] { "Name", "URL", "Encode", + "LastSequence", "LastHeight", "LastBlockHash", "Type", "Contract", }); + internal_static_PushSubscribeReq_ContractEntry_descriptor = internal_static_PushSubscribeReq_descriptor + .getNestedTypes().get(0); + internal_static_PushSubscribeReq_ContractEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_PushSubscribeReq_ContractEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_PushWithStatus_descriptor = getDescriptor().getMessageTypes().get(47); + internal_static_PushWithStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_PushWithStatus_descriptor, new java.lang.String[] { "Push", "Status", }); + internal_static_PushSubscribes_descriptor = getDescriptor().getMessageTypes().get(48); + internal_static_PushSubscribes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_PushSubscribes_descriptor, new java.lang.String[] { "Pushes", }); + internal_static_ReplySubscribePush_descriptor = getDescriptor().getMessageTypes().get(49); + internal_static_ReplySubscribePush_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplySubscribePush_descriptor, new java.lang.String[] { "IsOk", "Msg", }); + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.java b/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.java index d1bef6d..711e202 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.java @@ -4,11464 +4,12194 @@ package cn.chain33.javasdk.model.protobuf; public final class CertService { - private CertService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReqRegisterUserOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqRegisterUser) - com.google.protobuf.MessageOrBuilder { + private CertService() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface ReqRegisterUserOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqRegisterUser) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 用户名
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + *
+         * 用户名
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 2; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 2; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); + + /** + *
+         * 用户公钥
+         * 
+ * + * string pubKey = 3; + * + * @return The pubKey. + */ + java.lang.String getPubKey(); + + /** + *
+         * 用户公钥
+         * 
+ * + * string pubKey = 3; + * + * @return The bytes for pubKey. + */ + com.google.protobuf.ByteString getPubKeyBytes(); + + /** + *
+         * 请求方签名
+         * 
+ * + * bytes sign = 4; + * + * @return The sign. + */ + com.google.protobuf.ByteString getSign(); + } /** *
-     *用户名
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     *用户名
+     * 用户注册请求
      * 
* - * string name = 1; + * Protobuf type {@code ReqRegisterUser} */ - com.google.protobuf.ByteString - getNameBytes(); + public static final class ReqRegisterUser extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqRegisterUser) + ReqRegisterUserOrBuilder { + private static final long serialVersionUID = 0L; - /** - *
-     *用户ID
-     * 
- * - * string identity = 2; - */ - java.lang.String getIdentity(); - /** - *
-     *用户ID
-     * 
- * - * string identity = 2; - */ - com.google.protobuf.ByteString - getIdentityBytes(); + // Use ReqRegisterUser.newBuilder() to construct. + private ReqRegisterUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - *
-     *用户公钥
-     * 
- * - * string pubKey = 3; - */ - java.lang.String getPubKey(); - /** - *
-     *用户公钥
-     * 
- * - * string pubKey = 3; - */ - com.google.protobuf.ByteString - getPubKeyBytes(); + private ReqRegisterUser() { + name_ = ""; + identity_ = ""; + pubKey_ = ""; + sign_ = com.google.protobuf.ByteString.EMPTY; + } - /** - *
-     *请求方签名
-     * 
- * - * bytes sign = 4; - */ - com.google.protobuf.ByteString getSign(); - } - /** - *
-   * 用户注册请求
-   * 
- * - * Protobuf type {@code ReqRegisterUser} - */ - public static final class ReqRegisterUser extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqRegisterUser) - ReqRegisterUserOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqRegisterUser.newBuilder() to construct. - private ReqRegisterUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqRegisterUser() { - name_ = ""; - identity_ = ""; - pubKey_ = ""; - sign_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqRegisterUser(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqRegisterUser(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqRegisterUser( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + private ReqRegisterUser(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pubKey_ = s; + break; + } + case 34: { + + sign_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - name_ = s; - break; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + *
+         * 用户名
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + } - identity_ = s; - break; + /** + *
+         * 用户名
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + } - pubKey_ = s; - break; + public static final int IDENTITY_FIELD_NUMBER = 2; + private volatile java.lang.Object identity_; + + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 2; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; } - case 34: { + } - sign_ = input.readBytes(); - break; + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 2; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + } + + public static final int PUBKEY_FIELD_NUMBER = 3; + private volatile java.lang.Object pubKey_; + + /** + *
+         * 用户公钥
+         * 
+ * + * string pubKey = 3; + * + * @return The pubKey. + */ + @java.lang.Override + public java.lang.String getPubKey() { + java.lang.Object ref = pubKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pubKey_ = s; + return s; } - } } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.class, cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.Builder.class); - } + /** + *
+         * 用户公钥
+         * 
+ * + * string pubKey = 3; + * + * @return The bytes for pubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPubKeyBytes() { + java.lang.Object ref = pubKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     *用户名
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     *用户名
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int SIGN_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString sign_; - public static final int IDENTITY_FIELD_NUMBER = 2; - private volatile java.lang.Object identity_; - /** - *
-     *用户ID
-     * 
- * - * string identity = 2; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - *
-     *用户ID
-     * 
- * - * string identity = 2; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + *
+         * 请求方签名
+         * 
+ * + * bytes sign = 4; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); + } + if (!getPubKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pubKey_); + } + if (!sign_.isEmpty()) { + output.writeBytes(4, sign_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); + } + if (!getPubKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pubKey_); + } + if (!sign_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, sign_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser other = (cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!getPubKey().equals(other.getPubKey())) + return false; + if (!getSign().equals(other.getSign())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (37 * hash) + PUBKEY_FIELD_NUMBER; + hash = (53 * hash) + getPubKey().hashCode(); + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqRegisterUser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqRegisterUser) + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + identity_ = ""; + + pubKey_ = ""; + + sign_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser build() { + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser result = new cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser( + this); + result.name_ = name_; + result.identity_ = identity_; + result.pubKey_ = pubKey_; + result.sign_ = sign_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + if (!other.getPubKey().isEmpty()) { + pubKey_ = other.pubKey_; + onChanged(); + } + if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { + setSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + *
+             * 用户名
+             * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 用户名
+             * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 用户名
+             * 
+ * + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + *
+             * 用户名
+             * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + *
+             * 用户名
+             * 
+ * + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object identity_ = ""; + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 2; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 2; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 2; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 2; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 2; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + private java.lang.Object pubKey_ = ""; + + /** + *
+             * 用户公钥
+             * 
+ * + * string pubKey = 3; + * + * @return The pubKey. + */ + public java.lang.String getPubKey() { + java.lang.Object ref = pubKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pubKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 用户公钥
+             * 
+ * + * string pubKey = 3; + * + * @return The bytes for pubKey. + */ + public com.google.protobuf.ByteString getPubKeyBytes() { + java.lang.Object ref = pubKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + pubKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 用户公钥
+             * 
+ * + * string pubKey = 3; + * + * @param value + * The pubKey to set. + * + * @return This builder for chaining. + */ + public Builder setPubKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pubKey_ = value; + onChanged(); + return this; + } + + /** + *
+             * 用户公钥
+             * 
+ * + * string pubKey = 3; + * + * @return This builder for chaining. + */ + public Builder clearPubKey() { + + pubKey_ = getDefaultInstance().getPubKey(); + onChanged(); + return this; + } + + /** + *
+             * 用户公钥
+             * 
+ * + * string pubKey = 3; + * + * @param value + * The bytes for pubKey to set. + * + * @return This builder for chaining. + */ + public Builder setPubKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pubKey_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 4; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 4; + * + * @param value + * The sign to set. + * + * @return This builder for chaining. + */ + public Builder setSign(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + sign_ = value; + onChanged(); + return this; + } + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 4; + * + * @return This builder for chaining. + */ + public Builder clearSign() { + + sign_ = getDefaultInstance().getSign(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqRegisterUser) + } + + // @@protoc_insertion_point(class_scope:ReqRegisterUser) + private static final cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqRegisterUser parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqRegisterUser(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int PUBKEY_FIELD_NUMBER = 3; - private volatile java.lang.Object pubKey_; - /** - *
-     *用户公钥
-     * 
- * - * string pubKey = 3; - */ - public java.lang.String getPubKey() { - java.lang.Object ref = pubKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pubKey_ = s; - return s; - } } - /** - *
-     *用户公钥
-     * 
- * - * string pubKey = 3; - */ - public com.google.protobuf.ByteString - getPubKeyBytes() { - java.lang.Object ref = pubKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pubKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + + public interface ReqRevokeUserOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqRevokeUser) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 1; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 1; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); + + /** + *
+         * 请求方签名
+         * 
+ * + * bytes sign = 2; + * + * @return The sign. + */ + com.google.protobuf.ByteString getSign(); } - public static final int SIGN_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString sign_; /** *
-     *请求方签名
+     * 用户注销请求
      * 
* - * bytes sign = 4; + * Protobuf type {@code ReqRevokeUser} */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } + public static final class ReqRevokeUser extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqRevokeUser) + ReqRevokeUserOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use ReqRevokeUser.newBuilder() to construct. + private ReqRevokeUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private ReqRevokeUser() { + identity_ = ""; + sign_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); - } - if (!getPubKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pubKey_); - } - if (!sign_.isEmpty()) { - output.writeBytes(4, sign_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqRevokeUser(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); - } - if (!getPubKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pubKey_); - } - if (!sign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, sign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqRevokeUser(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + case 18: { + + sign_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.Builder.class); + } + + public static final int IDENTITY_FIELD_NUMBER = 1; + private volatile java.lang.Object identity_; + + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 1; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } + } + + /** + *
+         * 用户ID
+         * 
+ * + * string identity = 1; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIGN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sign_; + + /** + *
+         * 请求方签名
+         * 
+ * + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); + } + if (!sign_.isEmpty()) { + output.writeBytes(2, sign_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); + } + if (!sign_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sign_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser other = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser) obj; + + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!getSign().equals(other.getSign())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqRevokeUser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqRevokeUser) + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + identity_ = ""; + + sign_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser build() { + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser result = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser( + this); + result.identity_ = identity_; + result.sign_ = sign_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.getDefaultInstance()) + return this; + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { + setSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object identity_ = ""; + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 1; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 1; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 1; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + *
+             * 用户ID
+             * 
+ * + * string identity = 1; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 2; + * + * @param value + * The sign to set. + * + * @return This builder for chaining. + */ + public Builder setSign(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + sign_ = value; + onChanged(); + return this; + } + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 2; + * + * @return This builder for chaining. + */ + public Builder clearSign() { + + sign_ = getDefaultInstance().getSign(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqRevokeUser) + } + + // @@protoc_insertion_point(class_scope:ReqRevokeUser) + private static final cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqRevokeUser parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqRevokeUser(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqEnrollOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqEnroll) + com.google.protobuf.MessageOrBuilder { + + /** + * string identity = 1; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); + + /** + * bytes sign = 2; + * + * @return The sign. + */ + com.google.protobuf.ByteString getSign(); + } + + /** + *
+     * 申请证书
+     * 
+ * + * Protobuf type {@code ReqEnroll} + */ + public static final class ReqEnroll extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqEnroll) + ReqEnrollOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqEnroll.newBuilder() to construct. + private ReqEnroll(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqEnroll() { + identity_ = ""; + sign_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqEnroll(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqEnroll(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + case 18: { + + sign_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.Builder.class); + } + + public static final int IDENTITY_FIELD_NUMBER = 1; + private volatile java.lang.Object identity_; + + /** + * string identity = 1; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } + } + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIGN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sign_; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); + } + if (!sign_.isEmpty()) { + output.writeBytes(2, sign_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); + } + if (!sign_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sign_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll other = (cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll) obj; + + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!getSign().equals(other.getSign())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqEnroll} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqEnroll) + cn.chain33.javasdk.model.protobuf.CertService.ReqEnrollOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + identity_ = ""; + + sign_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll build() { + cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll result = new cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll( + this); + result.identity_ = identity_; + result.sign_ = sign_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.getDefaultInstance()) + return this; + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { + setSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object identity_ = ""; + + /** + * string identity = 1; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string identity = 1; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + * string identity = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + * string identity = 1; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + /** + * bytes sign = 2; + * + * @param value + * The sign to set. + * + * @return This builder for chaining. + */ + public Builder setSign(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + sign_ = value; + onChanged(); + return this; + } + + /** + * bytes sign = 2; + * + * @return This builder for chaining. + */ + public Builder clearSign() { + + sign_ = getDefaultInstance().getSign(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqEnroll) + } + + // @@protoc_insertion_point(class_scope:ReqEnroll) + private static final cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqEnroll parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqEnroll(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RepEnrollOrBuilder extends + // @@protoc_insertion_point(interface_extends:RepEnroll) + com.google.protobuf.MessageOrBuilder { + + /** + * string serial = 1; + * + * @return The serial. + */ + java.lang.String getSerial(); + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + com.google.protobuf.ByteString getSerialBytes(); + + /** + * bytes cert = 2; + * + * @return The cert. + */ + com.google.protobuf.ByteString getCert(); + } + + /** + *
+     * 证书信息
+     * 
+ * + * Protobuf type {@code RepEnroll} + */ + public static final class RepEnroll extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:RepEnroll) + RepEnrollOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RepEnroll.newBuilder() to construct. + private RepEnroll(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RepEnroll() { + serial_ = ""; + cert_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RepEnroll(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RepEnroll(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + serial_ = s; + break; + } + case 18: { + + cert_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.class, + cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.Builder.class); + } + + public static final int SERIAL_FIELD_NUMBER = 1; + private volatile java.lang.Object serial_; + + /** + * string serial = 1; + * + * @return The serial. + */ + @java.lang.Override + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } + } + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString cert_; + + /** + * bytes cert = 2; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSerialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serial_); + } + if (!cert_.isEmpty()) { + output.writeBytes(2, cert_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSerialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serial_); + } + if (!cert_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, cert_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.RepEnroll)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.RepEnroll other = (cn.chain33.javasdk.model.protobuf.CertService.RepEnroll) obj; + + if (!getSerial().equals(other.getSerial())) + return false; + if (!getCert().equals(other.getCert())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERIAL_FIELD_NUMBER; + hash = (53 * hash) + getSerial().hashCode(); + hash = (37 * hash) + CERT_FIELD_NUMBER; + hash = (53 * hash) + getCert().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.RepEnroll prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 RepEnroll} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:RepEnroll) + cn.chain33.javasdk.model.protobuf.CertService.RepEnrollOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.class, + cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + serial_ = ""; + + cert_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll build() { + cn.chain33.javasdk.model.protobuf.CertService.RepEnroll result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.RepEnroll result = new cn.chain33.javasdk.model.protobuf.CertService.RepEnroll( + this); + result.serial_ = serial_; + result.cert_ = cert_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.RepEnroll) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.RepEnroll) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.RepEnroll other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.getDefaultInstance()) + return this; + if (!other.getSerial().isEmpty()) { + serial_ = other.serial_; + onChanged(); + } + if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { + setCert(other.getCert()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.RepEnroll) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object serial_ = ""; + + /** + * string serial = 1; + * + * @return The serial. + */ + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string serial = 1; + * + * @param value + * The serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serial_ = value; + onChanged(); + return this; + } + + /** + * string serial = 1; + * + * @return This builder for chaining. + */ + public Builder clearSerial() { + + serial_ = getDefaultInstance().getSerial(); + onChanged(); + return this; + } + + /** + * string serial = 1; + * + * @param value + * The bytes for serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serial_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes cert = 2; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + /** + * bytes cert = 2; + * + * @param value + * The cert to set. + * + * @return This builder for chaining. + */ + public Builder setCert(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + cert_ = value; + onChanged(); + return this; + } + + /** + * bytes cert = 2; + * + * @return This builder for chaining. + */ + public Builder clearCert() { + + cert_ = getDefaultInstance().getCert(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:RepEnroll) + } + + // @@protoc_insertion_point(class_scope:RepEnroll) + private static final cn.chain33.javasdk.model.protobuf.CertService.RepEnroll DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.RepEnroll(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepEnroll parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepEnroll(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqRevokeCertOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqRevokeCert) + com.google.protobuf.MessageOrBuilder { + + /** + * string serial = 1; + * + * @return The serial. + */ + java.lang.String getSerial(); + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + com.google.protobuf.ByteString getSerialBytes(); + + /** + * string identity = 2; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + * string identity = 2; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); + + /** + *
+         * 请求方签名
+         * 
+ * + * bytes sign = 3; + * + * @return The sign. + */ + com.google.protobuf.ByteString getSign(); + } + + /** + *
+     * 证书注销请求
+     * 
+ * + * Protobuf type {@code ReqRevokeCert} + */ + public static final class ReqRevokeCert extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqRevokeCert) + ReqRevokeCertOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqRevokeCert.newBuilder() to construct. + private ReqRevokeCert(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqRevokeCert() { + serial_ = ""; + identity_ = ""; + sign_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqRevokeCert(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqRevokeCert(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + serial_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + case 26: { + + sign_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.Builder.class); + } + + public static final int SERIAL_FIELD_NUMBER = 1; + private volatile java.lang.Object serial_; + + /** + * string serial = 1; + * + * @return The serial. + */ + @java.lang.Override + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } + } + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_FIELD_NUMBER = 2; + private volatile java.lang.Object identity_; + + /** + * string identity = 2; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } + } + + /** + * string identity = 2; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIGN_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString sign_; + + /** + *
+         * 请求方签名
+         * 
+ * + * bytes sign = 3; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSerialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serial_); + } + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); + } + if (!sign_.isEmpty()) { + output.writeBytes(3, sign_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSerialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serial_); + } + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); + } + if (!sign_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, sign_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert other = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert) obj; + + if (!getSerial().equals(other.getSerial())) + return false; + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!getSign().equals(other.getSign())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERIAL_FIELD_NUMBER; + hash = (53 * hash) + getSerial().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqRevokeCert} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqRevokeCert) + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCertOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + serial_ = ""; + + identity_ = ""; + + sign_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert build() { + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert result = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert( + this); + result.serial_ = serial_; + result.identity_ = identity_; + result.sign_ = sign_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.getDefaultInstance()) + return this; + if (!other.getSerial().isEmpty()) { + serial_ = other.serial_; + onChanged(); + } + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { + setSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object serial_ = ""; + + /** + * string serial = 1; + * + * @return The serial. + */ + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string serial = 1; + * + * @param value + * The serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serial_ = value; + onChanged(); + return this; + } + + /** + * string serial = 1; + * + * @return This builder for chaining. + */ + public Builder clearSerial() { + + serial_ = getDefaultInstance().getSerial(); + onChanged(); + return this; + } + + /** + * string serial = 1; + * + * @param value + * The bytes for serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serial_ = value; + onChanged(); + return this; + } + + private java.lang.Object identity_ = ""; + + /** + * string identity = 2; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string identity = 2; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string identity = 2; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + * string identity = 2; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + * string identity = 2; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 3; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 3; + * + * @param value + * The sign to set. + * + * @return This builder for chaining. + */ + public Builder setSign(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + sign_ = value; + onChanged(); + return this; + } + + /** + *
+             * 请求方签名
+             * 
+ * + * bytes sign = 3; + * + * @return This builder for chaining. + */ + public Builder clearSign() { + + sign_ = getDefaultInstance().getSign(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqRevokeCert) + } + + // @@protoc_insertion_point(class_scope:ReqRevokeCert) + private static final cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqRevokeCert parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqRevokeCert(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqGetCRLOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqGetCRL) + com.google.protobuf.MessageOrBuilder { + + /** + * string identity = 1; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); + + /** + * bytes sign = 2; + * + * @return The sign. + */ + com.google.protobuf.ByteString getSign(); + } + + /** + *
+     * 获取CRL请求
+     * 
+ * + * Protobuf type {@code ReqGetCRL} + */ + public static final class ReqGetCRL extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqGetCRL) + ReqGetCRLOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqGetCRL.newBuilder() to construct. + private ReqGetCRL(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqGetCRL() { + identity_ = ""; + sign_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqGetCRL(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqGetCRL(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + case 18: { + + sign_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.Builder.class); + } + + public static final int IDENTITY_FIELD_NUMBER = 1; + private volatile java.lang.Object identity_; + + /** + * string identity = 1; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } + } + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIGN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sign_; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); + } + if (!sign_.isEmpty()) { + output.writeBytes(2, sign_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); + } + if (!sign_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sign_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL other = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL) obj; + + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!getSign().equals(other.getSign())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 获取CRL请求
+         * 
+ * + * Protobuf type {@code ReqGetCRL} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqGetCRL) + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRLOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + identity_ = ""; + + sign_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL build() { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL result = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL( + this); + result.identity_ = identity_; + result.sign_ = sign_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.getDefaultInstance()) + return this; + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { + setSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object identity_ = ""; + + /** + * string identity = 1; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string identity = 1; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + * string identity = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + * string identity = 1; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + /** + * bytes sign = 2; + * + * @param value + * The sign to set. + * + * @return This builder for chaining. + */ + public Builder setSign(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + sign_ = value; + onChanged(); + return this; + } + + /** + * bytes sign = 2; + * + * @return This builder for chaining. + */ + public Builder clearSign() { + + sign_ = getDefaultInstance().getSign(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqGetCRL) + } + + // @@protoc_insertion_point(class_scope:ReqGetCRL) + private static final cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqGetCRL parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqGetCRL(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqGetUserInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqGetUserInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string identity = 1; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); + + /** + * bytes sign = 2; + * + * @return The sign. + */ + com.google.protobuf.ByteString getSign(); + } + + /** + *
+     * 获取用户信息
+     * 
+ * + * Protobuf type {@code ReqGetUserInfo} + */ + public static final class ReqGetUserInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqGetUserInfo) + ReqGetUserInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqGetUserInfo.newBuilder() to construct. + private ReqGetUserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqGetUserInfo() { + identity_ = ""; + sign_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqGetUserInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqGetUserInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + case 18: { + + sign_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.Builder.class); + } + + public static final int IDENTITY_FIELD_NUMBER = 1; + private volatile java.lang.Object identity_; + + /** + * string identity = 1; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } + } + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIGN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sign_; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); + } + if (!sign_.isEmpty()) { + output.writeBytes(2, sign_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); + } + if (!sign_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sign_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo other = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo) obj; + + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!getSign().equals(other.getSign())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqGetUserInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqGetUserInfo) + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + identity_ = ""; + + sign_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo build() { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo result = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo( + this); + result.identity_ = identity_; + result.sign_ = sign_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.getDefaultInstance()) + return this; + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { + setSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object identity_ = ""; + + /** + * string identity = 1; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string identity = 1; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string identity = 1; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + * string identity = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + * string identity = 1; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + /** + * bytes sign = 2; + * + * @param value + * The sign to set. + * + * @return This builder for chaining. + */ + public Builder setSign(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + sign_ = value; + onChanged(); + return this; + } + + /** + * bytes sign = 2; + * + * @return This builder for chaining. + */ + public Builder clearSign() { + + sign_ = getDefaultInstance().getSign(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqGetUserInfo) + } + + // @@protoc_insertion_point(class_scope:ReqGetUserInfo) + private static final cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqGetUserInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqGetUserInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RepGetUserInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:RepGetUserInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * bytes pubKey = 2; + * + * @return The pubKey. + */ + com.google.protobuf.ByteString getPubKey(); + + /** + * string identity = 3; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + * string identity = 3; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); + + /** + * string serial = 4; + * + * @return The serial. + */ + java.lang.String getSerial(); + + /** + * string serial = 4; + * + * @return The bytes for serial. + */ + com.google.protobuf.ByteString getSerialBytes(); + } + + /** + *
+     * 返回用户信息
+     * 
+ * + * Protobuf type {@code RepGetUserInfo} + */ + public static final class RepGetUserInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:RepGetUserInfo) + RepGetUserInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RepGetUserInfo.newBuilder() to construct. + private RepGetUserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RepGetUserInfo() { + name_ = ""; + pubKey_ = com.google.protobuf.ByteString.EMPTY; + identity_ = ""; + serial_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RepGetUserInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RepGetUserInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + + pubKey_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + serial_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString pubKey_; + + /** + * bytes pubKey = 2; + * + * @return The pubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPubKey() { + return pubKey_; + } + + public static final int IDENTITY_FIELD_NUMBER = 3; + private volatile java.lang.Object identity_; + + /** + * string identity = 3; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } + } + + /** + * string identity = 3; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERIAL_FIELD_NUMBER = 4; + private volatile java.lang.Object serial_; + + /** + * string serial = 4; + * + * @return The serial. + */ + @java.lang.Override + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } + } + + /** + * string serial = 4; + * + * @return The bytes for serial. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!pubKey_.isEmpty()) { + output.writeBytes(2, pubKey_); + } + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identity_); + } + if (!getSerialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serial_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!pubKey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, pubKey_); + } + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identity_); + } + if (!getSerialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serial_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo other = (cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getPubKey().equals(other.getPubKey())) + return false; + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!getSerial().equals(other.getSerial())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PUBKEY_FIELD_NUMBER; + hash = (53 * hash) + getPubKey().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (37 * hash) + SERIAL_FIELD_NUMBER; + hash = (53 * hash) + getSerial().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 RepGetUserInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:RepGetUserInfo) + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + pubKey_ = com.google.protobuf.ByteString.EMPTY; + + identity_ = ""; + + serial_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo build() { + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo result = new cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo( + this); + result.name_ = name_; + result.pubKey_ = pubKey_; + result.identity_ = identity_; + result.serial_ = serial_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getPubKey() != com.google.protobuf.ByteString.EMPTY) { + setPubKey(other.getPubKey()); + } + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + if (!other.getSerial().isEmpty()) { + serial_ = other.serial_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes pubKey = 2; + * + * @return The pubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPubKey() { + return pubKey_; + } + + /** + * bytes pubKey = 2; + * + * @param value + * The pubKey to set. + * + * @return This builder for chaining. + */ + public Builder setPubKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + pubKey_ = value; + onChanged(); + return this; + } + + /** + * bytes pubKey = 2; + * + * @return This builder for chaining. + */ + public Builder clearPubKey() { + + pubKey_ = getDefaultInstance().getPubKey(); + onChanged(); + return this; + } + + private java.lang.Object identity_ = ""; + + /** + * string identity = 3; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string identity = 3; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string identity = 3; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + * string identity = 3; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + * string identity = 3; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + private java.lang.Object serial_ = ""; + + /** + * string serial = 4; + * + * @return The serial. + */ + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string serial = 4; + * + * @return The bytes for serial. + */ + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string serial = 4; + * + * @param value + * The serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serial_ = value; + onChanged(); + return this; + } + + /** + * string serial = 4; + * + * @return This builder for chaining. + */ + public Builder clearSerial() { + + serial_ = getDefaultInstance().getSerial(); + onChanged(); + return this; + } + + /** + * string serial = 4; + * + * @param value + * The bytes for serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serial_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:RepGetUserInfo) + } + + // @@protoc_insertion_point(class_scope:RepGetUserInfo) + private static final cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepGetUserInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepGetUserInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqGetCertInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqGetCertInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string sn = 1; + * + * @return The sn. + */ + java.lang.String getSn(); + + /** + * string sn = 1; + * + * @return The bytes for sn. + */ + com.google.protobuf.ByteString getSnBytes(); + + /** + * bytes sign = 2; + * + * @return The sign. + */ + com.google.protobuf.ByteString getSign(); + } + + /** + *
+     * 根据序列化查询证书
+     * 
+ * + * Protobuf type {@code ReqGetCertInfo} + */ + public static final class ReqGetCertInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqGetCertInfo) + ReqGetCertInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqGetCertInfo.newBuilder() to construct. + private ReqGetCertInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqGetCertInfo() { + sn_ = ""; + sign_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqGetCertInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqGetCertInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + sn_ = s; + break; + } + case 18: { + + sign_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.Builder.class); + } + + public static final int SN_FIELD_NUMBER = 1; + private volatile java.lang.Object sn_; + + /** + * string sn = 1; + * + * @return The sn. + */ + @java.lang.Override + public java.lang.String getSn() { + java.lang.Object ref = sn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sn_ = s; + return s; + } + } + + /** + * string sn = 1; + * + * @return The bytes for sn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnBytes() { + java.lang.Object ref = sn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIGN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sign_; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSnBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sn_); + } + if (!sign_.isEmpty()) { + output.writeBytes(2, sign_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSnBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sn_); + } + if (!sign_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sign_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo other = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo) obj; + + if (!getSn().equals(other.getSn())) + return false; + if (!getSign().equals(other.getSign())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SN_FIELD_NUMBER; + hash = (53 * hash) + getSn().hashCode(); + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqGetCertInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqGetCertInfo) + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sn_ = ""; + + sign_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo build() { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo result = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo( + this); + result.sn_ = sn_; + result.sign_ = sign_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.getDefaultInstance()) + return this; + if (!other.getSn().isEmpty()) { + sn_ = other.sn_; + onChanged(); + } + if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { + setSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object sn_ = ""; + + /** + * string sn = 1; + * + * @return The sn. + */ + public java.lang.String getSn() { + java.lang.Object ref = sn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string sn = 1; + * + * @return The bytes for sn. + */ + public com.google.protobuf.ByteString getSnBytes() { + java.lang.Object ref = sn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + sn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string sn = 1; + * + * @param value + * The sn to set. + * + * @return This builder for chaining. + */ + public Builder setSn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sn_ = value; + onChanged(); + return this; + } + + /** + * string sn = 1; + * + * @return This builder for chaining. + */ + public Builder clearSn() { + + sn_ = getDefaultInstance().getSn(); + onChanged(); + return this; + } + + /** + * string sn = 1; + * + * @param value + * The bytes for sn to set. + * + * @return This builder for chaining. + */ + public Builder setSnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sn_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes sign = 2; + * + * @return The sign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSign() { + return sign_; + } + + /** + * bytes sign = 2; + * + * @param value + * The sign to set. + * + * @return This builder for chaining. + */ + public Builder setSign(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + sign_ = value; + onChanged(); + return this; + } + + /** + * bytes sign = 2; + * + * @return This builder for chaining. + */ + public Builder clearSign() { + + sign_ = getDefaultInstance().getSign(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqGetCertInfo) + } + + // @@protoc_insertion_point(class_scope:ReqGetCertInfo) + private static final cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqGetCertInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqGetCertInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RepGetCertInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:RepGetCertInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string serial = 1; + * + * @return The serial. + */ + java.lang.String getSerial(); + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + com.google.protobuf.ByteString getSerialBytes(); + + /** + *
+         * 0:正常 1:注销
+         * 
+ * + * int32 status = 2; + * + * @return The status. + */ + int getStatus(); + + /** + * int64 exipreTime = 3; + * + * @return The exipreTime. + */ + long getExipreTime(); + + /** + * int64 revokeTime = 4; + * + * @return The revokeTime. + */ + long getRevokeTime(); + + /** + * bytes cert = 5; + * + * @return The cert. + */ + com.google.protobuf.ByteString getCert(); + + /** + * string identity = 6; + * + * @return The identity. + */ + java.lang.String getIdentity(); + + /** + * string identity = 6; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser other = (cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getPubKey() - .equals(other.getPubKey())) return false; - if (!getSign() - .equals(other.getSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + *
+     * 返回证书信息
+     * 
+ * + * Protobuf type {@code RepGetCertInfo} + */ + public static final class RepGetCertInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:RepGetCertInfo) + RepGetCertInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RepGetCertInfo.newBuilder() to construct. + private RepGetCertInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RepGetCertInfo() { + serial_ = ""; + cert_ = com.google.protobuf.ByteString.EMPTY; + identity_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RepGetCertInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RepGetCertInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + serial_ = s; + break; + } + case 16: { + + status_ = input.readInt32(); + break; + } + case 24: { + + exipreTime_ = input.readInt64(); + break; + } + case 32: { + + revokeTime_ = input.readInt64(); + break; + } + case 42: { + + cert_ = input.readBytes(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.Builder.class); + } + + public static final int SERIAL_FIELD_NUMBER = 1; + private volatile java.lang.Object serial_; + + /** + * string serial = 1; + * + * @return The serial. + */ + @java.lang.Override + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } + } + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + + /** + *
+         * 0:正常 1:注销
+         * 
+ * + * int32 status = 2; + * + * @return The status. + */ + @java.lang.Override + public int getStatus() { + return status_; + } + + public static final int EXIPRETIME_FIELD_NUMBER = 3; + private long exipreTime_; + + /** + * int64 exipreTime = 3; + * + * @return The exipreTime. + */ + @java.lang.Override + public long getExipreTime() { + return exipreTime_; + } + + public static final int REVOKETIME_FIELD_NUMBER = 4; + private long revokeTime_; + + /** + * int64 revokeTime = 4; + * + * @return The revokeTime. + */ + @java.lang.Override + public long getRevokeTime() { + return revokeTime_; + } + + public static final int CERT_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString cert_; + + /** + * bytes cert = 5; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + public static final int IDENTITY_FIELD_NUMBER = 6; + private volatile java.lang.Object identity_; + + /** + * string identity = 6; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } + } + + /** + * string identity = 6; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSerialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serial_); + } + if (status_ != 0) { + output.writeInt32(2, status_); + } + if (exipreTime_ != 0L) { + output.writeInt64(3, exipreTime_); + } + if (revokeTime_ != 0L) { + output.writeInt64(4, revokeTime_); + } + if (!cert_.isEmpty()) { + output.writeBytes(5, cert_); + } + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, identity_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSerialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serial_); + } + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, status_); + } + if (exipreTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, exipreTime_); + } + if (revokeTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, revokeTime_); + } + if (!cert_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, cert_); + } + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, identity_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo other = (cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo) obj; + + if (!getSerial().equals(other.getSerial())) + return false; + if (getStatus() != other.getStatus()) + return false; + if (getExipreTime() != other.getExipreTime()) + return false; + if (getRevokeTime() != other.getRevokeTime()) + return false; + if (!getCert().equals(other.getCert())) + return false; + if (!getIdentity().equals(other.getIdentity())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERIAL_FIELD_NUMBER; + hash = (53 * hash) + getSerial().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + EXIPRETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExipreTime()); + hash = (37 * hash) + REVOKETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRevokeTime()); + hash = (37 * hash) + CERT_FIELD_NUMBER; + hash = (53 * hash) + getCert().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 RepGetCertInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:RepGetCertInfo) + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.class, + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + serial_ = ""; + + status_ = 0; + + exipreTime_ = 0L; + + revokeTime_ = 0L; + + cert_ = com.google.protobuf.ByteString.EMPTY; + + identity_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo build() { + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo result = new cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo( + this); + result.serial_ = serial_; + result.status_ = status_; + result.exipreTime_ = exipreTime_; + result.revokeTime_ = revokeTime_; + result.cert_ = cert_; + result.identity_ = identity_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.getDefaultInstance()) + return this; + if (!other.getSerial().isEmpty()) { + serial_ = other.serial_; + onChanged(); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getExipreTime() != 0L) { + setExipreTime(other.getExipreTime()); + } + if (other.getRevokeTime() != 0L) { + setRevokeTime(other.getRevokeTime()); + } + if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { + setCert(other.getCert()); + } + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object serial_ = ""; + + /** + * string serial = 1; + * + * @return The serial. + */ + public java.lang.String getSerial() { + java.lang.Object ref = serial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string serial = 1; + * + * @return The bytes for serial. + */ + public com.google.protobuf.ByteString getSerialBytes() { + java.lang.Object ref = serial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + serial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string serial = 1; + * + * @param value + * The serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serial_ = value; + onChanged(); + return this; + } + + /** + * string serial = 1; + * + * @return This builder for chaining. + */ + public Builder clearSerial() { + + serial_ = getDefaultInstance().getSerial(); + onChanged(); + return this; + } + + /** + * string serial = 1; + * + * @param value + * The bytes for serial to set. + * + * @return This builder for chaining. + */ + public Builder setSerialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serial_ = value; + onChanged(); + return this; + } + + private int status_; + + /** + *
+             * 0:正常 1:注销
+             * 
+ * + * int32 status = 2; + * + * @return The status. + */ + @java.lang.Override + public int getStatus() { + return status_; + } + + /** + *
+             * 0:正常 1:注销
+             * 
+ * + * int32 status = 2; + * + * @param value + * The status to set. + * + * @return This builder for chaining. + */ + public Builder setStatus(int value) { + + status_ = value; + onChanged(); + return this; + } + + /** + *
+             * 0:正常 1:注销
+             * 
+ * + * int32 status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private long exipreTime_; + + /** + * int64 exipreTime = 3; + * + * @return The exipreTime. + */ + @java.lang.Override + public long getExipreTime() { + return exipreTime_; + } + + /** + * int64 exipreTime = 3; + * + * @param value + * The exipreTime to set. + * + * @return This builder for chaining. + */ + public Builder setExipreTime(long value) { + + exipreTime_ = value; + onChanged(); + return this; + } + + /** + * int64 exipreTime = 3; + * + * @return This builder for chaining. + */ + public Builder clearExipreTime() { + + exipreTime_ = 0L; + onChanged(); + return this; + } + + private long revokeTime_; + + /** + * int64 revokeTime = 4; + * + * @return The revokeTime. + */ + @java.lang.Override + public long getRevokeTime() { + return revokeTime_; + } + + /** + * int64 revokeTime = 4; + * + * @param value + * The revokeTime to set. + * + * @return This builder for chaining. + */ + public Builder setRevokeTime(long value) { + + revokeTime_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int64 revokeTime = 4; + * + * @return This builder for chaining. + */ + public Builder clearRevokeTime() { - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + revokeTime_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes cert = 5; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + /** + * bytes cert = 5; + * + * @param value + * The cert to set. + * + * @return This builder for chaining. + */ + public Builder setCert(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + cert_ = value; + onChanged(); + return this; + } + + /** + * bytes cert = 5; + * + * @return This builder for chaining. + */ + public Builder clearCert() { + + cert_ = getDefaultInstance().getCert(); + onChanged(); + return this; + } + + private java.lang.Object identity_ = ""; + + /** + * string identity = 6; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string identity = 6; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string identity = 6; + * + * @param value + * The identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + + /** + * string identity = 6; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + + /** + * string identity = 6; + * + * @param value + * The bytes for identity to set. + * + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:RepGetCertInfo) + } + + // @@protoc_insertion_point(class_scope:RepGetCertInfo) + private static final cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepGetCertInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepGetCertInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface CertActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:CertAction) + com.google.protobuf.MessageOrBuilder { + + /** + * .CertNew new = 1; + * + * @return Whether the new field is set. + */ + boolean hasNew(); + + /** + * .CertNew new = 1; + * + * @return The new. + */ + cn.chain33.javasdk.model.protobuf.CertService.CertNew getNew(); + + /** + * .CertNew new = 1; + */ + cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder getNewOrBuilder(); + + /** + * .CertUpdate update = 2; + * + * @return Whether the update field is set. + */ + boolean hasUpdate(); + + /** + * .CertUpdate update = 2; + * + * @return The update. + */ + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getUpdate(); + + /** + * .CertUpdate update = 2; + */ + cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder getUpdateOrBuilder(); + + /** + * .CertNormal normal = 3; + * + * @return Whether the normal field is set. + */ + boolean hasNormal(); + + /** + * .CertNormal normal = 3; + * + * @return The normal. + */ + cn.chain33.javasdk.model.protobuf.CertService.CertNormal getNormal(); + + /** + * .CertNormal normal = 3; + */ + cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder getNormalOrBuilder(); + + /** + * int32 ty = 4; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.CertService.CertAction.ValueCase getValueCase(); } + /** *
-     * 用户注册请求
+     * cert合约action
      * 
* - * Protobuf type {@code ReqRegisterUser} + * Protobuf type {@code CertAction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqRegisterUser) - cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.class, cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - identity_ = ""; - - pubKey_ = ""; - - sign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRegisterUser_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser build() { - cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser result = new cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser(this); - result.name_ = name_; - result.identity_ = identity_; - result.pubKey_ = pubKey_; - result.sign_ = sign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (!other.getPubKey().isEmpty()) { - pubKey_ = other.pubKey_; - onChanged(); - } - if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { - setSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       *用户名
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *用户名
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *用户名
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       *用户名
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       *用户名
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - /** - *
-       *用户ID
-       * 
- * - * string identity = 2; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 2; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 2; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 2; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 2; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private java.lang.Object pubKey_ = ""; - /** - *
-       *用户公钥
-       * 
- * - * string pubKey = 3; - */ - public java.lang.String getPubKey() { - java.lang.Object ref = pubKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pubKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *用户公钥
-       * 
- * - * string pubKey = 3; - */ - public com.google.protobuf.ByteString - getPubKeyBytes() { - java.lang.Object ref = pubKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pubKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *用户公钥
-       * 
- * - * string pubKey = 3; - */ - public Builder setPubKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pubKey_ = value; - onChanged(); - return this; - } - /** - *
-       *用户公钥
-       * 
- * - * string pubKey = 3; - */ - public Builder clearPubKey() { - - pubKey_ = getDefaultInstance().getPubKey(); - onChanged(); - return this; - } - /** - *
-       *用户公钥
-       * 
- * - * string pubKey = 3; - */ - public Builder setPubKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pubKey_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 4; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 4; - */ - public Builder setSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - sign_ = value; - onChanged(); - return this; - } - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 4; - */ - public Builder clearSign() { - - sign_ = getDefaultInstance().getSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqRegisterUser) - } + public static final class CertAction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CertAction) + CertActionOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ReqRegisterUser) - private static final cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser(); - } + // Use CertAction.newBuilder() to construct. + private CertAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertAction() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CertAction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.CertService.CertNew.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_) + .toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_) + .toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.CertService.CertNormal.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 32: { + + ty_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertAction.class, + cn.chain33.javasdk.model.protobuf.CertService.CertAction.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NEW(1), UPDATE(2), NORMAL(3), VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return NEW; + case 2: + return UPDATE; + case 3: + return NORMAL; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int NEW_FIELD_NUMBER = 1; + + /** + * .CertNew new = 1; + * + * @return Whether the new field is set. + */ + @java.lang.Override + public boolean hasNew() { + return valueCase_ == 1; + } + + /** + * .CertNew new = 1; + * + * @return The new. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNew getNew() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); + } + + /** + * .CertNew new = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder getNewOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); + } + + public static final int UPDATE_FIELD_NUMBER = 2; + + /** + * .CertUpdate update = 2; + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return valueCase_ == 2; + } + + /** + * .CertUpdate update = 2; + * + * @return The update. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getUpdate() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); + } + + /** + * .CertUpdate update = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder getUpdateOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); + } + + public static final int NORMAL_FIELD_NUMBER = 3; + + /** + * .CertNormal normal = 3; + * + * @return Whether the normal field is set. + */ + @java.lang.Override + public boolean hasNormal() { + return valueCase_ == 3; + } + + /** + * .CertNormal normal = 3; + * + * @return The normal. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getNormal() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); + } + + /** + * .CertNormal normal = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder getNormalOrBuilder() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); + } + + public static final int TY_FIELD_NUMBER = 4; + private int ty_; + + /** + * int32 ty = 4; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_); + } + if (ty_ != 0) { + output.writeInt32(4, ty_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, + (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, ty_); + } + 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 cn.chain33.javasdk.model.protobuf.CertService.CertAction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.CertAction other = (cn.chain33.javasdk.model.protobuf.CertService.CertAction) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getNew().equals(other.getNew())) + return false; + break; + case 2: + if (!getUpdate().equals(other.getUpdate())) + return false; + break; + case 3: + if (!getNormal().equals(other.getNormal())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + NEW_FIELD_NUMBER; + hash = (53 * hash) + getNew().hashCode(); + break; + case 2: + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().hashCode(); + break; + case 3: + hash = (37 * hash) + NORMAL_FIELD_NUMBER; + hash = (53 * hash) + getNormal().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * cert合约action
+         * 
+ * + * Protobuf type {@code CertAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CertAction) + cn.chain33.javasdk.model.protobuf.CertService.CertActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertAction.class, + cn.chain33.javasdk.model.protobuf.CertService.CertAction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertAction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.CertAction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertAction build() { + cn.chain33.javasdk.model.protobuf.CertService.CertAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertAction buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.CertAction result = new cn.chain33.javasdk.model.protobuf.CertService.CertAction( + this); + if (valueCase_ == 1) { + if (newBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = newBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (updateBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = updateBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (normalBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = normalBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertAction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertAction other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.CertAction.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case NEW: { + mergeNew(other.getNew()); + break; + } + case UPDATE: { + mergeUpdate(other.getUpdate()); + break; + } + case NORMAL: { + mergeNormal(other.getNormal()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.CertAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 newBuilder_; + + /** + * .CertNew new = 1; + * + * @return Whether the new field is set. + */ + @java.lang.Override + public boolean hasNew() { + return valueCase_ == 1; + } + + /** + * .CertNew new = 1; + * + * @return The new. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNew getNew() { + if (newBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return newBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); + } + } + + /** + * .CertNew new = 1; + */ + public Builder setNew(cn.chain33.javasdk.model.protobuf.CertService.CertNew value) { + if (newBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + newBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .CertNew new = 1; + */ + public Builder setNew(cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder builderForValue) { + if (newBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + newBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .CertNew new = 1; + */ + public Builder mergeNew(cn.chain33.javasdk.model.protobuf.CertService.CertNew value) { + if (newBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNew + .newBuilder((cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + newBuilder_.mergeFrom(value); + } + newBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .CertNew new = 1; + */ + public Builder clearNew() { + if (newBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + newBuilder_.clear(); + } + return this; + } + + /** + * .CertNew new = 1; + */ + public cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder getNewBuilder() { + return getNewFieldBuilder().getBuilder(); + } + + /** + * .CertNew new = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder getNewOrBuilder() { + if ((valueCase_ == 1) && (newBuilder_ != null)) { + return newBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); + } + } + + /** + * .CertNew new = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getNewFieldBuilder() { + if (newBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); + } + newBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return newBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 updateBuilder_; + + /** + * .CertUpdate update = 2; + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return valueCase_ == 2; + } + + /** + * .CertUpdate update = 2; + * + * @return The update. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getUpdate() { + if (updateBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return updateBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); + } + } + + /** + * .CertUpdate update = 2; + */ + public Builder setUpdate(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * .CertUpdate update = 2; + */ + public Builder setUpdate(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder builderForValue) { + if (updateBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqRegisterUser parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqRegisterUser(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .CertUpdate update = 2; + */ + public Builder mergeUpdate(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate value) { + if (updateBuilder_ == null) { + if (valueCase_ == 2 && value_ != cn.chain33.javasdk.model.protobuf.CertService.CertUpdate + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.CertService.CertUpdate + .newBuilder((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + updateBuilder_.mergeFrom(value); + } + updateBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .CertUpdate update = 2; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + updateBuilder_.clear(); + } + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRegisterUser getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * .CertUpdate update = 2; + */ + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder getUpdateBuilder() { + return getUpdateFieldBuilder().getBuilder(); + } - } + /** + * .CertUpdate update = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder getUpdateOrBuilder() { + if ((valueCase_ == 2) && (updateBuilder_ != null)) { + return updateBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); + } + } - public interface ReqRevokeUserOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqRevokeUser) - com.google.protobuf.MessageOrBuilder { + /** + * .CertUpdate update = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); + } + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return updateBuilder_; + } - /** - *
-     *用户ID
-     * 
- * - * string identity = 1; - */ - java.lang.String getIdentity(); - /** - *
-     *用户ID
-     * 
- * - * string identity = 1; - */ - com.google.protobuf.ByteString - getIdentityBytes(); + private com.google.protobuf.SingleFieldBuilderV3 normalBuilder_; - /** - *
-     *请求方签名
-     * 
- * - * bytes sign = 2; - */ - com.google.protobuf.ByteString getSign(); - } - /** - *
-   * 用户注销请求
-   * 
- * - * Protobuf type {@code ReqRevokeUser} - */ - public static final class ReqRevokeUser extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqRevokeUser) - ReqRevokeUserOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqRevokeUser.newBuilder() to construct. - private ReqRevokeUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqRevokeUser() { - identity_ = ""; - sign_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * .CertNormal normal = 3; + * + * @return Whether the normal field is set. + */ + @java.lang.Override + public boolean hasNormal() { + return valueCase_ == 3; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqRevokeUser(); - } + /** + * .CertNormal normal = 3; + * + * @return The normal. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getNormal() { + if (normalBuilder_ == null) { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return normalBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqRevokeUser( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 18: { - - sign_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_descriptor; - } + /** + * .CertNormal normal = 3; + */ + public Builder setNormal(cn.chain33.javasdk.model.protobuf.CertService.CertNormal value) { + if (normalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + normalBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.class, cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.Builder.class); - } + /** + * .CertNormal normal = 3; + */ + public Builder setNormal(cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder builderForValue) { + if (normalBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + normalBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } - public static final int IDENTITY_FIELD_NUMBER = 1; - private volatile java.lang.Object identity_; - /** - *
-     *用户ID
-     * 
- * - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - *
-     *用户ID
-     * 
- * - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * .CertNormal normal = 3; + */ + public Builder mergeNormal(cn.chain33.javasdk.model.protobuf.CertService.CertNormal value) { + if (normalBuilder_ == null) { + if (valueCase_ == 3 && value_ != cn.chain33.javasdk.model.protobuf.CertService.CertNormal + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNormal + .newBuilder((cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + normalBuilder_.mergeFrom(value); + } + normalBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } - public static final int SIGN_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString sign_; - /** - *
-     *请求方签名
-     * 
- * - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } + /** + * .CertNormal normal = 3; + */ + public Builder clearNormal() { + if (normalBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + normalBuilder_.clear(); + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * .CertNormal normal = 3; + */ + public cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder getNormalBuilder() { + return getNormalFieldBuilder().getBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + /** + * .CertNormal normal = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder getNormalOrBuilder() { + if ((valueCase_ == 3) && (normalBuilder_ != null)) { + return normalBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; + } + return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); - } - if (!sign_.isEmpty()) { - output.writeBytes(2, sign_); - } - unknownFields.writeTo(output); - } + /** + * .CertNormal normal = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getNormalFieldBuilder() { + if (normalBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); + } + normalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return normalBuilder_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); - } - if (!sign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, sign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private int ty_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser other = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser) obj; - - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getSign() - .equals(other.getSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int32 ty = 4; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int32 ty = 4; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int32 ty = 4; + * + * @return This builder for chaining. + */ + public Builder clearTy() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + ty_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 用户注销请求
-     * 
- * - * Protobuf type {@code ReqRevokeUser} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqRevokeUser) - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.class, cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identity_ = ""; - - sign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeUser_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser build() { - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser result = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser(this); - result.identity_ = identity_; - result.sign_ = sign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser.getDefaultInstance()) return this; - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { - setSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object identity_ = ""; - /** - *
-       *用户ID
-       * 
- * - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 1; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 1; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - *
-       *用户ID
-       * 
- * - * string identity = 1; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 2; - */ - public Builder setSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - sign_ = value; - onChanged(); - return this; - } - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 2; - */ - public Builder clearSign() { - - sign_ = getDefaultInstance().getSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqRevokeUser) - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(class_scope:ReqRevokeUser) - private static final cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:CertAction) + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqRevokeUser parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqRevokeUser(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:CertAction) + private static final cn.chain33.javasdk.model.protobuf.CertService.CertAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertAction(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeUser getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertAction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertAction(input, extensionRegistry); + } + }; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public interface ReqEnrollOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqEnroll) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * string identity = 1; - */ - java.lang.String getIdentity(); - /** - * string identity = 1; - */ - com.google.protobuf.ByteString - getIdentityBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** - * bytes sign = 2; - */ - com.google.protobuf.ByteString getSign(); - } - /** - *
-   * 申请证书
-   * 
- * - * Protobuf type {@code ReqEnroll} - */ - public static final class ReqEnroll extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqEnroll) - ReqEnrollOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqEnroll.newBuilder() to construct. - private ReqEnroll(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqEnroll() { - identity_ = ""; - sign_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqEnroll(); - } + public interface CertNewOrBuilder extends + // @@protoc_insertion_point(interface_extends:CertNew) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqEnroll( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 18: { - - sign_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_descriptor; - } + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.class, cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.Builder.class); - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); - public static final int IDENTITY_FIELD_NUMBER = 1; - private volatile java.lang.Object identity_; - /** - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * bytes value = 2; + * + * @return The value. + */ + com.google.protobuf.ByteString getValue(); } - public static final int SIGN_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString sign_; /** - * bytes sign = 2; + *
+     * 证书启用
+     * 
+ * + * Protobuf type {@code CertNew} */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } + public static final class CertNew extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CertNew) + CertNewOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use CertNew.newBuilder() to construct. + private CertNew(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private CertNew() { + key_ = ""; + value_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); - } - if (!sign_.isEmpty()) { - output.writeBytes(2, sign_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertNew(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); - } - if (!sign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, sign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll other = (cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll) obj; - - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getSign() - .equals(other.getSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private CertNew(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertNew.class, + cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 申请证书
-     * 
- * - * Protobuf type {@code ReqEnroll} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqEnroll) - cn.chain33.javasdk.model.protobuf.CertService.ReqEnrollOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.class, cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identity_ = ""; - - sign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqEnroll_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll build() { - cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll result = new cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll(this); - result.identity_ = identity_; - result.sign_ = sign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll.getDefaultInstance()) return this; - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { - setSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 1; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 1; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 1; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } - /** - * bytes sign = 2; - */ - public Builder setSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - sign_ = value; - onChanged(); - return this; - } - /** - * bytes sign = 2; - */ - public Builder clearSign() { - - sign_ = getDefaultInstance().getSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqEnroll) - } + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:ReqEnroll) - private static final cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll(); - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqEnroll parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqEnroll(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqEnroll getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - } + memoizedIsInitialized = 1; + return true; + } - public interface RepEnrollOrBuilder extends - // @@protoc_insertion_point(interface_extends:RepEnroll) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + unknownFields.writeTo(output); + } - /** - * string serial = 1; - */ - java.lang.String getSerial(); - /** - * string serial = 1; - */ - com.google.protobuf.ByteString - getSerialBytes(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * bytes cert = 2; - */ - com.google.protobuf.ByteString getCert(); - } - /** - *
-   * 证书信息
-   * 
- * - * Protobuf type {@code RepEnroll} - */ - public static final class RepEnroll extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RepEnroll) - RepEnrollOrBuilder { - private static final long serialVersionUID = 0L; - // Use RepEnroll.newBuilder() to construct. - private RepEnroll(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RepEnroll() { - serial_ = ""; - cert_ = com.google.protobuf.ByteString.EMPTY; - } + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepEnroll(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNew)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.CertNew other = (cn.chain33.javasdk.model.protobuf.CertService.CertNew) obj; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RepEnroll( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - serial_ = s; - break; - } - case 18: { - - cert_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_descriptor; - } + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.class, cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int SERIAL_FIELD_NUMBER = 1; - private volatile java.lang.Object serial_; - /** - * string serial = 1; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } - } - /** - * string serial = 1; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int CERT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString cert_; - /** - * bytes cert = 2; - */ - public com.google.protobuf.ByteString getCert() { - return cert_; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSerialBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serial_); - } - if (!cert_.isEmpty()) { - output.writeBytes(2, cert_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSerialBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serial_); - } - if (!cert_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, cert_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.RepEnroll)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.RepEnroll other = (cn.chain33.javasdk.model.protobuf.CertService.RepEnroll) obj; - - if (!getSerial() - .equals(other.getSerial())) return false; - if (!getCert() - .equals(other.getCert())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERIAL_FIELD_NUMBER; - hash = (53 * hash) + getSerial().hashCode(); - hash = (37 * hash) + CERT_FIELD_NUMBER; - hash = (53 * hash) + getCert().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.RepEnroll prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertNew prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 证书信息
-     * 
- * - * Protobuf type {@code RepEnroll} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:RepEnroll) - cn.chain33.javasdk.model.protobuf.CertService.RepEnrollOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.class, cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serial_ = ""; - - cert_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepEnroll_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll build() { - cn.chain33.javasdk.model.protobuf.CertService.RepEnroll result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.RepEnroll result = new cn.chain33.javasdk.model.protobuf.CertService.RepEnroll(this); - result.serial_ = serial_; - result.cert_ = cert_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.RepEnroll) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.RepEnroll)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.RepEnroll other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.RepEnroll.getDefaultInstance()) return this; - if (!other.getSerial().isEmpty()) { - serial_ = other.serial_; - onChanged(); - } - if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { - setCert(other.getCert()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.RepEnroll parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.RepEnroll) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object serial_ = ""; - /** - * string serial = 1; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string serial = 1; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string serial = 1; - */ - public Builder setSerial( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serial_ = value; - onChanged(); - return this; - } - /** - * string serial = 1; - */ - public Builder clearSerial() { - - serial_ = getDefaultInstance().getSerial(); - onChanged(); - return this; - } - /** - * string serial = 1; - */ - public Builder setSerialBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serial_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes cert = 2; - */ - public com.google.protobuf.ByteString getCert() { - return cert_; - } - /** - * bytes cert = 2; - */ - public Builder setCert(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - cert_ = value; - onChanged(); - return this; - } - /** - * bytes cert = 2; - */ - public Builder clearCert() { - - cert_ = getDefaultInstance().getCert(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RepEnroll) - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - // @@protoc_insertion_point(class_scope:RepEnroll) - private static final cn.chain33.javasdk.model.protobuf.CertService.RepEnroll DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.RepEnroll(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static cn.chain33.javasdk.model.protobuf.CertService.RepEnroll getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+         * 证书启用
+         * 
+ * + * Protobuf type {@code CertNew} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CertNew) + cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepEnroll parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepEnroll(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertNew.class, + cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertNew.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepEnroll getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public interface ReqRevokeCertOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqRevokeCert) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; - /** - * string serial = 1; - */ - java.lang.String getSerial(); - /** - * string serial = 1; - */ - com.google.protobuf.ByteString - getSerialBytes(); + value_ = com.google.protobuf.ByteString.EMPTY; - /** - * string identity = 2; - */ - java.lang.String getIdentity(); - /** - * string identity = 2; - */ - com.google.protobuf.ByteString - getIdentityBytes(); + return this; + } - /** - *
-     *请求方签名
-     * 
- * - * bytes sign = 3; - */ - com.google.protobuf.ByteString getSign(); - } - /** - *
-   * 证书注销请求
-   * 
- * - * Protobuf type {@code ReqRevokeCert} - */ - public static final class ReqRevokeCert extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqRevokeCert) - ReqRevokeCertOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqRevokeCert.newBuilder() to construct. - private ReqRevokeCert(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqRevokeCert() { - serial_ = ""; - identity_ = ""; - sign_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqRevokeCert(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNew getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqRevokeCert( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - serial_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 26: { - - sign_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNew build() { + cn.chain33.javasdk.model.protobuf.CertService.CertNew result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.class, cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNew buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.CertNew result = new cn.chain33.javasdk.model.protobuf.CertService.CertNew( + this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } - public static final int SERIAL_FIELD_NUMBER = 1; - private volatile java.lang.Object serial_; - /** - * string serial = 1; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } - } - /** - * string serial = 1; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int IDENTITY_FIELD_NUMBER = 2; - private volatile java.lang.Object identity_; - /** - * string identity = 2; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - * string identity = 2; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int SIGN_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString sign_; - /** - *
-     *请求方签名
-     * 
- * - * bytes sign = 3; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSerialBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serial_); - } - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); - } - if (!sign_.isEmpty()) { - output.writeBytes(3, sign_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSerialBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serial_); - } - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); - } - if (!sign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, sign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNew) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNew) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert other = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert) obj; - - if (!getSerial() - .equals(other.getSerial())) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getSign() - .equals(other.getSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertNew other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERIAL_FIELD_NUMBER; - hash = (53 * hash) + getSerial().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.CertNew parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertNew) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 证书注销请求
-     * 
- * - * Protobuf type {@code ReqRevokeCert} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqRevokeCert) - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCertOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.class, cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serial_ = ""; - - identity_ = ""; - - sign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqRevokeCert_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert build() { - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert result = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert(this); - result.serial_ = serial_; - result.identity_ = identity_; - result.sign_ = sign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert.getDefaultInstance()) return this; - if (!other.getSerial().isEmpty()) { - serial_ = other.serial_; - onChanged(); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { - setSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object serial_ = ""; - /** - * string serial = 1; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string serial = 1; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string serial = 1; - */ - public Builder setSerial( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serial_ = value; - onChanged(); - return this; - } - /** - * string serial = 1; - */ - public Builder clearSerial() { - - serial_ = getDefaultInstance().getSerial(); - onChanged(); - return this; - } - /** - * string serial = 1; - */ - public Builder setSerialBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serial_ = value; - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 2; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 2; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 2; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 2; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 2; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 3; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 3; - */ - public Builder setSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - sign_ = value; - onChanged(); - return this; - } - /** - *
-       *请求方签名
-       * 
- * - * bytes sign = 3; - */ - public Builder clearSign() { - - sign_ = getDefaultInstance().getSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqRevokeCert) - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:ReqRevokeCert) - private static final cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert(); - } + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqRevokeCert parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqRevokeCert(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqRevokeCert getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - public interface ReqGetCRLOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqGetCRL) - com.google.protobuf.MessageOrBuilder { + /** + * bytes value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } - /** - * string identity = 1; - */ - java.lang.String getIdentity(); - /** - * string identity = 1; - */ - com.google.protobuf.ByteString - getIdentityBytes(); + /** + * bytes value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { - /** - * bytes sign = 2; - */ - com.google.protobuf.ByteString getSign(); - } - /** - *
-   * 获取CRL请求
-   * 
- * - * Protobuf type {@code ReqGetCRL} - */ - public static final class ReqGetCRL extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqGetCRL) - ReqGetCRLOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqGetCRL.newBuilder() to construct. - private ReqGetCRL(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqGetCRL() { - identity_ = ""; - sign_ = com.google.protobuf.ByteString.EMPTY; - } + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqGetCRL(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqGetCRL( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 18: { - - sign_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_descriptor; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.class, cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.Builder.class); - } + // @@protoc_insertion_point(builder_scope:CertNew) + } - public static final int IDENTITY_FIELD_NUMBER = 1; - private volatile java.lang.Object identity_; - /** - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(class_scope:CertNew) + private static final cn.chain33.javasdk.model.protobuf.CertService.CertNew DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertNew(); + } - public static final int SIGN_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString sign_; - /** - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNew getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertNew parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertNew(input, extensionRegistry); + } + }; - memoizedIsInitialized = 1; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); - } - if (!sign_.isEmpty()) { - output.writeBytes(2, sign_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); - } - if (!sign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, sign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNew getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL other = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL) obj; - - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getSign() - .equals(other.getSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public interface CertUpdateOrBuilder extends + // @@protoc_insertion_point(interface_extends:CertUpdate) + com.google.protobuf.MessageOrBuilder { - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * bytes value = 2; + * + * @return The value. + */ + com.google.protobuf.ByteString getValue(); } + /** *
-     * 获取CRL请求
+     * 证书更新
      * 
* - * Protobuf type {@code ReqGetCRL} + * Protobuf type {@code CertUpdate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqGetCRL) - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRLOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.class, cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identity_ = ""; - - sign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCRL_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL build() { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL result = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL(this); - result.identity_ = identity_; - result.sign_ = sign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL.getDefaultInstance()) return this; - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { - setSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 1; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 1; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 1; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } - /** - * bytes sign = 2; - */ - public Builder setSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - sign_ = value; - onChanged(); - return this; - } - /** - * bytes sign = 2; - */ - public Builder clearSign() { - - sign_ = getDefaultInstance().getSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqGetCRL) - } + public static final class CertUpdate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CertUpdate) + CertUpdateOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ReqGetCRL) - private static final cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL(); - } + // Use CertUpdate.newBuilder() to construct. + private CertUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private CertUpdate() { + key_ = ""; + value_ = com.google.protobuf.ByteString.EMPTY; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqGetCRL parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqGetCRL(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertUpdate(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCRL getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private CertUpdate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_descriptor; + } - public interface ReqGetUserInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqGetUserInfo) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.class, + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder.class); + } - /** - * string identity = 1; - */ - java.lang.String getIdentity(); - /** - * string identity = 1; - */ - com.google.protobuf.ByteString - getIdentityBytes(); + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; - /** - * bytes sign = 2; - */ - com.google.protobuf.ByteString getSign(); - } - /** - *
-   * 获取用户信息
-   * 
- * - * Protobuf type {@code ReqGetUserInfo} - */ - public static final class ReqGetUserInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqGetUserInfo) - ReqGetUserInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqGetUserInfo.newBuilder() to construct. - private ReqGetUserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqGetUserInfo() { - identity_ = ""; - sign_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqGetUserInfo(); - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqGetUserInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 18: { - - sign_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_descriptor; - } + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.class, cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.Builder.class); - } + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - public static final int IDENTITY_FIELD_NUMBER = 1; - private volatile java.lang.Object identity_; - /** - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private byte memoizedIsInitialized = -1; - public static final int SIGN_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString sign_; - /** - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + memoizedIsInitialized = 1; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); - } - if (!sign_.isEmpty()) { - output.writeBytes(2, sign_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); - } - if (!sign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, sign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo other = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo) obj; - - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getSign() - .equals(other.getSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertUpdate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate other = (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) obj; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 获取用户信息
-     * 
- * - * Protobuf type {@code ReqGetUserInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqGetUserInfo) - cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.class, cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identity_ = ""; - - sign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetUserInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo build() { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo result = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo(this); - result.identity_ = identity_; - result.sign_ = sign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo.getDefaultInstance()) return this; - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { - setSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 1; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 1; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 1; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 1; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 1; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } - /** - * bytes sign = 2; - */ - public Builder setSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - sign_ = value; - onChanged(); - return this; - } - /** - * bytes sign = 2; - */ - public Builder clearSign() { - - sign_ = getDefaultInstance().getSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqGetUserInfo) - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:ReqGetUserInfo) - private static final cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo(); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqGetUserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqGetUserInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetUserInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface RepGetUserInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:RepGetUserInfo) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * bytes pubKey = 2; - */ - com.google.protobuf.ByteString getPubKey(); + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * string identity = 3; - */ - java.lang.String getIdentity(); - /** - * string identity = 3; - */ - com.google.protobuf.ByteString - getIdentityBytes(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * string serial = 4; - */ - java.lang.String getSerial(); - /** - * string serial = 4; - */ - com.google.protobuf.ByteString - getSerialBytes(); - } - /** - *
-   * 返回用户信息
-   * 
- * - * Protobuf type {@code RepGetUserInfo} - */ - public static final class RepGetUserInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RepGetUserInfo) - RepGetUserInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use RepGetUserInfo.newBuilder() to construct. - private RepGetUserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RepGetUserInfo() { - name_ = ""; - pubKey_ = com.google.protobuf.ByteString.EMPTY; - identity_ = ""; - serial_ = ""; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepGetUserInfo(); - } + /** + *
+         * 证书更新
+         * 
+ * + * Protobuf type {@code CertUpdate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CertUpdate) + cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RepGetUserInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.class, + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder.class); + } - name_ = s; - break; + // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - case 18: { - pubKey_ = input.readBytes(); - break; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - identity_ = s; - break; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - serial_ = s; - break; + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_descriptor; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.class, cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); + } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate build() { + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int PUBKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString pubKey_; - /** - * bytes pubKey = 2; - */ - public com.google.protobuf.ByteString getPubKey() { - return pubKey_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate result = new cn.chain33.javasdk.model.protobuf.CertService.CertUpdate( + this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } - public static final int IDENTITY_FIELD_NUMBER = 3; - private volatile java.lang.Object identity_; - /** - * string identity = 3; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - * string identity = 3; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int SERIAL_FIELD_NUMBER = 4; - private volatile java.lang.Object serial_; - /** - * string serial = 4; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } - } - /** - * string serial = 4; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!pubKey_.isEmpty()) { - output.writeBytes(2, pubKey_); - } - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identity_); - } - if (!getSerialBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serial_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!pubKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, pubKey_); - } - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identity_); - } - if (!getSerialBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serial_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo other = (cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getPubKey() - .equals(other.getPubKey())) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getSerial() - .equals(other.getSerial())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + SERIAL_FIELD_NUMBER; - hash = (53 * hash) + getSerial().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 返回用户信息
-     * 
- * - * Protobuf type {@code RepGetUserInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:RepGetUserInfo) - cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.class, cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - pubKey_ = com.google.protobuf.ByteString.EMPTY; - - identity_ = ""; - - serial_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetUserInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo build() { - cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo result = new cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo(this); - result.name_ = name_; - result.pubKey_ = pubKey_; - result.identity_ = identity_; - result.serial_ = serial_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getPubKey() != com.google.protobuf.ByteString.EMPTY) { - setPubKey(other.getPubKey()); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (!other.getSerial().isEmpty()) { - serial_ = other.serial_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes pubKey = 2; - */ - public com.google.protobuf.ByteString getPubKey() { - return pubKey_; - } - /** - * bytes pubKey = 2; - */ - public Builder setPubKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - pubKey_ = value; - onChanged(); - return this; - } - /** - * bytes pubKey = 2; - */ - public Builder clearPubKey() { - - pubKey_ = getDefaultInstance().getPubKey(); - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 3; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 3; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 3; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 3; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 3; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private java.lang.Object serial_ = ""; - /** - * string serial = 4; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string serial = 4; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string serial = 4; - */ - public Builder setSerial( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serial_ = value; - onChanged(); - return this; - } - /** - * string serial = 4; - */ - public Builder clearSerial() { - - serial_ = getDefaultInstance().getSerial(); - onChanged(); - return this; - } - /** - * string serial = 4; - */ - public Builder setSerialBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serial_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RepGetUserInfo) - } + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - // @@protoc_insertion_point(class_scope:RepGetUserInfo) - private static final cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo(); - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepGetUserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepGetUserInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetUserInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } - } + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - public interface ReqGetCertInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqGetCertInfo) - com.google.protobuf.MessageOrBuilder { + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - /** - * string sn = 1; - */ - java.lang.String getSn(); - /** - * string sn = 1; - */ - com.google.protobuf.ByteString - getSnBytes(); + /** + * bytes value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } - /** - * bytes sign = 2; - */ - com.google.protobuf.ByteString getSign(); - } - /** - *
-   * 根据序列化查询证书
-   * 
- * - * Protobuf type {@code ReqGetCertInfo} - */ - public static final class ReqGetCertInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqGetCertInfo) - ReqGetCertInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqGetCertInfo.newBuilder() to construct. - private ReqGetCertInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqGetCertInfo() { - sn_ = ""; - sign_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * bytes value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqGetCertInfo(); - } + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqGetCertInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sn_ = s; - break; - } - case 18: { - - sign_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_descriptor; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.class, cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.Builder.class); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int SN_FIELD_NUMBER = 1; - private volatile java.lang.Object sn_; - /** - * string sn = 1; - */ - public java.lang.String getSn() { - java.lang.Object ref = sn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sn_ = s; - return s; - } - } - /** - * string sn = 1; - */ - public com.google.protobuf.ByteString - getSnBytes() { - java.lang.Object ref = sn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(builder_scope:CertUpdate) + } - public static final int SIGN_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString sign_; - /** - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } + // @@protoc_insertion_point(class_scope:CertUpdate) + private static final cn.chain33.javasdk.model.protobuf.CertService.CertUpdate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertUpdate(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertUpdate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertUpdate(input, extensionRegistry); + } + }; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSnBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sn_); - } - if (!sign_.isEmpty()) { - output.writeBytes(2, sign_); - } - unknownFields.writeTo(output); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSnBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sn_); - } - if (!sign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, sign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo other = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo) obj; - - if (!getSn() - .equals(other.getSn())) return false; - if (!getSign() - .equals(other.getSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SN_FIELD_NUMBER; - hash = (53 * hash) + getSn().hashCode(); - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public interface CertNormalOrBuilder extends + // @@protoc_insertion_point(interface_extends:CertNormal) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * bytes value = 2; + * + * @return The value. + */ + com.google.protobuf.ByteString getValue(); } + /** *
-     * 根据序列化查询证书
+     * 用户证书校验
      * 
* - * Protobuf type {@code ReqGetCertInfo} + * Protobuf type {@code CertNormal} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqGetCertInfo) - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.class, cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sn_ = ""; - - sign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_ReqGetCertInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo build() { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo result = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo(this); - result.sn_ = sn_; - result.sign_ = sign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo.getDefaultInstance()) return this; - if (!other.getSn().isEmpty()) { - sn_ = other.sn_; - onChanged(); - } - if (other.getSign() != com.google.protobuf.ByteString.EMPTY) { - setSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sn_ = ""; - /** - * string sn = 1; - */ - public java.lang.String getSn() { - java.lang.Object ref = sn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sn = 1; - */ - public com.google.protobuf.ByteString - getSnBytes() { - java.lang.Object ref = sn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sn = 1; - */ - public Builder setSn( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sn_ = value; - onChanged(); - return this; - } - /** - * string sn = 1; - */ - public Builder clearSn() { - - sn_ = getDefaultInstance().getSn(); - onChanged(); - return this; - } - /** - * string sn = 1; - */ - public Builder setSnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sn_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString sign_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes sign = 2; - */ - public com.google.protobuf.ByteString getSign() { - return sign_; - } - /** - * bytes sign = 2; - */ - public Builder setSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - sign_ = value; - onChanged(); - return this; - } - /** - * bytes sign = 2; - */ - public Builder clearSign() { - - sign_ = getDefaultInstance().getSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqGetCertInfo) - } + public static final class CertNormal extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CertNormal) + CertNormalOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ReqGetCertInfo) - private static final cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo(); - } + // Use CertNormal.newBuilder() to construct. + private CertNormal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private CertNormal() { + key_ = ""; + value_ = com.google.protobuf.ByteString.EMPTY; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqGetCertInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqGetCertInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertNormal(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.ReqGetCertInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private CertNormal(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_descriptor; + } - public interface RepGetCertInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:RepGetCertInfo) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertNormal.class, + cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder.class); + } - /** - * string serial = 1; - */ - java.lang.String getSerial(); - /** - * string serial = 1; - */ - com.google.protobuf.ByteString - getSerialBytes(); + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; - /** - *
-     * 0:正常 1:注销
-     * 
- * - * int32 status = 2; - */ - int getStatus(); + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } - /** - * int64 exipreTime = 3; - */ - long getExipreTime(); + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int64 revokeTime = 4; - */ - long getRevokeTime(); + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; - /** - * bytes cert = 5; - */ - com.google.protobuf.ByteString getCert(); + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - /** - * string identity = 6; - */ - java.lang.String getIdentity(); - /** - * string identity = 6; - */ - com.google.protobuf.ByteString - getIdentityBytes(); - } - /** - *
-   * 返回证书信息
-   * 
- * - * Protobuf type {@code RepGetCertInfo} - */ - public static final class RepGetCertInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RepGetCertInfo) - RepGetCertInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use RepGetCertInfo.newBuilder() to construct. - private RepGetCertInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RepGetCertInfo() { - serial_ = ""; - cert_ = com.google.protobuf.ByteString.EMPTY; - identity_ = ""; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RepGetCertInfo(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RepGetCertInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + memoizedIsInitialized = 1; + return true; + } - serial_ = s; - break; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } - case 16: { - - status_ = input.readInt32(); - break; + if (!value_.isEmpty()) { + output.writeBytes(2, value_); } - case 24: { + unknownFields.writeTo(output); + } - exipreTime_ = input.readInt64(); - break; - } - case 32: { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - revokeTime_ = input.readInt64(); - break; + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } - case 42: { - - cert_ = input.readBytes(); - break; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, value_); } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - identity_ = s; - break; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNormal)) { + return super.equals(obj); } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_descriptor; - } + cn.chain33.javasdk.model.protobuf.CertService.CertNormal other = (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) obj; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.class, cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.Builder.class); - } + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - public static final int SERIAL_FIELD_NUMBER = 1; - private volatile java.lang.Object serial_; - /** - * string serial = 1; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } - } - /** - * string serial = 1; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - *
-     * 0:正常 1:注销
-     * 
- * - * int32 status = 2; - */ - public int getStatus() { - return status_; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int EXIPRETIME_FIELD_NUMBER = 3; - private long exipreTime_; - /** - * int64 exipreTime = 3; - */ - public long getExipreTime() { - return exipreTime_; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int REVOKETIME_FIELD_NUMBER = 4; - private long revokeTime_; - /** - * int64 revokeTime = 4; - */ - public long getRevokeTime() { - return revokeTime_; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int CERT_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString cert_; - /** - * bytes cert = 5; - */ - public com.google.protobuf.ByteString getCert() { - return cert_; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int IDENTITY_FIELD_NUMBER = 6; - private volatile java.lang.Object identity_; - /** - * string identity = 6; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - * string identity = 6; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSerialBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serial_); - } - if (status_ != 0) { - output.writeInt32(2, status_); - } - if (exipreTime_ != 0L) { - output.writeInt64(3, exipreTime_); - } - if (revokeTime_ != 0L) { - output.writeInt64(4, revokeTime_); - } - if (!cert_.isEmpty()) { - output.writeBytes(5, cert_); - } - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, identity_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSerialBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serial_); - } - if (status_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, status_); - } - if (exipreTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, exipreTime_); - } - if (revokeTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, revokeTime_); - } - if (!cert_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, cert_); - } - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, identity_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo other = (cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo) obj; - - if (!getSerial() - .equals(other.getSerial())) return false; - if (getStatus() - != other.getStatus()) return false; - if (getExipreTime() - != other.getExipreTime()) return false; - if (getRevokeTime() - != other.getRevokeTime()) return false; - if (!getCert() - .equals(other.getCert())) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERIAL_FIELD_NUMBER; - hash = (53 * hash) + getSerial().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus(); - hash = (37 * hash) + EXIPRETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExipreTime()); - hash = (37 * hash) + REVOKETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRevokeTime()); - hash = (37 * hash) + CERT_FIELD_NUMBER; - hash = (53 * hash) + getCert().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 返回证书信息
-     * 
- * - * Protobuf type {@code RepGetCertInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:RepGetCertInfo) - cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.class, cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serial_ = ""; - - status_ = 0; - - exipreTime_ = 0L; - - revokeTime_ = 0L; - - cert_ = com.google.protobuf.ByteString.EMPTY; - - identity_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_RepGetCertInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo build() { - cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo result = new cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo(this); - result.serial_ = serial_; - result.status_ = status_; - result.exipreTime_ = exipreTime_; - result.revokeTime_ = revokeTime_; - result.cert_ = cert_; - result.identity_ = identity_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo.getDefaultInstance()) return this; - if (!other.getSerial().isEmpty()) { - serial_ = other.serial_; - onChanged(); - } - if (other.getStatus() != 0) { - setStatus(other.getStatus()); - } - if (other.getExipreTime() != 0L) { - setExipreTime(other.getExipreTime()); - } - if (other.getRevokeTime() != 0L) { - setRevokeTime(other.getRevokeTime()); - } - if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { - setCert(other.getCert()); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object serial_ = ""; - /** - * string serial = 1; - */ - public java.lang.String getSerial() { - java.lang.Object ref = serial_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serial_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string serial = 1; - */ - public com.google.protobuf.ByteString - getSerialBytes() { - java.lang.Object ref = serial_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string serial = 1; - */ - public Builder setSerial( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serial_ = value; - onChanged(); - return this; - } - /** - * string serial = 1; - */ - public Builder clearSerial() { - - serial_ = getDefaultInstance().getSerial(); - onChanged(); - return this; - } - /** - * string serial = 1; - */ - public Builder setSerialBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serial_ = value; - onChanged(); - return this; - } - - private int status_ ; - /** - *
-       * 0:正常 1:注销
-       * 
- * - * int32 status = 2; - */ - public int getStatus() { - return status_; - } - /** - *
-       * 0:正常 1:注销
-       * 
- * - * int32 status = 2; - */ - public Builder setStatus(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-       * 0:正常 1:注销
-       * 
- * - * int32 status = 2; - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private long exipreTime_ ; - /** - * int64 exipreTime = 3; - */ - public long getExipreTime() { - return exipreTime_; - } - /** - * int64 exipreTime = 3; - */ - public Builder setExipreTime(long value) { - - exipreTime_ = value; - onChanged(); - return this; - } - /** - * int64 exipreTime = 3; - */ - public Builder clearExipreTime() { - - exipreTime_ = 0L; - onChanged(); - return this; - } - - private long revokeTime_ ; - /** - * int64 revokeTime = 4; - */ - public long getRevokeTime() { - return revokeTime_; - } - /** - * int64 revokeTime = 4; - */ - public Builder setRevokeTime(long value) { - - revokeTime_ = value; - onChanged(); - return this; - } - /** - * int64 revokeTime = 4; - */ - public Builder clearRevokeTime() { - - revokeTime_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes cert = 5; - */ - public com.google.protobuf.ByteString getCert() { - return cert_; - } - /** - * bytes cert = 5; - */ - public Builder setCert(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - cert_ = value; - onChanged(); - return this; - } - /** - * bytes cert = 5; - */ - public Builder clearCert() { - - cert_ = getDefaultInstance().getCert(); - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 6; - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 6; - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 6; - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 6; - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 6; - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RepGetCertInfo) - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - // @@protoc_insertion_point(class_scope:RepGetCertInfo) - private static final cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo(); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertNormal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepGetCertInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepGetCertInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + *
+         * 用户证书校验
+         * 
+ * + * Protobuf type {@code CertNormal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CertNormal) + cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_descriptor; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.RepGetCertInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertNormal.class, + cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder.class); + } - } + // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertNormal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public interface CertActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:CertAction) - com.google.protobuf.MessageOrBuilder { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * .CertNew new = 1; - */ - boolean hasNew(); - /** - * .CertNew new = 1; - */ - cn.chain33.javasdk.model.protobuf.CertService.CertNew getNew(); - /** - * .CertNew new = 1; - */ - cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder getNewOrBuilder(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * .CertUpdate update = 2; - */ - boolean hasUpdate(); - /** - * .CertUpdate update = 2; - */ - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getUpdate(); - /** - * .CertUpdate update = 2; - */ - cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder getUpdateOrBuilder(); + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; - /** - * .CertNormal normal = 3; - */ - boolean hasNormal(); - /** - * .CertNormal normal = 3; - */ - cn.chain33.javasdk.model.protobuf.CertService.CertNormal getNormal(); - /** - * .CertNormal normal = 3; - */ - cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder getNormalOrBuilder(); + value_ = com.google.protobuf.ByteString.EMPTY; - /** - * int32 ty = 4; - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.CertService.CertAction.ValueCase getValueCase(); - } - /** - *
-   * cert合约action
-   * 
- * - * Protobuf type {@code CertAction} - */ - public static final class CertAction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CertAction) - CertActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CertAction.newBuilder() to construct. - private CertAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CertAction() { - } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CertAction(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertAction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.CertService.CertNew.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.CertService.CertNormal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 32: { - - ty_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertAction.class, cn.chain33.javasdk.model.protobuf.CertService.CertAction.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormal build() { + cn.chain33.javasdk.model.protobuf.CertService.CertNormal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - NEW(1), - UPDATE(2), - NORMAL(3), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return NEW; - case 2: return UPDATE; - case 3: return NORMAL; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormal buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.CertNormal result = new cn.chain33.javasdk.model.protobuf.CertService.CertNormal( + this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } - public static final int NEW_FIELD_NUMBER = 1; - /** - * .CertNew new = 1; - */ - public boolean hasNew() { - return valueCase_ == 1; - } - /** - * .CertNew new = 1; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNew getNew() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); - } - /** - * .CertNew new = 1; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder getNewOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int UPDATE_FIELD_NUMBER = 2; - /** - * .CertUpdate update = 2; - */ - public boolean hasUpdate() { - return valueCase_ == 2; - } - /** - * .CertUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getUpdate() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); - } - /** - * .CertUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder getUpdateOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int NORMAL_FIELD_NUMBER = 3; - /** - * .CertNormal normal = 3; - */ - public boolean hasNormal() { - return valueCase_ == 3; - } - /** - * .CertNormal normal = 3; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getNormal() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); - } - /** - * .CertNormal normal = 3; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder getNormalOrBuilder() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int TY_FIELD_NUMBER = 4; - private int ty_; - /** - * int32 ty = 4; - */ - public int getTy() { - return ty_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_); - } - if (ty_ != 0) { - output.writeInt32(4, ty_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNormal) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNormal) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, ty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertNormal other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertAction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.CertAction other = (cn.chain33.javasdk.model.protobuf.CertService.CertAction) obj; - - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getNew() - .equals(other.getNew())) return false; - break; - case 2: - if (!getUpdate() - .equals(other.getUpdate())) return false; - break; - case 3: - if (!getNormal() - .equals(other.getNormal())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + NEW_FIELD_NUMBER; - hash = (53 * hash) + getNew().hashCode(); - break; - case 2: - hash = (37 * hash) + UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getUpdate().hashCode(); - break; - case 3: - hash = (37 * hash) + NORMAL_FIELD_NUMBER; - hash = (53 * hash) + getNormal().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.CertNormal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * cert合约action
-     * 
- * - * Protobuf type {@code CertAction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CertAction) - cn.chain33.javasdk.model.protobuf.CertService.CertActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertAction.class, cn.chain33.javasdk.model.protobuf.CertService.CertAction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertAction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertAction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.CertAction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertAction build() { - cn.chain33.javasdk.model.protobuf.CertService.CertAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertAction buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.CertAction result = new cn.chain33.javasdk.model.protobuf.CertService.CertAction(this); - if (valueCase_ == 1) { - if (newBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = newBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (updateBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = updateBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (normalBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = normalBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertAction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertAction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertAction other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.CertAction.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case NEW: { - mergeNew(other.getNew()); - break; - } - case UPDATE: { - mergeUpdate(other.getUpdate()); - break; - } - case NORMAL: { - mergeNormal(other.getNormal()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.CertAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertNew, cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder> newBuilder_; - /** - * .CertNew new = 1; - */ - public boolean hasNew() { - return valueCase_ == 1; - } - /** - * .CertNew new = 1; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNew getNew() { - if (newBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return newBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); - } - } - /** - * .CertNew new = 1; - */ - public Builder setNew(cn.chain33.javasdk.model.protobuf.CertService.CertNew value) { - if (newBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - newBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .CertNew new = 1; - */ - public Builder setNew( - cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder builderForValue) { - if (newBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - newBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .CertNew new = 1; - */ - public Builder mergeNew(cn.chain33.javasdk.model.protobuf.CertService.CertNew value) { - if (newBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNew.newBuilder((cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - newBuilder_.mergeFrom(value); - } - newBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .CertNew new = 1; - */ - public Builder clearNew() { - if (newBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - newBuilder_.clear(); - } - return this; - } - /** - * .CertNew new = 1; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder getNewBuilder() { - return getNewFieldBuilder().getBuilder(); - } - /** - * .CertNew new = 1; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder getNewOrBuilder() { - if ((valueCase_ == 1) && (newBuilder_ != null)) { - return newBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); - } - } - /** - * .CertNew new = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertNew, cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder> - getNewFieldBuilder() { - if (newBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); - } - newBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertNew, cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder>( - (cn.chain33.javasdk.model.protobuf.CertService.CertNew) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return newBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate, cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder> updateBuilder_; - /** - * .CertUpdate update = 2; - */ - public boolean hasUpdate() { - return valueCase_ == 2; - } - /** - * .CertUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getUpdate() { - if (updateBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return updateBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); - } - } - /** - * .CertUpdate update = 2; - */ - public Builder setUpdate(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .CertUpdate update = 2; - */ - public Builder setUpdate( - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder builderForValue) { - if (updateBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .CertUpdate update = 2; - */ - public Builder mergeUpdate(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate value) { - if (updateBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.newBuilder((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - updateBuilder_.mergeFrom(value); - } - updateBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .CertUpdate update = 2; - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - updateBuilder_.clear(); - } - return this; - } - /** - * .CertUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder getUpdateBuilder() { - return getUpdateFieldBuilder().getBuilder(); - } - /** - * .CertUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder getUpdateOrBuilder() { - if ((valueCase_ == 2) && (updateBuilder_ != null)) { - return updateBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); - } - } - /** - * .CertUpdate update = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate, cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); - } - updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate, cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder>( - (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return updateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertNormal, cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder> normalBuilder_; - /** - * .CertNormal normal = 3; - */ - public boolean hasNormal() { - return valueCase_ == 3; - } - /** - * .CertNormal normal = 3; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getNormal() { - if (normalBuilder_ == null) { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return normalBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); - } - } - /** - * .CertNormal normal = 3; - */ - public Builder setNormal(cn.chain33.javasdk.model.protobuf.CertService.CertNormal value) { - if (normalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - normalBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .CertNormal normal = 3; - */ - public Builder setNormal( - cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder builderForValue) { - if (normalBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - normalBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .CertNormal normal = 3; - */ - public Builder mergeNormal(cn.chain33.javasdk.model.protobuf.CertService.CertNormal value) { - if (normalBuilder_ == null) { - if (valueCase_ == 3 && - value_ != cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNormal.newBuilder((cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - normalBuilder_.mergeFrom(value); - } - normalBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .CertNormal normal = 3; - */ - public Builder clearNormal() { - if (normalBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - normalBuilder_.clear(); - } - return this; - } - /** - * .CertNormal normal = 3; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder getNormalBuilder() { - return getNormalFieldBuilder().getBuilder(); - } - /** - * .CertNormal normal = 3; - */ - public cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder getNormalOrBuilder() { - if ((valueCase_ == 3) && (normalBuilder_ != null)) { - return normalBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_; - } - return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); - } - } - /** - * .CertNormal normal = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertNormal, cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder> - getNormalFieldBuilder() { - if (normalBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); - } - normalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CertService.CertNormal, cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder, cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder>( - (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return normalBuilder_; - } - - private int ty_ ; - /** - * int32 ty = 4; - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 4; - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 4; - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CertAction) - } + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:CertAction) - private static final cn.chain33.javasdk.model.protobuf.CertService.CertAction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertAction(); - } + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { - public static cn.chain33.javasdk.model.protobuf.CertService.CertAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertAction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - } + /** + * bytes value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } - public interface CertNewOrBuilder extends - // @@protoc_insertion_point(interface_extends:CertNew) - com.google.protobuf.MessageOrBuilder { + /** + * bytes value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - } - /** - *
-   * 证书启用
-   * 
- * - * Protobuf type {@code CertNew} - */ - public static final class CertNew extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CertNew) - CertNewOrBuilder { - private static final long serialVersionUID = 0L; - // Use CertNew.newBuilder() to construct. - private CertNew(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CertNew() { - key_ = ""; - value_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CertNew(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertNew( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_descriptor; - } + // @@protoc_insertion_point(builder_scope:CertNormal) + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertNew.class, cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder.class); - } + // @@protoc_insertion_point(class_scope:CertNormal) + private static final cn.chain33.javasdk.model.protobuf.CertService.CertNormal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertNormal(); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertNormal parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertNormal(input, extensionRegistry); + } + }; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNew)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.CertNew other = (cn.chain33.javasdk.model.protobuf.CertService.CertNew) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public interface CertSignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:CertSignature) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * bytes signature = 1; + * + * @return The signature. + */ + com.google.protobuf.ByteString getSignature(); - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * bytes cert = 2; + * + * @return The cert. + */ + com.google.protobuf.ByteString getCert(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertNew prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + /** + * bytes uid = 3; + * + * @return The uid. + */ + com.google.protobuf.ByteString getUid(); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** *
-     * 证书启用
+     * 带证书签名结构
      * 
* - * Protobuf type {@code CertNew} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CertNew) - cn.chain33.javasdk.model.protobuf.CertService.CertNewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertNew.class, cn.chain33.javasdk.model.protobuf.CertService.CertNew.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertNew.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNew_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNew getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNew build() { - cn.chain33.javasdk.model.protobuf.CertService.CertNew result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNew buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.CertNew result = new cn.chain33.javasdk.model.protobuf.CertService.CertNew(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNew) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNew)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertNew other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.CertNew.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.CertNew parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertNew) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CertNew) - } - - // @@protoc_insertion_point(class_scope:CertNew) - private static final cn.chain33.javasdk.model.protobuf.CertService.CertNew DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertNew(); - } + * Protobuf type {@code CertSignature} + */ + public static final class CertSignature extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CertSignature) + CertSignatureOrBuilder { + private static final long serialVersionUID = 0L; - public static cn.chain33.javasdk.model.protobuf.CertService.CertNew getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // Use CertSignature.newBuilder() to construct. + private CertSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertNew parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertNew(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private CertSignature() { + signature_ = com.google.protobuf.ByteString.EMPTY; + cert_ = com.google.protobuf.ByteString.EMPTY; + uid_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertSignature(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNew getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - } + private CertSignature(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + signature_ = input.readBytes(); + break; + } + case 18: { + + cert_ = input.readBytes(); + break; + } + case 26: { + + uid_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public interface CertUpdateOrBuilder extends - // @@protoc_insertion_point(interface_extends:CertUpdate) - com.google.protobuf.MessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_descriptor; + } - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CertService.CertSignature.class, + cn.chain33.javasdk.model.protobuf.CertService.CertSignature.Builder.class); + } - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - } - /** - *
-   * 证书更新
-   * 
- * - * Protobuf type {@code CertUpdate} - */ - public static final class CertUpdate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CertUpdate) - CertUpdateOrBuilder { - private static final long serialVersionUID = 0L; - // Use CertUpdate.newBuilder() to construct. - private CertUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CertUpdate() { - key_ = ""; - value_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int SIGNATURE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString signature_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CertUpdate(); - } + /** + * bytes signature = 1; + * + * @return The signature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSignature() { + return signature_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertUpdate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_descriptor; - } + public static final int CERT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString cert_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.class, cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder.class); - } + /** + * bytes cert = 2; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int UID_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString uid_; - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + /** + * bytes uid = 3; + * + * @return The uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUid() { + return uid_; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!signature_.isEmpty()) { + output.writeBytes(1, signature_); + } + if (!cert_.isEmpty()) { + output.writeBytes(2, cert_); + } + if (!uid_.isEmpty()) { + output.writeBytes(3, uid_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertUpdate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate other = (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (!signature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, signature_); + } + if (!cert_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, cert_); + } + if (!uid_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, uid_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertSignature)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CertService.CertSignature other = (cn.chain33.javasdk.model.protobuf.CertService.CertSignature) obj; + + if (!getSignature().equals(other.getSignature())) + return false; + if (!getCert().equals(other.getCert())) + return false; + if (!getUid().equals(other.getUid())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + hash = (37 * hash) + CERT_FIELD_NUMBER; + hash = (53 * hash) + getCert().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 证书更新
-     * 
- * - * Protobuf type {@code CertUpdate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CertUpdate) - cn.chain33.javasdk.model.protobuf.CertService.CertUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.class, cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertUpdate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate build() { - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate result = new cn.chain33.javasdk.model.protobuf.CertService.CertUpdate(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertUpdate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertUpdate other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.CertUpdate.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.CertUpdate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertUpdate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CertUpdate) - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:CertUpdate) - private static final cn.chain33.javasdk.model.protobuf.CertService.CertUpdate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertUpdate(); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertUpdate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertUpdate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface CertNormalOrBuilder extends - // @@protoc_insertion_point(interface_extends:CertNormal) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - } - /** - *
-   * 用户证书校验
-   * 
- * - * Protobuf type {@code CertNormal} - */ - public static final class CertNormal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CertNormal) - CertNormalOrBuilder { - private static final long serialVersionUID = 0L; - // Use CertNormal.newBuilder() to construct. - private CertNormal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CertNormal() { - key_ = ""; - value_ = com.google.protobuf.ByteString.EMPTY; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CertNormal(); - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertNormal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_descriptor; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertNormal.class, cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder.class); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertSignature prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - memoizedIsInitialized = 1; - return true; - } + /** + *
+         * 带证书签名结构
+         * 
+ * + * Protobuf type {@code CertSignature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CertSignature) + cn.chain33.javasdk.model.protobuf.CertService.CertSignatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CertService.CertSignature.class, + cn.chain33.javasdk.model.protobuf.CertService.CertSignature.Builder.class); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertSignature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNormal)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.CertNormal other = (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clear() { + super.clear(); + signature_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertNormal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + cert_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 用户证书校验
-     * 
- * - * Protobuf type {@code CertNormal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CertNormal) - cn.chain33.javasdk.model.protobuf.CertService.CertNormalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertNormal.class, cn.chain33.javasdk.model.protobuf.CertService.CertNormal.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertNormal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertNormal_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNormal build() { - cn.chain33.javasdk.model.protobuf.CertService.CertNormal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNormal buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.CertNormal result = new cn.chain33.javasdk.model.protobuf.CertService.CertNormal(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertNormal) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertNormal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertNormal other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.CertNormal.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.CertNormal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertNormal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CertNormal) - } + uid_ = com.google.protobuf.ByteString.EMPTY; - // @@protoc_insertion_point(class_scope:CertNormal) - private static final cn.chain33.javasdk.model.protobuf.CertService.CertNormal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertNormal(); - } + return this; + } - public static cn.chain33.javasdk.model.protobuf.CertService.CertNormal getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertNormal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertNormal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertSignature getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CertService.CertSignature.getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertSignature build() { + cn.chain33.javasdk.model.protobuf.CertService.CertSignature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertNormal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertSignature buildPartial() { + cn.chain33.javasdk.model.protobuf.CertService.CertSignature result = new cn.chain33.javasdk.model.protobuf.CertService.CertSignature( + this); + result.signature_ = signature_; + result.cert_ = cert_; + result.uid_ = uid_; + onBuilt(); + return result; + } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public interface CertSignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:CertSignature) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * bytes signature = 1; - */ - com.google.protobuf.ByteString getSignature(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - * bytes cert = 2; - */ - com.google.protobuf.ByteString getCert(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * bytes uid = 3; - */ - com.google.protobuf.ByteString getUid(); - } - /** - *
-   * 带证书签名结构
-   * 
- * - * Protobuf type {@code CertSignature} - */ - public static final class CertSignature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CertSignature) - CertSignatureOrBuilder { - private static final long serialVersionUID = 0L; - // Use CertSignature.newBuilder() to construct. - private CertSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CertSignature() { - signature_ = com.google.protobuf.ByteString.EMPTY; - cert_ = com.google.protobuf.ByteString.EMPTY; - uid_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CertSignature(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CertSignature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertSignature) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertSignature) other); + } else { + super.mergeFrom(other); + return this; + } + } - signature_ = input.readBytes(); - break; + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertSignature other) { + if (other == cn.chain33.javasdk.model.protobuf.CertService.CertSignature.getDefaultInstance()) + return this; + if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { + setSignature(other.getSignature()); + } + if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { + setCert(other.getCert()); + } + if (other.getUid() != com.google.protobuf.ByteString.EMPTY) { + setUid(other.getUid()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - case 18: { - cert_ = input.readBytes(); - break; + @java.lang.Override + public final boolean isInitialized() { + return true; } - case 26: { - uid_ = input.readBytes(); - break; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CertService.CertSignature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertSignature) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes signature = 1; + * + * @return The signature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSignature() { + return signature_; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertSignature.class, cn.chain33.javasdk.model.protobuf.CertService.CertSignature.Builder.class); - } + /** + * bytes signature = 1; + * + * @param value + * The signature to set. + * + * @return This builder for chaining. + */ + public Builder setSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + signature_ = value; + onChanged(); + return this; + } - public static final int SIGNATURE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString signature_; - /** - * bytes signature = 1; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } + /** + * bytes signature = 1; + * + * @return This builder for chaining. + */ + public Builder clearSignature() { - public static final int CERT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString cert_; - /** - * bytes cert = 2; - */ - public com.google.protobuf.ByteString getCert() { - return cert_; - } + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } - public static final int UID_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString uid_; - /** - * bytes uid = 3; - */ - public com.google.protobuf.ByteString getUid() { - return uid_; - } + private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * bytes cert = 2; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } - memoizedIsInitialized = 1; - return true; - } + /** + * bytes cert = 2; + * + * @param value + * The cert to set. + * + * @return This builder for chaining. + */ + public Builder setCert(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + cert_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!signature_.isEmpty()) { - output.writeBytes(1, signature_); - } - if (!cert_.isEmpty()) { - output.writeBytes(2, cert_); - } - if (!uid_.isEmpty()) { - output.writeBytes(3, uid_); - } - unknownFields.writeTo(output); - } + /** + * bytes cert = 2; + * + * @return This builder for chaining. + */ + public Builder clearCert() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, signature_); - } - if (!cert_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, cert_); - } - if (!uid_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, uid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + cert_ = getDefaultInstance().getCert(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CertService.CertSignature)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CertService.CertSignature other = (cn.chain33.javasdk.model.protobuf.CertService.CertSignature) obj; - - if (!getSignature() - .equals(other.getSignature())) return false; - if (!getCert() - .equals(other.getCert())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private com.google.protobuf.ByteString uid_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (37 * hash) + CERT_FIELD_NUMBER; - hash = (53 * hash) + getCert().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * bytes uid = 3; + * + * @return The uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUid() { + return uid_; + } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * bytes uid = 3; + * + * @param value + * The uid to set. + * + * @return This builder for chaining. + */ + public Builder setUid(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CertService.CertSignature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * bytes uid = 3; + * + * @return This builder for chaining. + */ + public Builder clearUid() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 带证书签名结构
-     * 
- * - * Protobuf type {@code CertSignature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CertSignature) - cn.chain33.javasdk.model.protobuf.CertService.CertSignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CertService.CertSignature.class, cn.chain33.javasdk.model.protobuf.CertService.CertSignature.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CertService.CertSignature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - signature_ = com.google.protobuf.ByteString.EMPTY; - - cert_ = com.google.protobuf.ByteString.EMPTY; - - uid_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CertService.internal_static_CertSignature_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertSignature getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CertService.CertSignature.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertSignature build() { - cn.chain33.javasdk.model.protobuf.CertService.CertSignature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertSignature buildPartial() { - cn.chain33.javasdk.model.protobuf.CertService.CertSignature result = new cn.chain33.javasdk.model.protobuf.CertService.CertSignature(this); - result.signature_ = signature_; - result.cert_ = cert_; - result.uid_ = uid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CertService.CertSignature) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CertService.CertSignature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CertService.CertSignature other) { - if (other == cn.chain33.javasdk.model.protobuf.CertService.CertSignature.getDefaultInstance()) return this; - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { - setCert(other.getCert()); - } - if (other.getUid() != com.google.protobuf.ByteString.EMPTY) { - setUid(other.getUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CertService.CertSignature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CertService.CertSignature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 1; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 1; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 1; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes cert = 2; - */ - public com.google.protobuf.ByteString getCert() { - return cert_; - } - /** - * bytes cert = 2; - */ - public Builder setCert(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - cert_ = value; - onChanged(); - return this; - } - /** - * bytes cert = 2; - */ - public Builder clearCert() { - - cert_ = getDefaultInstance().getCert(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString uid_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes uid = 3; - */ - public com.google.protobuf.ByteString getUid() { - return uid_; - } - /** - * bytes uid = 3; - */ - public Builder setUid(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - uid_ = value; - onChanged(); - return this; - } - /** - * bytes uid = 3; - */ - public Builder clearUid() { - - uid_ = getDefaultInstance().getUid(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CertSignature) - } + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:CertSignature) - private static final cn.chain33.javasdk.model.protobuf.CertService.CertSignature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertSignature(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertSignature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertSignature(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:CertSignature) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:CertSignature) + private static final cn.chain33.javasdk.model.protobuf.CertService.CertSignature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CertService.CertSignature(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CertService.CertSignature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CertService.CertSignature getDefaultInstance() { + return DEFAULT_INSTANCE; + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqRegisterUser_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqRegisterUser_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqRevokeUser_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqRevokeUser_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqEnroll_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqEnroll_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RepEnroll_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RepEnroll_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqRevokeCert_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqRevokeCert_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqGetCRL_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqGetCRL_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqGetUserInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqGetUserInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RepGetUserInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RepGetUserInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqGetCertInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqGetCertInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RepGetCertInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RepGetCertInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CertAction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CertAction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CertNew_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CertNew_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CertUpdate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CertUpdate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CertNormal_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CertNormal_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CertSignature_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CertSignature_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021CertService.proto\"O\n\017ReqRegisterUser\022\014" + - "\n\004name\030\001 \001(\t\022\020\n\010identity\030\002 \001(\t\022\016\n\006pubKey" + - "\030\003 \001(\t\022\014\n\004sign\030\004 \001(\014\"/\n\rReqRevokeUser\022\020\n" + - "\010identity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\"+\n\tReqEnro" + - "ll\022\020\n\010identity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\")\n\tRe" + - "pEnroll\022\016\n\006serial\030\001 \001(\t\022\014\n\004cert\030\002 \001(\014\"?\n" + - "\rReqRevokeCert\022\016\n\006serial\030\001 \001(\t\022\020\n\010identi" + - "ty\030\002 \001(\t\022\014\n\004sign\030\003 \001(\014\"+\n\tReqGetCRL\022\020\n\010i" + - "dentity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\"0\n\016ReqGetUse" + - "rInfo\022\020\n\010identity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\"P\n" + - "\016RepGetUserInfo\022\014\n\004name\030\001 \001(\t\022\016\n\006pubKey\030" + - "\002 \001(\014\022\020\n\010identity\030\003 \001(\t\022\016\n\006serial\030\004 \001(\t\"" + - "*\n\016ReqGetCertInfo\022\n\n\002sn\030\001 \001(\t\022\014\n\004sign\030\002 " + - "\001(\014\"x\n\016RepGetCertInfo\022\016\n\006serial\030\001 \001(\t\022\016\n" + - "\006status\030\002 \001(\005\022\022\n\nexipreTime\030\003 \001(\003\022\022\n\nrev" + - "okeTime\030\004 \001(\003\022\014\n\004cert\030\005 \001(\014\022\020\n\010identity\030" + - "\006 \001(\t\"x\n\nCertAction\022\027\n\003new\030\001 \001(\0132\010.CertN" + - "ewH\000\022\035\n\006update\030\002 \001(\0132\013.CertUpdateH\000\022\035\n\006n" + - "ormal\030\003 \001(\0132\013.CertNormalH\000\022\n\n\002ty\030\004 \001(\005B\007" + - "\n\005value\"%\n\007CertNew\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + - "\030\002 \001(\014\"(\n\nCertUpdate\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\014\"(\n\nCertNormal\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\014\"=\n\rCertSignature\022\021\n\tsignature" + - "\030\001 \001(\014\022\014\n\004cert\030\002 \001(\014\022\013\n\003uid\030\003 \001(\014B0\n!cn." + - "chain33.javasdk.model.protobufB\013CertServ" + - "iceb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ReqRegisterUser_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ReqRegisterUser_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqRegisterUser_descriptor, - new java.lang.String[] { "Name", "Identity", "PubKey", "Sign", }); - internal_static_ReqRevokeUser_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ReqRevokeUser_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqRevokeUser_descriptor, - new java.lang.String[] { "Identity", "Sign", }); - internal_static_ReqEnroll_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ReqEnroll_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqEnroll_descriptor, - new java.lang.String[] { "Identity", "Sign", }); - internal_static_RepEnroll_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_RepEnroll_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RepEnroll_descriptor, - new java.lang.String[] { "Serial", "Cert", }); - internal_static_ReqRevokeCert_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ReqRevokeCert_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqRevokeCert_descriptor, - new java.lang.String[] { "Serial", "Identity", "Sign", }); - internal_static_ReqGetCRL_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ReqGetCRL_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqGetCRL_descriptor, - new java.lang.String[] { "Identity", "Sign", }); - internal_static_ReqGetUserInfo_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ReqGetUserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqGetUserInfo_descriptor, - new java.lang.String[] { "Identity", "Sign", }); - internal_static_RepGetUserInfo_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_RepGetUserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RepGetUserInfo_descriptor, - new java.lang.String[] { "Name", "PubKey", "Identity", "Serial", }); - internal_static_ReqGetCertInfo_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ReqGetCertInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqGetCertInfo_descriptor, - new java.lang.String[] { "Sn", "Sign", }); - internal_static_RepGetCertInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_RepGetCertInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RepGetCertInfo_descriptor, - new java.lang.String[] { "Serial", "Status", "ExipreTime", "RevokeTime", "Cert", "Identity", }); - internal_static_CertAction_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_CertAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CertAction_descriptor, - new java.lang.String[] { "New", "Update", "Normal", "Ty", "Value", }); - internal_static_CertNew_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_CertNew_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CertNew_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_CertUpdate_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_CertUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CertUpdate_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_CertNormal_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_CertNormal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CertNormal_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_CertSignature_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_CertSignature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CertSignature_descriptor, - new java.lang.String[] { "Signature", "Cert", "Uid", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertSignature parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertSignature(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CertService.CertSignature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqRegisterUser_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqRegisterUser_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqRevokeUser_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqRevokeUser_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqEnroll_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqEnroll_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_RepEnroll_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_RepEnroll_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqRevokeCert_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqRevokeCert_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqGetCRL_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqGetCRL_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqGetUserInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqGetUserInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_RepGetUserInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_RepGetUserInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqGetCertInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqGetCertInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_RepGetCertInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_RepGetCertInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CertAction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CertAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CertNew_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CertNew_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CertUpdate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CertUpdate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CertNormal_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CertNormal_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CertSignature_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CertSignature_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\021CertService.proto\"O\n\017ReqRegisterUser\022\014" + + "\n\004name\030\001 \001(\t\022\020\n\010identity\030\002 \001(\t\022\016\n\006pubKey" + + "\030\003 \001(\t\022\014\n\004sign\030\004 \001(\014\"/\n\rReqRevokeUser\022\020\n" + + "\010identity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\"+\n\tReqEnro" + + "ll\022\020\n\010identity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\")\n\tRe" + + "pEnroll\022\016\n\006serial\030\001 \001(\t\022\014\n\004cert\030\002 \001(\014\"?\n" + + "\rReqRevokeCert\022\016\n\006serial\030\001 \001(\t\022\020\n\010identi" + + "ty\030\002 \001(\t\022\014\n\004sign\030\003 \001(\014\"+\n\tReqGetCRL\022\020\n\010i" + + "dentity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\"0\n\016ReqGetUse" + + "rInfo\022\020\n\010identity\030\001 \001(\t\022\014\n\004sign\030\002 \001(\014\"P\n" + + "\016RepGetUserInfo\022\014\n\004name\030\001 \001(\t\022\016\n\006pubKey\030" + + "\002 \001(\014\022\020\n\010identity\030\003 \001(\t\022\016\n\006serial\030\004 \001(\t\"" + + "*\n\016ReqGetCertInfo\022\n\n\002sn\030\001 \001(\t\022\014\n\004sign\030\002 " + + "\001(\014\"x\n\016RepGetCertInfo\022\016\n\006serial\030\001 \001(\t\022\016\n" + + "\006status\030\002 \001(\005\022\022\n\nexipreTime\030\003 \001(\003\022\022\n\nrev" + + "okeTime\030\004 \001(\003\022\014\n\004cert\030\005 \001(\014\022\020\n\010identity\030" + + "\006 \001(\t\"x\n\nCertAction\022\027\n\003new\030\001 \001(\0132\010.CertN" + + "ewH\000\022\035\n\006update\030\002 \001(\0132\013.CertUpdateH\000\022\035\n\006n" + + "ormal\030\003 \001(\0132\013.CertNormalH\000\022\n\n\002ty\030\004 \001(\005B\007" + + "\n\005value\"%\n\007CertNew\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\014\"(\n\nCertUpdate\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\014\"(\n\nCertNormal\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\014\"=\n\rCertSignature\022\021\n\tsignature" + + "\030\001 \001(\014\022\014\n\004cert\030\002 \001(\014\022\013\n\003uid\030\003 \001(\014B0\n!cn." + + "chain33.javasdk.model.protobufB\013CertServ" + "iceb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ReqRegisterUser_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ReqRegisterUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqRegisterUser_descriptor, + new java.lang.String[] { "Name", "Identity", "PubKey", "Sign", }); + internal_static_ReqRevokeUser_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_ReqRevokeUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqRevokeUser_descriptor, new java.lang.String[] { "Identity", "Sign", }); + internal_static_ReqEnroll_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_ReqEnroll_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqEnroll_descriptor, new java.lang.String[] { "Identity", "Sign", }); + internal_static_RepEnroll_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_RepEnroll_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_RepEnroll_descriptor, new java.lang.String[] { "Serial", "Cert", }); + internal_static_ReqRevokeCert_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_ReqRevokeCert_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqRevokeCert_descriptor, new java.lang.String[] { "Serial", "Identity", "Sign", }); + internal_static_ReqGetCRL_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_ReqGetCRL_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqGetCRL_descriptor, new java.lang.String[] { "Identity", "Sign", }); + internal_static_ReqGetUserInfo_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_ReqGetUserInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqGetUserInfo_descriptor, new java.lang.String[] { "Identity", "Sign", }); + internal_static_RepGetUserInfo_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_RepGetUserInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_RepGetUserInfo_descriptor, + new java.lang.String[] { "Name", "PubKey", "Identity", "Serial", }); + internal_static_ReqGetCertInfo_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_ReqGetCertInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqGetCertInfo_descriptor, new java.lang.String[] { "Sn", "Sign", }); + internal_static_RepGetCertInfo_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_RepGetCertInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_RepGetCertInfo_descriptor, + new java.lang.String[] { "Serial", "Status", "ExipreTime", "RevokeTime", "Cert", "Identity", }); + internal_static_CertAction_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_CertAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CertAction_descriptor, + new java.lang.String[] { "New", "Update", "Normal", "Ty", "Value", }); + internal_static_CertNew_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_CertNew_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CertNew_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_CertUpdate_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_CertUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CertUpdate_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_CertNormal_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_CertNormal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CertNormal_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_CertSignature_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_CertSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CertSignature_descriptor, new java.lang.String[] { "Signature", "Cert", "Uid", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.proto b/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.proto index 4fb6a0a..753d199 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.proto +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/CertService.proto @@ -1,25 +1,25 @@ -syntax = "proto3"; +syntax = "proto3"; option java_outer_classname = "CertService"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; // 用户注册请求 message ReqRegisterUser { - string name = 1; //用户名 - string identity = 2; //用户ID - string pubKey = 3; //用户公钥 - bytes sign = 4; //请求方签名 + string name = 1; //用户名 + string identity = 2; //用户ID + string pubKey = 3; //用户公钥 + bytes sign = 4; //请求方签名 } // 用户注销请求 message ReqRevokeUser { - string identity = 1; //用户ID - bytes sign = 2; //请求方签名 + string identity = 1; //用户ID + bytes sign = 2; //请求方签名 } // 申请证书 message ReqEnroll { - string identity = 1; - bytes sign = 2; + string identity = 1; + bytes sign = 2; } // 证书信息 @@ -30,15 +30,15 @@ message RepEnroll { // 证书注销请求 message ReqRevokeCert { - string serial = 1; - string identity = 2; - bytes sign = 3; //请求方签名 + string serial = 1; + string identity = 2; + bytes sign = 3; //请求方签名 } // 获取CRL请求 message ReqGetCRL { - string identity = 1; - bytes sign = 2; + string identity = 1; + bytes sign = 2; } // 获取用户信息 @@ -57,8 +57,8 @@ message RepGetUserInfo { // 根据序列化查询证书 message ReqGetCertInfo { - string sn = 1; - bytes sign = 2; + string sn = 1; + bytes sign = 2; } // 返回证书信息 diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/Chain33Functional.java b/src/main/java/cn/chain33/javasdk/model/protobuf/Chain33Functional.java index 6ca4bd8..ba7a50b 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/Chain33Functional.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/Chain33Functional.java @@ -1,5 +1,5 @@ package cn.chain33.javasdk.model.protobuf; -public interface Chain33Functional { +public interface Chain33Functional { Result run(Arg arg); } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/CoinsProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/CoinsProtobuf.java index 8c6830c..c941954 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/CoinsProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/CoinsProtobuf.java @@ -4,1535 +4,1636 @@ package cn.chain33.javasdk.model.protobuf; public final class CoinsProtobuf { - private CoinsProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CoinsActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoinsAction) - com.google.protobuf.MessageOrBuilder { + private CoinsProtobuf() { + } - /** - * .AssetsTransfer transfer = 1; - * @return Whether the transfer field is set. - */ - boolean hasTransfer(); - /** - * .AssetsTransfer transfer = 1; - * @return The transfer. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getTransfer(); - /** - * .AssetsTransfer transfer = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder getTransferOrBuilder(); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } - /** - * .AssetsWithdraw withdraw = 4; - * @return Whether the withdraw field is set. - */ - boolean hasWithdraw(); - /** - * .AssetsWithdraw withdraw = 4; - * @return The withdraw. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getWithdraw(); - /** - * .AssetsWithdraw withdraw = 4; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder(); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } - /** - * .AssetsGenesis genesis = 2; - * @return Whether the genesis field is set. - */ - boolean hasGenesis(); - /** - * .AssetsGenesis genesis = 2; - * @return The genesis. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getGenesis(); - /** - * .AssetsGenesis genesis = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder getGenesisOrBuilder(); + public interface CoinsActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:CoinsAction) + com.google.protobuf.MessageOrBuilder { + + /** + * .AssetsTransfer transfer = 1; + * + * @return Whether the transfer field is set. + */ + boolean hasTransfer(); + + /** + * .AssetsTransfer transfer = 1; + * + * @return The transfer. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getTransfer(); + + /** + * .AssetsTransfer transfer = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder getTransferOrBuilder(); + + /** + * .AssetsWithdraw withdraw = 4; + * + * @return Whether the withdraw field is set. + */ + boolean hasWithdraw(); + + /** + * .AssetsWithdraw withdraw = 4; + * + * @return The withdraw. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getWithdraw(); + + /** + * .AssetsWithdraw withdraw = 4; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder(); + + /** + * .AssetsGenesis genesis = 2; + * + * @return Whether the genesis field is set. + */ + boolean hasGenesis(); + + /** + * .AssetsGenesis genesis = 2; + * + * @return The genesis. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getGenesis(); + + /** + * .AssetsGenesis genesis = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder getGenesisOrBuilder(); + + /** + * .AssetsTransferToExec transferToExec = 5; + * + * @return Whether the transferToExec field is set. + */ + boolean hasTransferToExec(); + + /** + * .AssetsTransferToExec transferToExec = 5; + * + * @return The transferToExec. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getTransferToExec(); + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder(); + + /** + * int32 ty = 3; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.ValueCase getValueCase(); + } /** - * .AssetsTransferToExec transferToExec = 5; - * @return Whether the transferToExec field is set. - */ - boolean hasTransferToExec(); - /** - * .AssetsTransferToExec transferToExec = 5; - * @return The transferToExec. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getTransferToExec(); - /** - * .AssetsTransferToExec transferToExec = 5; + *
+     * message for execs.coins
+     * 
+ * + * Protobuf type {@code CoinsAction} */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder(); + public static final class CoinsAction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CoinsAction) + CoinsActionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CoinsAction.newBuilder() to construct. + private CoinsAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * int32 ty = 3; - * @return The ty. - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.ValueCase getValueCase(); - } - /** - *
-   * message for execs.coins
-   * 
- * - * Protobuf type {@code CoinsAction} - */ - public static final class CoinsAction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CoinsAction) - CoinsActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CoinsAction.newBuilder() to construct. - private CoinsAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CoinsAction() { - } + private CoinsAction() { + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoinsAction(); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CoinsAction(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoinsAction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 24: { - - ty_ = input.readInt32(); - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.class, cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.Builder.class); - } + private CoinsAction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 24: { + + ty_ = input.readInt32(); + break; + } + case 34: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TRANSFER(1), - WITHDRAW(4), - GENESIS(2), - TRANSFERTOEXEC(5), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return TRANSFER; - case 4: return WITHDRAW; - case 2: return GENESIS; - case 5: return TRANSFERTOEXEC; - case 0: return VALUE_NOT_SET; - default: return null; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_descriptor; } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - public static final int TRANSFER_FIELD_NUMBER = 1; - /** - * .AssetsTransfer transfer = 1; - * @return Whether the transfer field is set. - */ - @java.lang.Override - public boolean hasTransfer() { - return valueCase_ == 1; - } - /** - * .AssetsTransfer transfer = 1; - * @return The transfer. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getTransfer() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); - } - /** - * .AssetsTransfer transfer = 1; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder getTransferOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.class, + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.Builder.class); + } - public static final int WITHDRAW_FIELD_NUMBER = 4; - /** - * .AssetsWithdraw withdraw = 4; - * @return Whether the withdraw field is set. - */ - @java.lang.Override - public boolean hasWithdraw() { - return valueCase_ == 4; - } - /** - * .AssetsWithdraw withdraw = 4; - * @return The withdraw. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getWithdraw() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); - } - /** - * .AssetsWithdraw withdraw = 4; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); - } + private int valueCase_ = 0; + private java.lang.Object value_; - public static final int GENESIS_FIELD_NUMBER = 2; - /** - * .AssetsGenesis genesis = 2; - * @return Whether the genesis field is set. - */ - @java.lang.Override - public boolean hasGenesis() { - return valueCase_ == 2; - } - /** - * .AssetsGenesis genesis = 2; - * @return The genesis. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getGenesis() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); - } - /** - * .AssetsGenesis genesis = 2; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); - } + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TRANSFER(1), WITHDRAW(4), GENESIS(2), TRANSFERTOEXEC(5), VALUE_NOT_SET(0); - public static final int TRANSFERTOEXEC_FIELD_NUMBER = 5; - /** - * .AssetsTransferToExec transferToExec = 5; - * @return Whether the transferToExec field is set. - */ - @java.lang.Override - public boolean hasTransferToExec() { - return valueCase_ == 5; - } - /** - * .AssetsTransferToExec transferToExec = 5; - * @return The transferToExec. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getTransferToExec() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); - } - - public static final int TY_FIELD_NUMBER = 3; - private int ty_; - /** - * int32 ty = 3; - * @return The ty. - */ - @java.lang.Override - public int getTy() { - return ty_; - } + private final int value; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private ValueCase(int value) { + this.value = value; + } - memoizedIsInitialized = 1; - return true; - } + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_); - } - if (ty_ != 0) { - output.writeInt32(3, ty_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_); - } - unknownFields.writeTo(output); - } + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return TRANSFER; + case 4: + return WITHDRAW; + case 2: + return GENESIS; + case 5: + return TRANSFERTOEXEC; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, ty_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public int getNumber() { + return this.value; + } + }; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction other = (cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction) obj; - - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getTransfer() - .equals(other.getTransfer())) return false; - break; - case 4: - if (!getWithdraw() - .equals(other.getWithdraw())) return false; - break; - case 2: - if (!getGenesis() - .equals(other.getGenesis())) return false; - break; - case 5: - if (!getTransferToExec() - .equals(other.getTransferToExec())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + getTransfer().hashCode(); - break; - case 4: - hash = (37 * hash) + WITHDRAW_FIELD_NUMBER; - hash = (53 * hash) + getWithdraw().hashCode(); - break; - case 2: - hash = (37 * hash) + GENESIS_FIELD_NUMBER; - hash = (53 * hash) + getGenesis().hashCode(); - break; - case 5: - hash = (37 * hash) + TRANSFERTOEXEC_FIELD_NUMBER; - hash = (53 * hash) + getTransferToExec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int TRANSFER_FIELD_NUMBER = 1; - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * .AssetsTransfer transfer = 1; + * + * @return Whether the transfer field is set. + */ + @java.lang.Override + public boolean hasTransfer() { + return valueCase_ == 1; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * .AssetsTransfer transfer = 1; + * + * @return The transfer. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getTransfer() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * message for execs.coins
-     * 
- * - * Protobuf type {@code CoinsAction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CoinsAction) - cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.class, cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + /** + * .AssetsTransfer transfer = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder getTransferOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction build() { - cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + + public static final int WITHDRAW_FIELD_NUMBER = 4; + + /** + * .AssetsWithdraw withdraw = 4; + * + * @return Whether the withdraw field is set. + */ + @java.lang.Override + public boolean hasWithdraw() { + return valueCase_ == 4; } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction buildPartial() { - cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction result = new cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction(this); - if (valueCase_ == 1) { - if (transferBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = transferBuilder_.build(); - } + + /** + * .AssetsWithdraw withdraw = 4; + * + * @return The withdraw. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getWithdraw() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); } - if (valueCase_ == 4) { - if (withdrawBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = withdrawBuilder_.build(); - } + + /** + * .AssetsWithdraw withdraw = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); } - if (valueCase_ == 2) { - if (genesisBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = genesisBuilder_.build(); - } + + public static final int GENESIS_FIELD_NUMBER = 2; + + /** + * .AssetsGenesis genesis = 2; + * + * @return Whether the genesis field is set. + */ + @java.lang.Override + public boolean hasGenesis() { + return valueCase_ == 2; } - if (valueCase_ == 5) { - if (transferToExecBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = transferToExecBuilder_.build(); - } + + /** + * .AssetsGenesis genesis = 2; + * + * @return The genesis. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getGenesis() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction)other); - } else { - super.mergeFrom(other); - return this; + + /** + * .AssetsGenesis genesis = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); } - } - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction other) { - if (other == cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); + public static final int TRANSFERTOEXEC_FIELD_NUMBER = 5; + + /** + * .AssetsTransferToExec transferToExec = 5; + * + * @return Whether the transferToExec field is set. + */ + @java.lang.Override + public boolean hasTransferToExec() { + return valueCase_ == 5; } - switch (other.getValueCase()) { - case TRANSFER: { - mergeTransfer(other.getTransfer()); - break; - } - case WITHDRAW: { - mergeWithdraw(other.getWithdraw()); - break; - } - case GENESIS: { - mergeGenesis(other.getGenesis()); - break; - } - case TRANSFERTOEXEC: { - mergeTransferToExec(other.getTransferToExec()); - break; - } - case VALUE_NOT_SET: { - break; - } + + /** + * .AssetsTransferToExec transferToExec = 5; + * + * @return The transferToExec. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getTransferToExec() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder> transferBuilder_; - /** - * .AssetsTransfer transfer = 1; - * @return Whether the transfer field is set. - */ - @java.lang.Override - public boolean hasTransfer() { - return valueCase_ == 1; - } - /** - * .AssetsTransfer transfer = 1; - * @return The transfer. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getTransfer() { - if (transferBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return transferBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); + + public static final int TY_FIELD_NUMBER = 3; + private int ty_; + + /** + * int32 ty = 3; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; } - } - /** - * .AssetsTransfer transfer = 1; - */ - public Builder setTransfer(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer value) { - if (transferBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - transferBuilder_.setMessage(value); + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; } - valueCase_ = 1; - return this; - } - /** - * .AssetsTransfer transfer = 1; - */ - public Builder setTransfer( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder builderForValue) { - if (transferBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - transferBuilder_.setMessage(builderForValue.build()); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_); + } + if (ty_ != 0) { + output.writeInt32(3, ty_); + } + if (valueCase_ == 4) { + output.writeMessage(4, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_); + } + unknownFields.writeTo(output); } - valueCase_ = 1; - return this; - } - /** - * .AssetsTransfer transfer = 1; - */ - public Builder mergeTransfer(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer value) { - if (transferBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.newBuilder((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - transferBuilder_.mergeFrom(value); - } - transferBuilder_.setMessage(value); + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, ty_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - valueCase_ = 1; - return this; - } - /** - * .AssetsTransfer transfer = 1; - */ - public Builder clearTransfer() { - if (transferBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - transferBuilder_.clear(); + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction other = (cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getTransfer().equals(other.getTransfer())) + return false; + break; + case 4: + if (!getWithdraw().equals(other.getWithdraw())) + return false; + break; + case 2: + if (!getGenesis().equals(other.getGenesis())) + return false; + break; + case 5: + if (!getTransferToExec().equals(other.getTransferToExec())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; } - return this; - } - /** - * .AssetsTransfer transfer = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder getTransferBuilder() { - return getTransferFieldBuilder().getBuilder(); - } - /** - * .AssetsTransfer transfer = 1; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder getTransferOrBuilder() { - if ((valueCase_ == 1) && (transferBuilder_ != null)) { - return transferBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + getTransfer().hashCode(); + break; + case 4: + hash = (37 * hash) + WITHDRAW_FIELD_NUMBER; + hash = (53 * hash) + getWithdraw().hashCode(); + break; + case 2: + hash = (37 * hash) + GENESIS_FIELD_NUMBER; + hash = (53 * hash) + getGenesis().hashCode(); + break; + case 5: + hash = (37 * hash) + TRANSFERTOEXEC_FIELD_NUMBER; + hash = (53 * hash) + getTransferToExec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - } - /** - * .AssetsTransfer transfer = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder> - getTransferFieldBuilder() { - if (transferBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); - } - transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_, - getParentForChildren(), - isClean()); - value_ = null; + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - valueCase_ = 1; - onChanged();; - return transferBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder> withdrawBuilder_; - /** - * .AssetsWithdraw withdraw = 4; - * @return Whether the withdraw field is set. - */ - @java.lang.Override - public boolean hasWithdraw() { - return valueCase_ == 4; - } - /** - * .AssetsWithdraw withdraw = 4; - * @return The withdraw. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getWithdraw() { - if (withdrawBuilder_ == null) { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return withdrawBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - /** - * .AssetsWithdraw withdraw = 4; - */ - public Builder setWithdraw(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw value) { - if (withdrawBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - withdrawBuilder_.setMessage(value); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - valueCase_ = 4; - return this; - } - /** - * .AssetsWithdraw withdraw = 4; - */ - public Builder setWithdraw( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder builderForValue) { - if (withdrawBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - withdrawBuilder_.setMessage(builderForValue.build()); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - valueCase_ = 4; - return this; - } - /** - * .AssetsWithdraw withdraw = 4; - */ - public Builder mergeWithdraw(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw value) { - if (withdrawBuilder_ == null) { - if (valueCase_ == 4 && - value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.newBuilder((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - withdrawBuilder_.mergeFrom(value); - } - withdrawBuilder_.setMessage(value); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - valueCase_ = 4; - return this; - } - /** - * .AssetsWithdraw withdraw = 4; - */ - public Builder clearWithdraw() { - if (withdrawBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - withdrawBuilder_.clear(); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return this; - } - /** - * .AssetsWithdraw withdraw = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder getWithdrawBuilder() { - return getWithdrawFieldBuilder().getBuilder(); - } - /** - * .AssetsWithdraw withdraw = 4; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { - if ((valueCase_ == 4) && (withdrawBuilder_ != null)) { - return withdrawBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - } - /** - * .AssetsWithdraw withdraw = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder> - getWithdrawFieldBuilder() { - if (withdrawBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); - } - withdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_, - getParentForChildren(), - isClean()); - value_ = null; + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } - valueCase_ = 4; - onChanged();; - return withdrawBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder> genesisBuilder_; - /** - * .AssetsGenesis genesis = 2; - * @return Whether the genesis field is set. - */ - @java.lang.Override - public boolean hasGenesis() { - return valueCase_ == 2; - } - /** - * .AssetsGenesis genesis = 2; - * @return The genesis. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getGenesis() { - if (genesisBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return genesisBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - } - /** - * .AssetsGenesis genesis = 2; - */ - public Builder setGenesis(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis value) { - if (genesisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - genesisBuilder_.setMessage(value); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); } - valueCase_ = 2; - return this; - } - /** - * .AssetsGenesis genesis = 2; - */ - public Builder setGenesis( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder builderForValue) { - if (genesisBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - genesisBuilder_.setMessage(builderForValue.build()); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - valueCase_ = 2; - return this; - } - /** - * .AssetsGenesis genesis = 2; - */ - public Builder mergeGenesis(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis value) { - if (genesisBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.newBuilder((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - genesisBuilder_.mergeFrom(value); - } - genesisBuilder_.setMessage(value); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } - valueCase_ = 2; - return this; - } - /** - * .AssetsGenesis genesis = 2; - */ - public Builder clearGenesis() { - if (genesisBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - genesisBuilder_.clear(); + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - return this; - } - /** - * .AssetsGenesis genesis = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder getGenesisBuilder() { - return getGenesisFieldBuilder().getBuilder(); - } - /** - * .AssetsGenesis genesis = 2; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { - if ((valueCase_ == 2) && (genesisBuilder_ != null)) { - return genesisBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - } - /** - * .AssetsGenesis genesis = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder> - getGenesisFieldBuilder() { - if (genesisBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); - } - genesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_, - getParentForChildren(), - isClean()); - value_ = null; + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - valueCase_ = 2; - onChanged();; - return genesisBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder> transferToExecBuilder_; - /** - * .AssetsTransferToExec transferToExec = 5; - * @return Whether the transferToExec field is set. - */ - @java.lang.Override - public boolean hasTransferToExec() { - return valueCase_ == 5; - } - /** - * .AssetsTransferToExec transferToExec = 5; - * @return The transferToExec. - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getTransferToExec() { - if (transferToExecBuilder_ == null) { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return transferToExecBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - public Builder setTransferToExec(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec value) { - if (transferToExecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - transferToExecBuilder_.setMessage(value); + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - valueCase_ = 5; - return this; - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - public Builder setTransferToExec( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder builderForValue) { - if (transferToExecBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - transferToExecBuilder_.setMessage(builderForValue.build()); + + /** + *
+         * message for execs.coins
+         * 
+ * + * Protobuf type {@code CoinsAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CoinsAction) + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.class, + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.internal_static_CoinsAction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction build() { + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction buildPartial() { + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction result = new cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction( + this); + if (valueCase_ == 1) { + if (transferBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = transferBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (withdrawBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = withdrawBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (genesisBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = genesisBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (transferToExecBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = transferToExecBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction other) { + if (other == cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case TRANSFER: { + mergeTransfer(other.getTransfer()); + break; + } + case WITHDRAW: { + mergeWithdraw(other.getWithdraw()); + break; + } + case GENESIS: { + mergeGenesis(other.getGenesis()); + break; + } + case TRANSFERTOEXEC: { + mergeTransferToExec(other.getTransferToExec()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 transferBuilder_; + + /** + * .AssetsTransfer transfer = 1; + * + * @return Whether the transfer field is set. + */ + @java.lang.Override + public boolean hasTransfer() { + return valueCase_ == 1; + } + + /** + * .AssetsTransfer transfer = 1; + * + * @return The transfer. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getTransfer() { + if (transferBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return transferBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); + } + } + + /** + * .AssetsTransfer transfer = 1; + */ + public Builder setTransfer(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer value) { + if (transferBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + transferBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .AssetsTransfer transfer = 1; + */ + public Builder setTransfer( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder builderForValue) { + if (transferBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + transferBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .AssetsTransfer transfer = 1; + */ + public Builder mergeTransfer( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer value) { + if (transferBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.newBuilder( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + transferBuilder_.mergeFrom(value); + } + transferBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .AssetsTransfer transfer = 1; + */ + public Builder clearTransfer() { + if (transferBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + transferBuilder_.clear(); + } + return this; + } + + /** + * .AssetsTransfer transfer = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder getTransferBuilder() { + return getTransferFieldBuilder().getBuilder(); + } + + /** + * .AssetsTransfer transfer = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder getTransferOrBuilder() { + if ((valueCase_ == 1) && (transferBuilder_ != null)) { + return transferBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); + } + } + + /** + * .AssetsTransfer transfer = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTransferFieldBuilder() { + if (transferBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer + .getDefaultInstance(); + } + transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return transferBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 withdrawBuilder_; + + /** + * .AssetsWithdraw withdraw = 4; + * + * @return Whether the withdraw field is set. + */ + @java.lang.Override + public boolean hasWithdraw() { + return valueCase_ == 4; + } + + /** + * .AssetsWithdraw withdraw = 4; + * + * @return The withdraw. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getWithdraw() { + if (withdrawBuilder_ == null) { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return withdrawBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); + } + } + + /** + * .AssetsWithdraw withdraw = 4; + */ + public Builder setWithdraw(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw value) { + if (withdrawBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + withdrawBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .AssetsWithdraw withdraw = 4; + */ + public Builder setWithdraw( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder builderForValue) { + if (withdrawBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + withdrawBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + + /** + * .AssetsWithdraw withdraw = 4; + */ + public Builder mergeWithdraw( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw value) { + if (withdrawBuilder_ == null) { + if (valueCase_ == 4 + && value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.newBuilder( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + withdrawBuilder_.mergeFrom(value); + } + withdrawBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .AssetsWithdraw withdraw = 4; + */ + public Builder clearWithdraw() { + if (withdrawBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + withdrawBuilder_.clear(); + } + return this; + } + + /** + * .AssetsWithdraw withdraw = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder getWithdrawBuilder() { + return getWithdrawFieldBuilder().getBuilder(); + } + + /** + * .AssetsWithdraw withdraw = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { + if ((valueCase_ == 4) && (withdrawBuilder_ != null)) { + return withdrawBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); + } + } + + /** + * .AssetsWithdraw withdraw = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getWithdrawFieldBuilder() { + if (withdrawBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw + .getDefaultInstance(); + } + withdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged(); + ; + return withdrawBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 genesisBuilder_; + + /** + * .AssetsGenesis genesis = 2; + * + * @return Whether the genesis field is set. + */ + @java.lang.Override + public boolean hasGenesis() { + return valueCase_ == 2; + } + + /** + * .AssetsGenesis genesis = 2; + * + * @return The genesis. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getGenesis() { + if (genesisBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return genesisBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); + } + } + + /** + * .AssetsGenesis genesis = 2; + */ + public Builder setGenesis(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis value) { + if (genesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + genesisBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .AssetsGenesis genesis = 2; + */ + public Builder setGenesis( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder builderForValue) { + if (genesisBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + genesisBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .AssetsGenesis genesis = 2; + */ + public Builder mergeGenesis(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis value) { + if (genesisBuilder_ == null) { + if (valueCase_ == 2 + && value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis + .newBuilder( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + genesisBuilder_.mergeFrom(value); + } + genesisBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .AssetsGenesis genesis = 2; + */ + public Builder clearGenesis() { + if (genesisBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + genesisBuilder_.clear(); + } + return this; + } + + /** + * .AssetsGenesis genesis = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder getGenesisBuilder() { + return getGenesisFieldBuilder().getBuilder(); + } + + /** + * .AssetsGenesis genesis = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { + if ((valueCase_ == 2) && (genesisBuilder_ != null)) { + return genesisBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); + } + } + + /** + * .AssetsGenesis genesis = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getGenesisFieldBuilder() { + if (genesisBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis + .getDefaultInstance(); + } + genesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return genesisBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 transferToExecBuilder_; + + /** + * .AssetsTransferToExec transferToExec = 5; + * + * @return Whether the transferToExec field is set. + */ + @java.lang.Override + public boolean hasTransferToExec() { + return valueCase_ == 5; + } + + /** + * .AssetsTransferToExec transferToExec = 5; + * + * @return The transferToExec. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getTransferToExec() { + if (transferToExecBuilder_ == null) { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return transferToExecBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .getDefaultInstance(); + } + } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + public Builder setTransferToExec( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec value) { + if (transferToExecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + transferToExecBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + public Builder setTransferToExec( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder builderForValue) { + if (transferToExecBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + transferToExecBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + public Builder mergeTransferToExec( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec value) { + if (transferToExecBuilder_ == null) { + if (valueCase_ == 5 + && value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .newBuilder( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + transferToExecBuilder_.mergeFrom(value); + } + transferToExecBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + public Builder clearTransferToExec() { + if (transferToExecBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + transferToExecBuilder_.clear(); + } + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder getTransferToExecBuilder() { + return getTransferToExecFieldBuilder().getBuilder(); + } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { + if ((valueCase_ == 5) && (transferToExecBuilder_ != null)) { + return transferToExecBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .getDefaultInstance(); + } + } + + /** + * .AssetsTransferToExec transferToExec = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTransferToExecFieldBuilder() { + if (transferToExecBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .getDefaultInstance(); + } + transferToExecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged(); + ; + return transferToExecBuilder_; + } + + private int ty_; + + /** + * int32 ty = 3; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 3; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 3; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CoinsAction) } - valueCase_ = 5; - return this; - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - public Builder mergeTransferToExec(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec value) { - if (transferToExecBuilder_ == null) { - if (valueCase_ == 5 && - value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.newBuilder((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - transferToExecBuilder_.mergeFrom(value); - } - transferToExecBuilder_.setMessage(value); + + // @@protoc_insertion_point(class_scope:CoinsAction) + private static final cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction(); } - valueCase_ = 5; - return this; - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - public Builder clearTransferToExec() { - if (transferToExecBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - transferToExecBuilder_.clear(); + + public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction getDefaultInstance() { + return DEFAULT_INSTANCE; } - return this; - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder getTransferToExecBuilder() { - return getTransferToExecFieldBuilder().getBuilder(); - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { - if ((valueCase_ == 5) && (transferToExecBuilder_ != null)) { - return transferToExecBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoinsAction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CoinsAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - } - /** - * .AssetsTransferToExec transferToExec = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder> - getTransferToExecFieldBuilder() { - if (transferToExecBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); - } - transferToExecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) value_, - getParentForChildren(), - isClean()); - value_ = null; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - valueCase_ = 5; - onChanged();; - return transferToExecBuilder_; - } - - private int ty_ ; - /** - * int32 ty = 3; - * @return The ty. - */ - @java.lang.Override - public int getTy() { - return ty_; - } - /** - * int32 ty = 3; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 3; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CoinsAction) - } - // @@protoc_insertion_point(class_scope:CoinsAction) - private static final cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction getDefaultInstance() { - return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CoinsAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CoinsAction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CoinsAction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CoinsAction_fieldAccessorTable; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CoinsProtobuf.CoinsAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\013coins.proto\032\021transaction.proto\"\300\001\n\013Coi" + + "nsAction\022#\n\010transfer\030\001 \001(\0132\017.AssetsTrans" + + "ferH\000\022#\n\010withdraw\030\004 \001(\0132\017.AssetsWithdraw" + + "H\000\022!\n\007genesis\030\002 \001(\0132\016.AssetsGenesisH\000\022/\n" + + "\016transferToExec\030\005 \001(\0132\025.AssetsTransferTo" + + "ExecH\000\022\n\n\002ty\030\003 \001(\005B\007\n\005valueB2\n!cn.chain3" + + "3.javasdk.model.protobufB\rCoinsProtobufb" + "\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), }); + internal_static_CoinsAction_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_CoinsAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CoinsAction_descriptor, + new java.lang.String[] { "Transfer", "Withdraw", "Genesis", "TransferToExec", "Ty", "Value", }); + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CoinsAction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CoinsAction_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\013coins.proto\032\021transaction.proto\"\300\001\n\013Coi" + - "nsAction\022#\n\010transfer\030\001 \001(\0132\017.AssetsTrans" + - "ferH\000\022#\n\010withdraw\030\004 \001(\0132\017.AssetsWithdraw" + - "H\000\022!\n\007genesis\030\002 \001(\0132\016.AssetsGenesisH\000\022/\n" + - "\016transferToExec\030\005 \001(\0132\025.AssetsTransferTo" + - "ExecH\000\022\n\n\002ty\030\003 \001(\005B\007\n\005valueB2\n!cn.chain3" + - "3.javasdk.model.protobufB\rCoinsProtobufb" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), - }); - internal_static_CoinsAction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CoinsAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CoinsAction_descriptor, - new java.lang.String[] { "Transfer", "Withdraw", "Genesis", "TransferToExec", "Ty", "Value", }); - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/CommonProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/CommonProtobuf.java index ff7febe..848c598 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/CommonProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/CommonProtobuf.java @@ -4,10463 +4,10677 @@ package cn.chain33.javasdk.model.protobuf; public final class CommonProtobuf { - private CommonProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReplyOrBuilder extends - // @@protoc_insertion_point(interface_extends:Reply) - com.google.protobuf.MessageOrBuilder { - - /** - * bool isOk = 1; - * @return The isOk. - */ - boolean getIsOk(); - - /** - * bytes msg = 2; - * @return The msg. - */ - com.google.protobuf.ByteString getMsg(); - } - /** - * Protobuf type {@code Reply} - */ - public static final class Reply extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Reply) - ReplyOrBuilder { - private static final long serialVersionUID = 0L; - // Use Reply.newBuilder() to construct. - private Reply(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Reply() { - msg_ = com.google.protobuf.ByteString.EMPTY; + private CommonProtobuf() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Reply(); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Reply( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isOk_ = input.readBool(); - break; - } - case 18: { - - msg_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_descriptor; + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.Builder.class); - } + public interface ReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:Reply) + com.google.protobuf.MessageOrBuilder { - public static final int ISOK_FIELD_NUMBER = 1; - private boolean isOk_; - /** - * bool isOk = 1; - * @return The isOk. - */ - public boolean getIsOk() { - return isOk_; + /** + * bool isOk = 1; + * + * @return The isOk. + */ + boolean getIsOk(); + + /** + * bytes msg = 2; + * + * @return The msg. + */ + com.google.protobuf.ByteString getMsg(); } - public static final int MSG_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString msg_; /** - * bytes msg = 2; - * @return The msg. + * Protobuf type {@code Reply} */ - public com.google.protobuf.ByteString getMsg() { - return msg_; - } + public static final class Reply extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Reply) + ReplyOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use Reply.newBuilder() to construct. + private Reply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private Reply() { + msg_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isOk_ != false) { - output.writeBool(1, isOk_); - } - if (!msg_.isEmpty()) { - output.writeBytes(2, msg_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Reply(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isOk_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isOk_); - } - if (!msg_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, msg_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply) obj; - - if (getIsOk() - != other.getIsOk()) return false; - if (!getMsg() - .equals(other.getMsg())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private Reply(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + isOk_ = input.readBool(); + break; + } + case 18: { + + msg_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISOK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsOk()); - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int ISOK_FIELD_NUMBER = 1; + private boolean isOk_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Reply} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Reply) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isOk_ = false; - - msg_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply(this); - result.isOk_ = isOk_; - result.msg_ = msg_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance()) return this; - if (other.getIsOk() != false) { - setIsOk(other.getIsOk()); - } - if (other.getMsg() != com.google.protobuf.ByteString.EMPTY) { - setMsg(other.getMsg()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isOk_ ; - /** - * bool isOk = 1; - * @return The isOk. - */ - public boolean getIsOk() { - return isOk_; - } - /** - * bool isOk = 1; - * @param value The isOk to set. - * @return This builder for chaining. - */ - public Builder setIsOk(boolean value) { - - isOk_ = value; - onChanged(); - return this; - } - /** - * bool isOk = 1; - * @return This builder for chaining. - */ - public Builder clearIsOk() { - - isOk_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString msg_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes msg = 2; - * @return The msg. - */ - public com.google.protobuf.ByteString getMsg() { - return msg_; - } - /** - * bytes msg = 2; - * @param value The msg to set. - * @return This builder for chaining. - */ - public Builder setMsg(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - msg_ = value; - onChanged(); - return this; - } - /** - * bytes msg = 2; - * @return This builder for chaining. - */ - public Builder clearMsg() { - - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Reply) - } + /** + * bool isOk = 1; + * + * @return The isOk. + */ + @java.lang.Override + public boolean getIsOk() { + return isOk_; + } - // @@protoc_insertion_point(class_scope:Reply) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply(); - } + public static final int MSG_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString msg_; - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * bytes msg = 2; + * + * @return The msg. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMsg() { + return msg_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reply(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isOk_ != false) { + output.writeBool(1, isOk_); + } + if (!msg_.isEmpty()) { + output.writeBytes(2, msg_); + } + unknownFields.writeTo(output); + } - public interface ReqStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqString) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * string data = 1; - * @return The data. - */ - java.lang.String getData(); - /** - * string data = 1; - * @return The bytes for data. - */ - com.google.protobuf.ByteString - getDataBytes(); - } - /** - * Protobuf type {@code ReqString} - */ - public static final class ReqString extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqString) - ReqStringOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqString.newBuilder() to construct. - private ReqString(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqString() { - data_ = ""; - } + size = 0; + if (isOk_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isOk_); + } + if (!msg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, msg_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqString(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply) obj; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqString( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_descriptor; - } + if (getIsOk() != other.getIsOk()) + return false; + if (!getMsg().equals(other.getMsg())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISOK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsOk()); + hash = (37 * hash) + MSG_FIELD_NUMBER; + hash = (53 * hash) + getMsg().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int DATA_FIELD_NUMBER = 1; - private volatile java.lang.Object data_; - /** - * string data = 1; - * @return The data. - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } - } - /** - * string data = 1; - * @return The bytes for data. - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) obj; - - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqString) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString(this); - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.getDefaultInstance()) return this; - if (!other.getData().isEmpty()) { - data_ = other.data_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object data_ = ""; - /** - * string data = 1; - * @return The data. - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string data = 1; - * @return The bytes for data. - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string data = 1; - * @param value The data to set. - * @return This builder for chaining. - */ - public Builder setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * string data = 1; - * @return This builder for chaining. - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - /** - * string data = 1; - * @param value The bytes for data to set. - * @return This builder for chaining. - */ - public Builder setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - data_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqString) - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - // @@protoc_insertion_point(class_scope:ReqString) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqString(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public interface ReplyStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyString) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * string data = 1; - * @return The data. - */ - java.lang.String getData(); - /** - * string data = 1; - * @return The bytes for data. - */ - com.google.protobuf.ByteString - getDataBytes(); - } - /** - * Protobuf type {@code ReplyString} - */ - public static final class ReplyString extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyString) - ReplyStringOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyString.newBuilder() to construct. - private ReplyString(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyString() { - data_ = ""; - } + /** + * Protobuf type {@code Reply} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Reply) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyString(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyString( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_descriptor; - } + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.Builder.class); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int DATA_FIELD_NUMBER = 1; - private volatile java.lang.Object data_; - /** - * string data = 1; - * @return The data. - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } - } - /** - * string data = 1; - * @return The bytes for data. - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clear() { + super.clear(); + isOk_ = false; - memoizedIsInitialized = 1; - return true; - } + msg_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_); - } - unknownFields.writeTo(output); - } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Reply_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString) obj; - - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply( + this); + result.isOk_ = isOk_; + result.msg_ = msg_; + onBuilt(); + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyString) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString(this); - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.getDefaultInstance()) return this; - if (!other.getData().isEmpty()) { - data_ = other.data_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object data_ = ""; - /** - * string data = 1; - * @return The data. - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string data = 1; - * @return The bytes for data. - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string data = 1; - * @param value The data to set. - * @return This builder for chaining. - */ - public Builder setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * string data = 1; - * @return This builder for chaining. - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - /** - * string data = 1; - * @param value The bytes for data to set. - * @return This builder for chaining. - */ - public Builder setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - data_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyString) - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - // @@protoc_insertion_point(class_scope:ReplyString) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyString(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply) other); + } else { + super.mergeFrom(other); + return this; + } + } - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance()) + return this; + if (other.getIsOk() != false) { + setIsOk(other.getIsOk()); + } + if (other.getMsg() != com.google.protobuf.ByteString.EMPTY) { + setMsg(other.getMsg()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public interface ReplyStringsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyStrings) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * repeated string datas = 1; - * @return A list containing the datas. - */ - java.util.List - getDatasList(); - /** - * repeated string datas = 1; - * @return The count of datas. - */ - int getDatasCount(); - /** - * repeated string datas = 1; - * @param index The index of the element to return. - * @return The datas at the given index. - */ - java.lang.String getDatas(int index); - /** - * repeated string datas = 1; - * @param index The index of the value to return. - * @return The bytes of the datas at the given index. - */ - com.google.protobuf.ByteString - getDatasBytes(int index); - } - /** - * Protobuf type {@code ReplyStrings} - */ - public static final class ReplyStrings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyStrings) - ReplyStringsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyStrings.newBuilder() to construct. - private ReplyStrings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyStrings() { - datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyStrings(); - } + private boolean isOk_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyStrings( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - datas_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - datas_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - datas_ = datas_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_descriptor; - } + /** + * bool isOk = 1; + * + * @return The isOk. + */ + @java.lang.Override + public boolean getIsOk() { + return isOk_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.Builder.class); - } + /** + * bool isOk = 1; + * + * @param value + * The isOk to set. + * + * @return This builder for chaining. + */ + public Builder setIsOk(boolean value) { + + isOk_ = value; + onChanged(); + return this; + } - public static final int DATAS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList datas_; - /** - * repeated string datas = 1; - * @return A list containing the datas. - */ - public com.google.protobuf.ProtocolStringList - getDatasList() { - return datas_; - } - /** - * repeated string datas = 1; - * @return The count of datas. - */ - public int getDatasCount() { - return datas_.size(); - } - /** - * repeated string datas = 1; - * @param index The index of the element to return. - * @return The datas at the given index. - */ - public java.lang.String getDatas(int index) { - return datas_.get(index); - } - /** - * repeated string datas = 1; - * @param index The index of the value to return. - * @return The bytes of the datas at the given index. - */ - public com.google.protobuf.ByteString - getDatasBytes(int index) { - return datas_.getByteString(index); - } + /** + * bool isOk = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsOk() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + isOk_ = false; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private com.google.protobuf.ByteString msg_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < datas_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datas_.getRaw(i)); - } - unknownFields.writeTo(output); - } + /** + * bytes msg = 2; + * + * @return The msg. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMsg() { + return msg_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < datas_.size(); i++) { - dataSize += computeStringSizeNoTag(datas_.getRaw(i)); - } - size += dataSize; - size += 1 * getDatasList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * bytes msg = 2; + * + * @param value + * The msg to set. + * + * @return This builder for chaining. + */ + public Builder setMsg(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + msg_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings) obj; - - if (!getDatasList() - .equals(other.getDatasList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * bytes msg = 2; + * + * @return This builder for chaining. + */ + public Builder clearMsg() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDatasCount() > 0) { - hash = (37 * hash) + DATAS_FIELD_NUMBER; - hash = (53 * hash) + getDatasList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + msg_ = getDefaultInstance().getMsg(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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 ReplyStrings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyStrings) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStringsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - datas_ = datas_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.datas_ = datas_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.getDefaultInstance()) return this; - if (!other.datas_.isEmpty()) { - if (datas_.isEmpty()) { - datas_ = other.datas_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDatasIsMutable(); - datas_.addAll(other.datas_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDatasIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - datas_ = new com.google.protobuf.LazyStringArrayList(datas_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string datas = 1; - * @return A list containing the datas. - */ - public com.google.protobuf.ProtocolStringList - getDatasList() { - return datas_.getUnmodifiableView(); - } - /** - * repeated string datas = 1; - * @return The count of datas. - */ - public int getDatasCount() { - return datas_.size(); - } - /** - * repeated string datas = 1; - * @param index The index of the element to return. - * @return The datas at the given index. - */ - public java.lang.String getDatas(int index) { - return datas_.get(index); - } - /** - * repeated string datas = 1; - * @param index The index of the value to return. - * @return The bytes of the datas at the given index. - */ - public com.google.protobuf.ByteString - getDatasBytes(int index) { - return datas_.getByteString(index); - } - /** - * repeated string datas = 1; - * @param index The index to set the value at. - * @param value The datas to set. - * @return This builder for chaining. - */ - public Builder setDatas( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDatasIsMutable(); - datas_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string datas = 1; - * @param value The datas to add. - * @return This builder for chaining. - */ - public Builder addDatas( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDatasIsMutable(); - datas_.add(value); - onChanged(); - return this; - } - /** - * repeated string datas = 1; - * @param values The datas to add. - * @return This builder for chaining. - */ - public Builder addAllDatas( - java.lang.Iterable values) { - ensureDatasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, datas_); - onChanged(); - return this; - } - /** - * repeated string datas = 1; - * @return This builder for chaining. - */ - public Builder clearDatas() { - datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string datas = 1; - * @param value The bytes of the datas to add. - * @return This builder for chaining. - */ - public Builder addDatasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDatasIsMutable(); - datas_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyStrings) - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - // @@protoc_insertion_point(class_scope:ReplyStrings) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings(); - } + // @@protoc_insertion_point(builder_scope:Reply) + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:Reply) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyStrings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyStrings(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reply parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Reply(input, extensionRegistry); + } + }; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public interface ReqIntOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqInt) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** - * int64 height = 1; - * @return The height. - */ - long getHeight(); - } - /** - * Protobuf type {@code ReqInt} - */ - public static final class ReqInt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqInt) - ReqIntOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqInt.newBuilder() to construct. - private ReqInt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqInt() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqInt(); - } + public interface ReqStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqString) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqInt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_descriptor; - } + /** + * string data = 1; + * + * @return The data. + */ + java.lang.String getData(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.Builder.class); + /** + * string data = 1; + * + * @return The bytes for data. + */ + com.google.protobuf.ByteString getDataBytes(); } - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; /** - * int64 height = 1; - * @return The height. + * Protobuf type {@code ReqString} */ - public long getHeight() { - return height_; - } + public static final class ReqString extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqString) + ReqStringOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use ReqString.newBuilder() to construct. + private ReqString(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private ReqString() { + data_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqString(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) obj; - - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private ReqString(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + data_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int DATA_FIELD_NUMBER = 1; + private volatile java.lang.Object data_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqInt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqInt) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqIntOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt(this); - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqInt) - } + /** + * string data = 1; + * + * @return The data. + */ + @java.lang.Override + public java.lang.String getData() { + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:ReqInt) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt(); - } + /** + * string data = 1; + * + * @return The bytes for data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqInt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqInt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_); + } + unknownFields.writeTo(output); + } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public interface Int64OrBuilder extends - // @@protoc_insertion_point(interface_extends:Int64) - com.google.protobuf.MessageOrBuilder { + size = 0; + if (!getDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * int64 data = 1; - * @return The data. - */ - long getData(); - } - /** - * Protobuf type {@code Int64} - */ - public static final class Int64 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Int64) - Int64OrBuilder { - private static final long serialVersionUID = 0L; - // Use Int64.newBuilder() to construct. - private Int64(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Int64() { - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) obj; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int64(); - } + if (!getData().equals(other.getData())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Int64( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - data_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int DATA_FIELD_NUMBER = 1; - private long data_; - /** - * int64 data = 1; - * @return The data. - */ - public long getData() { - return data_; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != 0L) { - output.writeInt64(1, data_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) obj; - - if (getData() - != other.getData()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getData()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Int64} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Int64) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64(this); - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance()) return this; - if (other.getData() != 0L) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long data_ ; - /** - * int64 data = 1; - * @return The data. - */ - public long getData() { - return data_; - } - /** - * int64 data = 1; - * @param value The data to set. - * @return This builder for chaining. - */ - public Builder setData(long value) { - - data_ = value; - onChanged(); - return this; - } - /** - * int64 data = 1; - * @return This builder for chaining. - */ - public Builder clearData() { - - data_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Int64) - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:Int64) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Int64(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + 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; + } - public interface ReqHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqHash) - com.google.protobuf.MessageOrBuilder { + /** + * Protobuf type {@code ReqString} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqString) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqStringOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_descriptor; + } - /** - * bytes hash = 1; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.Builder.class); + } - /** - * bool upgrade = 2; - * @return The upgrade. - */ - boolean getUpgrade(); - } - /** - * Protobuf type {@code ReqHash} - */ - public static final class ReqHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqHash) - ReqHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqHash.newBuilder() to construct. - private ReqHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqHash() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqHash(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - case 16: { - - upgrade_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_descriptor; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.Builder.class); - } + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = ""; - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + return this; + } - public static final int UPGRADE_FIELD_NUMBER = 2; - private boolean upgrade_; - /** - * bool upgrade = 2; - * @return The upgrade. - */ - public boolean getUpgrade() { - return upgrade_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqString_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - if (upgrade_ != false) { - output.writeBool(2, upgrade_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString( + this); + result.data_ = data_; + onBuilt(); + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - if (upgrade_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, upgrade_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (getUpgrade() - != other.getUpgrade()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUpgrade()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqHash) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - upgrade_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash(this); - result.hash_ = hash_; - result.upgrade_ = upgrade_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getUpgrade() != false) { - setUpgrade(other.getUpgrade()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 1; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 1; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private boolean upgrade_ ; - /** - * bool upgrade = 2; - * @return The upgrade. - */ - public boolean getUpgrade() { - return upgrade_; - } - /** - * bool upgrade = 2; - * @param value The upgrade to set. - * @return This builder for chaining. - */ - public Builder setUpgrade(boolean value) { - - upgrade_ = value; - onChanged(); - return this; - } - /** - * bool upgrade = 2; - * @return This builder for chaining. - */ - public Builder clearUpgrade() { - - upgrade_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqHash) - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - // @@protoc_insertion_point(class_scope:ReqHash) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.getDefaultInstance()) + return this; + if (!other.getData().isEmpty()) { + data_ = other.data_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private java.lang.Object data_ = ""; + + /** + * string data = 1; + * + * @return The data. + */ + public java.lang.String getData() { + java.lang.Object ref = data_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - } + /** + * string data = 1; + * + * @return The bytes for data. + */ + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface ReplyHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyHash) - com.google.protobuf.MessageOrBuilder { + /** + * string data = 1; + * + * @param value + * The data to set. + * + * @return This builder for chaining. + */ + public Builder setData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } - /** - * bytes hash = 1; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); - } - /** - * Protobuf type {@code ReplyHash} - */ - public static final class ReplyHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyHash) - ReplyHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyHash.newBuilder() to construct. - private ReplyHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyHash() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * string data = 1; + * + * @return This builder for chaining. + */ + public Builder clearData() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyHash(); - } + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_descriptor; - } + /** + * string data = 1; + * + * @param value + * The bytes for data to set. + * + * @return This builder for chaining. + */ + public Builder setDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + data_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.Builder.class); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(builder_scope:ReqString) + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(class_scope:ReqString) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqString parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqString(input, extensionRegistry); + } + }; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface ReplyStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyString) + com.google.protobuf.MessageOrBuilder { + + /** + * string data = 1; + * + * @return The data. + */ + java.lang.String getData(); + + /** + * string data = 1; + * + * @return The bytes for data. + */ + com.google.protobuf.ByteString getDataBytes(); } + /** - * Protobuf type {@code ReplyHash} + * Protobuf type {@code ReplyString} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyHash) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash(this); - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 1; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 1; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyHash) - } + public static final class ReplyString extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyString) + ReplyStringOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ReplyHash) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash(); - } + // Use ReplyString.newBuilder() to construct. + private ReplyString(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private ReplyString() { + data_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyString(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ReplyString(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + data_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } - - public interface ReqNilOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqNil) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code ReqNil} - */ - public static final class ReqNil extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqNil) - ReqNilOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqNil.newBuilder() to construct. - private ReqNil(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqNil() { - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqNil(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqNil( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_descriptor; - } + public static final int DATA_FIELD_NUMBER = 1; + private volatile java.lang.Object data_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.Builder.class); - } + /** + * string data = 1; + * + * @return The data. + */ + @java.lang.Override + public java.lang.String getData() { + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string data = 1; + * + * @return The bytes for data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + memoizedIsInitialized = 1; + return true; + } - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (!getDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString) obj; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + if (!getData().equals(other.getData())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqNil} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqNil) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNilOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqNil) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:ReqNil) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqNil parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqNil(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface ReqHashesOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqHashes) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - java.util.List getHashesList(); - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - int getHashesCount(); - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - com.google.protobuf.ByteString getHashes(int index); - } - /** - * Protobuf type {@code ReqHashes} - */ - public static final class ReqHashes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqHashes) - ReqHashesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqHashes.newBuilder() to construct. - private ReqHashes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqHashes() { - hashes_ = java.util.Collections.emptyList(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqHashes(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqHashes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - hashes_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = java.util.Collections.unmodifiableList(hashes_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int HASHES_FIELD_NUMBER = 1; - private java.util.List hashes_; - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - public java.util.List - getHashesList() { - return hashes_; - } - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public com.google.protobuf.ByteString getHashes(int index) { - return hashes_.get(index); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < hashes_.size(); i++) { - output.writeBytes(1, hashes_.get(i)); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < hashes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(hashes_.get(i)); - } - size += dataSize; - size += 1 * getHashesList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) obj; - - if (!getHashesList() - .equals(other.getHashesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getHashesCount() > 0) { - hash = (37 * hash) + HASHES_FIELD_NUMBER; - hash = (53 * hash) + getHashesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * Protobuf type {@code ReplyString} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyString) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStringOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqHashes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqHashes) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - hashes_ = java.util.Collections.unmodifiableList(hashes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.hashes_ = hashes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance()) return this; - if (!other.hashes_.isEmpty()) { - if (hashes_.isEmpty()) { - hashes_ = other.hashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHashesIsMutable(); - hashes_.addAll(other.hashes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List hashes_ = java.util.Collections.emptyList(); - private void ensureHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - hashes_ = new java.util.ArrayList(hashes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - public java.util.List - getHashesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(hashes_) : hashes_; - } - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public com.google.protobuf.ByteString getHashes(int index) { - return hashes_.get(index); - } - /** - * repeated bytes hashes = 1; - * @param index The index to set the value at. - * @param value The hashes to set. - * @return This builder for chaining. - */ - public Builder setHashes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @param value The hashes to add. - * @return This builder for chaining. - */ - public Builder addHashes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @param values The hashes to add. - * @return This builder for chaining. - */ - public Builder addAllHashes( - java.lang.Iterable values) { - ensureHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hashes_); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @return This builder for chaining. - */ - public Builder clearHashes() { - hashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqHashes) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:ReqHashes) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = ""; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqHashes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqHashes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyString_descriptor; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.getDefaultInstance(); + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface ReplyHashesOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyHashes) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString( + this); + result.data_ = data_; + onBuilt(); + return result; + } - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - java.util.List getHashesList(); - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - int getHashesCount(); - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - com.google.protobuf.ByteString getHashes(int index); - } - /** - * Protobuf type {@code ReplyHashes} - */ - public static final class ReplyHashes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyHashes) - ReplyHashesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyHashes.newBuilder() to construct. - private ReplyHashes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyHashes() { - hashes_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyHashes(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyHashes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - hashes_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = java.util.Collections.unmodifiableList(hashes_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_descriptor; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.Builder.class); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int HASHES_FIELD_NUMBER = 1; - private java.util.List hashes_; - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - public java.util.List - getHashesList() { - return hashes_; - } - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public com.google.protobuf.ByteString getHashes(int index) { - return hashes_.get(index); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < hashes_.size(); i++) { - output.writeBytes(1, hashes_.get(i)); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.getDefaultInstance()) + return this; + if (!other.getData().isEmpty()) { + data_ = other.data_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < hashes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(hashes_.get(i)); - } - size += dataSize; - size += 1 * getHashesList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes) obj; - - if (!getHashesList() - .equals(other.getHashesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getHashesCount() > 0) { - hash = (37 * hash) + HASHES_FIELD_NUMBER; - hash = (53 * hash) + getHashesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object data_ = ""; + + /** + * string data = 1; + * + * @return The data. + */ + public java.lang.String getData() { + java.lang.Object ref = data_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string data = 1; + * + * @return The bytes for data. + */ + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string data = 1; + * + * @param value + * The data to set. + * + * @return This builder for chaining. + */ + public Builder setData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyHashes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyHashes) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - hashes_ = java.util.Collections.unmodifiableList(hashes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.hashes_ = hashes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.getDefaultInstance()) return this; - if (!other.hashes_.isEmpty()) { - if (hashes_.isEmpty()) { - hashes_ = other.hashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHashesIsMutable(); - hashes_.addAll(other.hashes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List hashes_ = java.util.Collections.emptyList(); - private void ensureHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - hashes_ = new java.util.ArrayList(hashes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - public java.util.List - getHashesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(hashes_) : hashes_; - } - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public com.google.protobuf.ByteString getHashes(int index) { - return hashes_.get(index); - } - /** - * repeated bytes hashes = 1; - * @param index The index to set the value at. - * @param value The hashes to set. - * @return This builder for chaining. - */ - public Builder setHashes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @param value The hashes to add. - * @return This builder for chaining. - */ - public Builder addHashes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @param values The hashes to add. - * @return This builder for chaining. - */ - public Builder addAllHashes( - java.lang.Iterable values) { - ensureHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hashes_); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @return This builder for chaining. - */ - public Builder clearHashes() { - hashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyHashes) - } + /** + * string data = 1; + * + * @return This builder for chaining. + */ + public Builder clearData() { - // @@protoc_insertion_point(class_scope:ReplyHashes) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes(); - } + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string data = 1; + * + * @param value + * The bytes for data to set. + * + * @return This builder for chaining. + */ + public Builder setDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + data_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyHashes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyHashes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:ReplyString) + } - } + // @@protoc_insertion_point(class_scope:ReplyString) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString(); + } - public interface KeyValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:KeyValue) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * bytes key = 1; - * @return The key. - */ - com.google.protobuf.ByteString getKey(); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyString parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyString(input, extensionRegistry); + } + }; - /** - * bytes value = 2; - * @return The value. - */ - com.google.protobuf.ByteString getValue(); - } - /** - * Protobuf type {@code KeyValue} - */ - public static final class KeyValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:KeyValue) - KeyValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use KeyValue.newBuilder() to construct. - private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KeyValue() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new KeyValue(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder.class); } - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - * @return The key. - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } + public interface ReplyStringsOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyStrings) + com.google.protobuf.MessageOrBuilder { - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - * @return The value. - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + /** + * repeated string datas = 1; + * + * @return A list containing the datas. + */ + java.util.List getDatasList(); - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated string datas = 1; + * + * @return The count of datas. + */ + int getDatasCount(); - memoizedIsInitialized = 1; - return true; - } + /** + * repeated string datas = 1; + * + * @param index + * The index of the element to return. + * + * @return The datas at the given index. + */ + java.lang.String getDatas(int index); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); + /** + * repeated string datas = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the datas at the given index. + */ + com.google.protobuf.ByteString getDatasBytes(int index); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * Protobuf type {@code ReplyStrings} + */ + public static final class ReplyStrings extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyStrings) + ReplyStringsOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // Use ReplyStrings.newBuilder() to construct. + private ReplyStrings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private ReplyStrings() { + datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyStrings(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code KeyValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:KeyValue) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - * @return The key. - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - * @return The value. - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:KeyValue) - } + private ReplyStrings(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + datas_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + datas_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + datas_ = datas_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - // @@protoc_insertion_point(class_scope:KeyValue) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.Builder.class); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int DATAS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList datas_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated string datas = 1; + * + * @return A list containing the datas. + */ + public com.google.protobuf.ProtocolStringList getDatasList() { + return datas_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated string datas = 1; + * + * @return The count of datas. + */ + public int getDatasCount() { + return datas_.size(); + } - } + /** + * repeated string datas = 1; + * + * @param index + * The index of the element to return. + * + * @return The datas at the given index. + */ + public java.lang.String getDatas(int index) { + return datas_.get(index); + } - public interface TxHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:TxHash) - com.google.protobuf.MessageOrBuilder { + /** + * repeated string datas = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the datas at the given index. + */ + public com.google.protobuf.ByteString getDatasBytes(int index) { + return datas_.getByteString(index); + } - /** - * string hash = 1; - * @return The hash. - */ - java.lang.String getHash(); - /** - * string hash = 1; - * @return The bytes for hash. - */ - com.google.protobuf.ByteString - getHashBytes(); - } - /** - * Protobuf type {@code TxHash} - */ - public static final class TxHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TxHash) - TxHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use TxHash.newBuilder() to construct. - private TxHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxHash() { - hash_ = ""; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TxHash(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - hash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.Builder.class); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < datas_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datas_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < datas_.size(); i++) { + dataSize += computeStringSizeNoTag(datas_.getRaw(i)); + } + size += dataSize; + size += 1 * getDatasList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int HASH_FIELD_NUMBER = 1; - private volatile java.lang.Object hash_; - /** - * string hash = 1; - * @return The hash. - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } - } - /** - * string hash = 1; - * @return The bytes for hash. - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings) obj; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (!getDatasList().equals(other.getDatasList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDatasCount() > 0) { + hash = (37 * hash) + DATAS_FIELD_NUMBER; + hash = (53 * hash) + getDatasList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TxHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TxHash) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash(this); - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.getDefaultInstance()) return this; - if (!other.getHash().isEmpty()) { - hash_ = other.hash_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object hash_ = ""; - /** - * string hash = 1; - * @return The hash. - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string hash = 1; - * @return The bytes for hash. - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string hash = 1; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * string hash = 1; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - /** - * string hash = 1; - * @param value The bytes for hash to set. - * @return This builder for chaining. - */ - public Builder setHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hash_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TxHash) - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:TxHash) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public interface TimeStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:TimeStatus) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * string ntpTime = 1; - * @return The ntpTime. - */ - java.lang.String getNtpTime(); - /** - * string ntpTime = 1; - * @return The bytes for ntpTime. - */ - com.google.protobuf.ByteString - getNtpTimeBytes(); + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * string localTime = 2; - * @return The localTime. - */ - java.lang.String getLocalTime(); - /** - * string localTime = 2; - * @return The bytes for localTime. - */ - com.google.protobuf.ByteString - getLocalTimeBytes(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * int64 diff = 3; - * @return The diff. - */ - long getDiff(); - } - /** - * Protobuf type {@code TimeStatus} - */ - public static final class TimeStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TimeStatus) - TimeStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use TimeStatus.newBuilder() to construct. - private TimeStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TimeStatus() { - ntpTime_ = ""; - localTime_ = ""; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TimeStatus(); - } + /** + * Protobuf type {@code ReplyStrings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyStrings) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStringsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TimeStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ntpTime_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - localTime_ = s; - break; - } - case 24: { - - diff_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.Builder.class); - } + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int NTPTIME_FIELD_NUMBER = 1; - private volatile java.lang.Object ntpTime_; - /** - * string ntpTime = 1; - * @return The ntpTime. - */ - public java.lang.String getNtpTime() { - java.lang.Object ref = ntpTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ntpTime_ = s; - return s; - } - } - /** - * string ntpTime = 1; - * @return The bytes for ntpTime. - */ - public com.google.protobuf.ByteString - getNtpTimeBytes() { - java.lang.Object ref = ntpTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ntpTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int LOCALTIME_FIELD_NUMBER = 2; - private volatile java.lang.Object localTime_; - /** - * string localTime = 2; - * @return The localTime. - */ - public java.lang.String getLocalTime() { - java.lang.Object ref = localTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localTime_ = s; - return s; - } - } - /** - * string localTime = 2; - * @return The bytes for localTime. - */ - public com.google.protobuf.ByteString - getLocalTimeBytes() { - java.lang.Object ref = localTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static final int DIFF_FIELD_NUMBER = 3; - private long diff_; - /** - * int64 diff = 3; - * @return The diff. - */ - public long getDiff() { - return diff_; - } + @java.lang.Override + public Builder clear() { + super.clear(); + datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyStrings_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.getDefaultInstance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNtpTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ntpTime_); - } - if (!getLocalTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localTime_); - } - if (diff_ != 0L) { - output.writeInt64(3, diff_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNtpTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ntpTime_); - } - if (!getLocalTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localTime_); - } - if (diff_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, diff_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + datas_ = datas_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.datas_ = datas_; + onBuilt(); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus) obj; - - if (!getNtpTime() - .equals(other.getNtpTime())) return false; - if (!getLocalTime() - .equals(other.getLocalTime())) return false; - if (getDiff() - != other.getDiff()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NTPTIME_FIELD_NUMBER; - hash = (53 * hash) + getNtpTime().hashCode(); - hash = (37 * hash) + LOCALTIME_FIELD_NUMBER; - hash = (53 * hash) + getLocalTime().hashCode(); - hash = (37 * hash) + DIFF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDiff()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TimeStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TimeStatus) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ntpTime_ = ""; - - localTime_ = ""; - - diff_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus(this); - result.ntpTime_ = ntpTime_; - result.localTime_ = localTime_; - result.diff_ = diff_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.getDefaultInstance()) return this; - if (!other.getNtpTime().isEmpty()) { - ntpTime_ = other.ntpTime_; - onChanged(); - } - if (!other.getLocalTime().isEmpty()) { - localTime_ = other.localTime_; - onChanged(); - } - if (other.getDiff() != 0L) { - setDiff(other.getDiff()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ntpTime_ = ""; - /** - * string ntpTime = 1; - * @return The ntpTime. - */ - public java.lang.String getNtpTime() { - java.lang.Object ref = ntpTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ntpTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ntpTime = 1; - * @return The bytes for ntpTime. - */ - public com.google.protobuf.ByteString - getNtpTimeBytes() { - java.lang.Object ref = ntpTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ntpTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ntpTime = 1; - * @param value The ntpTime to set. - * @return This builder for chaining. - */ - public Builder setNtpTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ntpTime_ = value; - onChanged(); - return this; - } - /** - * string ntpTime = 1; - * @return This builder for chaining. - */ - public Builder clearNtpTime() { - - ntpTime_ = getDefaultInstance().getNtpTime(); - onChanged(); - return this; - } - /** - * string ntpTime = 1; - * @param value The bytes for ntpTime to set. - * @return This builder for chaining. - */ - public Builder setNtpTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ntpTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object localTime_ = ""; - /** - * string localTime = 2; - * @return The localTime. - */ - public java.lang.String getLocalTime() { - java.lang.Object ref = localTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string localTime = 2; - * @return The bytes for localTime. - */ - public com.google.protobuf.ByteString - getLocalTimeBytes() { - java.lang.Object ref = localTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string localTime = 2; - * @param value The localTime to set. - * @return This builder for chaining. - */ - public Builder setLocalTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - localTime_ = value; - onChanged(); - return this; - } - /** - * string localTime = 2; - * @return This builder for chaining. - */ - public Builder clearLocalTime() { - - localTime_ = getDefaultInstance().getLocalTime(); - onChanged(); - return this; - } - /** - * string localTime = 2; - * @param value The bytes for localTime to set. - * @return This builder for chaining. - */ - public Builder setLocalTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - localTime_ = value; - onChanged(); - return this; - } - - private long diff_ ; - /** - * int64 diff = 3; - * @return The diff. - */ - public long getDiff() { - return diff_; - } - /** - * int64 diff = 3; - * @param value The diff to set. - * @return This builder for chaining. - */ - public Builder setDiff(long value) { - - diff_ = value; - onChanged(); - return this; - } - /** - * int64 diff = 3; - * @return This builder for chaining. - */ - public Builder clearDiff() { - - diff_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TimeStatus) - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(class_scope:TimeStatus) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings) other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings.getDefaultInstance()) + return this; + if (!other.datas_.isEmpty()) { + if (datas_.isEmpty()) { + datas_ = other.datas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatasIsMutable(); + datas_.addAll(other.datas_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - } + private int bitField0_; - public interface ReqKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqKey) - com.google.protobuf.MessageOrBuilder { + private com.google.protobuf.LazyStringList datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; - /** - * bytes key = 1; - * @return The key. - */ - com.google.protobuf.ByteString getKey(); - } - /** - * Protobuf type {@code ReqKey} - */ - public static final class ReqKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqKey) - ReqKeyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqKey.newBuilder() to construct. - private ReqKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqKey() { - key_ = com.google.protobuf.ByteString.EMPTY; - } + private void ensureDatasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + datas_ = new com.google.protobuf.LazyStringArrayList(datas_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqKey(); - } + /** + * repeated string datas = 1; + * + * @return A list containing the datas. + */ + public com.google.protobuf.ProtocolStringList getDatasList() { + return datas_.getUnmodifiableView(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_descriptor; - } + /** + * repeated string datas = 1; + * + * @return The count of datas. + */ + public int getDatasCount() { + return datas_.size(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.Builder.class); - } + /** + * repeated string datas = 1; + * + * @param index + * The index of the element to return. + * + * @return The datas at the given index. + */ + public java.lang.String getDatas(int index) { + return datas_.get(index); + } - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - * @return The key. - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } + /** + * repeated string datas = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the datas at the given index. + */ + public com.google.protobuf.ByteString getDatasBytes(int index) { + return datas_.getByteString(index); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated string datas = 1; + * + * @param index + * The index to set the value at. + * @param value + * The datas to set. + * + * @return This builder for chaining. + */ + public Builder setDatas(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasIsMutable(); + datas_.set(index, value); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated string datas = 1; + * + * @param value + * The datas to add. + * + * @return This builder for chaining. + */ + public Builder addDatas(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasIsMutable(); + datas_.add(value); + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - unknownFields.writeTo(output); - } + /** + * repeated string datas = 1; + * + * @param values + * The datas to add. + * + * @return This builder for chaining. + */ + public Builder addAllDatas(java.lang.Iterable values) { + ensureDatasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datas_); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated string datas = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatas() { + datas_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated string datas = 1; + * + * @param value + * The bytes of the datas to add. + * + * @return This builder for chaining. + */ + public Builder addDatasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDatasIsMutable(); + datas_.add(value); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(builder_scope:ReplyStrings) + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqKey) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey(this); - result.key_ = key_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - * @return The key. - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqKey) - } + // @@protoc_insertion_point(class_scope:ReplyStrings) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings(); + } - // @@protoc_insertion_point(class_scope:ReqKey) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyStrings parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyStrings(input, extensionRegistry); + } + }; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyStrings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - } + public interface ReqIntOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqInt) + com.google.protobuf.MessageOrBuilder { - public interface ReqRandHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqRandHash) - com.google.protobuf.MessageOrBuilder { + /** + * int64 height = 1; + * + * @return The height. + */ + long getHeight(); + } /** - * string execName = 1; - * @return The execName. - */ - java.lang.String getExecName(); - /** - * string execName = 1; - * @return The bytes for execName. + * Protobuf type {@code ReqInt} */ - com.google.protobuf.ByteString - getExecNameBytes(); + public static final class ReqInt extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqInt) + ReqIntOrBuilder { + private static final long serialVersionUID = 0L; - /** - * int64 height = 2; - * @return The height. - */ - long getHeight(); + // Use ReqInt.newBuilder() to construct. + private ReqInt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * int64 blockNum = 3; - * @return The blockNum. - */ - long getBlockNum(); + private ReqInt() { + } - /** - * bytes hash = 4; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); - } - /** - * Protobuf type {@code ReqRandHash} - */ - public static final class ReqRandHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqRandHash) - ReqRandHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqRandHash.newBuilder() to construct. - private ReqRandHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqRandHash() { - execName_ = ""; - hash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqInt(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqRandHash(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqRandHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - execName_ = s; - break; - } - case 16: { - - height_ = input.readInt64(); - break; - } - case 24: { - - blockNum_ = input.readInt64(); - break; - } - case 34: { - - hash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_descriptor; - } + private ReqInt(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + height_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.Builder.class); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_descriptor; + } - public static final int EXECNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object execName_; - /** - * string execName = 1; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } - } - /** - * string execName = 1; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.Builder.class); + } - public static final int HEIGHT_FIELD_NUMBER = 2; - private long height_; - /** - * int64 height = 2; - * @return The height. - */ - public long getHeight() { - return height_; - } + public static final int HEIGHT_FIELD_NUMBER = 1; + private long height_; - public static final int BLOCKNUM_FIELD_NUMBER = 3; - private long blockNum_; - /** - * int64 blockNum = 3; - * @return The blockNum. - */ - public long getBlockNum() { - return blockNum_; - } + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } - public static final int HASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 4; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + private byte memoizedIsInitialized = -1; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - memoizedIsInitialized = 1; - return true; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getExecNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execName_); - } - if (height_ != 0L) { - output.writeInt64(2, height_); - } - if (blockNum_ != 0L) { - output.writeInt64(3, blockNum_); - } - if (!hash_.isEmpty()) { - output.writeBytes(4, hash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (height_ != 0L) { + output.writeInt64(1, height_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execName_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, height_); - } - if (blockNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, blockNum_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, hash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) obj; - - if (!getExecName() - .equals(other.getExecName())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getBlockNum() - != other.getBlockNum()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + size = 0; + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, height_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECNAME_FIELD_NUMBER; - hash = (53 * hash) + getExecName().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + BLOCKNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNum()); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) obj; - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + if (getHeight() != other.getHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqRandHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqRandHash) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - execName_ = ""; - - height_ = 0L; - - blockNum_ = 0L; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash(this); - result.execName_ = execName_; - result.height_ = height_; - result.blockNum_ = blockNum_; - result.hash_ = hash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.getDefaultInstance()) return this; - if (!other.getExecName().isEmpty()) { - execName_ = other.execName_; - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getBlockNum() != 0L) { - setBlockNum(other.getBlockNum()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object execName_ = ""; - /** - * string execName = 1; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execName = 1; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execName = 1; - * @param value The execName to set. - * @return This builder for chaining. - */ - public Builder setExecName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execName_ = value; - onChanged(); - return this; - } - /** - * string execName = 1; - * @return This builder for chaining. - */ - public Builder clearExecName() { - - execName_ = getDefaultInstance().getExecName(); - onChanged(); - return this; - } - /** - * string execName = 1; - * @param value The bytes for execName to set. - * @return This builder for chaining. - */ - public Builder setExecNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execName_ = value; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 2; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 2; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 2; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long blockNum_ ; - /** - * int64 blockNum = 3; - * @return The blockNum. - */ - public long getBlockNum() { - return blockNum_; - } - /** - * int64 blockNum = 3; - * @param value The blockNum to set. - * @return This builder for chaining. - */ - public Builder setBlockNum(long value) { - - blockNum_ = value; - onChanged(); - return this; - } - /** - * int64 blockNum = 3; - * @return This builder for chaining. - */ - public Builder clearBlockNum() { - - blockNum_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 4; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 4; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 4; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqRandHash) - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:ReqRandHash) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash(); - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqRandHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqRandHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public interface VersionInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:VersionInfo) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string title = 1; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 1; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * string app = 2; - * @return The app. - */ - java.lang.String getApp(); - /** - * string app = 2; - * @return The bytes for app. - */ - com.google.protobuf.ByteString - getAppBytes(); + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - /** - * string chain33 = 3; - * @return The chain33. - */ - java.lang.String getChain33(); - /** - * string chain33 = 3; - * @return The bytes for chain33. - */ - com.google.protobuf.ByteString - getChain33Bytes(); + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * string localDb = 4; - * @return The localDb. - */ - java.lang.String getLocalDb(); - /** - * string localDb = 4; - * @return The bytes for localDb. - */ - com.google.protobuf.ByteString - getLocalDbBytes(); + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * int32 chainID = 5; - * @return The chainID. - */ - int getChainID(); - } - /** - *
-   **
-   *当前软件版本信息
-   * 
- * - * Protobuf type {@code VersionInfo} - */ - public static final class VersionInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:VersionInfo) - VersionInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use VersionInfo.newBuilder() to construct. - private VersionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VersionInfo() { - title_ = ""; - app_ = ""; - chain33_ = ""; - localDb_ = ""; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VersionInfo(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VersionInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - app_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - chain33_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - localDb_ = s; - break; - } - case 40: { - - chainID_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_descriptor; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.Builder.class); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object title_; - /** - * string title = 1; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 1; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int APP_FIELD_NUMBER = 2; - private volatile java.lang.Object app_; - /** - * string app = 2; - * @return The app. - */ - public java.lang.String getApp() { - java.lang.Object ref = app_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - app_ = s; - return s; - } - } - /** - * string app = 2; - * @return The bytes for app. - */ - public com.google.protobuf.ByteString - getAppBytes() { - java.lang.Object ref = app_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - app_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * Protobuf type {@code ReqInt} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqInt) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqIntOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_descriptor; + } - public static final int CHAIN33_FIELD_NUMBER = 3; - private volatile java.lang.Object chain33_; - /** - * string chain33 = 3; - * @return The chain33. - */ - public java.lang.String getChain33() { - java.lang.Object ref = chain33_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chain33_ = s; - return s; - } - } - /** - * string chain33 = 3; - * @return The bytes for chain33. - */ - public com.google.protobuf.ByteString - getChain33Bytes() { - java.lang.Object ref = chain33_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chain33_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.Builder.class); + } - public static final int LOCALDB_FIELD_NUMBER = 4; - private volatile java.lang.Object localDb_; - /** - * string localDb = 4; - * @return The localDb. - */ - public java.lang.String getLocalDb() { - java.lang.Object ref = localDb_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localDb_ = s; - return s; - } - } - /** - * string localDb = 4; - * @return The bytes for localDb. - */ - public com.google.protobuf.ByteString - getLocalDbBytes() { - java.lang.Object ref = localDb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localDb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int CHAINID_FIELD_NUMBER = 5; - private int chainID_; - /** - * int32 chainID = 5; - * @return The chainID. - */ - public int getChainID() { - return chainID_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); - } - if (!getAppBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, app_); - } - if (!getChain33Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chain33_); - } - if (!getLocalDbBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, localDb_); - } - if (chainID_ != 0) { - output.writeInt32(5, chainID_); - } - unknownFields.writeTo(output); - } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); - } - if (!getAppBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, app_); - } - if (!getChain33Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chain33_); - } - if (!getLocalDbBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, localDb_); - } - if (chainID_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, chainID_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqInt_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo) obj; - - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getApp() - .equals(other.getApp())) return false; - if (!getChain33() - .equals(other.getChain33())) return false; - if (!getLocalDb() - .equals(other.getLocalDb())) return false; - if (getChainID() - != other.getChainID()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + APP_FIELD_NUMBER; - hash = (53 * hash) + getApp().hashCode(); - hash = (37 * hash) + CHAIN33_FIELD_NUMBER; - hash = (53 * hash) + getChain33().hashCode(); - hash = (37 * hash) + LOCALDB_FIELD_NUMBER; - hash = (53 * hash) + getLocalDb().hashCode(); - hash = (37 * hash) + CHAINID_FIELD_NUMBER; - hash = (53 * hash) + getChainID(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt( + this); + result.height_ = height_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.getDefaultInstance()) + return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 1; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqInt) + } + + // @@protoc_insertion_point(class_scope:ReqInt) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqInt parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqInt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface Int64OrBuilder extends + // @@protoc_insertion_point(interface_extends:Int64) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 data = 1; + * + * @return The data. + */ + long getData(); } + /** - *
-     **
-     *当前软件版本信息
-     * 
- * - * Protobuf type {@code VersionInfo} + * Protobuf type {@code Int64} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:VersionInfo) - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.class, cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - title_ = ""; - - app_ = ""; - - chain33_ = ""; - - localDb_ = ""; - - chainID_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo build() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo(this); - result.title_ = title_; - result.app_ = app_; - result.chain33_ = chain33_; - result.localDb_ = localDb_; - result.chainID_ = chainID_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.getDefaultInstance()) return this; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getApp().isEmpty()) { - app_ = other.app_; - onChanged(); - } - if (!other.getChain33().isEmpty()) { - chain33_ = other.chain33_; - onChanged(); - } - if (!other.getLocalDb().isEmpty()) { - localDb_ = other.localDb_; - onChanged(); - } - if (other.getChainID() != 0) { - setChainID(other.getChainID()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 1; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 1; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 1; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * string title = 1; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * string title = 1; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object app_ = ""; - /** - * string app = 2; - * @return The app. - */ - public java.lang.String getApp() { - java.lang.Object ref = app_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - app_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string app = 2; - * @return The bytes for app. - */ - public com.google.protobuf.ByteString - getAppBytes() { - java.lang.Object ref = app_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - app_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string app = 2; - * @param value The app to set. - * @return This builder for chaining. - */ - public Builder setApp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - app_ = value; - onChanged(); - return this; - } - /** - * string app = 2; - * @return This builder for chaining. - */ - public Builder clearApp() { - - app_ = getDefaultInstance().getApp(); - onChanged(); - return this; - } - /** - * string app = 2; - * @param value The bytes for app to set. - * @return This builder for chaining. - */ - public Builder setAppBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - app_ = value; - onChanged(); - return this; - } - - private java.lang.Object chain33_ = ""; - /** - * string chain33 = 3; - * @return The chain33. - */ - public java.lang.String getChain33() { - java.lang.Object ref = chain33_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chain33_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string chain33 = 3; - * @return The bytes for chain33. - */ - public com.google.protobuf.ByteString - getChain33Bytes() { - java.lang.Object ref = chain33_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chain33_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string chain33 = 3; - * @param value The chain33 to set. - * @return This builder for chaining. - */ - public Builder setChain33( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - chain33_ = value; - onChanged(); - return this; - } - /** - * string chain33 = 3; - * @return This builder for chaining. - */ - public Builder clearChain33() { - - chain33_ = getDefaultInstance().getChain33(); - onChanged(); - return this; - } - /** - * string chain33 = 3; - * @param value The bytes for chain33 to set. - * @return This builder for chaining. - */ - public Builder setChain33Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - chain33_ = value; - onChanged(); - return this; - } - - private java.lang.Object localDb_ = ""; - /** - * string localDb = 4; - * @return The localDb. - */ - public java.lang.String getLocalDb() { - java.lang.Object ref = localDb_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localDb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string localDb = 4; - * @return The bytes for localDb. - */ - public com.google.protobuf.ByteString - getLocalDbBytes() { - java.lang.Object ref = localDb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localDb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string localDb = 4; - * @param value The localDb to set. - * @return This builder for chaining. - */ - public Builder setLocalDb( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - localDb_ = value; - onChanged(); - return this; - } - /** - * string localDb = 4; - * @return This builder for chaining. - */ - public Builder clearLocalDb() { - - localDb_ = getDefaultInstance().getLocalDb(); - onChanged(); - return this; - } - /** - * string localDb = 4; - * @param value The bytes for localDb to set. - * @return This builder for chaining. - */ - public Builder setLocalDbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - localDb_ = value; - onChanged(); - return this; - } - - private int chainID_ ; - /** - * int32 chainID = 5; - * @return The chainID. - */ - public int getChainID() { - return chainID_; - } - /** - * int32 chainID = 5; - * @param value The chainID to set. - * @return This builder for chaining. - */ - public Builder setChainID(int value) { - - chainID_ = value; - onChanged(); - return this; - } - /** - * int32 chainID = 5; - * @return This builder for chaining. - */ - public Builder clearChainID() { - - chainID_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:VersionInfo) - } + public static final class Int64 extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Int64) + Int64OrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:VersionInfo) - private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo(); - } + // Use Int64.newBuilder() to construct. + private Int64(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private Int64() { + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VersionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Int64(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Int64(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + data_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_descriptor; + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Reply_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Reply_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqString_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqString_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyString_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyString_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyStrings_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyStrings_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqInt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqInt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Int64_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Int64_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqNil_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqNil_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqHashes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqHashes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyHashes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyHashes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_KeyValue_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_KeyValue_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TxHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TxHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TimeStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TimeStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqKey_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqKey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqRandHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqRandHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_VersionInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_VersionInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014common.proto\"\"\n\005Reply\022\014\n\004isOk\030\001 \001(\010\022\013\n" + - "\003msg\030\002 \001(\014\"\031\n\tReqString\022\014\n\004data\030\001 \001(\t\"\033\n" + - "\013ReplyString\022\014\n\004data\030\001 \001(\t\"\035\n\014ReplyStrin" + - "gs\022\r\n\005datas\030\001 \003(\t\"\030\n\006ReqInt\022\016\n\006height\030\001 " + - "\001(\003\"\025\n\005Int64\022\014\n\004data\030\001 \001(\003\"(\n\007ReqHash\022\014\n" + - "\004hash\030\001 \001(\014\022\017\n\007upgrade\030\002 \001(\010\"\031\n\tReplyHas" + - "h\022\014\n\004hash\030\001 \001(\014\"\010\n\006ReqNil\"\033\n\tReqHashes\022\016" + - "\n\006hashes\030\001 \003(\014\"\035\n\013ReplyHashes\022\016\n\006hashes\030" + - "\001 \003(\014\"&\n\010KeyValue\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030" + - "\002 \001(\014\"\026\n\006TxHash\022\014\n\004hash\030\001 \001(\t\">\n\nTimeSta" + - "tus\022\017\n\007ntpTime\030\001 \001(\t\022\021\n\tlocalTime\030\002 \001(\t\022" + - "\014\n\004diff\030\003 \001(\003\"\025\n\006ReqKey\022\013\n\003key\030\001 \001(\014\"O\n\013" + - "ReqRandHash\022\020\n\010execName\030\001 \001(\t\022\016\n\006height\030" + - "\002 \001(\003\022\020\n\010blockNum\030\003 \001(\003\022\014\n\004hash\030\004 \001(\014\"\\\n" + - "\013VersionInfo\022\r\n\005title\030\001 \001(\t\022\013\n\003app\030\002 \001(\t" + - "\022\017\n\007chain33\030\003 \001(\t\022\017\n\007localDb\030\004 \001(\t\022\017\n\007ch" + - "ainID\030\005 \001(\005B3\n!cn.chain33.javasdk.model." + - "protobufB\016CommonProtobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Reply_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Reply_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Reply_descriptor, - new java.lang.String[] { "IsOk", "Msg", }); - internal_static_ReqString_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ReqString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqString_descriptor, - new java.lang.String[] { "Data", }); - internal_static_ReplyString_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ReplyString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyString_descriptor, - new java.lang.String[] { "Data", }); - internal_static_ReplyStrings_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_ReplyStrings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyStrings_descriptor, - new java.lang.String[] { "Datas", }); - internal_static_ReqInt_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ReqInt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqInt_descriptor, - new java.lang.String[] { "Height", }); - internal_static_Int64_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_Int64_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Int64_descriptor, - new java.lang.String[] { "Data", }); - internal_static_ReqHash_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ReqHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqHash_descriptor, - new java.lang.String[] { "Hash", "Upgrade", }); - internal_static_ReplyHash_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ReplyHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyHash_descriptor, - new java.lang.String[] { "Hash", }); - internal_static_ReqNil_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ReqNil_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqNil_descriptor, - new java.lang.String[] { }); - internal_static_ReqHashes_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_ReqHashes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqHashes_descriptor, - new java.lang.String[] { "Hashes", }); - internal_static_ReplyHashes_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_ReplyHashes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyHashes_descriptor, - new java.lang.String[] { "Hashes", }); - internal_static_KeyValue_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_KeyValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_KeyValue_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_TxHash_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_TxHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TxHash_descriptor, - new java.lang.String[] { "Hash", }); - internal_static_TimeStatus_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_TimeStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TimeStatus_descriptor, - new java.lang.String[] { "NtpTime", "LocalTime", "Diff", }); - internal_static_ReqKey_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_ReqKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqKey_descriptor, - new java.lang.String[] { "Key", }); - internal_static_ReqRandHash_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_ReqRandHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqRandHash_descriptor, - new java.lang.String[] { "ExecName", "Height", "BlockNum", "Hash", }); - internal_static_VersionInfo_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_VersionInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_VersionInfo_descriptor, - new java.lang.String[] { "Title", "App", "Chain33", "LocalDb", "ChainID", }); - } - - // @@protoc_insertion_point(outer_class_scope) + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private long data_; + + /** + * int64 data = 1; + * + * @return The data. + */ + @java.lang.Override + public long getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (data_ != 0L) { + output.writeInt64(1, data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (data_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, data_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) obj; + + if (getData() != other.getData()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getData()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Int64} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Int64) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_Int64_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64( + this); + result.data_ = data_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance()) + return this; + if (other.getData() != 0L) { + setData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long data_; + + /** + * int64 data = 1; + * + * @return The data. + */ + @java.lang.Override + public long getData() { + return data_; + } + + /** + * int64 data = 1; + * + * @param value + * The data to set. + * + * @return This builder for chaining. + */ + public Builder setData(long value) { + + data_ = value; + onChanged(); + return this; + } + + /** + * int64 data = 1; + * + * @return This builder for chaining. + */ + public Builder clearData() { + + data_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Int64) + } + + // @@protoc_insertion_point(class_scope:Int64) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Int64 parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Int64(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes hash = 1; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * bool upgrade = 2; + * + * @return The upgrade. + */ + boolean getUpgrade(); + } + + /** + * Protobuf type {@code ReqHash} + */ + public static final class ReqHash extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqHash) + ReqHashOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqHash.newBuilder() to construct. + private ReqHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqHash() { + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqHash(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqHash(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + hash_ = input.readBytes(); + break; + } + case 16: { + + upgrade_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int UPGRADE_FIELD_NUMBER = 2; + private boolean upgrade_; + + /** + * bool upgrade = 2; + * + * @return The upgrade. + */ + @java.lang.Override + public boolean getUpgrade() { + return upgrade_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!hash_.isEmpty()) { + output.writeBytes(1, hash_); + } + if (upgrade_ != false) { + output.writeBool(2, upgrade_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, hash_); + } + if (upgrade_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, upgrade_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) obj; + + if (!getHash().equals(other.getHash())) + return false; + if (getUpgrade() != other.getUpgrade()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + UPGRADE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpgrade()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqHash} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqHash) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = com.google.protobuf.ByteString.EMPTY; + + upgrade_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHash_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash( + this); + result.hash_ = hash_; + result.upgrade_ = upgrade_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance()) + return this; + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getUpgrade() != false) { + setUpgrade(other.getUpgrade()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 1; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 1; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private boolean upgrade_; + + /** + * bool upgrade = 2; + * + * @return The upgrade. + */ + @java.lang.Override + public boolean getUpgrade() { + return upgrade_; + } + + /** + * bool upgrade = 2; + * + * @param value + * The upgrade to set. + * + * @return This builder for chaining. + */ + public Builder setUpgrade(boolean value) { + + upgrade_ = value; + onChanged(); + return this; + } + + /** + * bool upgrade = 2; + * + * @return This builder for chaining. + */ + public Builder clearUpgrade() { + + upgrade_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqHash) + } + + // @@protoc_insertion_point(class_scope:ReqHash) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqHash parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes hash = 1; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + } + + /** + * Protobuf type {@code ReplyHash} + */ + public static final class ReplyHash extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyHash) + ReplyHashOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyHash.newBuilder() to construct. + private ReplyHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyHash() { + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyHash(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyHash(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + hash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!hash_.isEmpty()) { + output.writeBytes(1, hash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, hash_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash) obj; + + if (!getHash().equals(other.getHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyHash} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyHash) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHash_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash( + this); + result.hash_ = hash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance()) + return this; + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 1; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 1; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyHash) + } + + // @@protoc_insertion_point(class_scope:ReplyHash) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyHash parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqNilOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqNil) + com.google.protobuf.MessageOrBuilder { + } + + /** + * Protobuf type {@code ReqNil} + */ + public static final class ReqNil extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqNil) + ReqNilOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqNil.newBuilder() to construct. + private ReqNil(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqNil() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqNil(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqNil(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) obj; + + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqNil} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqNil) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNilOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqNil_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil( + this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqNil) + } + + // @@protoc_insertion_point(class_scope:ReqNil) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqNil parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqNil(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqHashesOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqHashes) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + java.util.List getHashesList(); + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + int getHashesCount(); + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + com.google.protobuf.ByteString getHashes(int index); + } + + /** + * Protobuf type {@code ReqHashes} + */ + public static final class ReqHashes extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqHashes) + ReqHashesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqHashes.newBuilder() to construct. + private ReqHashes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqHashes() { + hashes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqHashes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqHashes(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + hashes_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = java.util.Collections.unmodifiableList(hashes_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.Builder.class); + } + + public static final int HASHES_FIELD_NUMBER = 1; + private java.util.List hashes_; + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + @java.lang.Override + public java.util.List getHashesList() { + return hashes_; + } + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public com.google.protobuf.ByteString getHashes(int index) { + return hashes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hashes_.size(); i++) { + output.writeBytes(1, hashes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < hashes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(hashes_.get(i)); + } + size += dataSize; + size += 1 * getHashesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) obj; + + if (!getHashesList().equals(other.getHashesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHashesCount() > 0) { + hash = (37 * hash) + HASHES_FIELD_NUMBER; + hash = (53 * hash) + getHashesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqHashes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqHashes) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqHashes_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + hashes_ = java.util.Collections.unmodifiableList(hashes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hashes_ = hashes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance()) + return this; + if (!other.hashes_.isEmpty()) { + if (hashes_.isEmpty()) { + hashes_ = other.hashes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHashesIsMutable(); + hashes_.addAll(other.hashes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List hashes_ = java.util.Collections.emptyList(); + + private void ensureHashesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hashes_ = new java.util.ArrayList(hashes_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + public java.util.List getHashesList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(hashes_) : hashes_; + } + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public com.google.protobuf.ByteString getHashes(int index) { + return hashes_.get(index); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index to set the value at. + * @param value + * The hashes to set. + * + * @return This builder for chaining. + */ + public Builder setHashes(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @param value + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addHashes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @param values + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addAllHashes(java.lang.Iterable values) { + ensureHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @return This builder for chaining. + */ + public Builder clearHashes() { + hashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqHashes) + } + + // @@protoc_insertion_point(class_scope:ReqHashes) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqHashes parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqHashes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyHashesOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyHashes) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + java.util.List getHashesList(); + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + int getHashesCount(); + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + com.google.protobuf.ByteString getHashes(int index); + } + + /** + * Protobuf type {@code ReplyHashes} + */ + public static final class ReplyHashes extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyHashes) + ReplyHashesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyHashes.newBuilder() to construct. + private ReplyHashes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyHashes() { + hashes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyHashes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyHashes(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + hashes_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = java.util.Collections.unmodifiableList(hashes_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.Builder.class); + } + + public static final int HASHES_FIELD_NUMBER = 1; + private java.util.List hashes_; + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + @java.lang.Override + public java.util.List getHashesList() { + return hashes_; + } + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public com.google.protobuf.ByteString getHashes(int index) { + return hashes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hashes_.size(); i++) { + output.writeBytes(1, hashes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < hashes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(hashes_.get(i)); + } + size += dataSize; + size += 1 * getHashesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes) obj; + + if (!getHashesList().equals(other.getHashesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHashesCount() > 0) { + hash = (37 * hash) + HASHES_FIELD_NUMBER; + hash = (53 * hash) + getHashesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyHashes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyHashes) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReplyHashes_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + hashes_ = java.util.Collections.unmodifiableList(hashes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hashes_ = hashes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.getDefaultInstance()) + return this; + if (!other.hashes_.isEmpty()) { + if (hashes_.isEmpty()) { + hashes_ = other.hashes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHashesIsMutable(); + hashes_.addAll(other.hashes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List hashes_ = java.util.Collections.emptyList(); + + private void ensureHashesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hashes_ = new java.util.ArrayList(hashes_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + public java.util.List getHashesList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(hashes_) : hashes_; + } + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public com.google.protobuf.ByteString getHashes(int index) { + return hashes_.get(index); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index to set the value at. + * @param value + * The hashes to set. + * + * @return This builder for chaining. + */ + public Builder setHashes(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @param value + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addHashes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @param values + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addAllHashes(java.lang.Iterable values) { + ensureHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @return This builder for chaining. + */ + public Builder clearHashes() { + hashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyHashes) + } + + // @@protoc_insertion_point(class_scope:ReplyHashes) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyHashes parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyHashes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:KeyValue) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes key = 1; + * + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + * bytes value = 2; + * + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + + /** + * Protobuf type {@code KeyValue} + */ + public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:KeyValue) + KeyValueOrBuilder { + private static final long serialVersionUID = 0L; + + // Use KeyValue.newBuilder() to construct. + private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KeyValue() { + key_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KeyValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private KeyValue(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + key_ = input.readBytes(); + break; + } + case 18: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; + + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 KeyValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:KeyValue) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_KeyValue_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue( + this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()) + return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + /** + * bytes key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * bytes key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + /** + * bytes value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + * bytes value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:KeyValue) + } + + // @@protoc_insertion_point(class_scope:KeyValue) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValue parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValue(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TxHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:TxHash) + com.google.protobuf.MessageOrBuilder { + + /** + * string hash = 1; + * + * @return The hash. + */ + java.lang.String getHash(); + + /** + * string hash = 1; + * + * @return The bytes for hash. + */ + com.google.protobuf.ByteString getHashBytes(); + } + + /** + * Protobuf type {@code TxHash} + */ + public static final class TxHash extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TxHash) + TxHashOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TxHash.newBuilder() to construct. + private TxHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TxHash() { + hash_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TxHash(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TxHash(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + hash_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private volatile java.lang.Object hash_; + + /** + * string hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public java.lang.String getHash() { + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } + } + + /** + * string hash = 1; + * + * @return The bytes for hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHashBytes() { + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash) obj; + + if (!getHash().equals(other.getHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TxHash} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TxHash) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TxHash_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash( + this); + result.hash_ = hash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash.getDefaultInstance()) + return this; + if (!other.getHash().isEmpty()) { + hash_ = other.hash_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object hash_ = ""; + + /** + * string hash = 1; + * + * @return The hash. + */ + public java.lang.String getHash() { + java.lang.Object ref = hash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string hash = 1; + * + * @return The bytes for hash. + */ + public com.google.protobuf.ByteString getHashBytes() { + java.lang.Object ref = hash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string hash = 1; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * string hash = 1; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + /** + * string hash = 1; + * + * @param value + * The bytes for hash to set. + * + * @return This builder for chaining. + */ + public Builder setHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hash_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TxHash) + } + + // @@protoc_insertion_point(class_scope:TxHash) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TxHash parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TxHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TxHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TimeStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:TimeStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * string ntpTime = 1; + * + * @return The ntpTime. + */ + java.lang.String getNtpTime(); + + /** + * string ntpTime = 1; + * + * @return The bytes for ntpTime. + */ + com.google.protobuf.ByteString getNtpTimeBytes(); + + /** + * string localTime = 2; + * + * @return The localTime. + */ + java.lang.String getLocalTime(); + + /** + * string localTime = 2; + * + * @return The bytes for localTime. + */ + com.google.protobuf.ByteString getLocalTimeBytes(); + + /** + * int64 diff = 3; + * + * @return The diff. + */ + long getDiff(); + } + + /** + * Protobuf type {@code TimeStatus} + */ + public static final class TimeStatus extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TimeStatus) + TimeStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TimeStatus.newBuilder() to construct. + private TimeStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeStatus() { + ntpTime_ = ""; + localTime_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeStatus(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ntpTime_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + localTime_ = s; + break; + } + case 24: { + + diff_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.Builder.class); + } + + public static final int NTPTIME_FIELD_NUMBER = 1; + private volatile java.lang.Object ntpTime_; + + /** + * string ntpTime = 1; + * + * @return The ntpTime. + */ + @java.lang.Override + public java.lang.String getNtpTime() { + java.lang.Object ref = ntpTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ntpTime_ = s; + return s; + } + } + + /** + * string ntpTime = 1; + * + * @return The bytes for ntpTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNtpTimeBytes() { + java.lang.Object ref = ntpTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ntpTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCALTIME_FIELD_NUMBER = 2; + private volatile java.lang.Object localTime_; + + /** + * string localTime = 2; + * + * @return The localTime. + */ + @java.lang.Override + public java.lang.String getLocalTime() { + java.lang.Object ref = localTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localTime_ = s; + return s; + } + } + + /** + * string localTime = 2; + * + * @return The bytes for localTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocalTimeBytes() { + java.lang.Object ref = localTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + localTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIFF_FIELD_NUMBER = 3; + private long diff_; + + /** + * int64 diff = 3; + * + * @return The diff. + */ + @java.lang.Override + public long getDiff() { + return diff_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNtpTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ntpTime_); + } + if (!getLocalTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localTime_); + } + if (diff_ != 0L) { + output.writeInt64(3, diff_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNtpTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ntpTime_); + } + if (!getLocalTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localTime_); + } + if (diff_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, diff_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus) obj; + + if (!getNtpTime().equals(other.getNtpTime())) + return false; + if (!getLocalTime().equals(other.getLocalTime())) + return false; + if (getDiff() != other.getDiff()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NTPTIME_FIELD_NUMBER; + hash = (53 * hash) + getNtpTime().hashCode(); + hash = (37 * hash) + LOCALTIME_FIELD_NUMBER; + hash = (53 * hash) + getLocalTime().hashCode(); + hash = (37 * hash) + DIFF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiff()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TimeStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TimeStatus) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ntpTime_ = ""; + + localTime_ = ""; + + diff_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_TimeStatus_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus( + this); + result.ntpTime_ = ntpTime_; + result.localTime_ = localTime_; + result.diff_ = diff_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus.getDefaultInstance()) + return this; + if (!other.getNtpTime().isEmpty()) { + ntpTime_ = other.ntpTime_; + onChanged(); + } + if (!other.getLocalTime().isEmpty()) { + localTime_ = other.localTime_; + onChanged(); + } + if (other.getDiff() != 0L) { + setDiff(other.getDiff()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ntpTime_ = ""; + + /** + * string ntpTime = 1; + * + * @return The ntpTime. + */ + public java.lang.String getNtpTime() { + java.lang.Object ref = ntpTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ntpTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string ntpTime = 1; + * + * @return The bytes for ntpTime. + */ + public com.google.protobuf.ByteString getNtpTimeBytes() { + java.lang.Object ref = ntpTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ntpTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string ntpTime = 1; + * + * @param value + * The ntpTime to set. + * + * @return This builder for chaining. + */ + public Builder setNtpTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ntpTime_ = value; + onChanged(); + return this; + } + + /** + * string ntpTime = 1; + * + * @return This builder for chaining. + */ + public Builder clearNtpTime() { + + ntpTime_ = getDefaultInstance().getNtpTime(); + onChanged(); + return this; + } + + /** + * string ntpTime = 1; + * + * @param value + * The bytes for ntpTime to set. + * + * @return This builder for chaining. + */ + public Builder setNtpTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ntpTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object localTime_ = ""; + + /** + * string localTime = 2; + * + * @return The localTime. + */ + public java.lang.String getLocalTime() { + java.lang.Object ref = localTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string localTime = 2; + * + * @return The bytes for localTime. + */ + public com.google.protobuf.ByteString getLocalTimeBytes() { + java.lang.Object ref = localTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + localTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string localTime = 2; + * + * @param value + * The localTime to set. + * + * @return This builder for chaining. + */ + public Builder setLocalTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localTime_ = value; + onChanged(); + return this; + } + + /** + * string localTime = 2; + * + * @return This builder for chaining. + */ + public Builder clearLocalTime() { + + localTime_ = getDefaultInstance().getLocalTime(); + onChanged(); + return this; + } + + /** + * string localTime = 2; + * + * @param value + * The bytes for localTime to set. + * + * @return This builder for chaining. + */ + public Builder setLocalTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localTime_ = value; + onChanged(); + return this; + } + + private long diff_; + + /** + * int64 diff = 3; + * + * @return The diff. + */ + @java.lang.Override + public long getDiff() { + return diff_; + } + + /** + * int64 diff = 3; + * + * @param value + * The diff to set. + * + * @return This builder for chaining. + */ + public Builder setDiff(long value) { + + diff_ = value; + onChanged(); + return this; + } + + /** + * int64 diff = 3; + * + * @return This builder for chaining. + */ + public Builder clearDiff() { + + diff_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TimeStatus) + } + + // @@protoc_insertion_point(class_scope:TimeStatus) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeStatus parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.TimeStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqKey) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes key = 1; + * + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + } + + /** + * Protobuf type {@code ReqKey} + */ + public static final class ReqKey extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqKey) + ReqKeyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqKey.newBuilder() to construct. + private ReqKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqKey() { + key_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqKey(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqKey(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + key_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqKey) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqKey_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey( + this); + result.key_ = key_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.getDefaultInstance()) + return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + /** + * bytes key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * bytes key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqKey) + } + + // @@protoc_insertion_point(class_scope:ReqKey) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqKey parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqKey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqRandHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqRandHash) + com.google.protobuf.MessageOrBuilder { + + /** + * string execName = 1; + * + * @return The execName. + */ + java.lang.String getExecName(); + + /** + * string execName = 1; + * + * @return The bytes for execName. + */ + com.google.protobuf.ByteString getExecNameBytes(); + + /** + * int64 height = 2; + * + * @return The height. + */ + long getHeight(); + + /** + * int64 blockNum = 3; + * + * @return The blockNum. + */ + long getBlockNum(); + + /** + * bytes hash = 4; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + } + + /** + * Protobuf type {@code ReqRandHash} + */ + public static final class ReqRandHash extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqRandHash) + ReqRandHashOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqRandHash.newBuilder() to construct. + private ReqRandHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqRandHash() { + execName_ = ""; + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqRandHash(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqRandHash(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + execName_ = s; + break; + } + case 16: { + + height_ = input.readInt64(); + break; + } + case 24: { + + blockNum_ = input.readInt64(); + break; + } + case 34: { + + hash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.Builder.class); + } + + public static final int EXECNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object execName_; + + /** + * string execName = 1; + * + * @return The execName. + */ + @java.lang.Override + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } + } + + /** + * string execName = 1; + * + * @return The bytes for execName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEIGHT_FIELD_NUMBER = 2; + private long height_; + + /** + * int64 height = 2; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int BLOCKNUM_FIELD_NUMBER = 3; + private long blockNum_; + + /** + * int64 blockNum = 3; + * + * @return The blockNum. + */ + @java.lang.Override + public long getBlockNum() { + return blockNum_; + } + + public static final int HASH_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 4; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getExecNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execName_); + } + if (height_ != 0L) { + output.writeInt64(2, height_); + } + if (blockNum_ != 0L) { + output.writeInt64(3, blockNum_); + } + if (!hash_.isEmpty()) { + output.writeBytes(4, hash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getExecNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execName_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, height_); + } + if (blockNum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, blockNum_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, hash_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) obj; + + if (!getExecName().equals(other.getExecName())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (getBlockNum() != other.getBlockNum()) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECNAME_FIELD_NUMBER; + hash = (53 * hash) + getExecName().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + BLOCKNUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNum()); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqRandHash} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqRandHash) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + execName_ = ""; + + height_ = 0L; + + blockNum_ = 0L; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_ReqRandHash_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash( + this); + result.execName_ = execName_; + result.height_ = height_; + result.blockNum_ = blockNum_; + result.hash_ = hash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.getDefaultInstance()) + return this; + if (!other.getExecName().isEmpty()) { + execName_ = other.execName_; + onChanged(); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getBlockNum() != 0L) { + setBlockNum(other.getBlockNum()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object execName_ = ""; + + /** + * string execName = 1; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string execName = 1; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string execName = 1; + * + * @param value + * The execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execName_ = value; + onChanged(); + return this; + } + + /** + * string execName = 1; + * + * @return This builder for chaining. + */ + public Builder clearExecName() { + + execName_ = getDefaultInstance().getExecName(); + onChanged(); + return this; + } + + /** + * string execName = 1; + * + * @param value + * The bytes for execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execName_ = value; + onChanged(); + return this; + } + + private long height_; + + /** + * int64 height = 2; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 2; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 2; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private long blockNum_; + + /** + * int64 blockNum = 3; + * + * @return The blockNum. + */ + @java.lang.Override + public long getBlockNum() { + return blockNum_; + } + + /** + * int64 blockNum = 3; + * + * @param value + * The blockNum to set. + * + * @return This builder for chaining. + */ + public Builder setBlockNum(long value) { + + blockNum_ = value; + onChanged(); + return this; + } + + /** + * int64 blockNum = 3; + * + * @return This builder for chaining. + */ + public Builder clearBlockNum() { + + blockNum_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 4; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 4; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 4; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqRandHash) + } + + // @@protoc_insertion_point(class_scope:ReqRandHash) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqRandHash parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqRandHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VersionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:VersionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * string app = 2; + * + * @return The app. + */ + java.lang.String getApp(); + + /** + * string app = 2; + * + * @return The bytes for app. + */ + com.google.protobuf.ByteString getAppBytes(); + + /** + * string chain33 = 3; + * + * @return The chain33. + */ + java.lang.String getChain33(); + + /** + * string chain33 = 3; + * + * @return The bytes for chain33. + */ + com.google.protobuf.ByteString getChain33Bytes(); + + /** + * string localDb = 4; + * + * @return The localDb. + */ + java.lang.String getLocalDb(); + + /** + * string localDb = 4; + * + * @return The bytes for localDb. + */ + com.google.protobuf.ByteString getLocalDbBytes(); + + /** + * int32 chainID = 5; + * + * @return The chainID. + */ + int getChainID(); + } + + /** + *
+     **
+     *当前软件版本信息
+     * 
+ * + * Protobuf type {@code VersionInfo} + */ + public static final class VersionInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:VersionInfo) + VersionInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VersionInfo.newBuilder() to construct. + private VersionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VersionInfo() { + title_ = ""; + app_ = ""; + chain33_ = ""; + localDb_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VersionInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VersionInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + app_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + chain33_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + localDb_ = s; + break; + } + case 40: { + + chainID_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object title_; + + /** + * string title = 1; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * string title = 1; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_FIELD_NUMBER = 2; + private volatile java.lang.Object app_; + + /** + * string app = 2; + * + * @return The app. + */ + @java.lang.Override + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } + } + + /** + * string app = 2; + * + * @return The bytes for app. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHAIN33_FIELD_NUMBER = 3; + private volatile java.lang.Object chain33_; + + /** + * string chain33 = 3; + * + * @return The chain33. + */ + @java.lang.Override + public java.lang.String getChain33() { + java.lang.Object ref = chain33_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chain33_ = s; + return s; + } + } + + /** + * string chain33 = 3; + * + * @return The bytes for chain33. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChain33Bytes() { + java.lang.Object ref = chain33_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + chain33_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCALDB_FIELD_NUMBER = 4; + private volatile java.lang.Object localDb_; + + /** + * string localDb = 4; + * + * @return The localDb. + */ + @java.lang.Override + public java.lang.String getLocalDb() { + java.lang.Object ref = localDb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localDb_ = s; + return s; + } + } + + /** + * string localDb = 4; + * + * @return The bytes for localDb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocalDbBytes() { + java.lang.Object ref = localDb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + localDb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHAINID_FIELD_NUMBER = 5; + private int chainID_; + + /** + * int32 chainID = 5; + * + * @return The chainID. + */ + @java.lang.Override + public int getChainID() { + return chainID_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); + } + if (!getAppBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, app_); + } + if (!getChain33Bytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chain33_); + } + if (!getLocalDbBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, localDb_); + } + if (chainID_ != 0) { + output.writeInt32(5, chainID_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); + } + if (!getAppBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, app_); + } + if (!getChain33Bytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chain33_); + } + if (!getLocalDbBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, localDb_); + } + if (chainID_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, chainID_); + } + 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 cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo other = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo) obj; + + if (!getTitle().equals(other.getTitle())) + return false; + if (!getApp().equals(other.getApp())) + return false; + if (!getChain33().equals(other.getChain33())) + return false; + if (!getLocalDb().equals(other.getLocalDb())) + return false; + if (getChainID() != other.getChainID()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + APP_FIELD_NUMBER; + hash = (53 * hash) + getApp().hashCode(); + hash = (37 * hash) + CHAIN33_FIELD_NUMBER; + hash = (53 * hash) + getChain33().hashCode(); + hash = (37 * hash) + LOCALDB_FIELD_NUMBER; + hash = (53 * hash) + getLocalDb().hashCode(); + hash = (37 * hash) + CHAINID_FIELD_NUMBER; + hash = (53 * hash) + getChainID(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 VersionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:VersionInfo) + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.class, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + title_ = ""; + + app_ = ""; + + chain33_ = ""; + + localDb_ = ""; + + chainID_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.internal_static_VersionInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo build() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo result = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo( + this); + result.title_ = title_; + result.app_ = app_; + result.chain33_ = chain33_; + result.localDb_ = localDb_; + result.chainID_ = chainID_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getApp().isEmpty()) { + app_ = other.app_; + onChanged(); + } + if (!other.getChain33().isEmpty()) { + chain33_ = other.chain33_; + onChanged(); + } + if (!other.getLocalDb().isEmpty()) { + localDb_ = other.localDb_; + onChanged(); + } + if (other.getChainID() != 0) { + setChainID(other.getChainID()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object title_ = ""; + + /** + * string title = 1; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string title = 1; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string title = 1; + * + * @param value + * The title to set. + * + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + + /** + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + + /** + * string title = 1; + * + * @param value + * The bytes for title to set. + * + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object app_ = ""; + + /** + * string app = 2; + * + * @return The app. + */ + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string app = 2; + * + * @return The bytes for app. + */ + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string app = 2; + * + * @param value + * The app to set. + * + * @return This builder for chaining. + */ + public Builder setApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + app_ = value; + onChanged(); + return this; + } + + /** + * string app = 2; + * + * @return This builder for chaining. + */ + public Builder clearApp() { + + app_ = getDefaultInstance().getApp(); + onChanged(); + return this; + } + + /** + * string app = 2; + * + * @param value + * The bytes for app to set. + * + * @return This builder for chaining. + */ + public Builder setAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + app_ = value; + onChanged(); + return this; + } + + private java.lang.Object chain33_ = ""; + + /** + * string chain33 = 3; + * + * @return The chain33. + */ + public java.lang.String getChain33() { + java.lang.Object ref = chain33_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chain33_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string chain33 = 3; + * + * @return The bytes for chain33. + */ + public com.google.protobuf.ByteString getChain33Bytes() { + java.lang.Object ref = chain33_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + chain33_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string chain33 = 3; + * + * @param value + * The chain33 to set. + * + * @return This builder for chaining. + */ + public Builder setChain33(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + chain33_ = value; + onChanged(); + return this; + } + + /** + * string chain33 = 3; + * + * @return This builder for chaining. + */ + public Builder clearChain33() { + + chain33_ = getDefaultInstance().getChain33(); + onChanged(); + return this; + } + + /** + * string chain33 = 3; + * + * @param value + * The bytes for chain33 to set. + * + * @return This builder for chaining. + */ + public Builder setChain33Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + chain33_ = value; + onChanged(); + return this; + } + + private java.lang.Object localDb_ = ""; + + /** + * string localDb = 4; + * + * @return The localDb. + */ + public java.lang.String getLocalDb() { + java.lang.Object ref = localDb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localDb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string localDb = 4; + * + * @return The bytes for localDb. + */ + public com.google.protobuf.ByteString getLocalDbBytes() { + java.lang.Object ref = localDb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + localDb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string localDb = 4; + * + * @param value + * The localDb to set. + * + * @return This builder for chaining. + */ + public Builder setLocalDb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localDb_ = value; + onChanged(); + return this; + } + + /** + * string localDb = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocalDb() { + + localDb_ = getDefaultInstance().getLocalDb(); + onChanged(); + return this; + } + + /** + * string localDb = 4; + * + * @param value + * The bytes for localDb to set. + * + * @return This builder for chaining. + */ + public Builder setLocalDbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localDb_ = value; + onChanged(); + return this; + } + + private int chainID_; + + /** + * int32 chainID = 5; + * + * @return The chainID. + */ + @java.lang.Override + public int getChainID() { + return chainID_; + } + + /** + * int32 chainID = 5; + * + * @param value + * The chainID to set. + * + * @return This builder for chaining. + */ + public Builder setChainID(int value) { + + chainID_ = value; + onChanged(); + return this; + } + + /** + * int32 chainID = 5; + * + * @return This builder for chaining. + */ + public Builder clearChainID() { + + chainID_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:VersionInfo) + } + + // @@protoc_insertion_point(class_scope:VersionInfo) + private static final cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VersionInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Reply_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Reply_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqString_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqString_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyString_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyString_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyStrings_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyStrings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqInt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqInt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Int64_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Int64_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqNil_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqNil_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqHashes_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqHashes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyHashes_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyHashes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_KeyValue_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_KeyValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TxHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TxHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TimeStatus_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TimeStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqKey_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqRandHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqRandHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_VersionInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_VersionInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { + "\n\014common.proto\"\"\n\005Reply\022\014\n\004isOk\030\001 \001(\010\022\013\n" + + "\003msg\030\002 \001(\014\"\031\n\tReqString\022\014\n\004data\030\001 \001(\t\"\033\n" + + "\013ReplyString\022\014\n\004data\030\001 \001(\t\"\035\n\014ReplyStrin" + + "gs\022\r\n\005datas\030\001 \003(\t\"\030\n\006ReqInt\022\016\n\006height\030\001 " + + "\001(\003\"\025\n\005Int64\022\014\n\004data\030\001 \001(\003\"(\n\007ReqHash\022\014\n" + + "\004hash\030\001 \001(\014\022\017\n\007upgrade\030\002 \001(\010\"\031\n\tReplyHas" + + "h\022\014\n\004hash\030\001 \001(\014\"\010\n\006ReqNil\"\033\n\tReqHashes\022\016" + + "\n\006hashes\030\001 \003(\014\"\035\n\013ReplyHashes\022\016\n\006hashes\030" + + "\001 \003(\014\"&\n\010KeyValue\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030" + + "\002 \001(\014\"\026\n\006TxHash\022\014\n\004hash\030\001 \001(\t\">\n\nTimeSta" + + "tus\022\017\n\007ntpTime\030\001 \001(\t\022\021\n\tlocalTime\030\002 \001(\t\022" + + "\014\n\004diff\030\003 \001(\003\"\025\n\006ReqKey\022\013\n\003key\030\001 \001(\014\"O\n\013" + + "ReqRandHash\022\020\n\010execName\030\001 \001(\t\022\016\n\006height\030" + + "\002 \001(\003\022\020\n\010blockNum\030\003 \001(\003\022\014\n\004hash\030\004 \001(\014\"\\\n" + + "\013VersionInfo\022\r\n\005title\030\001 \001(\t\022\013\n\003app\030\002 \001(\t" + + "\022\017\n\007chain33\030\003 \001(\t\022\017\n\007localDb\030\004 \001(\t\022\017\n\007ch" + + "ainID\030\005 \001(\005B3\n!cn.chain33.javasdk.model." + + "protobufB\016CommonProtobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_Reply_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_Reply_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Reply_descriptor, new java.lang.String[] { "IsOk", "Msg", }); + internal_static_ReqString_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_ReqString_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqString_descriptor, new java.lang.String[] { "Data", }); + internal_static_ReplyString_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_ReplyString_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyString_descriptor, new java.lang.String[] { "Data", }); + internal_static_ReplyStrings_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_ReplyStrings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyStrings_descriptor, new java.lang.String[] { "Datas", }); + internal_static_ReqInt_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_ReqInt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqInt_descriptor, new java.lang.String[] { "Height", }); + internal_static_Int64_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_Int64_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Int64_descriptor, new java.lang.String[] { "Data", }); + internal_static_ReqHash_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_ReqHash_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqHash_descriptor, new java.lang.String[] { "Hash", "Upgrade", }); + internal_static_ReplyHash_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_ReplyHash_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyHash_descriptor, new java.lang.String[] { "Hash", }); + internal_static_ReqNil_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_ReqNil_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqNil_descriptor, new java.lang.String[] {}); + internal_static_ReqHashes_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_ReqHashes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqHashes_descriptor, new java.lang.String[] { "Hashes", }); + internal_static_ReplyHashes_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_ReplyHashes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyHashes_descriptor, new java.lang.String[] { "Hashes", }); + internal_static_KeyValue_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_KeyValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_KeyValue_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_TxHash_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_TxHash_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TxHash_descriptor, new java.lang.String[] { "Hash", }); + internal_static_TimeStatus_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_TimeStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TimeStatus_descriptor, new java.lang.String[] { "NtpTime", "LocalTime", "Diff", }); + internal_static_ReqKey_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_ReqKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqKey_descriptor, new java.lang.String[] { "Key", }); + internal_static_ReqRandHash_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_ReqRandHash_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqRandHash_descriptor, + new java.lang.String[] { "ExecName", "Height", "BlockNum", "Hash", }); + internal_static_VersionInfo_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_VersionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_VersionInfo_descriptor, + new java.lang.String[] { "Title", "App", "Chain33", "LocalDb", "ChainID", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.java b/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.java index d04c43e..e13bca5 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.java @@ -4,25197 +4,27127 @@ package cn.chain33.javasdk.model.protobuf; public final class EvmService { - private EvmService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EVMContractObjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:EVMContractObject) - com.google.protobuf.MessageOrBuilder { - - /** - * string addr = 1; - */ - java.lang.String getAddr(); - /** - * string addr = 1; - */ - com.google.protobuf.ByteString - getAddrBytes(); - - /** - * .EVMContractData data = 2; - */ - boolean hasData(); - /** - * .EVMContractData data = 2; - */ - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getData(); - /** - * .EVMContractData data = 2; - */ - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder getDataOrBuilder(); - - /** - * .EVMContractState state = 3; - */ - boolean hasState(); - /** - * .EVMContractState state = 3; - */ - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getState(); - /** - * .EVMContractState state = 3; - */ - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder getStateOrBuilder(); - } - /** - *
-   *合约对象信息
-   * 
- * - * Protobuf type {@code EVMContractObject} - */ - public static final class EVMContractObject extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EVMContractObject) - EVMContractObjectOrBuilder { - private static final long serialVersionUID = 0L; - // Use EVMContractObject.newBuilder() to construct. - private EVMContractObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EVMContractObject() { - addr_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EVMContractObject(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EVMContractObject( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = input.readMessage(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.Builder.class); + private EvmService() { } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - * string addr = 1; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 1; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - public static final int DATA_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData data_; - /** - * .EVMContractData data = 2; - */ - public boolean hasData() { - return data_ != null; - } - /** - * .EVMContractData data = 2; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getData() { - return data_ == null ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance() : data_; - } - /** - * .EVMContractData data = 2; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder getDataOrBuilder() { - return getData(); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public static final int STATE_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState state_; - /** - * .EVMContractState state = 3; - */ - public boolean hasState() { - return state_ != null; - } - /** - * .EVMContractState state = 3; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getState() { - return state_ == null ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance() : state_; - } - /** - * .EVMContractState state = 3; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder getStateOrBuilder() { - return getState(); - } + public interface EVMContractObjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:EVMContractObject) + com.google.protobuf.MessageOrBuilder { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); - memoizedIsInitialized = 1; - return true; - } + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (data_ != null) { - output.writeMessage(2, getData()); - } - if (state_ != null) { - output.writeMessage(3, getState()); - } - unknownFields.writeTo(output); - } + /** + * .EVMContractData data = 2; + * + * @return Whether the data field is set. + */ + boolean hasData(); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getData()); - } - if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * .EVMContractData data = 2; + * + * @return The data. + */ + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getData(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (hasState() != other.hasState()) return false; - if (hasState()) { - if (!getState() - .equals(other.getState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * .EVMContractData data = 2; + */ + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder getDataOrBuilder(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * .EVMContractState state = 3; + * + * @return Whether the state field is set. + */ + boolean hasState(); - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * .EVMContractState state = 3; + * + * @return The state. + */ + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getState(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + /** + * .EVMContractState state = 3; + */ + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder getStateOrBuilder(); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** *
-     *合约对象信息
+     * 合约对象信息
      * 
* * Protobuf type {@code EVMContractObject} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EVMContractObject) - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - if (stateBuilder_ == null) { - state_ = null; - } else { - state_ = null; - stateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject build() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject(this); - result.addr_ = addr_; - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - if (stateBuilder_ == null) { - result.state_ = state_; - } else { - result.state_ = stateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (other.hasData()) { - mergeData(other.getData()); - } - if (other.hasState()) { - mergeState(other.getState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 1; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 1; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 1; - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 1; - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 1; - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData data_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder> dataBuilder_; - /** - * .EVMContractData data = 2; - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - * .EVMContractData data = 2; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getData() { - if (dataBuilder_ == null) { - return data_ == null ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * .EVMContractData data = 2; - */ - public Builder setData(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - * .EVMContractData data = 2; - */ - public Builder setData( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .EVMContractData data = 2; - */ - public Builder mergeData(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .EVMContractData data = 2; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - * .EVMContractData data = 2; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * .EVMContractData data = 2; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance() : data_; - } - } - /** - * .EVMContractData data = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState state_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder> stateBuilder_; - /** - * .EVMContractState state = 3; - */ - public boolean hasState() { - return stateBuilder_ != null || state_ != null; - } - /** - * .EVMContractState state = 3; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getState() { - if (stateBuilder_ == null) { - return state_ == null ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance() : state_; - } else { - return stateBuilder_.getMessage(); - } - } - /** - * .EVMContractState state = 3; - */ - public Builder setState(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState value) { - if (stateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - state_ = value; - onChanged(); - } else { - stateBuilder_.setMessage(value); - } - - return this; - } - /** - * .EVMContractState state = 3; - */ - public Builder setState( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder builderForValue) { - if (stateBuilder_ == null) { - state_ = builderForValue.build(); - onChanged(); - } else { - stateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .EVMContractState state = 3; - */ - public Builder mergeState(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState value) { - if (stateBuilder_ == null) { - if (state_ != null) { - state_ = - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.newBuilder(state_).mergeFrom(value).buildPartial(); - } else { - state_ = value; - } - onChanged(); - } else { - stateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .EVMContractState state = 3; - */ - public Builder clearState() { - if (stateBuilder_ == null) { - state_ = null; - onChanged(); - } else { - state_ = null; - stateBuilder_ = null; - } - - return this; - } - /** - * .EVMContractState state = 3; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder getStateBuilder() { - - onChanged(); - return getStateFieldBuilder().getBuilder(); - } - /** - * .EVMContractState state = 3; - */ - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder getStateOrBuilder() { - if (stateBuilder_ != null) { - return stateBuilder_.getMessageOrBuilder(); - } else { - return state_ == null ? - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance() : state_; - } - } - /** - * .EVMContractState state = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder> - getStateFieldBuilder() { - if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); - state_ = null; - } - return stateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EVMContractObject) - } + public static final class EVMContractObject extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EVMContractObject) + EVMContractObjectOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:EVMContractObject) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject(); - } + // Use EVMContractObject.newBuilder() to construct. + private EVMContractObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private EVMContractObject() { + addr_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EVMContractObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EVMContractObject(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EVMContractObject(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private EVMContractObject(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder subBuilder = null; + if (data_ != null) { + subBuilder = data_.toBuilder(); + } + data_ = input.readMessage(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(data_); + data_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.Builder.class); + } + + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; + + /** + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } - public interface EVMContractDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:EVMContractData) - com.google.protobuf.MessageOrBuilder { + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string creator = 1; - */ - java.lang.String getCreator(); - /** - * string creator = 1; - */ - com.google.protobuf.ByteString - getCreatorBytes(); + public static final int DATA_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData data_; + + /** + * .EVMContractData data = 2; + * + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return data_ != null; + } + + /** + * .EVMContractData data = 2; + * + * @return The data. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getData() { + return data_ == null ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance() + : data_; + } + + /** + * .EVMContractData data = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder getDataOrBuilder() { + return getData(); + } + + public static final int STATE_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState state_; + + /** + * .EVMContractState state = 3; + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return state_ != null; + } + + /** + * .EVMContractState state = 3; + * + * @return The state. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getState() { + return state_ == null ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance() + : state_; + } + + /** + * .EVMContractState state = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder getStateOrBuilder() { + return getState(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + if (state_ != null) { + output.writeMessage(3, getState()); + } + unknownFields.writeTo(output); + } - /** - * string name = 2; - */ - java.lang.String getName(); - /** - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * string alias = 3; - */ - java.lang.String getAlias(); - /** - * string alias = 3; - */ - com.google.protobuf.ByteString - getAliasBytes(); + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getData()); + } + if (state_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getState()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * string addr = 4; - */ - java.lang.String getAddr(); - /** - * string addr = 4; - */ - com.google.protobuf.ByteString - getAddrBytes(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (hasData() != other.hasData()) + return false; + if (hasData()) { + if (!getData().equals(other.getData())) + return false; + } + if (hasState() != other.hasState()) + return false; + if (hasState()) { + if (!getState().equals(other.getState())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - * bytes code = 5; - */ - com.google.protobuf.ByteString getCode(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * bytes codeHash = 6; - */ - com.google.protobuf.ByteString getCodeHash(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - *
-     * 绑定ABI数据 ForkEVMABI
-     * 
- * - * string abi = 7; - */ - java.lang.String getAbi(); - /** - *
-     * 绑定ABI数据 ForkEVMABI
-     * 
- * - * string abi = 7; - */ - com.google.protobuf.ByteString - getAbiBytes(); - } - /** - *
-   * 存放合约固定数据
-   * 
- * - * Protobuf type {@code EVMContractData} - */ - public static final class EVMContractData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EVMContractData) - EVMContractDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use EVMContractData.newBuilder() to construct. - private EVMContractData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EVMContractData() { - creator_ = ""; - name_ = ""; - alias_ = ""; - addr_ = ""; - code_ = com.google.protobuf.ByteString.EMPTY; - codeHash_ = com.google.protobuf.ByteString.EMPTY; - abi_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EVMContractData(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EVMContractData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - creator_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - alias_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 42: { - - code_ = input.readBytes(); - break; - } - case 50: { - - codeHash_ = input.readBytes(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - abi_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int CREATOR_FIELD_NUMBER = 1; - private volatile java.lang.Object creator_; - /** - * string creator = 1; - */ - public java.lang.String getCreator() { - java.lang.Object ref = creator_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creator_ = s; - return s; - } - } - /** - * string creator = 1; - */ - public com.google.protobuf.ByteString - getCreatorBytes() { - java.lang.Object ref = creator_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creator_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int ALIAS_FIELD_NUMBER = 3; - private volatile java.lang.Object alias_; - /** - * string alias = 3; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } - } - /** - * string alias = 3; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int ADDR_FIELD_NUMBER = 4; - private volatile java.lang.Object addr_; - /** - * string addr = 4; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 4; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int CODE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString code_; - /** - * bytes code = 5; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int CODEHASH_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString codeHash_; - /** - * bytes codeHash = 6; - */ - public com.google.protobuf.ByteString getCodeHash() { - return codeHash_; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int ABI_FIELD_NUMBER = 7; - private volatile java.lang.Object abi_; - /** - *
-     * 绑定ABI数据 ForkEVMABI
-     * 
- * - * string abi = 7; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } - } - /** - *
-     * 绑定ABI数据 ForkEVMABI
-     * 
- * - * string abi = 7; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCreatorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, creator_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!getAliasBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alias_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); - } - if (!code_.isEmpty()) { - output.writeBytes(5, code_); - } - if (!codeHash_.isEmpty()) { - output.writeBytes(6, codeHash_); - } - if (!getAbiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, abi_); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCreatorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, creator_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!getAliasBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); - } - if (!code_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, code_); - } - if (!codeHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, codeHash_); - } - if (!getAbiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, abi_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData) obj; - - if (!getCreator() - .equals(other.getCreator())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getAlias() - .equals(other.getAlias())) return false; - if (!getAddr() - .equals(other.getAddr())) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!getCodeHash() - .equals(other.getCodeHash())) return false; - if (!getAbi() - .equals(other.getAbi())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATOR_FIELD_NUMBER; - hash = (53 * hash) + getCreator().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + CODEHASH_FIELD_NUMBER; - hash = (53 * hash) + getCodeHash().hashCode(); - hash = (37 * hash) + ABI_FIELD_NUMBER; - hash = (53 * hash) + getAbi().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + *
+         * 合约对象信息
+         * 
+ * + * Protobuf type {@code EVMContractObject} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EVMContractObject) + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 存放合约固定数据
-     * 
- * - * Protobuf type {@code EVMContractData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EVMContractData) - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - creator_ = ""; - - name_ = ""; - - alias_ = ""; - - addr_ = ""; - - code_ = com.google.protobuf.ByteString.EMPTY; - - codeHash_ = com.google.protobuf.ByteString.EMPTY; - - abi_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData build() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData(this); - result.creator_ = creator_; - result.name_ = name_; - result.alias_ = alias_; - result.addr_ = addr_; - result.code_ = code_; - result.codeHash_ = codeHash_; - result.abi_ = abi_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance()) return this; - if (!other.getCreator().isEmpty()) { - creator_ = other.creator_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - onChanged(); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { - setCode(other.getCode()); - } - if (other.getCodeHash() != com.google.protobuf.ByteString.EMPTY) { - setCodeHash(other.getCodeHash()); - } - if (!other.getAbi().isEmpty()) { - abi_ = other.abi_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object creator_ = ""; - /** - * string creator = 1; - */ - public java.lang.String getCreator() { - java.lang.Object ref = creator_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creator_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string creator = 1; - */ - public com.google.protobuf.ByteString - getCreatorBytes() { - java.lang.Object ref = creator_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creator_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string creator = 1; - */ - public Builder setCreator( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - creator_ = value; - onChanged(); - return this; - } - /** - * string creator = 1; - */ - public Builder clearCreator() { - - creator_ = getDefaultInstance().getCreator(); - onChanged(); - return this; - } - /** - * string creator = 1; - */ - public Builder setCreatorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - creator_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object alias_ = ""; - /** - * string alias = 3; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string alias = 3; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string alias = 3; - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alias_ = value; - onChanged(); - return this; - } - /** - * string alias = 3; - */ - public Builder clearAlias() { - - alias_ = getDefaultInstance().getAlias(); - onChanged(); - return this; - } - /** - * string alias = 3; - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alias_ = value; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 4; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 4; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 4; - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 4; - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 4; - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes code = 5; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - /** - * bytes code = 5; - */ - public Builder setCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * bytes code = 5; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString codeHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes codeHash = 6; - */ - public com.google.protobuf.ByteString getCodeHash() { - return codeHash_; - } - /** - * bytes codeHash = 6; - */ - public Builder setCodeHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - codeHash_ = value; - onChanged(); - return this; - } - /** - * bytes codeHash = 6; - */ - public Builder clearCodeHash() { - - codeHash_ = getDefaultInstance().getCodeHash(); - onChanged(); - return this; - } - - private java.lang.Object abi_ = ""; - /** - *
-       * 绑定ABI数据 ForkEVMABI
-       * 
- * - * string abi = 7; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * 绑定ABI数据 ForkEVMABI
-       * 
- * - * string abi = 7; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * 绑定ABI数据 ForkEVMABI
-       * 
- * - * string abi = 7; - */ - public Builder setAbi( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - abi_ = value; - onChanged(); - return this; - } - /** - *
-       * 绑定ABI数据 ForkEVMABI
-       * 
- * - * string abi = 7; - */ - public Builder clearAbi() { - - abi_ = getDefaultInstance().getAbi(); - onChanged(); - return this; - } - /** - *
-       * 绑定ABI数据 ForkEVMABI
-       * 
- * - * string abi = 7; - */ - public Builder setAbiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - abi_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EVMContractData) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:EVMContractData) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + if (stateBuilder_ == null) { + state_ = null; + } else { + state_ = null; + stateBuilder_ = null; + } + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EVMContractData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EVMContractData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractObject_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.getDefaultInstance(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject build() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject( + this); + result.addr_ = addr_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + if (stateBuilder_ == null) { + result.state_ = state_; + } else { + result.state_ = stateBuilder_.build(); + } + onBuilt(); + return result; + } - public interface EVMContractStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:EVMContractState) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - * uint64 nonce = 1; - */ - long getNonce(); + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * bool suicided = 2; - */ - boolean getSuicided(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - * bytes storageHash = 3; - */ - com.google.protobuf.ByteString getStorageHash(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * map<string, bytes> storage = 4; - */ - int getStorageCount(); - /** - * map<string, bytes> storage = 4; - */ - boolean containsStorage( - java.lang.String key); - /** - * Use {@link #getStorageMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getStorage(); - /** - * map<string, bytes> storage = 4; - */ - java.util.Map - getStorageMap(); - /** - * map<string, bytes> storage = 4; - */ - - com.google.protobuf.ByteString getStorageOrDefault( - java.lang.String key, - com.google.protobuf.ByteString defaultValue); - /** - * map<string, bytes> storage = 4; - */ - - com.google.protobuf.ByteString getStorageOrThrow( - java.lang.String key); - } - /** - *
-   * 存放合约变化数据
-   * 
- * - * Protobuf type {@code EVMContractState} - */ - public static final class EVMContractState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EVMContractState) - EVMContractStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use EVMContractState.newBuilder() to construct. - private EVMContractState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EVMContractState() { - storageHash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EVMContractState(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EVMContractState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readUInt64(); - break; - } - case 16: { - - suicided_ = input.readBool(); - break; - } - case 26: { - - storageHash_ = input.readBytes(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - storage_ = com.google.protobuf.MapField.newMapField( - StorageDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - storage__ = input.readMessage( - StorageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - storage_.getMutableMap().put( - storage__.getKey(), storage__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject) other); + } else { + super.mergeFrom(other); + return this; + } + } - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetStorage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder.class); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - * uint64 nonce = 1; - */ - public long getNonce() { - return nonce_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int SUICIDED_FIELD_NUMBER = 2; - private boolean suicided_; - /** - * bool suicided = 2; - */ - public boolean getSuicided() { - return suicided_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int STORAGEHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString storageHash_; - /** - * bytes storageHash = 3; - */ - public com.google.protobuf.ByteString getStorageHash() { - return storageHash_; - } + private java.lang.Object addr_ = ""; + + /** + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int STORAGE_FIELD_NUMBER = 4; - private static final class StorageDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.ByteString> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_StorageEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.BYTES, - com.google.protobuf.ByteString.EMPTY); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ByteString> storage_; - private com.google.protobuf.MapField - internalGetStorage() { - if (storage_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StorageDefaultEntryHolder.defaultEntry); - } - return storage_; - } + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public int getStorageCount() { - return internalGetStorage().getMap().size(); - } - /** - * map<string, bytes> storage = 4; - */ + /** + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } - public boolean containsStorage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetStorage().getMap().containsKey(key); - } - /** - * Use {@link #getStorageMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getStorage() { - return getStorageMap(); - } - /** - * map<string, bytes> storage = 4; - */ + /** + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { - public java.util.Map getStorageMap() { - return internalGetStorage().getMap(); - } - /** - * map<string, bytes> storage = 4; - */ + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } - public com.google.protobuf.ByteString getStorageOrDefault( - java.lang.String key, - com.google.protobuf.ByteString defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, bytes> storage = 4; - */ + /** + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } - public com.google.protobuf.ByteString getStorageOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData data_; + private com.google.protobuf.SingleFieldBuilderV3 dataBuilder_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * .EVMContractData data = 2; + * + * @return Whether the data field is set. + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } - memoizedIsInitialized = 1; - return true; - } + /** + * .EVMContractData data = 2; + * + * @return The data. + */ + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getData() { + if (dataBuilder_ == null) { + return data_ == null + ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeUInt64(1, nonce_); - } - if (suicided_ != false) { - output.writeBool(2, suicided_); - } - if (!storageHash_.isEmpty()) { - output.writeBytes(3, storageHash_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetStorage(), - StorageDefaultEntryHolder.defaultEntry, - 4); - unknownFields.writeTo(output); - } + /** + * .EVMContractData data = 2; + */ + public Builder setData(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, nonce_); - } - if (suicided_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, suicided_); - } - if (!storageHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, storageHash_); - } - for (java.util.Map.Entry entry - : internalGetStorage().getMap().entrySet()) { - com.google.protobuf.MapEntry - storage__ = StorageDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, storage__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * .EVMContractData data = 2; + */ + public Builder setData( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState) obj; - - if (getNonce() - != other.getNonce()) return false; - if (getSuicided() - != other.getSuicided()) return false; - if (!getStorageHash() - .equals(other.getStorageHash())) return false; - if (!internalGetStorage().equals( - other.internalGetStorage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * .EVMContractData data = 2; + */ + public Builder mergeData(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData value) { + if (dataBuilder_ == null) { + if (data_ != null) { + data_ = cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.newBuilder(data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (37 * hash) + SUICIDED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuicided()); - hash = (37 * hash) + STORAGEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStorageHash().hashCode(); - if (!internalGetStorage().getMap().isEmpty()) { - hash = (37 * hash) + STORAGE_FIELD_NUMBER; - hash = (53 * hash) + internalGetStorage().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * .EVMContractData data = 2; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * .EVMContractData data = 2; + */ + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder getDataBuilder() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + onChanged(); + return getDataFieldBuilder().getBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 存放合约变化数据
-     * 
- * - * Protobuf type {@code EVMContractState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EVMContractState) - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetStorage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableStorage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - suicided_ = false; - - storageHash_ = com.google.protobuf.ByteString.EMPTY; - - internalGetMutableStorage().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState build() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState(this); - int from_bitField0_ = bitField0_; - result.nonce_ = nonce_; - result.suicided_ = suicided_; - result.storageHash_ = storageHash_; - result.storage_ = internalGetStorage(); - result.storage_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (other.getSuicided() != false) { - setSuicided(other.getSuicided()); - } - if (other.getStorageHash() != com.google.protobuf.ByteString.EMPTY) { - setStorageHash(other.getStorageHash()); - } - internalGetMutableStorage().mergeFrom( - other.internalGetStorage()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long nonce_ ; - /** - * uint64 nonce = 1; - */ - public long getNonce() { - return nonce_; - } - /** - * uint64 nonce = 1; - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * uint64 nonce = 1; - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private boolean suicided_ ; - /** - * bool suicided = 2; - */ - public boolean getSuicided() { - return suicided_; - } - /** - * bool suicided = 2; - */ - public Builder setSuicided(boolean value) { - - suicided_ = value; - onChanged(); - return this; - } - /** - * bool suicided = 2; - */ - public Builder clearSuicided() { - - suicided_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString storageHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes storageHash = 3; - */ - public com.google.protobuf.ByteString getStorageHash() { - return storageHash_; - } - /** - * bytes storageHash = 3; - */ - public Builder setStorageHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - storageHash_ = value; - onChanged(); - return this; - } - /** - * bytes storageHash = 3; - */ - public Builder clearStorageHash() { - - storageHash_ = getDefaultInstance().getStorageHash(); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ByteString> storage_; - private com.google.protobuf.MapField - internalGetStorage() { - if (storage_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StorageDefaultEntryHolder.defaultEntry); - } - return storage_; - } - private com.google.protobuf.MapField - internalGetMutableStorage() { - onChanged();; - if (storage_ == null) { - storage_ = com.google.protobuf.MapField.newMapField( - StorageDefaultEntryHolder.defaultEntry); - } - if (!storage_.isMutable()) { - storage_ = storage_.copy(); - } - return storage_; - } - - public int getStorageCount() { - return internalGetStorage().getMap().size(); - } - /** - * map<string, bytes> storage = 4; - */ - - public boolean containsStorage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetStorage().getMap().containsKey(key); - } - /** - * Use {@link #getStorageMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getStorage() { - return getStorageMap(); - } - /** - * map<string, bytes> storage = 4; - */ - - public java.util.Map getStorageMap() { - return internalGetStorage().getMap(); - } - /** - * map<string, bytes> storage = 4; - */ - - public com.google.protobuf.ByteString getStorageOrDefault( - java.lang.String key, - com.google.protobuf.ByteString defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, bytes> storage = 4; - */ - - public com.google.protobuf.ByteString getStorageOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearStorage() { - internalGetMutableStorage().getMutableMap() - .clear(); - return this; - } - /** - * map<string, bytes> storage = 4; - */ - - public Builder removeStorage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableStorage().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableStorage() { - return internalGetMutableStorage().getMutableMap(); - } - /** - * map<string, bytes> storage = 4; - */ - public Builder putStorage( - java.lang.String key, - com.google.protobuf.ByteString value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableStorage().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, bytes> storage = 4; - */ - - public Builder putAllStorage( - java.util.Map values) { - internalGetMutableStorage().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EVMContractState) - } + /** + * .EVMContractData data = 2; + */ + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null + ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance() : data_; + } + } - // @@protoc_insertion_point(class_scope:EVMContractState) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState(); - } + /** + * .EVMContractData data = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getData(), getParentForChildren(), isClean()); + data_ = null; + } + return dataBuilder_; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState state_; + private com.google.protobuf.SingleFieldBuilderV3 stateBuilder_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EVMContractState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EVMContractState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * .EVMContractState state = 3; + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return stateBuilder_ != null || state_ != null; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * .EVMContractState state = 3; + * + * @return The state. + */ + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * .EVMContractState state = 3; + */ + public Builder setState(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + onChanged(); + } else { + stateBuilder_.setMessage(value); + } + + return this; + } - } + /** + * .EVMContractState state = 3; + */ + public Builder setState( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + onChanged(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - public interface EVMContractActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:EVMContractAction) - com.google.protobuf.MessageOrBuilder { + /** + * .EVMContractState state = 3; + */ + public Builder mergeState(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState value) { + if (stateBuilder_ == null) { + if (state_ != null) { + state_ = cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.newBuilder(state_) + .mergeFrom(value).buildPartial(); + } else { + state_ = value; + } + onChanged(); + } else { + stateBuilder_.mergeFrom(value); + } + + return this; + } - /** - *
-     * 转账金额
-     * 
- * - * uint64 amount = 1; - */ - long getAmount(); + /** + * .EVMContractState state = 3; + */ + public Builder clearState() { + if (stateBuilder_ == null) { + state_ = null; + onChanged(); + } else { + state_ = null; + stateBuilder_ = null; + } + + return this; + } - /** - *
-     * 消耗限制,默认为Transaction.Fee
-     * 
- * - * uint64 gasLimit = 2; - */ - long getGasLimit(); + /** + * .EVMContractState state = 3; + */ + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder getStateBuilder() { - /** - *
-     * gas价格,默认为1
-     * 
- * - * uint32 gasPrice = 3; - */ - int getGasPrice(); + onChanged(); + return getStateFieldBuilder().getBuilder(); + } - /** - *
-     * 合约数据
-     * 
- * - * bytes code = 4; - */ - com.google.protobuf.ByteString getCode(); + /** + * .EVMContractState state = 3; + */ + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance() + : state_; + } + } - /** - *
-     *交易参数
-     * 
- * - * bytes para = 5; - */ - com.google.protobuf.ByteString getPara(); + /** + * .EVMContractState state = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } - /** - *
-     * 合约别名,方便识别
-     * 
- * - * string alias = 6; - */ - java.lang.String getAlias(); - /** - *
-     * 合约别名,方便识别
-     * 
- * - * string alias = 6; - */ - com.google.protobuf.ByteString - getAliasBytes(); + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - *
-     * 交易备注
-     * 
- * - * string note = 7; - */ - java.lang.String getNote(); - /** - *
-     * 交易备注
-     * 
- * - * string note = 7; - */ - com.google.protobuf.ByteString - getNoteBytes(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - *
-     * 调用合约地址
-     * 
- * - * string contractAddr = 8; - */ - java.lang.String getContractAddr(); - /** - *
-     * 调用合约地址
-     * 
- * - * string contractAddr = 8; - */ - com.google.protobuf.ByteString - getContractAddrBytes(); - } - /** - *
-   * 创建/调用合约的请求结构
-   * 
- * - * Protobuf type {@code EVMContractAction} - */ - public static final class EVMContractAction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EVMContractAction) - EVMContractActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use EVMContractAction.newBuilder() to construct. - private EVMContractAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EVMContractAction() { - code_ = com.google.protobuf.ByteString.EMPTY; - para_ = com.google.protobuf.ByteString.EMPTY; - alias_ = ""; - note_ = ""; - contractAddr_ = ""; - } + // @@protoc_insertion_point(builder_scope:EVMContractObject) + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EVMContractAction(); - } + // @@protoc_insertion_point(class_scope:EVMContractObject) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EVMContractAction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - amount_ = input.readUInt64(); - break; - } - case 16: { - - gasLimit_ = input.readUInt64(); - break; - } - case 24: { - - gasPrice_ = input.readUInt32(); - break; - } - case 34: { - - code_ = input.readBytes(); - break; - } - case 42: { - - para_ = input.readBytes(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - alias_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - note_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - contractAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.Builder.class); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EVMContractObject parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EVMContractObject(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EVMContractDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:EVMContractData) + com.google.protobuf.MessageOrBuilder { + + /** + * string creator = 1; + * + * @return The creator. + */ + java.lang.String getCreator(); + + /** + * string creator = 1; + * + * @return The bytes for creator. + */ + com.google.protobuf.ByteString getCreatorBytes(); + + /** + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string alias = 3; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * string alias = 3; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); + + /** + * string addr = 4; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + * bytes code = 5; + * + * @return The code. + */ + com.google.protobuf.ByteString getCode(); + + /** + * bytes codeHash = 6; + * + * @return The codeHash. + */ + com.google.protobuf.ByteString getCodeHash(); + + /** + *
+         * 绑定ABI数据 ForkEVMABI
+         * 
+ * + * string abi = 7; + * + * @return The abi. + */ + java.lang.String getAbi(); + + /** + *
+         * 绑定ABI数据 ForkEVMABI
+         * 
+ * + * string abi = 7; + * + * @return The bytes for abi. + */ + com.google.protobuf.ByteString getAbiBytes(); } - public static final int AMOUNT_FIELD_NUMBER = 1; - private long amount_; /** *
-     * 转账金额
+     * 存放合约固定数据
      * 
* - * uint64 amount = 1; + * Protobuf type {@code EVMContractData} */ - public long getAmount() { - return amount_; - } + public static final class EVMContractData extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EVMContractData) + EVMContractDataOrBuilder { + private static final long serialVersionUID = 0L; - public static final int GASLIMIT_FIELD_NUMBER = 2; - private long gasLimit_; - /** - *
-     * 消耗限制,默认为Transaction.Fee
-     * 
- * - * uint64 gasLimit = 2; - */ - public long getGasLimit() { - return gasLimit_; - } + // Use EVMContractData.newBuilder() to construct. + private EVMContractData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int GASPRICE_FIELD_NUMBER = 3; - private int gasPrice_; - /** - *
-     * gas价格,默认为1
-     * 
- * - * uint32 gasPrice = 3; - */ - public int getGasPrice() { - return gasPrice_; - } + private EVMContractData() { + creator_ = ""; + name_ = ""; + alias_ = ""; + addr_ = ""; + code_ = com.google.protobuf.ByteString.EMPTY; + codeHash_ = com.google.protobuf.ByteString.EMPTY; + abi_ = ""; + } - public static final int CODE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString code_; - /** - *
-     * 合约数据
-     * 
- * - * bytes code = 4; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EVMContractData(); + } - public static final int PARA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString para_; - /** - *
-     *交易参数
-     * 
- * - * bytes para = 5; - */ - public com.google.protobuf.ByteString getPara() { - return para_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int ALIAS_FIELD_NUMBER = 6; - private volatile java.lang.Object alias_; - /** - *
-     * 合约别名,方便识别
-     * 
- * - * string alias = 6; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } - } - /** - *
-     * 合约别名,方便识别
-     * 
- * - * string alias = 6; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private EVMContractData(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + creator_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 42: { + + code_ = input.readBytes(); + break; + } + case 50: { + + codeHash_ = input.readBytes(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + abi_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int NOTE_FIELD_NUMBER = 7; - private volatile java.lang.Object note_; - /** - *
-     * 交易备注
-     * 
- * - * string note = 7; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } - } - /** - *
-     * 交易备注
-     * 
- * - * string note = 7; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_descriptor; + } - public static final int CONTRACTADDR_FIELD_NUMBER = 8; - private volatile java.lang.Object contractAddr_; - /** - *
-     * 调用合约地址
-     * 
- * - * string contractAddr = 8; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } - } - /** - *
-     * 调用合约地址
-     * 
- * - * string contractAddr = 8; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder.class); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int CREATOR_FIELD_NUMBER = 1; + private volatile java.lang.Object creator_; - memoizedIsInitialized = 1; - return true; - } + /** + * string creator = 1; + * + * @return The creator. + */ + @java.lang.Override + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (amount_ != 0L) { - output.writeUInt64(1, amount_); - } - if (gasLimit_ != 0L) { - output.writeUInt64(2, gasLimit_); - } - if (gasPrice_ != 0) { - output.writeUInt32(3, gasPrice_); - } - if (!code_.isEmpty()) { - output.writeBytes(4, code_); - } - if (!para_.isEmpty()) { - output.writeBytes(5, para_); - } - if (!getAliasBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, alias_); - } - if (!getNoteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, note_); - } - if (!getContractAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, contractAddr_); - } - unknownFields.writeTo(output); - } + /** + * string creator = 1; + * + * @return The bytes for creator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + + /** + * string name = 2; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 2; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 3; + private volatile java.lang.Object alias_; + + /** + * string alias = 3; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + + /** + * string alias = 3; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDR_FIELD_NUMBER = 4; + private volatile java.lang.Object addr_; + + /** + * string addr = 4; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString code_; + + /** + * bytes code = 5; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + public static final int CODEHASH_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString codeHash_; + + /** + * bytes codeHash = 6; + * + * @return The codeHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeHash() { + return codeHash_; + } + + public static final int ABI_FIELD_NUMBER = 7; + private volatile java.lang.Object abi_; + + /** + *
+         * 绑定ABI数据 ForkEVMABI
+         * 
+ * + * string abi = 7; + * + * @return The abi. + */ + @java.lang.Override + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } + } + + /** + *
+         * 绑定ABI数据 ForkEVMABI
+         * 
+ * + * string abi = 7; + * + * @return The bytes for abi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCreatorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, creator_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alias_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); + } + if (!code_.isEmpty()) { + output.writeBytes(5, code_); + } + if (!codeHash_.isEmpty()) { + output.writeBytes(6, codeHash_); + } + if (!getAbiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, abi_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getCreatorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, creator_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); + } + if (!code_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, code_); + } + if (!codeHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, codeHash_); + } + if (!getAbiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, abi_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData) obj; + + if (!getCreator().equals(other.getCreator())) + return false; + if (!getName().equals(other.getName())) + return false; + if (!getAlias().equals(other.getAlias())) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!getCodeHash().equals(other.getCodeHash())) + return false; + if (!getAbi().equals(other.getAbi())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CREATOR_FIELD_NUMBER; + hash = (53 * hash) + getCreator().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + CODEHASH_FIELD_NUMBER; + hash = (53 * hash) + getCodeHash().hashCode(); + hash = (37 * hash) + ABI_FIELD_NUMBER; + hash = (53 * hash) + getAbi().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EVMContractData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EVMContractData) + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + creator_ = ""; + + name_ = ""; + + alias_ = ""; + + addr_ = ""; + + code_ = com.google.protobuf.ByteString.EMPTY; + + codeHash_ = com.google.protobuf.ByteString.EMPTY; + + abi_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractData_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData build() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData( + this); + result.creator_ = creator_; + result.name_ = name_; + result.alias_ = alias_; + result.addr_ = addr_; + result.code_ = code_; + result.codeHash_ = codeHash_; + result.abi_ = abi_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData.getDefaultInstance()) + return this; + if (!other.getCreator().isEmpty()) { + creator_ = other.creator_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { + setCode(other.getCode()); + } + if (other.getCodeHash() != com.google.protobuf.ByteString.EMPTY) { + setCodeHash(other.getCodeHash()); + } + if (!other.getAbi().isEmpty()) { + abi_ = other.abi_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object creator_ = ""; + + /** + * string creator = 1; + * + * @return The creator. + */ + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string creator = 1; + * + * @return The bytes for creator. + */ + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string creator = 1; + * + * @param value + * The creator to set. + * + * @return This builder for chaining. + */ + public Builder setCreator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + creator_ = value; + onChanged(); + return this; + } + + /** + * string creator = 1; + * + * @return This builder for chaining. + */ + public Builder clearCreator() { + + creator_ = getDefaultInstance().getCreator(); + onChanged(); + return this; + } + + /** + * string creator = 1; + * + * @param value + * The bytes for creator to set. + * + * @return This builder for chaining. + */ + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + creator_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 2; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 2; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + + /** + * string alias = 3; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string alias = 3; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string alias = 3; + * + * @param value + * The alias to set. + * + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + + /** + * string alias = 3; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + + /** + * string alias = 3; + * + * @param value + * The bytes for alias to set. + * + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 4; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 4; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes code = 5; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + /** + * bytes code = 5; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + + /** + * bytes code = 5; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString codeHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes codeHash = 6; + * + * @return The codeHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeHash() { + return codeHash_; + } + + /** + * bytes codeHash = 6; + * + * @param value + * The codeHash to set. + * + * @return This builder for chaining. + */ + public Builder setCodeHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + codeHash_ = value; + onChanged(); + return this; + } + + /** + * bytes codeHash = 6; + * + * @return This builder for chaining. + */ + public Builder clearCodeHash() { + + codeHash_ = getDefaultInstance().getCodeHash(); + onChanged(); + return this; + } + + private java.lang.Object abi_ = ""; + + /** + *
+             * 绑定ABI数据 ForkEVMABI
+             * 
+ * + * string abi = 7; + * + * @return The abi. + */ + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 绑定ABI数据 ForkEVMABI
+             * 
+ * + * string abi = 7; + * + * @return The bytes for abi. + */ + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 绑定ABI数据 ForkEVMABI
+             * 
+ * + * string abi = 7; + * + * @param value + * The abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + abi_ = value; + onChanged(); + return this; + } + + /** + *
+             * 绑定ABI数据 ForkEVMABI
+             * 
+ * + * string abi = 7; + * + * @return This builder for chaining. + */ + public Builder clearAbi() { + + abi_ = getDefaultInstance().getAbi(); + onChanged(); + return this; + } + + /** + *
+             * 绑定ABI数据 ForkEVMABI
+             * 
+ * + * string abi = 7; + * + * @param value + * The bytes for abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + abi_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EVMContractData) + } + + // @@protoc_insertion_point(class_scope:EVMContractData) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EVMContractData parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EVMContractData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EVMContractStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:EVMContractState) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); + + /** + * bool suicided = 2; + * + * @return The suicided. + */ + boolean getSuicided(); + + /** + * bytes storageHash = 3; + * + * @return The storageHash. + */ + com.google.protobuf.ByteString getStorageHash(); + + /** + * map<string, bytes> storage = 4; + */ + int getStorageCount(); + + /** + * map<string, bytes> storage = 4; + */ + boolean containsStorage(java.lang.String key); + + /** + * Use {@link #getStorageMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getStorage(); + + /** + * map<string, bytes> storage = 4; + */ + java.util.Map getStorageMap(); + + /** + * map<string, bytes> storage = 4; + */ + + com.google.protobuf.ByteString getStorageOrDefault(java.lang.String key, + com.google.protobuf.ByteString defaultValue); + + /** + * map<string, bytes> storage = 4; + */ + + com.google.protobuf.ByteString getStorageOrThrow(java.lang.String key); + } + + /** + *
+     * 存放合约变化数据
+     * 
+ * + * Protobuf type {@code EVMContractState} + */ + public static final class EVMContractState extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EVMContractState) + EVMContractStateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EVMContractState.newBuilder() to construct. + private EVMContractState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EVMContractState() { + storageHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EVMContractState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EVMContractState(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + nonce_ = input.readUInt64(); + break; + } + case 16: { + + suicided_ = input.readBool(); + break; + } + case 26: { + + storageHash_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + storage_ = com.google.protobuf.MapField.newMapField(StorageDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry storage__ = input + .readMessage(StorageDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + storage_.getMutableMap().put(storage__.getKey(), storage__.getValue()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetStorage(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder.class); + } + + public static final int NONCE_FIELD_NUMBER = 1; + private long nonce_; + + /** + * uint64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + public static final int SUICIDED_FIELD_NUMBER = 2; + private boolean suicided_; + + /** + * bool suicided = 2; + * + * @return The suicided. + */ + @java.lang.Override + public boolean getSuicided() { + return suicided_; + } + + public static final int STORAGEHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString storageHash_; + + /** + * bytes storageHash = 3; + * + * @return The storageHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageHash() { + return storageHash_; + } + + public static final int STORAGE_FIELD_NUMBER = 4; + + private static final class StorageDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_StorageEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); + } + + private com.google.protobuf.MapField storage_; + + private com.google.protobuf.MapField internalGetStorage() { + if (storage_ == null) { + return com.google.protobuf.MapField.emptyMapField(StorageDefaultEntryHolder.defaultEntry); + } + return storage_; + } + + public int getStorageCount() { + return internalGetStorage().getMap().size(); + } + + /** + * map<string, bytes> storage = 4; + */ + + @java.lang.Override + public boolean containsStorage(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetStorage().getMap().containsKey(key); + } + + /** + * Use {@link #getStorageMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStorage() { + return getStorageMap(); + } + + /** + * map<string, bytes> storage = 4; + */ + @java.lang.Override + + public java.util.Map getStorageMap() { + return internalGetStorage().getMap(); + } + + /** + * map<string, bytes> storage = 4; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getStorageOrDefault(java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * map<string, bytes> storage = 4; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getStorageOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeUInt64(1, nonce_); + } + if (suicided_ != false) { + output.writeBool(2, suicided_); + } + if (!storageHash_.isEmpty()) { + output.writeBytes(3, storageHash_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(output, internalGetStorage(), + StorageDefaultEntryHolder.defaultEntry, 4); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nonce_); + } + if (suicided_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, suicided_); + } + if (!storageHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, storageHash_); + } + for (java.util.Map.Entry entry : internalGetStorage() + .getMap().entrySet()) { + com.google.protobuf.MapEntry storage__ = StorageDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, storage__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState) obj; + + if (getNonce() != other.getNonce()) + return false; + if (getSuicided() != other.getSuicided()) + return false; + if (!getStorageHash().equals(other.getStorageHash())) + return false; + if (!internalGetStorage().equals(other.internalGetStorage())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @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) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (37 * hash) + SUICIDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuicided()); + hash = (37 * hash) + STORAGEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStorageHash().hashCode(); + if (!internalGetStorage().getMap().isEmpty()) { + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + internalGetStorage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EVMContractState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EVMContractState) + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetStorage(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableStorage(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + suicided_ = false; + + storageHash_ = com.google.protobuf.ByteString.EMPTY; + + internalGetMutableStorage().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractState_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState build() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState( + this); + int from_bitField0_ = bitField0_; + result.nonce_ = nonce_; + result.suicided_ = suicided_; + result.storageHash_ = storageHash_; + result.storage_ = internalGetStorage(); + result.storage_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (other.getSuicided() != false) { + setSuicided(other.getSuicided()); + } + if (other.getStorageHash() != com.google.protobuf.ByteString.EMPTY) { + setStorageHash(other.getStorageHash()); + } + internalGetMutableStorage().mergeFrom(other.internalGetStorage()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long nonce_; + + /** + * uint64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + * uint64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + * uint64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + private boolean suicided_; + + /** + * bool suicided = 2; + * + * @return The suicided. + */ + @java.lang.Override + public boolean getSuicided() { + return suicided_; + } + + /** + * bool suicided = 2; + * + * @param value + * The suicided to set. + * + * @return This builder for chaining. + */ + public Builder setSuicided(boolean value) { + + suicided_ = value; + onChanged(); + return this; + } + + /** + * bool suicided = 2; + * + * @return This builder for chaining. + */ + public Builder clearSuicided() { + + suicided_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString storageHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes storageHash = 3; + * + * @return The storageHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageHash() { + return storageHash_; + } + + /** + * bytes storageHash = 3; + * + * @param value + * The storageHash to set. + * + * @return This builder for chaining. + */ + public Builder setStorageHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + storageHash_ = value; + onChanged(); + return this; + } + + /** + * bytes storageHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearStorageHash() { + + storageHash_ = getDefaultInstance().getStorageHash(); + onChanged(); + return this; + } + + private com.google.protobuf.MapField storage_; + + private com.google.protobuf.MapField internalGetStorage() { + if (storage_ == null) { + return com.google.protobuf.MapField.emptyMapField(StorageDefaultEntryHolder.defaultEntry); + } + return storage_; + } + + private com.google.protobuf.MapField internalGetMutableStorage() { + onChanged(); + ; + if (storage_ == null) { + storage_ = com.google.protobuf.MapField.newMapField(StorageDefaultEntryHolder.defaultEntry); + } + if (!storage_.isMutable()) { + storage_ = storage_.copy(); + } + return storage_; + } + + public int getStorageCount() { + return internalGetStorage().getMap().size(); + } + + /** + * map<string, bytes> storage = 4; + */ + + @java.lang.Override + public boolean containsStorage(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetStorage().getMap().containsKey(key); + } + + /** + * Use {@link #getStorageMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStorage() { + return getStorageMap(); + } + + /** + * map<string, bytes> storage = 4; + */ + @java.lang.Override + + public java.util.Map getStorageMap() { + return internalGetStorage().getMap(); + } + + /** + * map<string, bytes> storage = 4; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getStorageOrDefault(java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * map<string, bytes> storage = 4; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getStorageOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearStorage() { + internalGetMutableStorage().getMutableMap().clear(); + return this; + } + + /** + * map<string, bytes> storage = 4; + */ + + public Builder removeStorage(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableStorage().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableStorage() { + return internalGetMutableStorage().getMutableMap(); + } + + /** + * map<string, bytes> storage = 4; + */ + public Builder putStorage(java.lang.String key, com.google.protobuf.ByteString value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableStorage().getMutableMap().put(key, value); + return this; + } + + /** + * map<string, bytes> storage = 4; + */ + + public Builder putAllStorage(java.util.Map values) { + internalGetMutableStorage().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EVMContractState) + } + + // @@protoc_insertion_point(class_scope:EVMContractState) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EVMContractState parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EVMContractState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EVMContractActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:EVMContractAction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 转账金额
+         * 
+ * + * uint64 amount = 1; + * + * @return The amount. + */ + long getAmount(); + + /** + *
+         * 消耗限制,默认为Transaction.Fee
+         * 
+ * + * uint64 gasLimit = 2; + * + * @return The gasLimit. + */ + long getGasLimit(); + + /** + *
+         * gas价格,默认为1
+         * 
+ * + * uint32 gasPrice = 3; + * + * @return The gasPrice. + */ + int getGasPrice(); + + /** + *
+         * 合约数据
+         * 
+ * + * bytes code = 4; + * + * @return The code. + */ + com.google.protobuf.ByteString getCode(); + + /** + *
+         * 交易参数
+         * 
+ * + * bytes para = 5; + * + * @return The para. + */ + com.google.protobuf.ByteString getPara(); + + /** + *
+         * 合约别名,方便识别
+         * 
+ * + * string alias = 6; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + *
+         * 合约别名,方便识别
+         * 
+ * + * string alias = 6; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); + + /** + *
+         * 交易备注
+         * 
+ * + * string note = 7; + * + * @return The note. + */ + java.lang.String getNote(); + + /** + *
+         * 交易备注
+         * 
+ * + * string note = 7; + * + * @return The bytes for note. + */ + com.google.protobuf.ByteString getNoteBytes(); + + /** + *
+         * 调用合约地址
+         * 
+ * + * string contractAddr = 8; + * + * @return The contractAddr. + */ + java.lang.String getContractAddr(); + + /** + *
+         * 调用合约地址
+         * 
+ * + * string contractAddr = 8; + * + * @return The bytes for contractAddr. + */ + com.google.protobuf.ByteString getContractAddrBytes(); + } + + /** + *
+     * 创建 / 调用合约的请求结构
+     * 
+ * + * Protobuf type {@code EVMContractAction} + */ + public static final class EVMContractAction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EVMContractAction) + EVMContractActionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EVMContractAction.newBuilder() to construct. + private EVMContractAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EVMContractAction() { + code_ = com.google.protobuf.ByteString.EMPTY; + para_ = com.google.protobuf.ByteString.EMPTY; + alias_ = ""; + note_ = ""; + contractAddr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EVMContractAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EVMContractAction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + amount_ = input.readUInt64(); + break; + } + case 16: { + + gasLimit_ = input.readUInt64(); + break; + } + case 24: { + + gasPrice_ = input.readUInt32(); + break; + } + case 34: { + + code_ = input.readBytes(); + break; + } + case 42: { + + para_ = input.readBytes(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + contractAddr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.Builder.class); + } + + public static final int AMOUNT_FIELD_NUMBER = 1; + private long amount_; + + /** + *
+         * 转账金额
+         * 
+ * + * uint64 amount = 1; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int GASLIMIT_FIELD_NUMBER = 2; + private long gasLimit_; + + /** + *
+         * 消耗限制,默认为Transaction.Fee
+         * 
+ * + * uint64 gasLimit = 2; + * + * @return The gasLimit. + */ + @java.lang.Override + public long getGasLimit() { + return gasLimit_; + } + + public static final int GASPRICE_FIELD_NUMBER = 3; + private int gasPrice_; + + /** + *
+         * gas价格,默认为1
+         * 
+ * + * uint32 gasPrice = 3; + * + * @return The gasPrice. + */ + @java.lang.Override + public int getGasPrice() { + return gasPrice_; + } + + public static final int CODE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString code_; + + /** + *
+         * 合约数据
+         * 
+ * + * bytes code = 4; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + public static final int PARA_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString para_; + + /** + *
+         * 交易参数
+         * 
+ * + * bytes para = 5; + * + * @return The para. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPara() { + return para_; + } + + public static final int ALIAS_FIELD_NUMBER = 6; + private volatile java.lang.Object alias_; + + /** + *
+         * 合约别名,方便识别
+         * 
+ * + * string alias = 6; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + + /** + *
+         * 合约别名,方便识别
+         * 
+ * + * string alias = 6; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NOTE_FIELD_NUMBER = 7; + private volatile java.lang.Object note_; + + /** + *
+         * 交易备注
+         * 
+ * + * string note = 7; + * + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + + /** + *
+         * 交易备注
+         * 
+ * + * string note = 7; + * + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTRACTADDR_FIELD_NUMBER = 8; + private volatile java.lang.Object contractAddr_; + + /** + *
+         * 调用合约地址
+         * 
+ * + * string contractAddr = 8; + * + * @return The contractAddr. + */ + @java.lang.Override + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } + } + + /** + *
+         * 调用合约地址
+         * 
+ * + * string contractAddr = 8; + * + * @return The bytes for contractAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (amount_ != 0L) { + output.writeUInt64(1, amount_); + } + if (gasLimit_ != 0L) { + output.writeUInt64(2, gasLimit_); + } + if (gasPrice_ != 0) { + output.writeUInt32(3, gasPrice_); + } + if (!code_.isEmpty()) { + output.writeBytes(4, code_); + } + if (!para_.isEmpty()) { + output.writeBytes(5, para_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, alias_); + } + if (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, note_); + } + if (!getContractAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, contractAddr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, amount_); + } + if (gasLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, gasLimit_); + } + if (gasPrice_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, gasPrice_); + } + if (!code_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, code_); + } + if (!para_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, para_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, alias_); + } + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, note_); + } + if (!getContractAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, contractAddr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction) obj; + + if (getAmount() != other.getAmount()) + return false; + if (getGasLimit() != other.getGasLimit()) + return false; + if (getGasPrice() != other.getGasPrice()) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!getPara().equals(other.getPara())) + return false; + if (!getAlias().equals(other.getAlias())) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getContractAddr().equals(other.getContractAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + GASLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGasLimit()); + hash = (37 * hash) + GASPRICE_FIELD_NUMBER; + hash = (53 * hash) + getGasPrice(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + PARA_FIELD_NUMBER; + hash = (53 * hash) + getPara().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EVMContractAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EVMContractAction) + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + amount_ = 0L; + + gasLimit_ = 0L; + + gasPrice_ = 0; + + code_ = com.google.protobuf.ByteString.EMPTY; + + para_ = com.google.protobuf.ByteString.EMPTY; + + alias_ = ""; + + note_ = ""; + + contractAddr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction build() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction( + this); + result.amount_ = amount_; + result.gasLimit_ = gasLimit_; + result.gasPrice_ = gasPrice_; + result.code_ = code_; + result.para_ = para_; + result.alias_ = alias_; + result.note_ = note_; + result.contractAddr_ = contractAddr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.getDefaultInstance()) + return this; + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getGasLimit() != 0L) { + setGasLimit(other.getGasLimit()); + } + if (other.getGasPrice() != 0) { + setGasPrice(other.getGasPrice()); + } + if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { + setCode(other.getCode()); + } + if (other.getPara() != com.google.protobuf.ByteString.EMPTY) { + setPara(other.getPara()); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + if (!other.getContractAddr().isEmpty()) { + contractAddr_ = other.contractAddr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long amount_; + + /** + *
+             * 转账金额
+             * 
+ * + * uint64 amount = 1; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + /** + *
+             * 转账金额
+             * 
+ * + * uint64 amount = 1; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + *
+             * 转账金额
+             * 
+ * + * uint64 amount = 1; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private long gasLimit_; + + /** + *
+             * 消耗限制,默认为Transaction.Fee
+             * 
+ * + * uint64 gasLimit = 2; + * + * @return The gasLimit. + */ + @java.lang.Override + public long getGasLimit() { + return gasLimit_; + } + + /** + *
+             * 消耗限制,默认为Transaction.Fee
+             * 
+ * + * uint64 gasLimit = 2; + * + * @param value + * The gasLimit to set. + * + * @return This builder for chaining. + */ + public Builder setGasLimit(long value) { + + gasLimit_ = value; + onChanged(); + return this; + } + + /** + *
+             * 消耗限制,默认为Transaction.Fee
+             * 
+ * + * uint64 gasLimit = 2; + * + * @return This builder for chaining. + */ + public Builder clearGasLimit() { + + gasLimit_ = 0L; + onChanged(); + return this; + } + + private int gasPrice_; + + /** + *
+             * gas价格,默认为1
+             * 
+ * + * uint32 gasPrice = 3; + * + * @return The gasPrice. + */ + @java.lang.Override + public int getGasPrice() { + return gasPrice_; + } + + /** + *
+             * gas价格,默认为1
+             * 
+ * + * uint32 gasPrice = 3; + * + * @param value + * The gasPrice to set. + * + * @return This builder for chaining. + */ + public Builder setGasPrice(int value) { + + gasPrice_ = value; + onChanged(); + return this; + } + + /** + *
+             * gas价格,默认为1
+             * 
+ * + * uint32 gasPrice = 3; + * + * @return This builder for chaining. + */ + public Builder clearGasPrice() { + + gasPrice_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 合约数据
+             * 
+ * + * bytes code = 4; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + /** + *
+             * 合约数据
+             * 
+ * + * bytes code = 4; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + + /** + *
+             * 合约数据
+             * 
+ * + * bytes code = 4; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString para_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 交易参数
+             * 
+ * + * bytes para = 5; + * + * @return The para. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPara() { + return para_; + } + + /** + *
+             * 交易参数
+             * 
+ * + * bytes para = 5; + * + * @param value + * The para to set. + * + * @return This builder for chaining. + */ + public Builder setPara(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + para_ = value; + onChanged(); + return this; + } + + /** + *
+             * 交易参数
+             * 
+ * + * bytes para = 5; + * + * @return This builder for chaining. + */ + public Builder clearPara() { + + para_ = getDefaultInstance().getPara(); + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + + /** + *
+             * 合约别名,方便识别
+             * 
+ * + * string alias = 6; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 合约别名,方便识别
+             * 
+ * + * string alias = 6; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 合约别名,方便识别
+             * 
+ * + * string alias = 6; + * + * @param value + * The alias to set. + * + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + + /** + *
+             * 合约别名,方便识别
+             * 
+ * + * string alias = 6; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + + /** + *
+             * 合约别名,方便识别
+             * 
+ * + * string alias = 6; + * + * @param value + * The bytes for alias to set. + * + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + + private java.lang.Object note_ = ""; + + /** + *
+             * 交易备注
+             * 
+ * + * string note = 7; + * + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 交易备注
+             * 
+ * + * string note = 7; + * + * @return The bytes for note. + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 交易备注
+             * 
+ * + * string note = 7; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + + /** + *
+             * 交易备注
+             * 
+ * + * string note = 7; + * + * @return This builder for chaining. + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + + /** + *
+             * 交易备注
+             * 
+ * + * string note = 7; + * + * @param value + * The bytes for note to set. + * + * @return This builder for chaining. + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + + private java.lang.Object contractAddr_ = ""; + + /** + *
+             * 调用合约地址
+             * 
+ * + * string contractAddr = 8; + * + * @return The contractAddr. + */ + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 调用合约地址
+             * 
+ * + * string contractAddr = 8; + * + * @return The bytes for contractAddr. + */ + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 调用合约地址
+             * 
+ * + * string contractAddr = 8; + * + * @param value + * The contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + + /** + *
+             * 调用合约地址
+             * 
+ * + * string contractAddr = 8; + * + * @return This builder for chaining. + */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + + /** + *
+             * 调用合约地址
+             * 
+ * + * string contractAddr = 8; + * + * @param value + * The bytes for contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractAddr_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EVMContractAction) + } + + // @@protoc_insertion_point(class_scope:EVMContractAction) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EVMContractAction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EVMContractAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptEVMContractOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptEVMContract) + com.google.protobuf.MessageOrBuilder { + + /** + * string caller = 1; + * + * @return The caller. + */ + java.lang.String getCaller(); + + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + com.google.protobuf.ByteString getCallerBytes(); + + /** + * string contractName = 2; + * + * @return The contractName. + */ + java.lang.String getContractName(); + + /** + * string contractName = 2; + * + * @return The bytes for contractName. + */ + com.google.protobuf.ByteString getContractNameBytes(); + + /** + * string contractAddr = 3; + * + * @return The contractAddr. + */ + java.lang.String getContractAddr(); + + /** + * string contractAddr = 3; + * + * @return The bytes for contractAddr. + */ + com.google.protobuf.ByteString getContractAddrBytes(); + + /** + * uint64 usedGas = 4; + * + * @return The usedGas. + */ + long getUsedGas(); + + /** + *
+         * 创建合约返回的代码
+         * 
+ * + * bytes ret = 5; + * + * @return The ret. + */ + com.google.protobuf.ByteString getRet(); + + /** + *
+         * json格式化后的返回值
+         * 
+ * + * string jsonRet = 6; + * + * @return The jsonRet. + */ + java.lang.String getJsonRet(); + + /** + *
+         * json格式化后的返回值
+         * 
+ * + * string jsonRet = 6; + * + * @return The bytes for jsonRet. + */ + com.google.protobuf.ByteString getJsonRetBytes(); + } + + /** + *
+     * 合约创建 / 调用日志
+     * 
+ * + * Protobuf type {@code ReceiptEVMContract} + */ + public static final class ReceiptEVMContract extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptEVMContract) + ReceiptEVMContractOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptEVMContract.newBuilder() to construct. + private ReceiptEVMContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptEVMContract() { + caller_ = ""; + contractName_ = ""; + contractAddr_ = ""; + ret_ = com.google.protobuf.ByteString.EMPTY; + jsonRet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptEVMContract(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptEVMContract(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + caller_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + contractName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + contractAddr_ = s; + break; + } + case 32: { + + usedGas_ = input.readUInt64(); + break; + } + case 42: { + + ret_ = input.readBytes(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + jsonRet_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.class, + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.Builder.class); + } + + public static final int CALLER_FIELD_NUMBER = 1; + private volatile java.lang.Object caller_; + + /** + * string caller = 1; + * + * @return The caller. + */ + @java.lang.Override + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } + } + + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTRACTNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object contractName_; + + /** + * string contractName = 2; + * + * @return The contractName. + */ + @java.lang.Override + public java.lang.String getContractName() { + java.lang.Object ref = contractName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractName_ = s; + return s; + } + } + + /** + * string contractName = 2; + * + * @return The bytes for contractName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractNameBytes() { + java.lang.Object ref = contractName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTRACTADDR_FIELD_NUMBER = 3; + private volatile java.lang.Object contractAddr_; + + /** + * string contractAddr = 3; + * + * @return The contractAddr. + */ + @java.lang.Override + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } + } + + /** + * string contractAddr = 3; + * + * @return The bytes for contractAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USEDGAS_FIELD_NUMBER = 4; + private long usedGas_; + + /** + * uint64 usedGas = 4; + * + * @return The usedGas. + */ + @java.lang.Override + public long getUsedGas() { + return usedGas_; + } + + public static final int RET_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString ret_; + + /** + *
+         * 创建合约返回的代码
+         * 
+ * + * bytes ret = 5; + * + * @return The ret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRet() { + return ret_; + } + + public static final int JSONRET_FIELD_NUMBER = 6; + private volatile java.lang.Object jsonRet_; + + /** + *
+         * json格式化后的返回值
+         * 
+ * + * string jsonRet = 6; + * + * @return The jsonRet. + */ + @java.lang.Override + public java.lang.String getJsonRet() { + java.lang.Object ref = jsonRet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonRet_ = s; + return s; + } + } + + /** + *
+         * json格式化后的返回值
+         * 
+ * + * string jsonRet = 6; + * + * @return The bytes for jsonRet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonRetBytes() { + java.lang.Object ref = jsonRet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jsonRet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCallerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caller_); + } + if (!getContractNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractName_); + } + if (!getContractAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractAddr_); + } + if (usedGas_ != 0L) { + output.writeUInt64(4, usedGas_); + } + if (!ret_.isEmpty()) { + output.writeBytes(5, ret_); + } + if (!getJsonRetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jsonRet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getCallerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caller_); + } + if (!getContractNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractName_); + } + if (!getContractAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractAddr_); + } + if (usedGas_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, usedGas_); + } + if (!ret_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, ret_); + } + if (!getJsonRetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, jsonRet_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract other = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract) obj; + + if (!getCaller().equals(other.getCaller())) + return false; + if (!getContractName().equals(other.getContractName())) + return false; + if (!getContractAddr().equals(other.getContractAddr())) + return false; + if (getUsedGas() != other.getUsedGas()) + return false; + if (!getRet().equals(other.getRet())) + return false; + if (!getJsonRet().equals(other.getJsonRet())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CALLER_FIELD_NUMBER; + hash = (53 * hash) + getCaller().hashCode(); + hash = (37 * hash) + CONTRACTNAME_FIELD_NUMBER; + hash = (53 * hash) + getContractName().hashCode(); + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + hash = (37 * hash) + USEDGAS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUsedGas()); + hash = (37 * hash) + RET_FIELD_NUMBER; + hash = (53 * hash) + getRet().hashCode(); + hash = (37 * hash) + JSONRET_FIELD_NUMBER; + hash = (53 * hash) + getJsonRet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptEVMContract} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptEVMContract) + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.class, + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + caller_ = ""; + + contractName_ = ""; + + contractAddr_ = ""; + + usedGas_ = 0L; + + ret_ = com.google.protobuf.ByteString.EMPTY; + + jsonRet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract build() { + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract result = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract( + this); + result.caller_ = caller_; + result.contractName_ = contractName_; + result.contractAddr_ = contractAddr_; + result.usedGas_ = usedGas_; + result.ret_ = ret_; + result.jsonRet_ = jsonRet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.getDefaultInstance()) + return this; + if (!other.getCaller().isEmpty()) { + caller_ = other.caller_; + onChanged(); + } + if (!other.getContractName().isEmpty()) { + contractName_ = other.contractName_; + onChanged(); + } + if (!other.getContractAddr().isEmpty()) { + contractAddr_ = other.contractAddr_; + onChanged(); + } + if (other.getUsedGas() != 0L) { + setUsedGas(other.getUsedGas()); + } + if (other.getRet() != com.google.protobuf.ByteString.EMPTY) { + setRet(other.getRet()); + } + if (!other.getJsonRet().isEmpty()) { + jsonRet_ = other.jsonRet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object caller_ = ""; + + /** + * string caller = 1; + * + * @return The caller. + */ + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string caller = 1; + * + * @param value + * The caller to set. + * + * @return This builder for chaining. + */ + public Builder setCaller(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + caller_ = value; + onChanged(); + return this; + } + + /** + * string caller = 1; + * + * @return This builder for chaining. + */ + public Builder clearCaller() { + + caller_ = getDefaultInstance().getCaller(); + onChanged(); + return this; + } + + /** + * string caller = 1; + * + * @param value + * The bytes for caller to set. + * + * @return This builder for chaining. + */ + public Builder setCallerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caller_ = value; + onChanged(); + return this; + } + + private java.lang.Object contractName_ = ""; + + /** + * string contractName = 2; + * + * @return The contractName. + */ + public java.lang.String getContractName() { + java.lang.Object ref = contractName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contractName = 2; + * + * @return The bytes for contractName. + */ + public com.google.protobuf.ByteString getContractNameBytes() { + java.lang.Object ref = contractName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contractName = 2; + * + * @param value + * The contractName to set. + * + * @return This builder for chaining. + */ + public Builder setContractName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractName_ = value; + onChanged(); + return this; + } + + /** + * string contractName = 2; + * + * @return This builder for chaining. + */ + public Builder clearContractName() { + + contractName_ = getDefaultInstance().getContractName(); + onChanged(); + return this; + } + + /** + * string contractName = 2; + * + * @param value + * The bytes for contractName to set. + * + * @return This builder for chaining. + */ + public Builder setContractNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractName_ = value; + onChanged(); + return this; + } + + private java.lang.Object contractAddr_ = ""; + + /** + * string contractAddr = 3; + * + * @return The contractAddr. + */ + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contractAddr = 3; + * + * @return The bytes for contractAddr. + */ + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contractAddr = 3; + * + * @param value + * The contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + + /** + * string contractAddr = 3; + * + * @return This builder for chaining. + */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + + /** + * string contractAddr = 3; + * + * @param value + * The bytes for contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractAddr_ = value; + onChanged(); + return this; + } + + private long usedGas_; + + /** + * uint64 usedGas = 4; + * + * @return The usedGas. + */ + @java.lang.Override + public long getUsedGas() { + return usedGas_; + } + + /** + * uint64 usedGas = 4; + * + * @param value + * The usedGas to set. + * + * @return This builder for chaining. + */ + public Builder setUsedGas(long value) { + + usedGas_ = value; + onChanged(); + return this; + } + + /** + * uint64 usedGas = 4; + * + * @return This builder for chaining. + */ + public Builder clearUsedGas() { + + usedGas_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString ret_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * bytes ret = 5; + * + * @return The ret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRet() { + return ret_; + } + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * bytes ret = 5; + * + * @param value + * The ret to set. + * + * @return This builder for chaining. + */ + public Builder setRet(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + ret_ = value; + onChanged(); + return this; + } + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * bytes ret = 5; + * + * @return This builder for chaining. + */ + public Builder clearRet() { + + ret_ = getDefaultInstance().getRet(); + onChanged(); + return this; + } + + private java.lang.Object jsonRet_ = ""; + + /** + *
+             * json格式化后的返回值
+             * 
+ * + * string jsonRet = 6; + * + * @return The jsonRet. + */ + public java.lang.String getJsonRet() { + java.lang.Object ref = jsonRet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonRet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * json格式化后的返回值
+             * 
+ * + * string jsonRet = 6; + * + * @return The bytes for jsonRet. + */ + public com.google.protobuf.ByteString getJsonRetBytes() { + java.lang.Object ref = jsonRet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + jsonRet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * json格式化后的返回值
+             * 
+ * + * string jsonRet = 6; + * + * @param value + * The jsonRet to set. + * + * @return This builder for chaining. + */ + public Builder setJsonRet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jsonRet_ = value; + onChanged(); + return this; + } + + /** + *
+             * json格式化后的返回值
+             * 
+ * + * string jsonRet = 6; + * + * @return This builder for chaining. + */ + public Builder clearJsonRet() { + + jsonRet_ = getDefaultInstance().getJsonRet(); + onChanged(); + return this; + } + + /** + *
+             * json格式化后的返回值
+             * 
+ * + * string jsonRet = 6; + * + * @param value + * The bytes for jsonRet to set. + * + * @return This builder for chaining. + */ + public Builder setJsonRetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jsonRet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptEVMContract) + } + + // @@protoc_insertion_point(class_scope:ReceiptEVMContract) + private static final cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptEVMContract parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptEVMContract(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EVMStateChangeItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:EVMStateChangeItem) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * bytes preValue = 2; + * + * @return The preValue. + */ + com.google.protobuf.ByteString getPreValue(); + + /** + * bytes currentValue = 3; + * + * @return The currentValue. + */ + com.google.protobuf.ByteString getCurrentValue(); + } + + /** + *
+     * 用于保存EVM只能合约中的状态数据变更
+     * 
+ * + * Protobuf type {@code EVMStateChangeItem} + */ + public static final class EVMStateChangeItem extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EVMStateChangeItem) + EVMStateChangeItemOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EVMStateChangeItem.newBuilder() to construct. + private EVMStateChangeItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EVMStateChangeItem() { + key_ = ""; + preValue_ = com.google.protobuf.ByteString.EMPTY; + currentValue_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EVMStateChangeItem(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EVMStateChangeItem(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + + preValue_ = input.readBytes(); + break; + } + case 26: { + + currentValue_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREVALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString preValue_; + + /** + * bytes preValue = 2; + * + * @return The preValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreValue() { + return preValue_; + } + + public static final int CURRENTVALUE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString currentValue_; + + /** + * bytes currentValue = 3; + * + * @return The currentValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentValue() { + return currentValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!preValue_.isEmpty()) { + output.writeBytes(2, preValue_); + } + if (!currentValue_.isEmpty()) { + output.writeBytes(3, currentValue_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!preValue_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, preValue_); + } + if (!currentValue_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, currentValue_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getPreValue().equals(other.getPreValue())) + return false; + if (!getCurrentValue().equals(other.getCurrentValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + PREVALUE_FIELD_NUMBER; + hash = (53 * hash) + getPreValue().hashCode(); + hash = (37 * hash) + CURRENTVALUE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 用于保存EVM只能合约中的状态数据变更
+         * 
+ * + * Protobuf type {@code EVMStateChangeItem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EVMStateChangeItem) + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + preValue_ = com.google.protobuf.ByteString.EMPTY; + + currentValue_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem build() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem( + this); + result.key_ = key_; + result.preValue_ = preValue_; + result.currentValue_ = currentValue_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getPreValue() != com.google.protobuf.ByteString.EMPTY) { + setPreValue(other.getPreValue()); + } + if (other.getCurrentValue() != com.google.protobuf.ByteString.EMPTY) { + setCurrentValue(other.getCurrentValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString preValue_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes preValue = 2; + * + * @return The preValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreValue() { + return preValue_; + } + + /** + * bytes preValue = 2; + * + * @param value + * The preValue to set. + * + * @return This builder for chaining. + */ + public Builder setPreValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + preValue_ = value; + onChanged(); + return this; + } + + /** + * bytes preValue = 2; + * + * @return This builder for chaining. + */ + public Builder clearPreValue() { + + preValue_ = getDefaultInstance().getPreValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString currentValue_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes currentValue = 3; + * + * @return The currentValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentValue() { + return currentValue_; + } + + /** + * bytes currentValue = 3; + * + * @param value + * The currentValue to set. + * + * @return This builder for chaining. + */ + public Builder setCurrentValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + currentValue_ = value; + onChanged(); + return this; + } + + /** + * bytes currentValue = 3; + * + * @return This builder for chaining. + */ + public Builder clearCurrentValue() { + + currentValue_ = getDefaultInstance().getCurrentValue(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EVMStateChangeItem) + } + + // @@protoc_insertion_point(class_scope:EVMStateChangeItem) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EVMStateChangeItem parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EVMStateChangeItem(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EVMContractDataCmdOrBuilder extends + // @@protoc_insertion_point(interface_extends:EVMContractDataCmd) + com.google.protobuf.MessageOrBuilder { + + /** + * string creator = 1; + * + * @return The creator. + */ + java.lang.String getCreator(); + + /** + * string creator = 1; + * + * @return The bytes for creator. + */ + com.google.protobuf.ByteString getCreatorBytes(); + + /** + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string alias = 3; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * string alias = 3; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); + + /** + * string addr = 4; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + * string code = 5; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + * string code = 5; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + + /** + * string codeHash = 6; + * + * @return The codeHash. + */ + java.lang.String getCodeHash(); + + /** + * string codeHash = 6; + * + * @return The bytes for codeHash. + */ + com.google.protobuf.ByteString getCodeHashBytes(); + } + + /** + *
+     * 存放合约固定数据
+     * 
+ * + * Protobuf type {@code EVMContractDataCmd} + */ + public static final class EVMContractDataCmd extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EVMContractDataCmd) + EVMContractDataCmdOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EVMContractDataCmd.newBuilder() to construct. + private EVMContractDataCmd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EVMContractDataCmd() { + creator_ = ""; + name_ = ""; + alias_ = ""; + addr_ = ""; + code_ = ""; + codeHash_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EVMContractDataCmd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EVMContractDataCmd(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + creator_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + codeHash_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.Builder.class); + } + + public static final int CREATOR_FIELD_NUMBER = 1; + private volatile java.lang.Object creator_; + + /** + * string creator = 1; + * + * @return The creator. + */ + @java.lang.Override + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } + } + + /** + * string creator = 1; + * + * @return The bytes for creator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + + /** + * string name = 2; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 2; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 3; + private volatile java.lang.Object alias_; + + /** + * string alias = 3; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + + /** + * string alias = 3; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDR_FIELD_NUMBER = 4; + private volatile java.lang.Object addr_; + + /** + * string addr = 4; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 5; + private volatile java.lang.Object code_; + + /** + * string code = 5; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + + /** + * string code = 5; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODEHASH_FIELD_NUMBER = 6; + private volatile java.lang.Object codeHash_; + + /** + * string codeHash = 6; + * + * @return The codeHash. + */ + @java.lang.Override + public java.lang.String getCodeHash() { + java.lang.Object ref = codeHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + codeHash_ = s; + return s; + } + } + + /** + * string codeHash = 6; + * + * @return The bytes for codeHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeHashBytes() { + java.lang.Object ref = codeHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + codeHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCreatorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, creator_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alias_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); + } + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, code_); + } + if (!getCodeHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, codeHash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getCreatorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, creator_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); + } + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, code_); + } + if (!getCodeHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, codeHash_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd) obj; + + if (!getCreator().equals(other.getCreator())) + return false; + if (!getName().equals(other.getName())) + return false; + if (!getAlias().equals(other.getAlias())) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!getCodeHash().equals(other.getCodeHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CREATOR_FIELD_NUMBER; + hash = (53 * hash) + getCreator().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + CODEHASH_FIELD_NUMBER; + hash = (53 * hash) + getCodeHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EVMContractDataCmd} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EVMContractDataCmd) + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + creator_ = ""; + + name_ = ""; + + alias_ = ""; + + addr_ = ""; + + code_ = ""; + + codeHash_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd build() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd( + this); + result.creator_ = creator_; + result.name_ = name_; + result.alias_ = alias_; + result.addr_ = addr_; + result.code_ = code_; + result.codeHash_ = codeHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.getDefaultInstance()) + return this; + if (!other.getCreator().isEmpty()) { + creator_ = other.creator_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getCodeHash().isEmpty()) { + codeHash_ = other.codeHash_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object creator_ = ""; + + /** + * string creator = 1; + * + * @return The creator. + */ + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string creator = 1; + * + * @return The bytes for creator. + */ + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string creator = 1; + * + * @param value + * The creator to set. + * + * @return This builder for chaining. + */ + public Builder setCreator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + creator_ = value; + onChanged(); + return this; + } + + /** + * string creator = 1; + * + * @return This builder for chaining. + */ + public Builder clearCreator() { + + creator_ = getDefaultInstance().getCreator(); + onChanged(); + return this; + } + + /** + * string creator = 1; + * + * @param value + * The bytes for creator to set. + * + * @return This builder for chaining. + */ + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + creator_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 2; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 2; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + + /** + * string alias = 3; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string alias = 3; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string alias = 3; + * + * @param value + * The alias to set. + * + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + + /** + * string alias = 3; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + + /** + * string alias = 3; + * + * @param value + * The bytes for alias to set. + * + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 4; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 4; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private java.lang.Object code_ = ""; + + /** + * string code = 5; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string code = 5; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string code = 5; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + + /** + * string code = 5; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + /** + * string code = 5; + * + * @param value + * The bytes for code to set. + * + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object codeHash_ = ""; + + /** + * string codeHash = 6; + * + * @return The codeHash. + */ + public java.lang.String getCodeHash() { + java.lang.Object ref = codeHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + codeHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string codeHash = 6; + * + * @return The bytes for codeHash. + */ + public com.google.protobuf.ByteString getCodeHashBytes() { + java.lang.Object ref = codeHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + codeHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string codeHash = 6; + * + * @param value + * The codeHash to set. + * + * @return This builder for chaining. + */ + public Builder setCodeHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + codeHash_ = value; + onChanged(); + return this; + } + + /** + * string codeHash = 6; + * + * @return This builder for chaining. + */ + public Builder clearCodeHash() { + + codeHash_ = getDefaultInstance().getCodeHash(); + onChanged(); + return this; + } + + /** + * string codeHash = 6; + * + * @param value + * The bytes for codeHash to set. + * + * @return This builder for chaining. + */ + public Builder setCodeHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + codeHash_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EVMContractDataCmd) + } + + // @@protoc_insertion_point(class_scope:EVMContractDataCmd) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EVMContractDataCmd parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EVMContractDataCmd(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EVMContractStateCmdOrBuilder extends + // @@protoc_insertion_point(interface_extends:EVMContractStateCmd) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); + + /** + * bool suicided = 2; + * + * @return The suicided. + */ + boolean getSuicided(); + + /** + * string storageHash = 3; + * + * @return The storageHash. + */ + java.lang.String getStorageHash(); + + /** + * string storageHash = 3; + * + * @return The bytes for storageHash. + */ + com.google.protobuf.ByteString getStorageHashBytes(); + + /** + * map<string, string> storage = 4; + */ + int getStorageCount(); + + /** + * map<string, string> storage = 4; + */ + boolean containsStorage(java.lang.String key); + + /** + * Use {@link #getStorageMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getStorage(); + + /** + * map<string, string> storage = 4; + */ + java.util.Map getStorageMap(); + + /** + * map<string, string> storage = 4; + */ + + java.lang.String getStorageOrDefault(java.lang.String key, java.lang.String defaultValue); + + /** + * map<string, string> storage = 4; + */ + + java.lang.String getStorageOrThrow(java.lang.String key); + } + + /** + *
+     * 存放合约变化数据
+     * 
+ * + * Protobuf type {@code EVMContractStateCmd} + */ + public static final class EVMContractStateCmd extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EVMContractStateCmd) + EVMContractStateCmdOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EVMContractStateCmd.newBuilder() to construct. + private EVMContractStateCmd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EVMContractStateCmd() { + storageHash_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EVMContractStateCmd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EVMContractStateCmd(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + nonce_ = input.readUInt64(); + break; + } + case 16: { + + suicided_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + storageHash_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + storage_ = com.google.protobuf.MapField.newMapField(StorageDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry storage__ = input.readMessage( + StorageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + storage_.getMutableMap().put(storage__.getKey(), storage__.getValue()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetStorage(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.Builder.class); + } + + public static final int NONCE_FIELD_NUMBER = 1; + private long nonce_; + + /** + * uint64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + public static final int SUICIDED_FIELD_NUMBER = 2; + private boolean suicided_; + + /** + * bool suicided = 2; + * + * @return The suicided. + */ + @java.lang.Override + public boolean getSuicided() { + return suicided_; + } + + public static final int STORAGEHASH_FIELD_NUMBER = 3; + private volatile java.lang.Object storageHash_; + + /** + * string storageHash = 3; + * + * @return The storageHash. + */ + @java.lang.Override + public java.lang.String getStorageHash() { + java.lang.Object ref = storageHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageHash_ = s; + return s; + } + } + + /** + * string storageHash = 3; + * + * @return The bytes for storageHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageHashBytes() { + java.lang.Object ref = storageHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_FIELD_NUMBER = 4; + + private static final class StorageDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_StorageEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.STRING, ""); + } + + private com.google.protobuf.MapField storage_; + + private com.google.protobuf.MapField internalGetStorage() { + if (storage_ == null) { + return com.google.protobuf.MapField.emptyMapField(StorageDefaultEntryHolder.defaultEntry); + } + return storage_; + } + + public int getStorageCount() { + return internalGetStorage().getMap().size(); + } + + /** + * map<string, string> storage = 4; + */ + + @java.lang.Override + public boolean containsStorage(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetStorage().getMap().containsKey(key); + } + + /** + * Use {@link #getStorageMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStorage() { + return getStorageMap(); + } + + /** + * map<string, string> storage = 4; + */ + @java.lang.Override + + public java.util.Map getStorageMap() { + return internalGetStorage().getMap(); + } + + /** + * map<string, string> storage = 4; + */ + @java.lang.Override + + public java.lang.String getStorageOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * map<string, string> storage = 4; + */ + @java.lang.Override + + public java.lang.String getStorageOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeUInt64(1, nonce_); + } + if (suicided_ != false) { + output.writeBool(2, suicided_); + } + if (!getStorageHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, storageHash_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(output, internalGetStorage(), + StorageDefaultEntryHolder.defaultEntry, 4); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nonce_); + } + if (suicided_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, suicided_); + } + if (!getStorageHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, storageHash_); + } + for (java.util.Map.Entry entry : internalGetStorage().getMap() + .entrySet()) { + com.google.protobuf.MapEntry storage__ = StorageDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, storage__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd) obj; + + if (getNonce() != other.getNonce()) + return false; + if (getSuicided() != other.getSuicided()) + return false; + if (!getStorageHash().equals(other.getStorageHash())) + return false; + if (!internalGetStorage().equals(other.internalGetStorage())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @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) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (37 * hash) + SUICIDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuicided()); + hash = (37 * hash) + STORAGEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStorageHash().hashCode(); + if (!internalGetStorage().getMap().isEmpty()) { + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + internalGetStorage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EVMContractStateCmd} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EVMContractStateCmd) + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetStorage(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableStorage(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.class, + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + suicided_ = false; + + storageHash_ = ""; + + internalGetMutableStorage().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd build() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd( + this); + int from_bitField0_ = bitField0_; + result.nonce_ = nonce_; + result.suicided_ = suicided_; + result.storageHash_ = storageHash_; + result.storage_ = internalGetStorage(); + result.storage_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (other.getSuicided() != false) { + setSuicided(other.getSuicided()); + } + if (!other.getStorageHash().isEmpty()) { + storageHash_ = other.storageHash_; + onChanged(); + } + internalGetMutableStorage().mergeFrom(other.internalGetStorage()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long nonce_; + + /** + * uint64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + * uint64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + * uint64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + private boolean suicided_; + + /** + * bool suicided = 2; + * + * @return The suicided. + */ + @java.lang.Override + public boolean getSuicided() { + return suicided_; + } + + /** + * bool suicided = 2; + * + * @param value + * The suicided to set. + * + * @return This builder for chaining. + */ + public Builder setSuicided(boolean value) { + + suicided_ = value; + onChanged(); + return this; + } + + /** + * bool suicided = 2; + * + * @return This builder for chaining. + */ + public Builder clearSuicided() { + + suicided_ = false; + onChanged(); + return this; + } + + private java.lang.Object storageHash_ = ""; + + /** + * string storageHash = 3; + * + * @return The storageHash. + */ + public java.lang.String getStorageHash() { + java.lang.Object ref = storageHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string storageHash = 3; + * + * @return The bytes for storageHash. + */ + public com.google.protobuf.ByteString getStorageHashBytes() { + java.lang.Object ref = storageHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + storageHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string storageHash = 3; + * + * @param value + * The storageHash to set. + * + * @return This builder for chaining. + */ + public Builder setStorageHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storageHash_ = value; + onChanged(); + return this; + } + + /** + * string storageHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearStorageHash() { + + storageHash_ = getDefaultInstance().getStorageHash(); + onChanged(); + return this; + } + + /** + * string storageHash = 3; + * + * @param value + * The bytes for storageHash to set. + * + * @return This builder for chaining. + */ + public Builder setStorageHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storageHash_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField storage_; + + private com.google.protobuf.MapField internalGetStorage() { + if (storage_ == null) { + return com.google.protobuf.MapField.emptyMapField(StorageDefaultEntryHolder.defaultEntry); + } + return storage_; + } + + private com.google.protobuf.MapField internalGetMutableStorage() { + onChanged(); + ; + if (storage_ == null) { + storage_ = com.google.protobuf.MapField.newMapField(StorageDefaultEntryHolder.defaultEntry); + } + if (!storage_.isMutable()) { + storage_ = storage_.copy(); + } + return storage_; + } + + public int getStorageCount() { + return internalGetStorage().getMap().size(); + } + + /** + * map<string, string> storage = 4; + */ + + @java.lang.Override + public boolean containsStorage(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetStorage().getMap().containsKey(key); + } + + /** + * Use {@link #getStorageMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStorage() { + return getStorageMap(); + } + + /** + * map<string, string> storage = 4; + */ + @java.lang.Override + + public java.util.Map getStorageMap() { + return internalGetStorage().getMap(); + } + + /** + * map<string, string> storage = 4; + */ + @java.lang.Override + + public java.lang.String getStorageOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * map<string, string> storage = 4; + */ + @java.lang.Override + + public java.lang.String getStorageOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetStorage().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearStorage() { + internalGetMutableStorage().getMutableMap().clear(); + return this; + } + + /** + * map<string, string> storage = 4; + */ + + public Builder removeStorage(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableStorage().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableStorage() { + return internalGetMutableStorage().getMutableMap(); + } + + /** + * map<string, string> storage = 4; + */ + public Builder putStorage(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableStorage().getMutableMap().put(key, value); + return this; + } + + /** + * map<string, string> storage = 4; + */ + + public Builder putAllStorage(java.util.Map values) { + internalGetMutableStorage().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EVMContractStateCmd) + } + + // @@protoc_insertion_point(class_scope:EVMContractStateCmd) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EVMContractStateCmd parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EVMContractStateCmd(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptEVMContractCmdOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptEVMContractCmd) + com.google.protobuf.MessageOrBuilder { + + /** + * string caller = 1; + * + * @return The caller. + */ + java.lang.String getCaller(); + + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + com.google.protobuf.ByteString getCallerBytes(); + + /** + *
+         * 合约创建时才会返回此内容
+         * 
+ * + * string contractName = 2; + * + * @return The contractName. + */ + java.lang.String getContractName(); + + /** + *
+         * 合约创建时才会返回此内容
+         * 
+ * + * string contractName = 2; + * + * @return The bytes for contractName. + */ + com.google.protobuf.ByteString getContractNameBytes(); + + /** + * string contractAddr = 3; + * + * @return The contractAddr. + */ + java.lang.String getContractAddr(); + + /** + * string contractAddr = 3; + * + * @return The bytes for contractAddr. + */ + com.google.protobuf.ByteString getContractAddrBytes(); + + /** + * uint64 usedGas = 4; + * + * @return The usedGas. + */ + long getUsedGas(); + + /** + *
+         * 创建合约返回的代码
+         * 
+ * + * string ret = 5; + * + * @return The ret. + */ + java.lang.String getRet(); + + /** + *
+         * 创建合约返回的代码
+         * 
+ * + * string ret = 5; + * + * @return The bytes for ret. + */ + com.google.protobuf.ByteString getRetBytes(); + } + + /** + *
+     * 合约创建 / 调用日志
+     * 
+ * + * Protobuf type {@code ReceiptEVMContractCmd} + */ + public static final class ReceiptEVMContractCmd extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptEVMContractCmd) + ReceiptEVMContractCmdOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptEVMContractCmd.newBuilder() to construct. + private ReceiptEVMContractCmd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptEVMContractCmd() { + caller_ = ""; + contractName_ = ""; + contractAddr_ = ""; + ret_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptEVMContractCmd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptEVMContractCmd(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + caller_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + contractName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + contractAddr_ = s; + break; + } + case 32: { + + usedGas_ = input.readUInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + ret_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.class, + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.Builder.class); + } + + public static final int CALLER_FIELD_NUMBER = 1; + private volatile java.lang.Object caller_; + + /** + * string caller = 1; + * + * @return The caller. + */ + @java.lang.Override + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } + } + + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTRACTNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object contractName_; + + /** + *
+         * 合约创建时才会返回此内容
+         * 
+ * + * string contractName = 2; + * + * @return The contractName. + */ + @java.lang.Override + public java.lang.String getContractName() { + java.lang.Object ref = contractName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractName_ = s; + return s; + } + } + + /** + *
+         * 合约创建时才会返回此内容
+         * 
+ * + * string contractName = 2; + * + * @return The bytes for contractName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractNameBytes() { + java.lang.Object ref = contractName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTRACTADDR_FIELD_NUMBER = 3; + private volatile java.lang.Object contractAddr_; + + /** + * string contractAddr = 3; + * + * @return The contractAddr. + */ + @java.lang.Override + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } + } + + /** + * string contractAddr = 3; + * + * @return The bytes for contractAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USEDGAS_FIELD_NUMBER = 4; + private long usedGas_; + + /** + * uint64 usedGas = 4; + * + * @return The usedGas. + */ + @java.lang.Override + public long getUsedGas() { + return usedGas_; + } + + public static final int RET_FIELD_NUMBER = 5; + private volatile java.lang.Object ret_; + + /** + *
+         * 创建合约返回的代码
+         * 
+ * + * string ret = 5; + * + * @return The ret. + */ + @java.lang.Override + public java.lang.String getRet() { + java.lang.Object ref = ret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ret_ = s; + return s; + } + } + + /** + *
+         * 创建合约返回的代码
+         * 
+ * + * string ret = 5; + * + * @return The bytes for ret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRetBytes() { + java.lang.Object ref = ret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCallerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caller_); + } + if (!getContractNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractName_); + } + if (!getContractAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractAddr_); + } + if (usedGas_ != 0L) { + output.writeUInt64(4, usedGas_); + } + if (!getRetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ret_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getCallerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caller_); + } + if (!getContractNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractName_); + } + if (!getContractAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractAddr_); + } + if (usedGas_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, usedGas_); + } + if (!getRetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ret_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd other = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd) obj; + + if (!getCaller().equals(other.getCaller())) + return false; + if (!getContractName().equals(other.getContractName())) + return false; + if (!getContractAddr().equals(other.getContractAddr())) + return false; + if (getUsedGas() != other.getUsedGas()) + return false; + if (!getRet().equals(other.getRet())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CALLER_FIELD_NUMBER; + hash = (53 * hash) + getCaller().hashCode(); + hash = (37 * hash) + CONTRACTNAME_FIELD_NUMBER; + hash = (53 * hash) + getContractName().hashCode(); + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + hash = (37 * hash) + USEDGAS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUsedGas()); + hash = (37 * hash) + RET_FIELD_NUMBER; + hash = (53 * hash) + getRet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptEVMContractCmd} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptEVMContractCmd) + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.class, + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + caller_ = ""; + + contractName_ = ""; + + contractAddr_ = ""; + + usedGas_ = 0L; + + ret_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd build() { + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd result = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd( + this); + result.caller_ = caller_; + result.contractName_ = contractName_; + result.contractAddr_ = contractAddr_; + result.usedGas_ = usedGas_; + result.ret_ = ret_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.getDefaultInstance()) + return this; + if (!other.getCaller().isEmpty()) { + caller_ = other.caller_; + onChanged(); + } + if (!other.getContractName().isEmpty()) { + contractName_ = other.contractName_; + onChanged(); + } + if (!other.getContractAddr().isEmpty()) { + contractAddr_ = other.contractAddr_; + onChanged(); + } + if (other.getUsedGas() != 0L) { + setUsedGas(other.getUsedGas()); + } + if (!other.getRet().isEmpty()) { + ret_ = other.ret_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object caller_ = ""; + + /** + * string caller = 1; + * + * @return The caller. + */ + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string caller = 1; + * + * @param value + * The caller to set. + * + * @return This builder for chaining. + */ + public Builder setCaller(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + caller_ = value; + onChanged(); + return this; + } + + /** + * string caller = 1; + * + * @return This builder for chaining. + */ + public Builder clearCaller() { + + caller_ = getDefaultInstance().getCaller(); + onChanged(); + return this; + } + + /** + * string caller = 1; + * + * @param value + * The bytes for caller to set. + * + * @return This builder for chaining. + */ + public Builder setCallerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caller_ = value; + onChanged(); + return this; + } + + private java.lang.Object contractName_ = ""; + + /** + *
+             * 合约创建时才会返回此内容
+             * 
+ * + * string contractName = 2; + * + * @return The contractName. + */ + public java.lang.String getContractName() { + java.lang.Object ref = contractName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 合约创建时才会返回此内容
+             * 
+ * + * string contractName = 2; + * + * @return The bytes for contractName. + */ + public com.google.protobuf.ByteString getContractNameBytes() { + java.lang.Object ref = contractName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 合约创建时才会返回此内容
+             * 
+ * + * string contractName = 2; + * + * @param value + * The contractName to set. + * + * @return This builder for chaining. + */ + public Builder setContractName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractName_ = value; + onChanged(); + return this; + } + + /** + *
+             * 合约创建时才会返回此内容
+             * 
+ * + * string contractName = 2; + * + * @return This builder for chaining. + */ + public Builder clearContractName() { + + contractName_ = getDefaultInstance().getContractName(); + onChanged(); + return this; + } + + /** + *
+             * 合约创建时才会返回此内容
+             * 
+ * + * string contractName = 2; + * + * @param value + * The bytes for contractName to set. + * + * @return This builder for chaining. + */ + public Builder setContractNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractName_ = value; + onChanged(); + return this; + } + + private java.lang.Object contractAddr_ = ""; + + /** + * string contractAddr = 3; + * + * @return The contractAddr. + */ + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contractAddr = 3; + * + * @return The bytes for contractAddr. + */ + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contractAddr = 3; + * + * @param value + * The contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + + /** + * string contractAddr = 3; + * + * @return This builder for chaining. + */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + + /** + * string contractAddr = 3; + * + * @param value + * The bytes for contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractAddr_ = value; + onChanged(); + return this; + } + + private long usedGas_; + + /** + * uint64 usedGas = 4; + * + * @return The usedGas. + */ + @java.lang.Override + public long getUsedGas() { + return usedGas_; + } + + /** + * uint64 usedGas = 4; + * + * @param value + * The usedGas to set. + * + * @return This builder for chaining. + */ + public Builder setUsedGas(long value) { + + usedGas_ = value; + onChanged(); + return this; + } + + /** + * uint64 usedGas = 4; + * + * @return This builder for chaining. + */ + public Builder clearUsedGas() { + + usedGas_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object ret_ = ""; + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * string ret = 5; + * + * @return The ret. + */ + public java.lang.String getRet() { + java.lang.Object ref = ret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * string ret = 5; + * + * @return The bytes for ret. + */ + public com.google.protobuf.ByteString getRetBytes() { + java.lang.Object ref = ret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * string ret = 5; + * + * @param value + * The ret to set. + * + * @return This builder for chaining. + */ + public Builder setRet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ret_ = value; + onChanged(); + return this; + } + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * string ret = 5; + * + * @return This builder for chaining. + */ + public Builder clearRet() { + + ret_ = getDefaultInstance().getRet(); + onChanged(); + return this; + } + + /** + *
+             * 创建合约返回的代码
+             * 
+ * + * string ret = 5; + * + * @param value + * The bytes for ret to set. + * + * @return This builder for chaining. + */ + public Builder setRetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ret_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptEVMContractCmd) + } + + // @@protoc_insertion_point(class_scope:ReceiptEVMContractCmd) + private static final cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptEVMContractCmd parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptEVMContractCmd(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CheckEVMAddrReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:CheckEVMAddrReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + } + + /** + * Protobuf type {@code CheckEVMAddrReq} + */ + public static final class CheckEVMAddrReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CheckEVMAddrReq) + CheckEVMAddrReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CheckEVMAddrReq.newBuilder() to construct. + private CheckEVMAddrReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckEVMAddrReq() { + addr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckEVMAddrReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckEVMAddrReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.Builder.class); + } + + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; + + /** + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq other = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 CheckEVMAddrReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CheckEVMAddrReq) + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq result = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq( + this); + result.addr_ = addr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CheckEVMAddrReq) + } + + // @@protoc_insertion_point(class_scope:CheckEVMAddrReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckEVMAddrReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckEVMAddrReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CheckEVMAddrRespOrBuilder extends + // @@protoc_insertion_point(interface_extends:CheckEVMAddrResp) + com.google.protobuf.MessageOrBuilder { + + /** + * bool contract = 1; + * + * @return The contract. + */ + boolean getContract(); + + /** + * string contractAddr = 2; + * + * @return The contractAddr. + */ + java.lang.String getContractAddr(); + + /** + * string contractAddr = 2; + * + * @return The bytes for contractAddr. + */ + com.google.protobuf.ByteString getContractAddrBytes(); + + /** + * string contractName = 3; + * + * @return The contractName. + */ + java.lang.String getContractName(); + + /** + * string contractName = 3; + * + * @return The bytes for contractName. + */ + com.google.protobuf.ByteString getContractNameBytes(); + + /** + * string aliasName = 4; + * + * @return The aliasName. + */ + java.lang.String getAliasName(); + + /** + * string aliasName = 4; + * + * @return The bytes for aliasName. + */ + com.google.protobuf.ByteString getAliasNameBytes(); + } + + /** + * Protobuf type {@code CheckEVMAddrResp} + */ + public static final class CheckEVMAddrResp extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CheckEVMAddrResp) + CheckEVMAddrRespOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CheckEVMAddrResp.newBuilder() to construct. + private CheckEVMAddrResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckEVMAddrResp() { + contractAddr_ = ""; + contractName_ = ""; + aliasName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckEVMAddrResp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckEVMAddrResp(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + contract_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + contractAddr_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + contractName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + aliasName_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.Builder.class); + } + + public static final int CONTRACT_FIELD_NUMBER = 1; + private boolean contract_; + + /** + * bool contract = 1; + * + * @return The contract. + */ + @java.lang.Override + public boolean getContract() { + return contract_; + } + + public static final int CONTRACTADDR_FIELD_NUMBER = 2; + private volatile java.lang.Object contractAddr_; + + /** + * string contractAddr = 2; + * + * @return The contractAddr. + */ + @java.lang.Override + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } + } + + /** + * string contractAddr = 2; + * + * @return The bytes for contractAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTRACTNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object contractName_; + + /** + * string contractName = 3; + * + * @return The contractName. + */ + @java.lang.Override + public java.lang.String getContractName() { + java.lang.Object ref = contractName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractName_ = s; + return s; + } + } + + /** + * string contractName = 3; + * + * @return The bytes for contractName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractNameBytes() { + java.lang.Object ref = contractName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIASNAME_FIELD_NUMBER = 4; + private volatile java.lang.Object aliasName_; + + /** + * string aliasName = 4; + * + * @return The aliasName. + */ + @java.lang.Override + public java.lang.String getAliasName() { + java.lang.Object ref = aliasName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aliasName_ = s; + return s; + } + } + + /** + * string aliasName = 4; + * + * @return The bytes for aliasName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasNameBytes() { + java.lang.Object ref = aliasName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aliasName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contract_ != false) { + output.writeBool(1, contract_); + } + if (!getContractAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractAddr_); + } + if (!getContractNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractName_); + } + if (!getAliasNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, aliasName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (contract_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, contract_); + } + if (!getContractAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractAddr_); + } + if (!getContractNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractName_); + } + if (!getAliasNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, aliasName_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp other = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp) obj; + + if (getContract() != other.getContract()) + return false; + if (!getContractAddr().equals(other.getContractAddr())) + return false; + if (!getContractName().equals(other.getContractName())) + return false; + if (!getAliasName().equals(other.getAliasName())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTRACT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContract()); + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + hash = (37 * hash) + CONTRACTNAME_FIELD_NUMBER; + hash = (53 * hash) + getContractName().hashCode(); + hash = (37 * hash) + ALIASNAME_FIELD_NUMBER; + hash = (53 * hash) + getAliasName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 CheckEVMAddrResp} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CheckEVMAddrResp) + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrRespOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + contract_ = false; + + contractAddr_ = ""; + + contractName_ = ""; + + aliasName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp build() { + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp result = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp( + this); + result.contract_ = contract_; + result.contractAddr_ = contractAddr_; + result.contractName_ = contractName_; + result.aliasName_ = aliasName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.getDefaultInstance()) + return this; + if (other.getContract() != false) { + setContract(other.getContract()); + } + if (!other.getContractAddr().isEmpty()) { + contractAddr_ = other.contractAddr_; + onChanged(); + } + if (!other.getContractName().isEmpty()) { + contractName_ = other.contractName_; + onChanged(); + } + if (!other.getAliasName().isEmpty()) { + aliasName_ = other.aliasName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean contract_; + + /** + * bool contract = 1; + * + * @return The contract. + */ + @java.lang.Override + public boolean getContract() { + return contract_; + } + + /** + * bool contract = 1; + * + * @param value + * The contract to set. + * + * @return This builder for chaining. + */ + public Builder setContract(boolean value) { + + contract_ = value; + onChanged(); + return this; + } + + /** + * bool contract = 1; + * + * @return This builder for chaining. + */ + public Builder clearContract() { + + contract_ = false; + onChanged(); + return this; + } + + private java.lang.Object contractAddr_ = ""; + + /** + * string contractAddr = 2; + * + * @return The contractAddr. + */ + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contractAddr = 2; + * + * @return The bytes for contractAddr. + */ + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contractAddr = 2; + * + * @param value + * The contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + + /** + * string contractAddr = 2; + * + * @return This builder for chaining. + */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + + /** + * string contractAddr = 2; + * + * @param value + * The bytes for contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractAddr_ = value; + onChanged(); + return this; + } + + private java.lang.Object contractName_ = ""; + + /** + * string contractName = 3; + * + * @return The contractName. + */ + public java.lang.String getContractName() { + java.lang.Object ref = contractName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contractName = 3; + * + * @return The bytes for contractName. + */ + public com.google.protobuf.ByteString getContractNameBytes() { + java.lang.Object ref = contractName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contractName = 3; + * + * @param value + * The contractName to set. + * + * @return This builder for chaining. + */ + public Builder setContractName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractName_ = value; + onChanged(); + return this; + } + + /** + * string contractName = 3; + * + * @return This builder for chaining. + */ + public Builder clearContractName() { + + contractName_ = getDefaultInstance().getContractName(); + onChanged(); + return this; + } + + /** + * string contractName = 3; + * + * @param value + * The bytes for contractName to set. + * + * @return This builder for chaining. + */ + public Builder setContractNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractName_ = value; + onChanged(); + return this; + } + + private java.lang.Object aliasName_ = ""; + + /** + * string aliasName = 4; + * + * @return The aliasName. + */ + public java.lang.String getAliasName() { + java.lang.Object ref = aliasName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aliasName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string aliasName = 4; + * + * @return The bytes for aliasName. + */ + public com.google.protobuf.ByteString getAliasNameBytes() { + java.lang.Object ref = aliasName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + aliasName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string aliasName = 4; + * + * @param value + * The aliasName to set. + * + * @return This builder for chaining. + */ + public Builder setAliasName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + aliasName_ = value; + onChanged(); + return this; + } + + /** + * string aliasName = 4; + * + * @return This builder for chaining. + */ + public Builder clearAliasName() { + + aliasName_ = getDefaultInstance().getAliasName(); + onChanged(); + return this; + } + + /** + * string aliasName = 4; + * + * @param value + * The bytes for aliasName to set. + * + * @return This builder for chaining. + */ + public Builder setAliasNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + aliasName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CheckEVMAddrResp) + } + + // @@protoc_insertion_point(class_scope:CheckEVMAddrResp) + private static final cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckEVMAddrResp parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckEVMAddrResp(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EstimateEVMGasReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EstimateEVMGasReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string tx = 1; + * + * @return The tx. + */ + java.lang.String getTx(); + + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + com.google.protobuf.ByteString getTxBytes(); + + /** + * string from = 2; + * + * @return The from. + */ + java.lang.String getFrom(); + + /** + * string from = 2; + * + * @return The bytes for from. + */ + com.google.protobuf.ByteString getFromBytes(); + } + + /** + * Protobuf type {@code EstimateEVMGasReq} + */ + public static final class EstimateEVMGasReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EstimateEVMGasReq) + EstimateEVMGasReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EstimateEVMGasReq.newBuilder() to construct. + private EstimateEVMGasReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EstimateEVMGasReq() { + tx_ = ""; + from_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EstimateEVMGasReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EstimateEVMGasReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + tx_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + from_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.Builder.class); + } + + public static final int TX_FIELD_NUMBER = 1; + private volatile java.lang.Object tx_; + + /** + * string tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public java.lang.String getTx() { + java.lang.Object ref = tx_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tx_ = s; + return s; + } + } + + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxBytes() { + java.lang.Object ref = tx_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tx_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FROM_FIELD_NUMBER = 2; + private volatile java.lang.Object from_; + + /** + * string from = 2; + * + * @return The from. + */ + @java.lang.Override + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } + } + + /** + * string from = 2; + * + * @return The bytes for from. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTxBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tx_); + } + if (!getFromBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, from_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTxBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tx_); + } + if (!getFromBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, from_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq) obj; + + if (!getTx().equals(other.getTx())) + return false; + if (!getFrom().equals(other.getFrom())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EstimateEVMGasReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EstimateEVMGasReq) + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + tx_ = ""; + + from_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq( + this); + result.tx_ = tx_; + result.from_ = from_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.getDefaultInstance()) + return this; + if (!other.getTx().isEmpty()) { + tx_ = other.tx_; + onChanged(); + } + if (!other.getFrom().isEmpty()) { + from_ = other.from_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object tx_ = ""; + + /** + * string tx = 1; + * + * @return The tx. + */ + public java.lang.String getTx() { + java.lang.Object ref = tx_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tx_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + public com.google.protobuf.ByteString getTxBytes() { + java.lang.Object ref = tx_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tx_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string tx = 1; + * + * @param value + * The tx to set. + * + * @return This builder for chaining. + */ + public Builder setTx(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tx_ = value; + onChanged(); + return this; + } + + /** + * string tx = 1; + * + * @return This builder for chaining. + */ + public Builder clearTx() { + + tx_ = getDefaultInstance().getTx(); + onChanged(); + return this; + } + + /** + * string tx = 1; + * + * @param value + * The bytes for tx to set. + * + * @return This builder for chaining. + */ + public Builder setTxBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tx_ = value; + onChanged(); + return this; + } + + private java.lang.Object from_ = ""; + + /** + * string from = 2; + * + * @return The from. + */ + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string from = 2; + * + * @return The bytes for from. + */ + public com.google.protobuf.ByteString getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string from = 2; + * + * @param value + * The from to set. + * + * @return This builder for chaining. + */ + public Builder setFrom(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + + /** + * string from = 2; + * + * @return This builder for chaining. + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + /** + * string from = 2; + * + * @param value + * The bytes for from to set. + * + * @return This builder for chaining. + */ + public Builder setFromBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + from_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EstimateEVMGasReq) + } + + // @@protoc_insertion_point(class_scope:EstimateEVMGasReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstimateEVMGasReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EstimateEVMGasReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EstimateEVMGasRespOrBuilder extends + // @@protoc_insertion_point(interface_extends:EstimateEVMGasResp) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 gas = 1; + * + * @return The gas. + */ + long getGas(); + } + + /** + * Protobuf type {@code EstimateEVMGasResp} + */ + public static final class EstimateEVMGasResp extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EstimateEVMGasResp) + EstimateEVMGasRespOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EstimateEVMGasResp.newBuilder() to construct. + private EstimateEVMGasResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EstimateEVMGasResp() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EstimateEVMGasResp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EstimateEVMGasResp(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + gas_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.Builder.class); + } + + public static final int GAS_FIELD_NUMBER = 1; + private long gas_; + + /** + * uint64 gas = 1; + * + * @return The gas. + */ + @java.lang.Override + public long getGas() { + return gas_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gas_ != 0L) { + output.writeUInt64(1, gas_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (gas_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, gas_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp) obj; + + if (getGas() != other.getGas()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GAS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGas()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EstimateEVMGasResp} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EstimateEVMGasResp) + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasRespOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + gas_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp build() { + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp( + this); + result.gas_ = gas_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.getDefaultInstance()) + return this; + if (other.getGas() != 0L) { + setGas(other.getGas()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long gas_; + + /** + * uint64 gas = 1; + * + * @return The gas. + */ + @java.lang.Override + public long getGas() { + return gas_; + } + + /** + * uint64 gas = 1; + * + * @param value + * The gas to set. + * + * @return This builder for chaining. + */ + public Builder setGas(long value) { + + gas_ = value; + onChanged(); + return this; + } + + /** + * uint64 gas = 1; + * + * @return This builder for chaining. + */ + public Builder clearGas() { + + gas_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EstimateEVMGasResp) + } + + // @@protoc_insertion_point(class_scope:EstimateEVMGasResp) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstimateEVMGasResp parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EstimateEVMGasResp(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmDebugReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmDebugReq) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 0 query, 1 set, -1 clear
+         * 
+ * + * int32 optype = 1; + * + * @return The optype. + */ + int getOptype(); + } + + /** + * Protobuf type {@code EvmDebugReq} + */ + public static final class EvmDebugReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmDebugReq) + EvmDebugReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmDebugReq.newBuilder() to construct. + private EvmDebugReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmDebugReq() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmDebugReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmDebugReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + optype_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.Builder.class); + } + + public static final int OPTYPE_FIELD_NUMBER = 1; + private int optype_; + + /** + *
+         * 0 query, 1 set, -1 clear
+         * 
+ * + * int32 optype = 1; + * + * @return The optype. + */ + @java.lang.Override + public int getOptype() { + return optype_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (optype_ != 0) { + output.writeInt32(1, optype_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (optype_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, optype_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq) obj; + + if (getOptype() != other.getOptype()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPTYPE_FIELD_NUMBER; + hash = (53 * hash) + getOptype(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmDebugReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmDebugReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + optype_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq( + this); + result.optype_ = optype_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.getDefaultInstance()) + return this; + if (other.getOptype() != 0) { + setOptype(other.getOptype()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int optype_; + + /** + *
+             * 0 query, 1 set, -1 clear
+             * 
+ * + * int32 optype = 1; + * + * @return The optype. + */ + @java.lang.Override + public int getOptype() { + return optype_; + } + + /** + *
+             * 0 query, 1 set, -1 clear
+             * 
+ * + * int32 optype = 1; + * + * @param value + * The optype to set. + * + * @return This builder for chaining. + */ + public Builder setOptype(int value) { + + optype_ = value; + onChanged(); + return this; + } + + /** + *
+             * 0 query, 1 set, -1 clear
+             * 
+ * + * int32 optype = 1; + * + * @return This builder for chaining. + */ + public Builder clearOptype() { + + optype_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmDebugReq) + } + + // @@protoc_insertion_point(class_scope:EvmDebugReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmDebugReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmDebugReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmDebugRespOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmDebugResp) + com.google.protobuf.MessageOrBuilder { + + /** + * string debugStatus = 1; + * + * @return The debugStatus. + */ + java.lang.String getDebugStatus(); + + /** + * string debugStatus = 1; + * + * @return The bytes for debugStatus. + */ + com.google.protobuf.ByteString getDebugStatusBytes(); + } + + /** + * Protobuf type {@code EvmDebugResp} + */ + public static final class EvmDebugResp extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmDebugResp) + EvmDebugRespOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmDebugResp.newBuilder() to construct. + private EvmDebugResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmDebugResp() { + debugStatus_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmDebugResp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmDebugResp(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + debugStatus_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.Builder.class); + } + + public static final int DEBUGSTATUS_FIELD_NUMBER = 1; + private volatile java.lang.Object debugStatus_; + + /** + * string debugStatus = 1; + * + * @return The debugStatus. + */ + @java.lang.Override + public java.lang.String getDebugStatus() { + java.lang.Object ref = debugStatus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + debugStatus_ = s; + return s; + } + } + + /** + * string debugStatus = 1; + * + * @return The bytes for debugStatus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDebugStatusBytes() { + java.lang.Object ref = debugStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + debugStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDebugStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, debugStatus_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getDebugStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, debugStatus_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp) obj; + + if (!getDebugStatus().equals(other.getDebugStatus())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEBUGSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getDebugStatus().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmDebugResp} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmDebugResp) + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugRespOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + debugStatus_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp( + this); + result.debugStatus_ = debugStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.getDefaultInstance()) + return this; + if (!other.getDebugStatus().isEmpty()) { + debugStatus_ = other.debugStatus_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object debugStatus_ = ""; + + /** + * string debugStatus = 1; + * + * @return The debugStatus. + */ + public java.lang.String getDebugStatus() { + java.lang.Object ref = debugStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + debugStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string debugStatus = 1; + * + * @return The bytes for debugStatus. + */ + public com.google.protobuf.ByteString getDebugStatusBytes() { + java.lang.Object ref = debugStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + debugStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string debugStatus = 1; + * + * @param value + * The debugStatus to set. + * + * @return This builder for chaining. + */ + public Builder setDebugStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + debugStatus_ = value; + onChanged(); + return this; + } + + /** + * string debugStatus = 1; + * + * @return This builder for chaining. + */ + public Builder clearDebugStatus() { + + debugStatus_ = getDefaultInstance().getDebugStatus(); + onChanged(); + return this; + } + + /** + * string debugStatus = 1; + * + * @param value + * The bytes for debugStatus to set. + * + * @return This builder for chaining. + */ + public Builder setDebugStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + debugStatus_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmDebugResp) + } + + // @@protoc_insertion_point(class_scope:EvmDebugResp) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmDebugResp parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmDebugResp(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmQueryAbiReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmQueryAbiReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string address = 1; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * string address = 1; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + } + + /** + * Protobuf type {@code EvmQueryAbiReq} + */ + public static final class EvmQueryAbiReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmQueryAbiReq) + EvmQueryAbiReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmQueryAbiReq.newBuilder() to construct. + private EvmQueryAbiReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmQueryAbiReq() { + address_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmQueryAbiReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmQueryAbiReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; + + /** + * string address = 1; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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 cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq) obj; + + if (!getAddress().equals(other.getAddress())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmQueryAbiReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmQueryAbiReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq( + this); + result.address_ = address_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.getDefaultInstance()) + return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object address_ = ""; + + /** + * string address = 1; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string address = 1; + * + * @param value + * The address to set. + * + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @param value + * The bytes for address to set. + * + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmQueryAbiReq) + } + + // @@protoc_insertion_point(class_scope:EvmQueryAbiReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmQueryAbiReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmQueryAbiReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmQueryAbiRespOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmQueryAbiResp) + com.google.protobuf.MessageOrBuilder { + + /** + * string address = 1; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * string address = 1; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * string abi = 2; + * + * @return The abi. + */ + java.lang.String getAbi(); + + /** + * string abi = 2; + * + * @return The bytes for abi. + */ + com.google.protobuf.ByteString getAbiBytes(); + } + + /** + * Protobuf type {@code EvmQueryAbiResp} + */ + public static final class EvmQueryAbiResp extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmQueryAbiResp) + EvmQueryAbiRespOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmQueryAbiResp.newBuilder() to construct. + private EvmQueryAbiResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmQueryAbiResp() { + address_ = ""; + abi_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmQueryAbiResp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmQueryAbiResp(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + abi_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; + + /** + * string address = 1; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ABI_FIELD_NUMBER = 2; + private volatile java.lang.Object abi_; + + /** + * string abi = 2; + * + * @return The abi. + */ + @java.lang.Override + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } + } + + /** + * string abi = 2; + * + * @return The bytes for abi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!getAbiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, abi_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!getAbiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, abi_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp) obj; + + if (!getAddress().equals(other.getAddress())) + return false; + if (!getAbi().equals(other.getAbi())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + ABI_FIELD_NUMBER; + hash = (53 * hash) + getAbi().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmQueryAbiResp} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmQueryAbiResp) + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiRespOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; + + abi_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp( + this); + result.address_ = address_; + result.abi_ = abi_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.getDefaultInstance()) + return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + if (!other.getAbi().isEmpty()) { + abi_ = other.abi_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object address_ = ""; + + /** + * string address = 1; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string address = 1; + * + * @param value + * The address to set. + * + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @param value + * The bytes for address to set. + * + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } + + private java.lang.Object abi_ = ""; + + /** + * string abi = 2; + * + * @return The abi. + */ + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string abi = 2; + * + * @return The bytes for abi. + */ + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string abi = 2; + * + * @param value + * The abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + abi_ = value; + onChanged(); + return this; + } + + /** + * string abi = 2; + * + * @return This builder for chaining. + */ + public Builder clearAbi() { + + abi_ = getDefaultInstance().getAbi(); + onChanged(); + return this; + } + + /** + * string abi = 2; + * + * @param value + * The bytes for abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + abi_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmQueryAbiResp) + } + + // @@protoc_insertion_point(class_scope:EvmQueryAbiResp) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmQueryAbiResp parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmQueryAbiResp(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmQueryReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmQueryReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string address = 1; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * string address = 1; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * string input = 2; + * + * @return The input. + */ + java.lang.String getInput(); + + /** + * string input = 2; + * + * @return The bytes for input. + */ + com.google.protobuf.ByteString getInputBytes(); + + /** + * string caller = 3; + * + * @return The caller. + */ + java.lang.String getCaller(); + + /** + * string caller = 3; + * + * @return The bytes for caller. + */ + com.google.protobuf.ByteString getCallerBytes(); + } + + /** + * Protobuf type {@code EvmQueryReq} + */ + public static final class EvmQueryReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmQueryReq) + EvmQueryReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmQueryReq.newBuilder() to construct. + private EvmQueryReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmQueryReq() { + address_ = ""; + input_ = ""; + caller_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmQueryReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmQueryReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + input_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + caller_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; + + /** + * string address = 1; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_FIELD_NUMBER = 2; + private volatile java.lang.Object input_; + + /** + * string input = 2; + * + * @return The input. + */ + @java.lang.Override + public java.lang.String getInput() { + java.lang.Object ref = input_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + input_ = s; + return s; + } + } + + /** + * string input = 2; + * + * @return The bytes for input. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CALLER_FIELD_NUMBER = 3; + private volatile java.lang.Object caller_; + + /** + * string caller = 3; + * + * @return The caller. + */ + @java.lang.Override + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } + } + + /** + * string caller = 3; + * + * @return The bytes for caller. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!getInputBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_); + } + if (!getCallerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, caller_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!getInputBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_); + } + if (!getCallerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, caller_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq) obj; + + if (!getAddress().equals(other.getAddress())) + return false; + if (!getInput().equals(other.getInput())) + return false; + if (!getCaller().equals(other.getCaller())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + hash = (37 * hash) + CALLER_FIELD_NUMBER; + hash = (53 * hash) + getCaller().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmQueryReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmQueryReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; + + input_ = ""; + + caller_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq( + this); + result.address_ = address_; + result.input_ = input_; + result.caller_ = caller_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.getDefaultInstance()) + return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + if (!other.getInput().isEmpty()) { + input_ = other.input_; + onChanged(); + } + if (!other.getCaller().isEmpty()) { + caller_ = other.caller_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object address_ = ""; + + /** + * string address = 1; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string address = 1; + * + * @param value + * The address to set. + * + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @param value + * The bytes for address to set. + * + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } + + private java.lang.Object input_ = ""; + + /** + * string input = 2; + * + * @return The input. + */ + public java.lang.String getInput() { + java.lang.Object ref = input_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + input_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string input = 2; + * + * @return The bytes for input. + */ + public com.google.protobuf.ByteString getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string input = 2; + * + * @param value + * The input to set. + * + * @return This builder for chaining. + */ + public Builder setInput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + input_ = value; + onChanged(); + return this; + } + + /** + * string input = 2; + * + * @return This builder for chaining. + */ + public Builder clearInput() { + + input_ = getDefaultInstance().getInput(); + onChanged(); + return this; + } + + /** + * string input = 2; + * + * @param value + * The bytes for input to set. + * + * @return This builder for chaining. + */ + public Builder setInputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + input_ = value; + onChanged(); + return this; + } + + private java.lang.Object caller_ = ""; + + /** + * string caller = 3; + * + * @return The caller. + */ + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string caller = 3; + * + * @return The bytes for caller. + */ + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string caller = 3; + * + * @param value + * The caller to set. + * + * @return This builder for chaining. + */ + public Builder setCaller(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + caller_ = value; + onChanged(); + return this; + } + + /** + * string caller = 3; + * + * @return This builder for chaining. + */ + public Builder clearCaller() { + + caller_ = getDefaultInstance().getCaller(); + onChanged(); + return this; + } + + /** + * string caller = 3; + * + * @param value + * The bytes for caller to set. + * + * @return This builder for chaining. + */ + public Builder setCallerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caller_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmQueryReq) + } + + // @@protoc_insertion_point(class_scope:EvmQueryReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmQueryReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmQueryReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmQueryRespOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmQueryResp) + com.google.protobuf.MessageOrBuilder { + + /** + * string address = 1; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * string address = 1; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * string input = 2; + * + * @return The input. + */ + java.lang.String getInput(); + + /** + * string input = 2; + * + * @return The bytes for input. + */ + com.google.protobuf.ByteString getInputBytes(); + + /** + * string caller = 3; + * + * @return The caller. + */ + java.lang.String getCaller(); + + /** + * string caller = 3; + * + * @return The bytes for caller. + */ + com.google.protobuf.ByteString getCallerBytes(); + + /** + * string rawData = 4; + * + * @return The rawData. + */ + java.lang.String getRawData(); + + /** + * string rawData = 4; + * + * @return The bytes for rawData. + */ + com.google.protobuf.ByteString getRawDataBytes(); + + /** + * string jsonData = 5; + * + * @return The jsonData. + */ + java.lang.String getJsonData(); + + /** + * string jsonData = 5; + * + * @return The bytes for jsonData. + */ + com.google.protobuf.ByteString getJsonDataBytes(); + } + + /** + * Protobuf type {@code EvmQueryResp} + */ + public static final class EvmQueryResp extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmQueryResp) + EvmQueryRespOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmQueryResp.newBuilder() to construct. + private EvmQueryResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmQueryResp() { + address_ = ""; + input_ = ""; + caller_ = ""; + rawData_ = ""; + jsonData_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmQueryResp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmQueryResp(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + input_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + caller_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + rawData_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + jsonData_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; + + /** + * string address = 1; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_FIELD_NUMBER = 2; + private volatile java.lang.Object input_; + + /** + * string input = 2; + * + * @return The input. + */ + @java.lang.Override + public java.lang.String getInput() { + java.lang.Object ref = input_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + input_ = s; + return s; + } + } + + /** + * string input = 2; + * + * @return The bytes for input. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CALLER_FIELD_NUMBER = 3; + private volatile java.lang.Object caller_; + + /** + * string caller = 3; + * + * @return The caller. + */ + @java.lang.Override + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } + } + + /** + * string caller = 3; + * + * @return The bytes for caller. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RAWDATA_FIELD_NUMBER = 4; + private volatile java.lang.Object rawData_; + + /** + * string rawData = 4; + * + * @return The rawData. + */ + @java.lang.Override + public java.lang.String getRawData() { + java.lang.Object ref = rawData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawData_ = s; + return s; + } + } + + /** + * string rawData = 4; + * + * @return The bytes for rawData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRawDataBytes() { + java.lang.Object ref = rawData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JSONDATA_FIELD_NUMBER = 5; + private volatile java.lang.Object jsonData_; + + /** + * string jsonData = 5; + * + * @return The jsonData. + */ + @java.lang.Override + public java.lang.String getJsonData() { + java.lang.Object ref = jsonData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonData_ = s; + return s; + } + } + + /** + * string jsonData = 5; + * + * @return The bytes for jsonData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonDataBytes() { + java.lang.Object ref = jsonData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jsonData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!getInputBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_); + } + if (!getCallerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, caller_); + } + if (!getRawDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rawData_); + } + if (!getJsonDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, jsonData_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!getInputBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_); + } + if (!getCallerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, caller_); + } + if (!getRawDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rawData_); + } + if (!getJsonDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, jsonData_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp) obj; + + if (!getAddress().equals(other.getAddress())) + return false; + if (!getInput().equals(other.getInput())) + return false; + if (!getCaller().equals(other.getCaller())) + return false; + if (!getRawData().equals(other.getRawData())) + return false; + if (!getJsonData().equals(other.getJsonData())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + hash = (37 * hash) + CALLER_FIELD_NUMBER; + hash = (53 * hash) + getCaller().hashCode(); + hash = (37 * hash) + RAWDATA_FIELD_NUMBER; + hash = (53 * hash) + getRawData().hashCode(); + hash = (37 * hash) + JSONDATA_FIELD_NUMBER; + hash = (53 * hash) + getJsonData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmQueryResp} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmQueryResp) + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryRespOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; + + input_ = ""; + + caller_ = ""; + + rawData_ = ""; + + jsonData_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp( + this); + result.address_ = address_; + result.input_ = input_; + result.caller_ = caller_; + result.rawData_ = rawData_; + result.jsonData_ = jsonData_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.getDefaultInstance()) + return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + if (!other.getInput().isEmpty()) { + input_ = other.input_; + onChanged(); + } + if (!other.getCaller().isEmpty()) { + caller_ = other.caller_; + onChanged(); + } + if (!other.getRawData().isEmpty()) { + rawData_ = other.rawData_; + onChanged(); + } + if (!other.getJsonData().isEmpty()) { + jsonData_ = other.jsonData_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object address_ = ""; + + /** + * string address = 1; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string address = 1; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string address = 1; + * + * @param value + * The address to set. + * + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + /** + * string address = 1; + * + * @param value + * The bytes for address to set. + * + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } + + private java.lang.Object input_ = ""; + + /** + * string input = 2; + * + * @return The input. + */ + public java.lang.String getInput() { + java.lang.Object ref = input_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + input_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string input = 2; + * + * @return The bytes for input. + */ + public com.google.protobuf.ByteString getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string input = 2; + * + * @param value + * The input to set. + * + * @return This builder for chaining. + */ + public Builder setInput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + input_ = value; + onChanged(); + return this; + } + + /** + * string input = 2; + * + * @return This builder for chaining. + */ + public Builder clearInput() { + + input_ = getDefaultInstance().getInput(); + onChanged(); + return this; + } + + /** + * string input = 2; + * + * @param value + * The bytes for input to set. + * + * @return This builder for chaining. + */ + public Builder setInputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + input_ = value; + onChanged(); + return this; + } + + private java.lang.Object caller_ = ""; + + /** + * string caller = 3; + * + * @return The caller. + */ + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string caller = 3; + * + * @return The bytes for caller. + */ + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string caller = 3; + * + * @param value + * The caller to set. + * + * @return This builder for chaining. + */ + public Builder setCaller(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + caller_ = value; + onChanged(); + return this; + } + + /** + * string caller = 3; + * + * @return This builder for chaining. + */ + public Builder clearCaller() { + + caller_ = getDefaultInstance().getCaller(); + onChanged(); + return this; + } + + /** + * string caller = 3; + * + * @param value + * The bytes for caller to set. + * + * @return This builder for chaining. + */ + public Builder setCallerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caller_ = value; + onChanged(); + return this; + } + + private java.lang.Object rawData_ = ""; + + /** + * string rawData = 4; + * + * @return The rawData. + */ + public java.lang.String getRawData() { + java.lang.Object ref = rawData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawData_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string rawData = 4; + * + * @return The bytes for rawData. + */ + public com.google.protobuf.ByteString getRawDataBytes() { + java.lang.Object ref = rawData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + rawData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string rawData = 4; + * + * @param value + * The rawData to set. + * + * @return This builder for chaining. + */ + public Builder setRawData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rawData_ = value; + onChanged(); + return this; + } + + /** + * string rawData = 4; + * + * @return This builder for chaining. + */ + public Builder clearRawData() { + + rawData_ = getDefaultInstance().getRawData(); + onChanged(); + return this; + } + + /** + * string rawData = 4; + * + * @param value + * The bytes for rawData to set. + * + * @return This builder for chaining. + */ + public Builder setRawDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rawData_ = value; + onChanged(); + return this; + } + + private java.lang.Object jsonData_ = ""; + + /** + * string jsonData = 5; + * + * @return The jsonData. + */ + public java.lang.String getJsonData() { + java.lang.Object ref = jsonData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonData_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string jsonData = 5; + * + * @return The bytes for jsonData. + */ + public com.google.protobuf.ByteString getJsonDataBytes() { + java.lang.Object ref = jsonData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + jsonData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string jsonData = 5; + * + * @param value + * The jsonData to set. + * + * @return This builder for chaining. + */ + public Builder setJsonData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jsonData_ = value; + onChanged(); + return this; + } + + /** + * string jsonData = 5; + * + * @return This builder for chaining. + */ + public Builder clearJsonData() { + + jsonData_ = getDefaultInstance().getJsonData(); + onChanged(); + return this; + } + + /** + * string jsonData = 5; + * + * @param value + * The bytes for jsonData to set. + * + * @return This builder for chaining. + */ + public Builder setJsonDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jsonData_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmQueryResp) + } + + // @@protoc_insertion_point(class_scope:EvmQueryResp) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmQueryResp parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmQueryResp(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmContractCreateReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmContractCreateReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string code = 1; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + * string code = 1; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + + /** + * string abi = 2; + * + * @return The abi. + */ + java.lang.String getAbi(); + + /** + * string abi = 2; + * + * @return The bytes for abi. + */ + com.google.protobuf.ByteString getAbiBytes(); + + /** + * int64 fee = 3; + * + * @return The fee. + */ + long getFee(); + + /** + * string note = 4; + * + * @return The note. + */ + java.lang.String getNote(); + + /** + * string note = 4; + * + * @return The bytes for note. + */ + com.google.protobuf.ByteString getNoteBytes(); + + /** + * string alias = 5; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * string alias = 5; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); + + /** + * string parameter = 6; + * + * @return The parameter. + */ + java.lang.String getParameter(); + + /** + * string parameter = 6; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); + + /** + * string expire = 7; + * + * @return The expire. + */ + java.lang.String getExpire(); + + /** + * string expire = 7; + * + * @return The bytes for expire. + */ + com.google.protobuf.ByteString getExpireBytes(); + + /** + * string paraName = 8; + * + * @return The paraName. + */ + java.lang.String getParaName(); + + /** + * string paraName = 8; + * + * @return The bytes for paraName. + */ + com.google.protobuf.ByteString getParaNameBytes(); + + /** + * int64 amount = 9; + * + * @return The amount. + */ + long getAmount(); + } + + /** + * Protobuf type {@code EvmContractCreateReq} + */ + public static final class EvmContractCreateReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmContractCreateReq) + EvmContractCreateReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmContractCreateReq.newBuilder() to construct. + private EvmContractCreateReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmContractCreateReq() { + code_ = ""; + abi_ = ""; + note_ = ""; + alias_ = ""; + parameter_ = ""; + expire_ = ""; + paraName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmContractCreateReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmContractCreateReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + abi_ = s; + break; + } + case 24: { + + fee_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + parameter_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + expire_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + paraName_ = s; + break; + } + case 72: { + + amount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + + /** + * string code = 1; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + + /** + * string code = 1; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ABI_FIELD_NUMBER = 2; + private volatile java.lang.Object abi_; + + /** + * string abi = 2; + * + * @return The abi. + */ + @java.lang.Override + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } + } + + /** + * string abi = 2; + * + * @return The bytes for abi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEE_FIELD_NUMBER = 3; + private long fee_; + + /** + * int64 fee = 3; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int NOTE_FIELD_NUMBER = 4; + private volatile java.lang.Object note_; + + /** + * string note = 4; + * + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + + /** + * string note = 4; + * + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 5; + private volatile java.lang.Object alias_; + + /** + * string alias = 5; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + + /** + * string alias = 5; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_FIELD_NUMBER = 6; + private volatile java.lang.Object parameter_; + + /** + * string parameter = 6; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } + } + + /** + * string parameter = 6; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_FIELD_NUMBER = 7; + private volatile java.lang.Object expire_; + + /** + * string expire = 7; + * + * @return The expire. + */ + @java.lang.Override + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } + } + + /** + * string expire = 7; + * + * @return The bytes for expire. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARANAME_FIELD_NUMBER = 8; + private volatile java.lang.Object paraName_; + + /** + * string paraName = 8; + * + * @return The paraName. + */ + @java.lang.Override + public java.lang.String getParaName() { + java.lang.Object ref = paraName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paraName_ = s; + return s; + } + } + + /** + * string paraName = 8; + * + * @return The bytes for paraName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParaNameBytes() { + java.lang.Object ref = paraName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + paraName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 9; + private long amount_; + + /** + * int64 amount = 9; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getAbiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, abi_); + } + if (fee_ != 0L) { + output.writeInt64(3, fee_); + } + if (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, note_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alias_); + } + if (!getParameterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parameter_); + } + if (!getExpireBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, expire_); + } + if (!getParaNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, paraName_); + } + if (amount_ != 0L) { + output.writeInt64(9, amount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getAbiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, abi_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, fee_); + } + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, note_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, alias_); + } + if (!getParameterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parameter_); + } + if (!getExpireBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, expire_); + } + if (!getParaNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, paraName_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, amount_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq) obj; + + if (!getCode().equals(other.getCode())) + return false; + if (!getAbi().equals(other.getAbi())) + return false; + if (getFee() != other.getFee()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getAlias().equals(other.getAlias())) + return false; + if (!getParameter().equals(other.getParameter())) + return false; + if (!getExpire().equals(other.getExpire())) + return false; + if (!getParaName().equals(other.getParaName())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + ABI_FIELD_NUMBER; + hash = (53 * hash) + getAbi().hashCode(); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFee()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (37 * hash) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + getExpire().hashCode(); + hash = (37 * hash) + PARANAME_FIELD_NUMBER; + hash = (53 * hash) + getParaName().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmContractCreateReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmContractCreateReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = ""; + + abi_ = ""; + + fee_ = 0L; + + note_ = ""; + + alias_ = ""; + + parameter_ = ""; + + expire_ = ""; + + paraName_ = ""; + + amount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq( + this); + result.code_ = code_; + result.abi_ = abi_; + result.fee_ = fee_; + result.note_ = note_; + result.alias_ = alias_; + result.parameter_ = parameter_; + result.expire_ = expire_; + result.paraName_ = paraName_; + result.amount_ = amount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.getDefaultInstance()) + return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getAbi().isEmpty()) { + abi_ = other.abi_; + onChanged(); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + onChanged(); + } + if (!other.getExpire().isEmpty()) { + expire_ = other.expire_; + onChanged(); + } + if (!other.getParaName().isEmpty()) { + paraName_ = other.paraName_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + + /** + * string code = 1; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string code = 1; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string code = 1; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + + /** + * string code = 1; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + /** + * string code = 1; + * + * @param value + * The bytes for code to set. + * + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object abi_ = ""; + + /** + * string abi = 2; + * + * @return The abi. + */ + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string abi = 2; + * + * @return The bytes for abi. + */ + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string abi = 2; + * + * @param value + * The abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + abi_ = value; + onChanged(); + return this; + } + + /** + * string abi = 2; + * + * @return This builder for chaining. + */ + public Builder clearAbi() { + + abi_ = getDefaultInstance().getAbi(); + onChanged(); + return this; + } + + /** + * string abi = 2; + * + * @param value + * The bytes for abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + abi_ = value; + onChanged(); + return this; + } + + private long fee_; + + /** + * int64 fee = 3; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + /** + * int64 fee = 3; + * + * @param value + * The fee to set. + * + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } + + /** + * int64 fee = 3; + * + * @return This builder for chaining. + */ + public Builder clearFee() { + + fee_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object note_ = ""; + + /** + * string note = 4; + * + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string note = 4; + * + * @return The bytes for note. + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string note = 4; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + + /** + * string note = 4; + * + * @return This builder for chaining. + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + + /** + * string note = 4; + * + * @param value + * The bytes for note to set. + * + * @return This builder for chaining. + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + + /** + * string alias = 5; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string alias = 5; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string alias = 5; + * + * @param value + * The alias to set. + * + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + + /** + * string alias = 5; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + + /** + * string alias = 5; + * + * @param value + * The bytes for alias to set. + * + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + + private java.lang.Object parameter_ = ""; + + /** + * string parameter = 6; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string parameter = 6; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string parameter = 6; + * + * @param value + * The parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameter_ = value; + onChanged(); + return this; + } + + /** + * string parameter = 6; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { + + parameter_ = getDefaultInstance().getParameter(); + onChanged(); + return this; + } + + /** + * string parameter = 6; + * + * @param value + * The bytes for parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameter_ = value; + onChanged(); + return this; + } + + private java.lang.Object expire_ = ""; + + /** + * string expire = 7; + * + * @return The expire. + */ + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string expire = 7; + * + * @return The bytes for expire. + */ + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string expire = 7; + * + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expire_ = value; + onChanged(); + return this; + } + + /** + * string expire = 7; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { + + expire_ = getDefaultInstance().getExpire(); + onChanged(); + return this; + } + + /** + * string expire = 7; + * + * @param value + * The bytes for expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpireBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expire_ = value; + onChanged(); + return this; + } + + private java.lang.Object paraName_ = ""; + + /** + * string paraName = 8; + * + * @return The paraName. + */ + public java.lang.String getParaName() { + java.lang.Object ref = paraName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paraName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string paraName = 8; + * + * @return The bytes for paraName. + */ + public com.google.protobuf.ByteString getParaNameBytes() { + java.lang.Object ref = paraName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + paraName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string paraName = 8; + * + * @param value + * The paraName to set. + * + * @return This builder for chaining. + */ + public Builder setParaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + paraName_ = value; + onChanged(); + return this; + } + + /** + * string paraName = 8; + * + * @return This builder for chaining. + */ + public Builder clearParaName() { + + paraName_ = getDefaultInstance().getParaName(); + onChanged(); + return this; + } + + /** + * string paraName = 8; + * + * @param value + * The bytes for paraName to set. + * + * @return This builder for chaining. + */ + public Builder setParaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + paraName_ = value; + onChanged(); + return this; + } + + private long amount_; + + /** + * int64 amount = 9; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 9; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 9; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmContractCreateReq) + } + + // @@protoc_insertion_point(class_scope:EvmContractCreateReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmContractCreateReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmContractCreateReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvmContractCallReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmContractCallReq) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 amount = 1; + * + * @return The amount. + */ + long getAmount(); + + /** + * int64 fee = 2; + * + * @return The fee. + */ + long getFee(); + + /** + * string note = 3; + * + * @return The note. + */ + java.lang.String getNote(); + + /** + * string note = 3; + * + * @return The bytes for note. + */ + com.google.protobuf.ByteString getNoteBytes(); + + /** + * string parameter = 4; + * + * @return The parameter. + */ + java.lang.String getParameter(); + + /** + * string parameter = 4; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); + + /** + * string contractAddr = 5; + * + * @return The contractAddr. + */ + java.lang.String getContractAddr(); + + /** + * string contractAddr = 5; + * + * @return The bytes for contractAddr. + */ + com.google.protobuf.ByteString getContractAddrBytes(); + + /** + * string expire = 6; + * + * @return The expire. + */ + java.lang.String getExpire(); + + /** + * string expire = 6; + * + * @return The bytes for expire. + */ + com.google.protobuf.ByteString getExpireBytes(); + + /** + * string paraName = 7; + * + * @return The paraName. + */ + java.lang.String getParaName(); + + /** + * string paraName = 7; + * + * @return The bytes for paraName. + */ + com.google.protobuf.ByteString getParaNameBytes(); + + /** + * string abi = 8; + * + * @return The abi. + */ + java.lang.String getAbi(); + + /** + * string abi = 8; + * + * @return The bytes for abi. + */ + com.google.protobuf.ByteString getAbiBytes(); + } + + /** + * Protobuf type {@code EvmContractCallReq} + */ + public static final class EvmContractCallReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmContractCallReq) + EvmContractCallReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmContractCallReq.newBuilder() to construct. + private EvmContractCallReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvmContractCallReq() { + note_ = ""; + parameter_ = ""; + contractAddr_ = ""; + expire_ = ""; + paraName_ = ""; + abi_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmContractCallReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmContractCallReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + amount_ = input.readInt64(); + break; + } + case 16: { + + fee_ = input.readInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parameter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + contractAddr_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + expire_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + paraName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + abi_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.Builder.class); + } + + public static final int AMOUNT_FIELD_NUMBER = 1; + private long amount_; + + /** + * int64 amount = 1; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int FEE_FIELD_NUMBER = 2; + private long fee_; + + /** + * int64 fee = 2; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int NOTE_FIELD_NUMBER = 3; + private volatile java.lang.Object note_; + + /** + * string note = 3; + * + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + + /** + * string note = 3; + * + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_FIELD_NUMBER = 4; + private volatile java.lang.Object parameter_; + + /** + * string parameter = 4; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } + } + + /** + * string parameter = 4; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTRACTADDR_FIELD_NUMBER = 5; + private volatile java.lang.Object contractAddr_; + + /** + * string contractAddr = 5; + * + * @return The contractAddr. + */ + @java.lang.Override + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } + } + + /** + * string contractAddr = 5; + * + * @return The bytes for contractAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_FIELD_NUMBER = 6; + private volatile java.lang.Object expire_; + + /** + * string expire = 6; + * + * @return The expire. + */ + @java.lang.Override + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } + } + + /** + * string expire = 6; + * + * @return The bytes for expire. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARANAME_FIELD_NUMBER = 7; + private volatile java.lang.Object paraName_; + + /** + * string paraName = 7; + * + * @return The paraName. + */ + @java.lang.Override + public java.lang.String getParaName() { + java.lang.Object ref = paraName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paraName_ = s; + return s; + } + } + + /** + * string paraName = 7; + * + * @return The bytes for paraName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParaNameBytes() { + java.lang.Object ref = paraName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + paraName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ABI_FIELD_NUMBER = 8; + private volatile java.lang.Object abi_; + + /** + * string abi = 8; + * + * @return The abi. + */ + @java.lang.Override + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } + } + + /** + * string abi = 8; + * + * @return The bytes for abi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (amount_ != 0L) { + output.writeInt64(1, amount_); + } + if (fee_ != 0L) { + output.writeInt64(2, fee_); + } + if (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, note_); + } + if (!getParameterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parameter_); + } + if (!getContractAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contractAddr_); + } + if (!getExpireBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expire_); + } + if (!getParaNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, paraName_); + } + if (!getAbiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, abi_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, amount_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, fee_); + } + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, note_); + } + if (!getParameterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parameter_); + } + if (!getContractAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contractAddr_); + } + if (!getExpireBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, expire_); + } + if (!getParaNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, paraName_); + } + if (!getAbiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, abi_); + } + 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq) obj; + + if (getAmount() != other.getAmount()) + return false; + if (getFee() != other.getFee()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getParameter().equals(other.getParameter())) + return false; + if (!getContractAddr().equals(other.getContractAddr())) + return false; + if (!getExpire().equals(other.getExpire())) + return false; + if (!getParaName().equals(other.getParaName())) + return false; + if (!getAbi().equals(other.getAbi())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFee()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + getExpire().hashCode(); + hash = (37 * hash) + PARANAME_FIELD_NUMBER; + hash = (53 * hash) + getParaName().hashCode(); + hash = (37 * hash) + ABI_FIELD_NUMBER; + hash = (53 * hash) + getAbi().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EvmContractCallReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmContractCallReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, amount_); - } - if (gasLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, gasLimit_); - } - if (gasPrice_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, gasPrice_); - } - if (!code_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, code_); - } - if (!para_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, para_); - } - if (!getAliasBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, alias_); - } - if (!getNoteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, note_); - } - if (!getContractAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, contractAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction) obj; - - if (getAmount() - != other.getAmount()) return false; - if (getGasLimit() - != other.getGasLimit()) return false; - if (getGasPrice() - != other.getGasPrice()) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!getPara() - .equals(other.getPara())) return false; - if (!getAlias() - .equals(other.getAlias())) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getContractAddr() - .equals(other.getContractAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + amount_ = 0L; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + GASLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGasLimit()); - hash = (37 * hash) + GASPRICE_FIELD_NUMBER; - hash = (53 * hash) + getGasPrice(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + PARA_FIELD_NUMBER; - hash = (53 * hash) + getPara().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + fee_ = 0L; - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + note_ = ""; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + parameter_ = ""; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 创建/调用合约的请求结构
-     * 
- * - * Protobuf type {@code EVMContractAction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EVMContractAction) - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - amount_ = 0L; - - gasLimit_ = 0L; - - gasPrice_ = 0; - - code_ = com.google.protobuf.ByteString.EMPTY; - - para_ = com.google.protobuf.ByteString.EMPTY; - - alias_ = ""; - - note_ = ""; - - contractAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractAction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction build() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction(this); - result.amount_ = amount_; - result.gasLimit_ = gasLimit_; - result.gasPrice_ = gasPrice_; - result.code_ = code_; - result.para_ = para_; - result.alias_ = alias_; - result.note_ = note_; - result.contractAddr_ = contractAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction.getDefaultInstance()) return this; - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getGasLimit() != 0L) { - setGasLimit(other.getGasLimit()); - } - if (other.getGasPrice() != 0) { - setGasPrice(other.getGasPrice()); - } - if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { - setCode(other.getCode()); - } - if (other.getPara() != com.google.protobuf.ByteString.EMPTY) { - setPara(other.getPara()); - } - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - onChanged(); - } - if (!other.getNote().isEmpty()) { - note_ = other.note_; - onChanged(); - } - if (!other.getContractAddr().isEmpty()) { - contractAddr_ = other.contractAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long amount_ ; - /** - *
-       * 转账金额
-       * 
- * - * uint64 amount = 1; - */ - public long getAmount() { - return amount_; - } - /** - *
-       * 转账金额
-       * 
- * - * uint64 amount = 1; - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - *
-       * 转账金额
-       * 
- * - * uint64 amount = 1; - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private long gasLimit_ ; - /** - *
-       * 消耗限制,默认为Transaction.Fee
-       * 
- * - * uint64 gasLimit = 2; - */ - public long getGasLimit() { - return gasLimit_; - } - /** - *
-       * 消耗限制,默认为Transaction.Fee
-       * 
- * - * uint64 gasLimit = 2; - */ - public Builder setGasLimit(long value) { - - gasLimit_ = value; - onChanged(); - return this; - } - /** - *
-       * 消耗限制,默认为Transaction.Fee
-       * 
- * - * uint64 gasLimit = 2; - */ - public Builder clearGasLimit() { - - gasLimit_ = 0L; - onChanged(); - return this; - } - - private int gasPrice_ ; - /** - *
-       * gas价格,默认为1
-       * 
- * - * uint32 gasPrice = 3; - */ - public int getGasPrice() { - return gasPrice_; - } - /** - *
-       * gas价格,默认为1
-       * 
- * - * uint32 gasPrice = 3; - */ - public Builder setGasPrice(int value) { - - gasPrice_ = value; - onChanged(); - return this; - } - /** - *
-       * gas价格,默认为1
-       * 
- * - * uint32 gasPrice = 3; - */ - public Builder clearGasPrice() { - - gasPrice_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * 合约数据
-       * 
- * - * bytes code = 4; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - /** - *
-       * 合约数据
-       * 
- * - * bytes code = 4; - */ - public Builder setCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * 合约数据
-       * 
- * - * bytes code = 4; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString para_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *交易参数
-       * 
- * - * bytes para = 5; - */ - public com.google.protobuf.ByteString getPara() { - return para_; - } - /** - *
-       *交易参数
-       * 
- * - * bytes para = 5; - */ - public Builder setPara(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - para_ = value; - onChanged(); - return this; - } - /** - *
-       *交易参数
-       * 
- * - * bytes para = 5; - */ - public Builder clearPara() { - - para_ = getDefaultInstance().getPara(); - onChanged(); - return this; - } - - private java.lang.Object alias_ = ""; - /** - *
-       * 合约别名,方便识别
-       * 
- * - * string alias = 6; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * 合约别名,方便识别
-       * 
- * - * string alias = 6; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * 合约别名,方便识别
-       * 
- * - * string alias = 6; - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alias_ = value; - onChanged(); - return this; - } - /** - *
-       * 合约别名,方便识别
-       * 
- * - * string alias = 6; - */ - public Builder clearAlias() { - - alias_ = getDefaultInstance().getAlias(); - onChanged(); - return this; - } - /** - *
-       * 合约别名,方便识别
-       * 
- * - * string alias = 6; - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alias_ = value; - onChanged(); - return this; - } - - private java.lang.Object note_ = ""; - /** - *
-       * 交易备注
-       * 
- * - * string note = 7; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * 交易备注
-       * 
- * - * string note = 7; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * 交易备注
-       * 
- * - * string note = 7; - */ - public Builder setNote( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - *
-       * 交易备注
-       * 
- * - * string note = 7; - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - /** - *
-       * 交易备注
-       * 
- * - * string note = 7; - */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - note_ = value; - onChanged(); - return this; - } - - private java.lang.Object contractAddr_ = ""; - /** - *
-       * 调用合约地址
-       * 
- * - * string contractAddr = 8; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * 调用合约地址
-       * 
- * - * string contractAddr = 8; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * 调用合约地址
-       * 
- * - * string contractAddr = 8; - */ - public Builder setContractAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** - *
-       * 调用合约地址
-       * 
- * - * string contractAddr = 8; - */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - /** - *
-       * 调用合约地址
-       * 
- * - * string contractAddr = 8; - */ - public Builder setContractAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EVMContractAction) - } + contractAddr_ = ""; - // @@protoc_insertion_point(class_scope:EVMContractAction) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction(); - } + expire_ = ""; - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + paraName_ = ""; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EVMContractAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EVMContractAction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + abi_ = ""; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_descriptor; + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.getDefaultInstance(); + } - public interface ReceiptEVMContractOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptEVMContract) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * string caller = 1; - */ - java.lang.String getCaller(); - /** - * string caller = 1; - */ - com.google.protobuf.ByteString - getCallerBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq( + this); + result.amount_ = amount_; + result.fee_ = fee_; + result.note_ = note_; + result.parameter_ = parameter_; + result.contractAddr_ = contractAddr_; + result.expire_ = expire_; + result.paraName_ = paraName_; + result.abi_ = abi_; + onBuilt(); + return result; + } - /** - * string contractName = 2; - */ - java.lang.String getContractName(); - /** - * string contractName = 2; - */ - com.google.protobuf.ByteString - getContractNameBytes(); + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - * string contractAddr = 3; - */ - java.lang.String getContractAddr(); - /** - * string contractAddr = 3; - */ - com.google.protobuf.ByteString - getContractAddrBytes(); + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * uint64 usedGas = 4; - */ - long getUsedGas(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - *
-     * 创建合约返回的代码
-     * 
- * - * bytes ret = 5; - */ - com.google.protobuf.ByteString getRet(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - *
-     * json格式化后的返回值
-     * 
- * - * string jsonRet = 6; - */ - java.lang.String getJsonRet(); - /** - *
-     * json格式化后的返回值
-     * 
- * - * string jsonRet = 6; - */ - com.google.protobuf.ByteString - getJsonRetBytes(); - } - /** - *
-   * 合约创建/调用日志
-   * 
- * - * Protobuf type {@code ReceiptEVMContract} - */ - public static final class ReceiptEVMContract extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptEVMContract) - ReceiptEVMContractOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptEVMContract.newBuilder() to construct. - private ReceiptEVMContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptEVMContract() { - caller_ = ""; - contractName_ = ""; - contractAddr_ = ""; - ret_ = com.google.protobuf.ByteString.EMPTY; - jsonRet_ = ""; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptEVMContract(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptEVMContract( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - caller_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - contractName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - contractAddr_ = s; - break; - } - case 32: { - - usedGas_ = input.readUInt64(); - break; - } - case 42: { - - ret_ = input.readBytes(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - jsonRet_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.class, cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.Builder.class); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.getDefaultInstance()) + return this; + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + onChanged(); + } + if (!other.getContractAddr().isEmpty()) { + contractAddr_ = other.contractAddr_; + onChanged(); + } + if (!other.getExpire().isEmpty()) { + expire_ = other.expire_; + onChanged(); + } + if (!other.getParaName().isEmpty()) { + paraName_ = other.paraName_; + onChanged(); + } + if (!other.getAbi().isEmpty()) { + abi_ = other.abi_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int CALLER_FIELD_NUMBER = 1; - private volatile java.lang.Object caller_; - /** - * string caller = 1; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } - } - /** - * string caller = 1; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int CONTRACTNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object contractName_; - /** - * string contractName = 2; - */ - public java.lang.String getContractName() { - java.lang.Object ref = contractName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractName_ = s; - return s; - } - } - /** - * string contractName = 2; - */ - public com.google.protobuf.ByteString - getContractNameBytes() { - java.lang.Object ref = contractName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int CONTRACTADDR_FIELD_NUMBER = 3; - private volatile java.lang.Object contractAddr_; - /** - * string contractAddr = 3; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } - } - /** - * string contractAddr = 3; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private long amount_; - public static final int USEDGAS_FIELD_NUMBER = 4; - private long usedGas_; - /** - * uint64 usedGas = 4; - */ - public long getUsedGas() { - return usedGas_; - } + /** + * int64 amount = 1; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 1; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 1; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private long fee_; + + /** + * int64 fee = 2; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + /** + * int64 fee = 2; + * + * @param value + * The fee to set. + * + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } + + /** + * int64 fee = 2; + * + * @return This builder for chaining. + */ + public Builder clearFee() { + + fee_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object note_ = ""; + + /** + * string note = 3; + * + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string note = 3; + * + * @return The bytes for note. + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string note = 3; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + + /** + * string note = 3; + * + * @return This builder for chaining. + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + + /** + * string note = 3; + * + * @param value + * The bytes for note to set. + * + * @return This builder for chaining. + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + + private java.lang.Object parameter_ = ""; + + /** + * string parameter = 4; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string parameter = 4; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string parameter = 4; + * + * @param value + * The parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameter_ = value; + onChanged(); + return this; + } + + /** + * string parameter = 4; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { + + parameter_ = getDefaultInstance().getParameter(); + onChanged(); + return this; + } + + /** + * string parameter = 4; + * + * @param value + * The bytes for parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameter_ = value; + onChanged(); + return this; + } + + private java.lang.Object contractAddr_ = ""; + + /** + * string contractAddr = 5; + * + * @return The contractAddr. + */ + public java.lang.String getContractAddr() { + java.lang.Object ref = contractAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contractAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contractAddr = 5; + * + * @return The bytes for contractAddr. + */ + public com.google.protobuf.ByteString getContractAddrBytes() { + java.lang.Object ref = contractAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contractAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contractAddr = 5; + * + * @param value + * The contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + + /** + * string contractAddr = 5; + * + * @return This builder for chaining. + */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + + /** + * string contractAddr = 5; + * + * @param value + * The bytes for contractAddr to set. + * + * @return This builder for chaining. + */ + public Builder setContractAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contractAddr_ = value; + onChanged(); + return this; + } + + private java.lang.Object expire_ = ""; + + /** + * string expire = 6; + * + * @return The expire. + */ + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string expire = 6; + * + * @return The bytes for expire. + */ + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string expire = 6; + * + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expire_ = value; + onChanged(); + return this; + } + + /** + * string expire = 6; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { + + expire_ = getDefaultInstance().getExpire(); + onChanged(); + return this; + } + + /** + * string expire = 6; + * + * @param value + * The bytes for expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpireBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expire_ = value; + onChanged(); + return this; + } + + private java.lang.Object paraName_ = ""; + + /** + * string paraName = 7; + * + * @return The paraName. + */ + public java.lang.String getParaName() { + java.lang.Object ref = paraName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paraName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string paraName = 7; + * + * @return The bytes for paraName. + */ + public com.google.protobuf.ByteString getParaNameBytes() { + java.lang.Object ref = paraName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + paraName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string paraName = 7; + * + * @param value + * The paraName to set. + * + * @return This builder for chaining. + */ + public Builder setParaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + paraName_ = value; + onChanged(); + return this; + } + + /** + * string paraName = 7; + * + * @return This builder for chaining. + */ + public Builder clearParaName() { + + paraName_ = getDefaultInstance().getParaName(); + onChanged(); + return this; + } + + /** + * string paraName = 7; + * + * @param value + * The bytes for paraName to set. + * + * @return This builder for chaining. + */ + public Builder setParaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + paraName_ = value; + onChanged(); + return this; + } + + private java.lang.Object abi_ = ""; + + /** + * string abi = 8; + * + * @return The abi. + */ + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string abi = 8; + * + * @return The bytes for abi. + */ + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string abi = 8; + * + * @param value + * The abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + abi_ = value; + onChanged(); + return this; + } + + /** + * string abi = 8; + * + * @return This builder for chaining. + */ + public Builder clearAbi() { + + abi_ = getDefaultInstance().getAbi(); + onChanged(); + return this; + } + + /** + * string abi = 8; + * + * @param value + * The bytes for abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + abi_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EvmContractCallReq) + } + + // @@protoc_insertion_point(class_scope:EvmContractCallReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq(); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmContractCallReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmContractCallReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int RET_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString ret_; - /** - *
-     * 创建合约返回的代码
-     * 
- * - * bytes ret = 5; - */ - public com.google.protobuf.ByteString getRet() { - return ret_; } - public static final int JSONRET_FIELD_NUMBER = 6; - private volatile java.lang.Object jsonRet_; - /** - *
-     * json格式化后的返回值
-     * 
- * - * string jsonRet = 6; - */ - public java.lang.String getJsonRet() { - java.lang.Object ref = jsonRet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jsonRet_ = s; - return s; - } + public interface EvmTransferOnlyReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmTransferOnlyReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string to = 1; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + * string to = 1; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); + + /** + * string paraName = 3; + * + * @return The paraName. + */ + java.lang.String getParaName(); + + /** + * string paraName = 3; + * + * @return The bytes for paraName. + */ + com.google.protobuf.ByteString getParaNameBytes(); + + /** + * string note = 4; + * + * @return The note. + */ + java.lang.String getNote(); + + /** + * string note = 4; + * + * @return The bytes for note. + */ + com.google.protobuf.ByteString getNoteBytes(); } + /** - *
-     * json格式化后的返回值
-     * 
- * - * string jsonRet = 6; + * Protobuf type {@code EvmTransferOnlyReq} */ - public com.google.protobuf.ByteString - getJsonRetBytes() { - java.lang.Object ref = jsonRet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jsonRet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class EvmTransferOnlyReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmTransferOnlyReq) + EvmTransferOnlyReqOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use EvmTransferOnlyReq.newBuilder() to construct. + private EvmTransferOnlyReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private EvmTransferOnlyReq() { + to_ = ""; + paraName_ = ""; + note_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCallerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caller_); - } - if (!getContractNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractName_); - } - if (!getContractAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractAddr_); - } - if (usedGas_ != 0L) { - output.writeUInt64(4, usedGas_); - } - if (!ret_.isEmpty()) { - output.writeBytes(5, ret_); - } - if (!getJsonRetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jsonRet_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmTransferOnlyReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EvmTransferOnlyReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + paraName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.Builder.class); + } + + public static final int TO_FIELD_NUMBER = 1; + private volatile java.lang.Object to_; + + /** + * string to = 1; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + + /** + * string to = 1; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int PARANAME_FIELD_NUMBER = 3; + private volatile java.lang.Object paraName_; + + /** + * string paraName = 3; + * + * @return The paraName. + */ + @java.lang.Override + public java.lang.String getParaName() { + java.lang.Object ref = paraName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paraName_ = s; + return s; + } + } + + /** + * string paraName = 3; + * + * @return The bytes for paraName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParaNameBytes() { + java.lang.Object ref = paraName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + paraName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NOTE_FIELD_NUMBER = 4; + private volatile java.lang.Object note_; + + /** + * string note = 4; + * + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + + /** + * string note = 4; + * + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCallerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caller_); - } - if (!getContractNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractName_); - } - if (!getContractAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractAddr_); - } - if (usedGas_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, usedGas_); - } - if (!ret_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, ret_); - } - if (!getJsonRetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, jsonRet_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract other = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract) obj; - - if (!getCaller() - .equals(other.getCaller())) return false; - if (!getContractName() - .equals(other.getContractName())) return false; - if (!getContractAddr() - .equals(other.getContractAddr())) return false; - if (getUsedGas() - != other.getUsedGas()) return false; - if (!getRet() - .equals(other.getRet())) return false; - if (!getJsonRet() - .equals(other.getJsonRet())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CALLER_FIELD_NUMBER; - hash = (53 * hash) + getCaller().hashCode(); - hash = (37 * hash) + CONTRACTNAME_FIELD_NUMBER; - hash = (53 * hash) + getContractName().hashCode(); - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - hash = (37 * hash) + USEDGAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUsedGas()); - hash = (37 * hash) + RET_FIELD_NUMBER; - hash = (53 * hash) + getRet().hashCode(); - hash = (37 * hash) + JSONRET_FIELD_NUMBER; - hash = (53 * hash) + getJsonRet().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + memoizedIsInitialized = 1; + return true; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, to_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!getParaNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, paraName_); + } + if (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, note_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 合约创建/调用日志
-     * 
- * - * Protobuf type {@code ReceiptEVMContract} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptEVMContract) - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.class, cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - caller_ = ""; - - contractName_ = ""; - - contractAddr_ = ""; - - usedGas_ = 0L; - - ret_ = com.google.protobuf.ByteString.EMPTY; - - jsonRet_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContract_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract build() { - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract result = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract(this); - result.caller_ = caller_; - result.contractName_ = contractName_; - result.contractAddr_ = contractAddr_; - result.usedGas_ = usedGas_; - result.ret_ = ret_; - result.jsonRet_ = jsonRet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract.getDefaultInstance()) return this; - if (!other.getCaller().isEmpty()) { - caller_ = other.caller_; - onChanged(); - } - if (!other.getContractName().isEmpty()) { - contractName_ = other.contractName_; - onChanged(); - } - if (!other.getContractAddr().isEmpty()) { - contractAddr_ = other.contractAddr_; - onChanged(); - } - if (other.getUsedGas() != 0L) { - setUsedGas(other.getUsedGas()); - } - if (other.getRet() != com.google.protobuf.ByteString.EMPTY) { - setRet(other.getRet()); - } - if (!other.getJsonRet().isEmpty()) { - jsonRet_ = other.jsonRet_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object caller_ = ""; - /** - * string caller = 1; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string caller = 1; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string caller = 1; - */ - public Builder setCaller( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caller_ = value; - onChanged(); - return this; - } - /** - * string caller = 1; - */ - public Builder clearCaller() { - - caller_ = getDefaultInstance().getCaller(); - onChanged(); - return this; - } - /** - * string caller = 1; - */ - public Builder setCallerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caller_ = value; - onChanged(); - return this; - } - - private java.lang.Object contractName_ = ""; - /** - * string contractName = 2; - */ - public java.lang.String getContractName() { - java.lang.Object ref = contractName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contractName = 2; - */ - public com.google.protobuf.ByteString - getContractNameBytes() { - java.lang.Object ref = contractName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contractName = 2; - */ - public Builder setContractName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractName_ = value; - onChanged(); - return this; - } - /** - * string contractName = 2; - */ - public Builder clearContractName() { - - contractName_ = getDefaultInstance().getContractName(); - onChanged(); - return this; - } - /** - * string contractName = 2; - */ - public Builder setContractNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractName_ = value; - onChanged(); - return this; - } - - private java.lang.Object contractAddr_ = ""; - /** - * string contractAddr = 3; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contractAddr = 3; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contractAddr = 3; - */ - public Builder setContractAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** - * string contractAddr = 3; - */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - /** - * string contractAddr = 3; - */ - public Builder setContractAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractAddr_ = value; - onChanged(); - return this; - } - - private long usedGas_ ; - /** - * uint64 usedGas = 4; - */ - public long getUsedGas() { - return usedGas_; - } - /** - * uint64 usedGas = 4; - */ - public Builder setUsedGas(long value) { - - usedGas_ = value; - onChanged(); - return this; - } - /** - * uint64 usedGas = 4; - */ - public Builder clearUsedGas() { - - usedGas_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString ret_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * 创建合约返回的代码
-       * 
- * - * bytes ret = 5; - */ - public com.google.protobuf.ByteString getRet() { - return ret_; - } - /** - *
-       * 创建合约返回的代码
-       * 
- * - * bytes ret = 5; - */ - public Builder setRet(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - ret_ = value; - onChanged(); - return this; - } - /** - *
-       * 创建合约返回的代码
-       * 
- * - * bytes ret = 5; - */ - public Builder clearRet() { - - ret_ = getDefaultInstance().getRet(); - onChanged(); - return this; - } - - private java.lang.Object jsonRet_ = ""; - /** - *
-       * json格式化后的返回值
-       * 
- * - * string jsonRet = 6; - */ - public java.lang.String getJsonRet() { - java.lang.Object ref = jsonRet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jsonRet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * json格式化后的返回值
-       * 
- * - * string jsonRet = 6; - */ - public com.google.protobuf.ByteString - getJsonRetBytes() { - java.lang.Object ref = jsonRet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jsonRet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * json格式化后的返回值
-       * 
- * - * string jsonRet = 6; - */ - public Builder setJsonRet( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jsonRet_ = value; - onChanged(); - return this; - } - /** - *
-       * json格式化后的返回值
-       * 
- * - * string jsonRet = 6; - */ - public Builder clearJsonRet() { - - jsonRet_ = getDefaultInstance().getJsonRet(); - onChanged(); - return this; - } - /** - *
-       * json格式化后的返回值
-       * 
- * - * string jsonRet = 6; - */ - public Builder setJsonRetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jsonRet_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptEVMContract) - } + size = 0; + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, to_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!getParaNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, paraName_); + } + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, note_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - // @@protoc_insertion_point(class_scope:ReceiptEVMContract) - private static final cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq) obj; + + if (!getTo().equals(other.getTo())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getParaName().equals(other.getParaName())) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + PARANAME_FIELD_NUMBER; + hash = (53 * hash) + getParaName().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptEVMContract parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptEVMContract(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContract getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public interface EVMStateChangeItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:EVMStateChangeItem) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * bytes preValue = 2; - */ - com.google.protobuf.ByteString getPreValue(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * bytes currentValue = 3; - */ - com.google.protobuf.ByteString getCurrentValue(); - } - /** - *
-   * 用于保存EVM只能合约中的状态数据变更
-   * 
- * - * Protobuf type {@code EVMStateChangeItem} - */ - public static final class EVMStateChangeItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EVMStateChangeItem) - EVMStateChangeItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use EVMStateChangeItem.newBuilder() to construct. - private EVMStateChangeItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EVMStateChangeItem() { - key_ = ""; - preValue_ = com.google.protobuf.ByteString.EMPTY; - currentValue_ = com.google.protobuf.ByteString.EMPTY; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EVMStateChangeItem(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EVMStateChangeItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - - preValue_ = input.readBytes(); - break; - } - case 26: { - - currentValue_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int PREVALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString preValue_; - /** - * bytes preValue = 2; - */ - public com.google.protobuf.ByteString getPreValue() { - return preValue_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int CURRENTVALUE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString currentValue_; - /** - * bytes currentValue = 3; - */ - public com.google.protobuf.ByteString getCurrentValue() { - return currentValue_; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!preValue_.isEmpty()) { - output.writeBytes(2, preValue_); - } - if (!currentValue_.isEmpty()) { - output.writeBytes(3, currentValue_); - } - unknownFields.writeTo(output); - } + /** + * Protobuf type {@code EvmTransferOnlyReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmTransferOnlyReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!preValue_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, preValue_); - } - if (!currentValue_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, currentValue_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.Builder.class); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getPreValue() - .equals(other.getPreValue())) return false; - if (!getCurrentValue() - .equals(other.getCurrentValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + PREVALUE_FIELD_NUMBER; - hash = (53 * hash) + getPreValue().hashCode(); - hash = (37 * hash) + CURRENTVALUE_FIELD_NUMBER; - hash = (53 * hash) + getCurrentValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clear() { + super.clear(); + to_ = ""; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 用于保存EVM只能合约中的状态数据变更
-     * 
- * - * Protobuf type {@code EVMStateChangeItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EVMStateChangeItem) - cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - preValue_ = com.google.protobuf.ByteString.EMPTY; - - currentValue_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMStateChangeItem_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem build() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem(this); - result.key_ = key_; - result.preValue_ = preValue_; - result.currentValue_ = currentValue_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getPreValue() != com.google.protobuf.ByteString.EMPTY) { - setPreValue(other.getPreValue()); - } - if (other.getCurrentValue() != com.google.protobuf.ByteString.EMPTY) { - setCurrentValue(other.getCurrentValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString preValue_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes preValue = 2; - */ - public com.google.protobuf.ByteString getPreValue() { - return preValue_; - } - /** - * bytes preValue = 2; - */ - public Builder setPreValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - preValue_ = value; - onChanged(); - return this; - } - /** - * bytes preValue = 2; - */ - public Builder clearPreValue() { - - preValue_ = getDefaultInstance().getPreValue(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString currentValue_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes currentValue = 3; - */ - public com.google.protobuf.ByteString getCurrentValue() { - return currentValue_; - } - /** - * bytes currentValue = 3; - */ - public Builder setCurrentValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - currentValue_ = value; - onChanged(); - return this; - } - /** - * bytes currentValue = 3; - */ - public Builder clearCurrentValue() { - - currentValue_ = getDefaultInstance().getCurrentValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EVMStateChangeItem) - } + amount_ = 0L; - // @@protoc_insertion_point(class_scope:EVMStateChangeItem) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem(); - } + paraName_ = ""; - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } + note_ = ""; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EVMStateChangeItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EVMStateChangeItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_descriptor; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMStateChangeItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.getDefaultInstance(); + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface EVMContractDataCmdOrBuilder extends - // @@protoc_insertion_point(interface_extends:EVMContractDataCmd) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq( + this); + result.to_ = to_; + result.amount_ = amount_; + result.paraName_ = paraName_; + result.note_ = note_; + onBuilt(); + return result; + } - /** - * string creator = 1; - */ - java.lang.String getCreator(); - /** - * string creator = 1; - */ - com.google.protobuf.ByteString - getCreatorBytes(); + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - * string name = 2; - */ - java.lang.String getName(); - /** - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * string alias = 3; - */ - java.lang.String getAlias(); - /** - * string alias = 3; - */ - com.google.protobuf.ByteString - getAliasBytes(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - * string addr = 4; - */ - java.lang.String getAddr(); - /** - * string addr = 4; - */ - com.google.protobuf.ByteString - getAddrBytes(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * string code = 5; - */ - java.lang.String getCode(); - /** - * string code = 5; - */ - com.google.protobuf.ByteString - getCodeBytes(); + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * string codeHash = 6; - */ - java.lang.String getCodeHash(); - /** - * string codeHash = 6; - */ - com.google.protobuf.ByteString - getCodeHashBytes(); - } - /** - *
-   * 存放合约固定数据
-   * 
- * - * Protobuf type {@code EVMContractDataCmd} - */ - public static final class EVMContractDataCmd extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EVMContractDataCmd) - EVMContractDataCmdOrBuilder { - private static final long serialVersionUID = 0L; - // Use EVMContractDataCmd.newBuilder() to construct. - private EVMContractDataCmd(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EVMContractDataCmd() { - creator_ = ""; - name_ = ""; - alias_ = ""; - addr_ = ""; - code_ = ""; - codeHash_ = ""; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EVMContractDataCmd(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EVMContractDataCmd( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - creator_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - alias_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - codeHash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_descriptor; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.getDefaultInstance()) + return this; + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getParaName().isEmpty()) { + paraName_ = other.paraName_; + onChanged(); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int CREATOR_FIELD_NUMBER = 1; - private volatile java.lang.Object creator_; - /** - * string creator = 1; - */ - public java.lang.String getCreator() { - java.lang.Object ref = creator_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creator_ = s; - return s; - } - } - /** - * string creator = 1; - */ - public com.google.protobuf.ByteString - getCreatorBytes() { - java.lang.Object ref = creator_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creator_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private java.lang.Object to_ = ""; + + /** + * string to = 1; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int ALIAS_FIELD_NUMBER = 3; - private volatile java.lang.Object alias_; - /** - * string alias = 3; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } - } - /** - * string alias = 3; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 1; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int ADDR_FIELD_NUMBER = 4; - private volatile java.lang.Object addr_; - /** - * string addr = 4; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 4; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 1; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - public static final int CODE_FIELD_NUMBER = 5; - private volatile java.lang.Object code_; - /** - * string code = 5; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * string code = 5; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 1; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - public static final int CODEHASH_FIELD_NUMBER = 6; - private volatile java.lang.Object codeHash_; - /** - * string codeHash = 6; - */ - public java.lang.String getCodeHash() { - java.lang.Object ref = codeHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codeHash_ = s; - return s; - } - } - /** - * string codeHash = 6; - */ - public com.google.protobuf.ByteString - getCodeHashBytes() { - java.lang.Object ref = codeHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codeHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string to = 1; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private long amount_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCreatorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, creator_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!getAliasBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alias_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); - } - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, code_); - } - if (!getCodeHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, codeHash_); - } - unknownFields.writeTo(output); - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCreatorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, creator_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!getAliasBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); - } - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, code_); - } - if (!getCodeHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, codeHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd) obj; - - if (!getCreator() - .equals(other.getCreator())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getAlias() - .equals(other.getAlias())) return false; - if (!getAddr() - .equals(other.getAddr())) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!getCodeHash() - .equals(other.getCodeHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATOR_FIELD_NUMBER; - hash = (53 * hash) + getCreator().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + CODEHASH_FIELD_NUMBER; - hash = (53 * hash) + getCodeHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + amount_ = 0L; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private java.lang.Object paraName_ = ""; + + /** + * string paraName = 3; + * + * @return The paraName. + */ + public java.lang.String getParaName() { + java.lang.Object ref = paraName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paraName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string paraName = 3; + * + * @return The bytes for paraName. + */ + public com.google.protobuf.ByteString getParaNameBytes() { + java.lang.Object ref = paraName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + paraName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 存放合约固定数据
-     * 
- * - * Protobuf type {@code EVMContractDataCmd} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EVMContractDataCmd) - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - creator_ = ""; - - name_ = ""; - - alias_ = ""; - - addr_ = ""; - - code_ = ""; - - codeHash_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractDataCmd_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd build() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd(this); - result.creator_ = creator_; - result.name_ = name_; - result.alias_ = alias_; - result.addr_ = addr_; - result.code_ = code_; - result.codeHash_ = codeHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd.getDefaultInstance()) return this; - if (!other.getCreator().isEmpty()) { - creator_ = other.creator_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - onChanged(); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getCodeHash().isEmpty()) { - codeHash_ = other.codeHash_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object creator_ = ""; - /** - * string creator = 1; - */ - public java.lang.String getCreator() { - java.lang.Object ref = creator_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creator_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string creator = 1; - */ - public com.google.protobuf.ByteString - getCreatorBytes() { - java.lang.Object ref = creator_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creator_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string creator = 1; - */ - public Builder setCreator( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - creator_ = value; - onChanged(); - return this; - } - /** - * string creator = 1; - */ - public Builder clearCreator() { - - creator_ = getDefaultInstance().getCreator(); - onChanged(); - return this; - } - /** - * string creator = 1; - */ - public Builder setCreatorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - creator_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object alias_ = ""; - /** - * string alias = 3; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string alias = 3; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string alias = 3; - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alias_ = value; - onChanged(); - return this; - } - /** - * string alias = 3; - */ - public Builder clearAlias() { - - alias_ = getDefaultInstance().getAlias(); - onChanged(); - return this; - } - /** - * string alias = 3; - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alias_ = value; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 4; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 4; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 4; - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 4; - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 4; - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private java.lang.Object code_ = ""; - /** - * string code = 5; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string code = 5; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string code = 5; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * string code = 5; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * string code = 5; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object codeHash_ = ""; - /** - * string codeHash = 6; - */ - public java.lang.String getCodeHash() { - java.lang.Object ref = codeHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - codeHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string codeHash = 6; - */ - public com.google.protobuf.ByteString - getCodeHashBytes() { - java.lang.Object ref = codeHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - codeHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string codeHash = 6; - */ - public Builder setCodeHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - codeHash_ = value; - onChanged(); - return this; - } - /** - * string codeHash = 6; - */ - public Builder clearCodeHash() { - - codeHash_ = getDefaultInstance().getCodeHash(); - onChanged(); - return this; - } - /** - * string codeHash = 6; - */ - public Builder setCodeHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - codeHash_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EVMContractDataCmd) - } + /** + * string paraName = 3; + * + * @param value + * The paraName to set. + * + * @return This builder for chaining. + */ + public Builder setParaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + paraName_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:EVMContractDataCmd) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd(); - } + /** + * string paraName = 3; + * + * @return This builder for chaining. + */ + public Builder clearParaName() { - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd getDefaultInstance() { - return DEFAULT_INSTANCE; - } + paraName_ = getDefaultInstance().getParaName(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EVMContractDataCmd parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EVMContractDataCmd(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string paraName = 3; + * + * @param value + * The bytes for paraName to set. + * + * @return This builder for chaining. + */ + public Builder setParaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + paraName_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object note_ = ""; + + /** + * string note = 4; + * + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractDataCmd getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string note = 4; + * + * @return The bytes for note. + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } + /** + * string note = 4; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } - public interface EVMContractStateCmdOrBuilder extends - // @@protoc_insertion_point(interface_extends:EVMContractStateCmd) - com.google.protobuf.MessageOrBuilder { + /** + * string note = 4; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - /** - * uint64 nonce = 1; - */ - long getNonce(); + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - /** - * bool suicided = 2; - */ - boolean getSuicided(); + /** + * string note = 4; + * + * @param value + * The bytes for note to set. + * + * @return This builder for chaining. + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } - /** - * string storageHash = 3; - */ - java.lang.String getStorageHash(); - /** - * string storageHash = 3; - */ - com.google.protobuf.ByteString - getStorageHashBytes(); + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * map<string, string> storage = 4; - */ - int getStorageCount(); - /** - * map<string, string> storage = 4; - */ - boolean containsStorage( - java.lang.String key); - /** - * Use {@link #getStorageMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getStorage(); - /** - * map<string, string> storage = 4; - */ - java.util.Map - getStorageMap(); - /** - * map<string, string> storage = 4; - */ + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - java.lang.String getStorageOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> storage = 4; - */ + // @@protoc_insertion_point(builder_scope:EvmTransferOnlyReq) + } - java.lang.String getStorageOrThrow( - java.lang.String key); - } - /** - *
-   * 存放合约变化数据
-   * 
- * - * Protobuf type {@code EVMContractStateCmd} - */ - public static final class EVMContractStateCmd extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EVMContractStateCmd) - EVMContractStateCmdOrBuilder { - private static final long serialVersionUID = 0L; - // Use EVMContractStateCmd.newBuilder() to construct. - private EVMContractStateCmd(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EVMContractStateCmd() { - storageHash_ = ""; - } + // @@protoc_insertion_point(class_scope:EvmTransferOnlyReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EVMContractStateCmd(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EVMContractStateCmd( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readUInt64(); - break; - } - case 16: { - - suicided_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - storageHash_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - storage_ = com.google.protobuf.MapField.newMapField( - StorageDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - storage__ = input.readMessage( - StorageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - storage_.getMutableMap().put( - storage__.getKey(), storage__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_descriptor; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmTransferOnlyReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmTransferOnlyReq(input, extensionRegistry); + } + }; - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetStorage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.Builder.class); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - * uint64 nonce = 1; - */ - public long getNonce() { - return nonce_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int SUICIDED_FIELD_NUMBER = 2; - private boolean suicided_; - /** - * bool suicided = 2; - */ - public boolean getSuicided() { - return suicided_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int STORAGEHASH_FIELD_NUMBER = 3; - private volatile java.lang.Object storageHash_; - /** - * string storageHash = 3; - */ - public java.lang.String getStorageHash() { - java.lang.Object ref = storageHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storageHash_ = s; - return s; - } - } - /** - * string storageHash = 3; - */ - public com.google.protobuf.ByteString - getStorageHashBytes() { - java.lang.Object ref = storageHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storageHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } } - public static final int STORAGE_FIELD_NUMBER = 4; - private static final class StorageDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_StorageEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> storage_; - private com.google.protobuf.MapField - internalGetStorage() { - if (storage_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StorageDefaultEntryHolder.defaultEntry); - } - return storage_; - } + public interface EvmGetNonceReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmGetNonceReq) + com.google.protobuf.MessageOrBuilder { - public int getStorageCount() { - return internalGetStorage().getMap().size(); - } - /** - * map<string, string> storage = 4; - */ + /** + * string address = 1; + * + * @return The address. + */ + java.lang.String getAddress(); - public boolean containsStorage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetStorage().getMap().containsKey(key); - } - /** - * Use {@link #getStorageMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getStorage() { - return getStorageMap(); + /** + * string address = 1; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); } - /** - * map<string, string> storage = 4; - */ - public java.util.Map getStorageMap() { - return internalGetStorage().getMap(); - } /** - * map<string, string> storage = 4; + * Protobuf type {@code EvmGetNonceReq} */ + public static final class EvmGetNonceReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmGetNonceReq) + EvmGetNonceReqOrBuilder { + private static final long serialVersionUID = 0L; - public java.lang.String getStorageOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> storage = 4; - */ + // Use EvmGetNonceReq.newBuilder() to construct. + private EvmGetNonceReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public java.lang.String getStorageOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + private EvmGetNonceReq() { + address_ = ""; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmGetNonceReq(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeUInt64(1, nonce_); - } - if (suicided_ != false) { - output.writeBool(2, suicided_); - } - if (!getStorageHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, storageHash_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetStorage(), - StorageDefaultEntryHolder.defaultEntry, - 4); - unknownFields.writeTo(output); - } + private EvmGetNonceReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, nonce_); - } - if (suicided_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, suicided_); - } - if (!getStorageHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, storageHash_); - } - for (java.util.Map.Entry entry - : internalGetStorage().getMap().entrySet()) { - com.google.protobuf.MapEntry - storage__ = StorageDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, storage__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd other = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd) obj; - - if (getNonce() - != other.getNonce()) return false; - if (getSuicided() - != other.getSuicided()) return false; - if (!getStorageHash() - .equals(other.getStorageHash())) return false; - if (!internalGetStorage().equals( - other.internalGetStorage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.Builder.class); + } - @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) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (37 * hash) + SUICIDED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuicided()); - hash = (37 * hash) + STORAGEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStorageHash().hashCode(); - if (!internalGetStorage().getMap().isEmpty()) { - hash = (37 * hash) + STORAGE_FIELD_NUMBER; - hash = (53 * hash) + internalGetStorage().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string address = 1; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string address = 1; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 存放合约变化数据
-     * 
- * - * Protobuf type {@code EVMContractStateCmd} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EVMContractStateCmd) - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetStorage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableStorage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.class, cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - suicided_ = false; - - storageHash_ = ""; - - internalGetMutableStorage().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EVMContractStateCmd_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd build() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd result = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd(this); - int from_bitField0_ = bitField0_; - result.nonce_ = nonce_; - result.suicided_ = suicided_; - result.storageHash_ = storageHash_; - result.storage_ = internalGetStorage(); - result.storage_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (other.getSuicided() != false) { - setSuicided(other.getSuicided()); - } - if (!other.getStorageHash().isEmpty()) { - storageHash_ = other.storageHash_; - onChanged(); - } - internalGetMutableStorage().mergeFrom( - other.internalGetStorage()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long nonce_ ; - /** - * uint64 nonce = 1; - */ - public long getNonce() { - return nonce_; - } - /** - * uint64 nonce = 1; - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * uint64 nonce = 1; - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private boolean suicided_ ; - /** - * bool suicided = 2; - */ - public boolean getSuicided() { - return suicided_; - } - /** - * bool suicided = 2; - */ - public Builder setSuicided(boolean value) { - - suicided_ = value; - onChanged(); - return this; - } - /** - * bool suicided = 2; - */ - public Builder clearSuicided() { - - suicided_ = false; - onChanged(); - return this; - } - - private java.lang.Object storageHash_ = ""; - /** - * string storageHash = 3; - */ - public java.lang.String getStorageHash() { - java.lang.Object ref = storageHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storageHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string storageHash = 3; - */ - public com.google.protobuf.ByteString - getStorageHashBytes() { - java.lang.Object ref = storageHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storageHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string storageHash = 3; - */ - public Builder setStorageHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storageHash_ = value; - onChanged(); - return this; - } - /** - * string storageHash = 3; - */ - public Builder clearStorageHash() { - - storageHash_ = getDefaultInstance().getStorageHash(); - onChanged(); - return this; - } - /** - * string storageHash = 3; - */ - public Builder setStorageHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storageHash_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> storage_; - private com.google.protobuf.MapField - internalGetStorage() { - if (storage_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StorageDefaultEntryHolder.defaultEntry); - } - return storage_; - } - private com.google.protobuf.MapField - internalGetMutableStorage() { - onChanged();; - if (storage_ == null) { - storage_ = com.google.protobuf.MapField.newMapField( - StorageDefaultEntryHolder.defaultEntry); - } - if (!storage_.isMutable()) { - storage_ = storage_.copy(); - } - return storage_; - } - - public int getStorageCount() { - return internalGetStorage().getMap().size(); - } - /** - * map<string, string> storage = 4; - */ - - public boolean containsStorage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetStorage().getMap().containsKey(key); - } - /** - * Use {@link #getStorageMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getStorage() { - return getStorageMap(); - } - /** - * map<string, string> storage = 4; - */ - - public java.util.Map getStorageMap() { - return internalGetStorage().getMap(); - } - /** - * map<string, string> storage = 4; - */ - - public java.lang.String getStorageOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> storage = 4; - */ - - public java.lang.String getStorageOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetStorage().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearStorage() { - internalGetMutableStorage().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> storage = 4; - */ - - public Builder removeStorage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableStorage().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableStorage() { - return internalGetMutableStorage().getMutableMap(); - } - /** - * map<string, string> storage = 4; - */ - public Builder putStorage( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableStorage().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> storage = 4; - */ - - public Builder putAllStorage( - java.util.Map values) { - internalGetMutableStorage().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EVMContractStateCmd) - } + private byte memoizedIsInitialized = -1; - // @@protoc_insertion_point(class_scope:EVMContractStateCmd) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd getDefaultInstance() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EVMContractStateCmd parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EVMContractStateCmd(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EVMContractStateCmd getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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 cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq) obj; - public interface ReceiptEVMContractCmdOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptEVMContractCmd) - com.google.protobuf.MessageOrBuilder { + if (!getAddress().equals(other.getAddress())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - * string caller = 1; - */ - java.lang.String getCaller(); - /** - * string caller = 1; - */ - com.google.protobuf.ByteString - getCallerBytes(); + @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; + } - /** - *
-     * 合约创建时才会返回此内容
-     * 
- * - * string contractName = 2; - */ - java.lang.String getContractName(); - /** - *
-     * 合约创建时才会返回此内容
-     * 
- * - * string contractName = 2; - */ - com.google.protobuf.ByteString - getContractNameBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * string contractAddr = 3; - */ - java.lang.String getContractAddr(); - /** - * string contractAddr = 3; - */ - com.google.protobuf.ByteString - getContractAddrBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * uint64 usedGas = 4; - */ - long getUsedGas(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - *
-     * 创建合约返回的代码
-     * 
- * - * string ret = 5; - */ - java.lang.String getRet(); - /** - *
-     * 创建合约返回的代码
-     * 
- * - * string ret = 5; - */ - com.google.protobuf.ByteString - getRetBytes(); - } - /** - *
-   * 合约创建/调用日志
-   * 
- * - * Protobuf type {@code ReceiptEVMContractCmd} - */ - public static final class ReceiptEVMContractCmd extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptEVMContractCmd) - ReceiptEVMContractCmdOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptEVMContractCmd.newBuilder() to construct. - private ReceiptEVMContractCmd(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptEVMContractCmd() { - caller_ = ""; - contractName_ = ""; - contractAddr_ = ""; - ret_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptEVMContractCmd(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptEVMContractCmd( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - caller_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - contractName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - contractAddr_ = s; - break; - } - case 32: { - - usedGas_ = input.readUInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - ret_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.class, cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int CALLER_FIELD_NUMBER = 1; - private volatile java.lang.Object caller_; - /** - * string caller = 1; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } - } - /** - * string caller = 1; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int CONTRACTNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object contractName_; - /** - *
-     * 合约创建时才会返回此内容
-     * 
- * - * string contractName = 2; - */ - public java.lang.String getContractName() { - java.lang.Object ref = contractName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractName_ = s; - return s; - } - } - /** - *
-     * 合约创建时才会返回此内容
-     * 
- * - * string contractName = 2; - */ - public com.google.protobuf.ByteString - getContractNameBytes() { - java.lang.Object ref = contractName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int CONTRACTADDR_FIELD_NUMBER = 3; - private volatile java.lang.Object contractAddr_; - /** - * string contractAddr = 3; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } - } - /** - * string contractAddr = 3; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int USEDGAS_FIELD_NUMBER = 4; - private long usedGas_; - /** - * uint64 usedGas = 4; - */ - public long getUsedGas() { - return usedGas_; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int RET_FIELD_NUMBER = 5; - private volatile java.lang.Object ret_; - /** - *
-     * 创建合约返回的代码
-     * 
- * - * string ret = 5; - */ - public java.lang.String getRet() { - java.lang.Object ref = ret_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ret_ = s; - return s; - } - } - /** - *
-     * 创建合约返回的代码
-     * 
- * - * string ret = 5; - */ - public com.google.protobuf.ByteString - getRetBytes() { - java.lang.Object ref = ret_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ret_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCallerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caller_); - } - if (!getContractNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractName_); - } - if (!getContractAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractAddr_); - } - if (usedGas_ != 0L) { - output.writeUInt64(4, usedGas_); - } - if (!getRetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ret_); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCallerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caller_); - } - if (!getContractNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractName_); - } - if (!getContractAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractAddr_); - } - if (usedGas_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, usedGas_); - } - if (!getRetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ret_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd other = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd) obj; - - if (!getCaller() - .equals(other.getCaller())) return false; - if (!getContractName() - .equals(other.getContractName())) return false; - if (!getContractAddr() - .equals(other.getContractAddr())) return false; - if (getUsedGas() - != other.getUsedGas()) return false; - if (!getRet() - .equals(other.getRet())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CALLER_FIELD_NUMBER; - hash = (53 * hash) + getCaller().hashCode(); - hash = (37 * hash) + CONTRACTNAME_FIELD_NUMBER; - hash = (53 * hash) + getContractName().hashCode(); - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - hash = (37 * hash) + USEDGAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUsedGas()); - hash = (37 * hash) + RET_FIELD_NUMBER; - hash = (53 * hash) + getRet().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * Protobuf type {@code EvmGetNonceReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmGetNonceReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 合约创建/调用日志
-     * 
- * - * Protobuf type {@code ReceiptEVMContractCmd} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptEVMContractCmd) - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.class, cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - caller_ = ""; - - contractName_ = ""; - - contractAddr_ = ""; - - usedGas_ = 0L; - - ret_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_ReceiptEVMContractCmd_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd build() { - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd result = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd(this); - result.caller_ = caller_; - result.contractName_ = contractName_; - result.contractAddr_ = contractAddr_; - result.usedGas_ = usedGas_; - result.ret_ = ret_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd.getDefaultInstance()) return this; - if (!other.getCaller().isEmpty()) { - caller_ = other.caller_; - onChanged(); - } - if (!other.getContractName().isEmpty()) { - contractName_ = other.contractName_; - onChanged(); - } - if (!other.getContractAddr().isEmpty()) { - contractAddr_ = other.contractAddr_; - onChanged(); - } - if (other.getUsedGas() != 0L) { - setUsedGas(other.getUsedGas()); - } - if (!other.getRet().isEmpty()) { - ret_ = other.ret_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object caller_ = ""; - /** - * string caller = 1; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string caller = 1; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string caller = 1; - */ - public Builder setCaller( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caller_ = value; - onChanged(); - return this; - } - /** - * string caller = 1; - */ - public Builder clearCaller() { - - caller_ = getDefaultInstance().getCaller(); - onChanged(); - return this; - } - /** - * string caller = 1; - */ - public Builder setCallerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caller_ = value; - onChanged(); - return this; - } - - private java.lang.Object contractName_ = ""; - /** - *
-       * 合约创建时才会返回此内容
-       * 
- * - * string contractName = 2; - */ - public java.lang.String getContractName() { - java.lang.Object ref = contractName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * 合约创建时才会返回此内容
-       * 
- * - * string contractName = 2; - */ - public com.google.protobuf.ByteString - getContractNameBytes() { - java.lang.Object ref = contractName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * 合约创建时才会返回此内容
-       * 
- * - * string contractName = 2; - */ - public Builder setContractName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractName_ = value; - onChanged(); - return this; - } - /** - *
-       * 合约创建时才会返回此内容
-       * 
- * - * string contractName = 2; - */ - public Builder clearContractName() { - - contractName_ = getDefaultInstance().getContractName(); - onChanged(); - return this; - } - /** - *
-       * 合约创建时才会返回此内容
-       * 
- * - * string contractName = 2; - */ - public Builder setContractNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractName_ = value; - onChanged(); - return this; - } - - private java.lang.Object contractAddr_ = ""; - /** - * string contractAddr = 3; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contractAddr = 3; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contractAddr = 3; - */ - public Builder setContractAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** - * string contractAddr = 3; - */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - /** - * string contractAddr = 3; - */ - public Builder setContractAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractAddr_ = value; - onChanged(); - return this; - } - - private long usedGas_ ; - /** - * uint64 usedGas = 4; - */ - public long getUsedGas() { - return usedGas_; - } - /** - * uint64 usedGas = 4; - */ - public Builder setUsedGas(long value) { - - usedGas_ = value; - onChanged(); - return this; - } - /** - * uint64 usedGas = 4; - */ - public Builder clearUsedGas() { - - usedGas_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object ret_ = ""; - /** - *
-       * 创建合约返回的代码
-       * 
- * - * string ret = 5; - */ - public java.lang.String getRet() { - java.lang.Object ref = ret_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ret_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * 创建合约返回的代码
-       * 
- * - * string ret = 5; - */ - public com.google.protobuf.ByteString - getRetBytes() { - java.lang.Object ref = ret_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ret_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * 创建合约返回的代码
-       * 
- * - * string ret = 5; - */ - public Builder setRet( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ret_ = value; - onChanged(); - return this; - } - /** - *
-       * 创建合约返回的代码
-       * 
- * - * string ret = 5; - */ - public Builder clearRet() { - - ret_ = getDefaultInstance().getRet(); - onChanged(); - return this; - } - /** - *
-       * 创建合约返回的代码
-       * 
- * - * string ret = 5; - */ - public Builder setRetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ret_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptEVMContractCmd) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:ReceiptEVMContractCmd) - private static final cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptEVMContractCmd parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptEVMContractCmd(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_descriptor; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.ReceiptEVMContractCmd getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.getDefaultInstance(); + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface CheckEVMAddrReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:CheckEVMAddrReq) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq( + this); + result.address_ = address_; + onBuilt(); + return result; + } - /** - * string addr = 1; - */ - java.lang.String getAddr(); - /** - * string addr = 1; - */ - com.google.protobuf.ByteString - getAddrBytes(); - } - /** - * Protobuf type {@code CheckEVMAddrReq} - */ - public static final class CheckEVMAddrReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CheckEVMAddrReq) - CheckEVMAddrReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckEVMAddrReq.newBuilder() to construct. - private CheckEVMAddrReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CheckEVMAddrReq() { - addr_ = ""; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CheckEVMAddrReq(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CheckEVMAddrReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_descriptor; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.class, cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.Builder.class); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - * string addr = 1; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 1; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.getDefaultInstance()) + return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq other = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object address_ = ""; + + /** + * string address = 1; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string address = 1; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string address = 1; + * + * @param value + * The address to set. + * + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CheckEVMAddrReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CheckEVMAddrReq) - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.class, cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq result = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq(this); - result.addr_ = addr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 1; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 1; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 1; - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 1; - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 1; - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CheckEVMAddrReq) - } + /** + * string address = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { - // @@protoc_insertion_point(class_scope:CheckEVMAddrReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq(); - } + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string address = 1; + * + * @param value + * The bytes for address to set. + * + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckEVMAddrReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckEVMAddrReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:EvmGetNonceReq) + } - } + // @@protoc_insertion_point(class_scope:EvmGetNonceReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq(); + } - public interface CheckEVMAddrRespOrBuilder extends - // @@protoc_insertion_point(interface_extends:CheckEVMAddrResp) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * bool contract = 1; - */ - boolean getContract(); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmGetNonceReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmGetNonceReq(input, extensionRegistry); + } + }; - /** - * string contractAddr = 2; - */ - java.lang.String getContractAddr(); - /** - * string contractAddr = 2; - */ - com.google.protobuf.ByteString - getContractAddrBytes(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * string contractName = 3; - */ - java.lang.String getContractName(); - /** - * string contractName = 3; - */ - com.google.protobuf.ByteString - getContractNameBytes(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * string aliasName = 4; - */ - java.lang.String getAliasName(); - /** - * string aliasName = 4; - */ - com.google.protobuf.ByteString - getAliasNameBytes(); - } - /** - * Protobuf type {@code CheckEVMAddrResp} - */ - public static final class CheckEVMAddrResp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CheckEVMAddrResp) - CheckEVMAddrRespOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckEVMAddrResp.newBuilder() to construct. - private CheckEVMAddrResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CheckEVMAddrResp() { - contractAddr_ = ""; - contractName_ = ""; - aliasName_ = ""; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CheckEVMAddrResp(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CheckEVMAddrResp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - contract_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - contractAddr_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - contractName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - aliasName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_descriptor; - } + public interface EvmGetNonceResposeOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmGetNonceRespose) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.class, cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.Builder.class); + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); } - public static final int CONTRACT_FIELD_NUMBER = 1; - private boolean contract_; /** - * bool contract = 1; + * Protobuf type {@code EvmGetNonceRespose} */ - public boolean getContract() { - return contract_; - } + public static final class EvmGetNonceRespose extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmGetNonceRespose) + EvmGetNonceResposeOrBuilder { + private static final long serialVersionUID = 0L; - public static final int CONTRACTADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object contractAddr_; - /** - * string contractAddr = 2; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } - } - /** - * string contractAddr = 2; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Use EvmGetNonceRespose.newBuilder() to construct. + private EvmGetNonceRespose(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int CONTRACTNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object contractName_; - /** - * string contractName = 3; - */ - public java.lang.String getContractName() { - java.lang.Object ref = contractName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractName_ = s; - return s; - } - } - /** - * string contractName = 3; - */ - public com.google.protobuf.ByteString - getContractNameBytes() { - java.lang.Object ref = contractName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private EvmGetNonceRespose() { + } - public static final int ALIASNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object aliasName_; - /** - * string aliasName = 4; - */ - public java.lang.String getAliasName() { - java.lang.Object ref = aliasName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - aliasName_ = s; - return s; - } - } - /** - * string aliasName = 4; - */ - public com.google.protobuf.ByteString - getAliasNameBytes() { - java.lang.Object ref = aliasName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - aliasName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmGetNonceRespose(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private EvmGetNonceRespose(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + nonce_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (contract_ != false) { - output.writeBool(1, contract_); - } - if (!getContractAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractAddr_); - } - if (!getContractNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractName_); - } - if (!getAliasNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, aliasName_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.Builder.class); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (contract_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, contract_); - } - if (!getContractAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractAddr_); - } - if (!getContractNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractName_); - } - if (!getAliasNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, aliasName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int NONCE_FIELD_NUMBER = 1; + private long nonce_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp other = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp) obj; - - if (getContract() - != other.getContract()) return false; - if (!getContractAddr() - .equals(other.getContractAddr())) return false; - if (!getContractName() - .equals(other.getContractName())) return false; - if (!getAliasName() - .equals(other.getAliasName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContract()); - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - hash = (37 * hash) + CONTRACTNAME_FIELD_NUMBER; - hash = (53 * hash) + getContractName().hashCode(); - hash = (37 * hash) + ALIASNAME_FIELD_NUMBER; - hash = (53 * hash) + getAliasName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CheckEVMAddrResp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CheckEVMAddrResp) - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrRespOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.class, cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contract_ = false; - - contractAddr_ = ""; - - contractName_ = ""; - - aliasName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_CheckEVMAddrResp_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp build() { - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp result = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp(this); - result.contract_ = contract_; - result.contractAddr_ = contractAddr_; - result.contractName_ = contractName_; - result.aliasName_ = aliasName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp.getDefaultInstance()) return this; - if (other.getContract() != false) { - setContract(other.getContract()); - } - if (!other.getContractAddr().isEmpty()) { - contractAddr_ = other.contractAddr_; - onChanged(); - } - if (!other.getContractName().isEmpty()) { - contractName_ = other.contractName_; - onChanged(); - } - if (!other.getAliasName().isEmpty()) { - aliasName_ = other.aliasName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean contract_ ; - /** - * bool contract = 1; - */ - public boolean getContract() { - return contract_; - } - /** - * bool contract = 1; - */ - public Builder setContract(boolean value) { - - contract_ = value; - onChanged(); - return this; - } - /** - * bool contract = 1; - */ - public Builder clearContract() { - - contract_ = false; - onChanged(); - return this; - } - - private java.lang.Object contractAddr_ = ""; - /** - * string contractAddr = 2; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contractAddr = 2; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contractAddr = 2; - */ - public Builder setContractAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** - * string contractAddr = 2; - */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - /** - * string contractAddr = 2; - */ - public Builder setContractAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object contractName_ = ""; - /** - * string contractName = 3; - */ - public java.lang.String getContractName() { - java.lang.Object ref = contractName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contractName = 3; - */ - public com.google.protobuf.ByteString - getContractNameBytes() { - java.lang.Object ref = contractName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contractName = 3; - */ - public Builder setContractName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractName_ = value; - onChanged(); - return this; - } - /** - * string contractName = 3; - */ - public Builder clearContractName() { - - contractName_ = getDefaultInstance().getContractName(); - onChanged(); - return this; - } - /** - * string contractName = 3; - */ - public Builder setContractNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractName_ = value; - onChanged(); - return this; - } - - private java.lang.Object aliasName_ = ""; - /** - * string aliasName = 4; - */ - public java.lang.String getAliasName() { - java.lang.Object ref = aliasName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - aliasName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string aliasName = 4; - */ - public com.google.protobuf.ByteString - getAliasNameBytes() { - java.lang.Object ref = aliasName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - aliasName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string aliasName = 4; - */ - public Builder setAliasName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - aliasName_ = value; - onChanged(); - return this; - } - /** - * string aliasName = 4; - */ - public Builder clearAliasName() { - - aliasName_ = getDefaultInstance().getAliasName(); - onChanged(); - return this; - } - /** - * string aliasName = 4; - */ - public Builder setAliasNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - aliasName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CheckEVMAddrResp) - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeInt64(1, nonce_); + } + unknownFields.writeTo(output); + } - // @@protoc_insertion_point(class_scope:CheckEVMAddrResp) - private static final cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp getDefaultInstance() { - return DEFAULT_INSTANCE; - } + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nonce_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckEVMAddrResp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckEVMAddrResp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose) obj; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + if (getNonce() != other.getNonce()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.CheckEVMAddrResp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public interface EstimateEVMGasReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EstimateEVMGasReq) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * string tx = 1; - */ - java.lang.String getTx(); - /** - * string tx = 1; - */ - com.google.protobuf.ByteString - getTxBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * string from = 2; - */ - java.lang.String getFrom(); - /** - * string from = 2; - */ - com.google.protobuf.ByteString - getFromBytes(); - } - /** - * Protobuf type {@code EstimateEVMGasReq} - */ - public static final class EstimateEVMGasReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EstimateEVMGasReq) - EstimateEVMGasReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EstimateEVMGasReq.newBuilder() to construct. - private EstimateEVMGasReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EstimateEVMGasReq() { - tx_ = ""; - from_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EstimateEVMGasReq(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EstimateEVMGasReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - tx_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - from_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int TX_FIELD_NUMBER = 1; - private volatile java.lang.Object tx_; - /** - * string tx = 1; - */ - public java.lang.String getTx() { - java.lang.Object ref = tx_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tx_ = s; - return s; - } - } - /** - * string tx = 1; - */ - public com.google.protobuf.ByteString - getTxBytes() { - java.lang.Object ref = tx_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tx_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int FROM_FIELD_NUMBER = 2; - private volatile java.lang.Object from_; - /** - * string from = 2; - */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } - } - /** - * string from = 2; - */ - public com.google.protobuf.ByteString - getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tx_); - } - if (!getFromBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, from_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tx_); - } - if (!getFromBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, from_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq) obj; - - if (!getTx() - .equals(other.getTx())) return false; - if (!getFrom() - .equals(other.getFrom())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public 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 EvmGetNonceRespose} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmGetNonceRespose) + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceResposeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose( + this); + result.nonce_ = nonce_; + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EstimateEVMGasReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EstimateEVMGasReq) - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tx_ = ""; - - from_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq(this); - result.tx_ = tx_; - result.from_ = from_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq.getDefaultInstance()) return this; - if (!other.getTx().isEmpty()) { - tx_ = other.tx_; - onChanged(); - } - if (!other.getFrom().isEmpty()) { - from_ = other.from_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object tx_ = ""; - /** - * string tx = 1; - */ - public java.lang.String getTx() { - java.lang.Object ref = tx_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tx_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tx = 1; - */ - public com.google.protobuf.ByteString - getTxBytes() { - java.lang.Object ref = tx_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tx_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx = 1; - */ - public Builder setTx( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tx_ = value; - onChanged(); - return this; - } - /** - * string tx = 1; - */ - public Builder clearTx() { - - tx_ = getDefaultInstance().getTx(); - onChanged(); - return this; - } - /** - * string tx = 1; - */ - public Builder setTxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tx_ = value; - onChanged(); - return this; - } - - private java.lang.Object from_ = ""; - /** - * string from = 2; - */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from = 2; - */ - public com.google.protobuf.ByteString - getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from = 2; - */ - public Builder setFrom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * string from = 2; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - /** - * string from = 2; - */ - public Builder setFromBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - from_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EstimateEVMGasReq) - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - // @@protoc_insertion_point(class_scope:EstimateEVMGasReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EstimateEVMGasReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EstimateEVMGasReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose) other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface EstimateEVMGasRespOrBuilder extends - // @@protoc_insertion_point(interface_extends:EstimateEVMGasResp) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * uint64 gas = 1; - */ - long getGas(); - } - /** - * Protobuf type {@code EstimateEVMGasResp} - */ - public static final class EstimateEVMGasResp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EstimateEVMGasResp) - EstimateEVMGasRespOrBuilder { - private static final long serialVersionUID = 0L; - // Use EstimateEVMGasResp.newBuilder() to construct. - private EstimateEVMGasResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EstimateEVMGasResp() { - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EstimateEVMGasResp(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EstimateEVMGasResp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gas_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_descriptor; - } + private long nonce_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.Builder.class); - } + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } - public static final int GAS_FIELD_NUMBER = 1; - private long gas_; - /** - * uint64 gas = 1; - */ - public long getGas() { - return gas_; - } + /** + * int64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * int64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { - memoizedIsInitialized = 1; - return true; - } + nonce_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gas_ != 0L) { - output.writeUInt64(1, gas_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gas_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, gas_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp) obj; - - if (getGas() - != other.getGas()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:EvmGetNonceRespose) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGas()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:EvmGetNonceRespose) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose(); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmGetNonceRespose parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmGetNonceRespose(input, extensionRegistry); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EstimateEVMGasResp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EstimateEVMGasResp) - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasRespOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gas_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EstimateEVMGasResp_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp build() { - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp(this); - result.gas_ = gas_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp.getDefaultInstance()) return this; - if (other.getGas() != 0L) { - setGas(other.getGas()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long gas_ ; - /** - * uint64 gas = 1; - */ - public long getGas() { - return gas_; - } - /** - * uint64 gas = 1; - */ - public Builder setGas(long value) { - - gas_ = value; - onChanged(); - return this; - } - /** - * uint64 gas = 1; - */ - public Builder clearGas() { - - gas_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EstimateEVMGasResp) - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:EstimateEVMGasResp) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EstimateEVMGasResp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EstimateEVMGasResp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public interface EvmCalcNewContractAddrReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmCalcNewContractAddrReq) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EstimateEVMGasResp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string caller = 1; + * + * @return The caller. + */ + java.lang.String getCaller(); - } + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + com.google.protobuf.ByteString getCallerBytes(); - public interface EvmDebugReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmDebugReq) - com.google.protobuf.MessageOrBuilder { + /** + * string txhash = 2; + * + * @return The txhash. + */ + java.lang.String getTxhash(); + + /** + * string txhash = 2; + * + * @return The bytes for txhash. + */ + com.google.protobuf.ByteString getTxhashBytes(); + } /** - *
-     * 0 query, 1 set, -1 clear
-     * 
- * - * int32 optype = 1; + * Protobuf type {@code EvmCalcNewContractAddrReq} */ - int getOptype(); - } - /** - * Protobuf type {@code EvmDebugReq} - */ - public static final class EvmDebugReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmDebugReq) - EvmDebugReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmDebugReq.newBuilder() to construct. - private EvmDebugReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmDebugReq() { - } + public static final class EvmCalcNewContractAddrReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmCalcNewContractAddrReq) + EvmCalcNewContractAddrReqOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmDebugReq(); - } + // Use EvmCalcNewContractAddrReq.newBuilder() to construct. + private EvmCalcNewContractAddrReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmDebugReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - optype_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_descriptor; - } + private EvmCalcNewContractAddrReq() { + caller_ = ""; + txhash_ = ""; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.Builder.class); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmCalcNewContractAddrReq(); + } - public static final int OPTYPE_FIELD_NUMBER = 1; - private int optype_; - /** - *
-     * 0 query, 1 set, -1 clear
-     * 
- * - * int32 optype = 1; - */ - public int getOptype() { - return optype_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private EvmCalcNewContractAddrReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + caller_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + txhash_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.Builder.class); + } + + public static final int CALLER_FIELD_NUMBER = 1; + private volatile java.lang.Object caller_; + + /** + * string caller = 1; + * + * @return The caller. + */ + @java.lang.Override + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (optype_ != 0) { - output.writeInt32(1, optype_); - } - unknownFields.writeTo(output); - } + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (optype_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, optype_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int TXHASH_FIELD_NUMBER = 2; + private volatile java.lang.Object txhash_; + + /** + * string txhash = 2; + * + * @return The txhash. + */ + @java.lang.Override + public java.lang.String getTxhash() { + java.lang.Object ref = txhash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txhash_ = s; + return s; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq) obj; - - if (getOptype() - != other.getOptype()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string txhash = 2; + * + * @return The bytes for txhash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxhashBytes() { + java.lang.Object ref = txhash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txhash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OPTYPE_FIELD_NUMBER; - hash = (53 * hash) + getOptype(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmDebugReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmDebugReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - optype_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq(this); - result.optype_ = optype_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq.getDefaultInstance()) return this; - if (other.getOptype() != 0) { - setOptype(other.getOptype()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int optype_ ; - /** - *
-       * 0 query, 1 set, -1 clear
-       * 
- * - * int32 optype = 1; - */ - public int getOptype() { - return optype_; - } - /** - *
-       * 0 query, 1 set, -1 clear
-       * 
- * - * int32 optype = 1; - */ - public Builder setOptype(int value) { - - optype_ = value; - onChanged(); - return this; - } - /** - *
-       * 0 query, 1 set, -1 clear
-       * 
- * - * int32 optype = 1; - */ - public Builder clearOptype() { - - optype_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmDebugReq) - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCallerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caller_); + } + if (!getTxhashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, txhash_); + } + unknownFields.writeTo(output); + } - // @@protoc_insertion_point(class_scope:EvmDebugReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + size = 0; + if (!getCallerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caller_); + } + if (!getTxhashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txhash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmDebugReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmDebugReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq) obj; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + if (!getCaller().equals(other.getCaller())) + return false; + if (!getTxhash().equals(other.getTxhash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CALLER_FIELD_NUMBER; + hash = (53 * hash) + getCaller().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxhash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public interface EvmDebugRespOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmDebugResp) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * string debugStatus = 1; - */ - java.lang.String getDebugStatus(); - /** - * string debugStatus = 1; - */ - com.google.protobuf.ByteString - getDebugStatusBytes(); - } - /** - * Protobuf type {@code EvmDebugResp} - */ - public static final class EvmDebugResp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmDebugResp) - EvmDebugRespOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmDebugResp.newBuilder() to construct. - private EvmDebugResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmDebugResp() { - debugStatus_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmDebugResp(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmDebugResp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - debugStatus_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int DEBUGSTATUS_FIELD_NUMBER = 1; - private volatile java.lang.Object debugStatus_; - /** - * string debugStatus = 1; - */ - public java.lang.String getDebugStatus() { - java.lang.Object ref = debugStatus_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - debugStatus_ = s; - return s; - } - } - /** - * string debugStatus = 1; - */ - public com.google.protobuf.ByteString - getDebugStatusBytes() { - java.lang.Object ref = debugStatus_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debugStatus_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDebugStatusBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, debugStatus_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDebugStatusBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, debugStatus_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp) obj; - - if (!getDebugStatus() - .equals(other.getDebugStatus())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEBUGSTATUS_FIELD_NUMBER; - hash = (53 * hash) + getDebugStatus().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmDebugResp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmDebugResp) - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugRespOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - debugStatus_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmDebugResp_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp(this); - result.debugStatus_ = debugStatus_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp.getDefaultInstance()) return this; - if (!other.getDebugStatus().isEmpty()) { - debugStatus_ = other.debugStatus_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object debugStatus_ = ""; - /** - * string debugStatus = 1; - */ - public java.lang.String getDebugStatus() { - java.lang.Object ref = debugStatus_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - debugStatus_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string debugStatus = 1; - */ - public com.google.protobuf.ByteString - getDebugStatusBytes() { - java.lang.Object ref = debugStatus_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debugStatus_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string debugStatus = 1; - */ - public Builder setDebugStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - debugStatus_ = value; - onChanged(); - return this; - } - /** - * string debugStatus = 1; - */ - public Builder clearDebugStatus() { - - debugStatus_ = getDefaultInstance().getDebugStatus(); - onChanged(); - return this; - } - /** - * string debugStatus = 1; - */ - public Builder setDebugStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - debugStatus_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmDebugResp) - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - // @@protoc_insertion_point(class_scope:EvmDebugResp) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * Protobuf type {@code EvmCalcNewContractAddrReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmCalcNewContractAddrReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmDebugResp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmDebugResp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmDebugResp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public interface EvmQueryAbiReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmQueryAbiReq) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clear() { + super.clear(); + caller_ = ""; - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - } - /** - * Protobuf type {@code EvmQueryAbiReq} - */ - public static final class EvmQueryAbiReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmQueryAbiReq) - EvmQueryAbiReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmQueryAbiReq.newBuilder() to construct. - private EvmQueryAbiReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmQueryAbiReq() { - address_ = ""; - } + txhash_ = ""; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmQueryAbiReq(); - } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmQueryAbiReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_descriptor; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.getDefaultInstance(); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq( + this); + result.caller_ = caller_; + result.txhash_ = txhash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq + .getDefaultInstance()) + return this; + if (!other.getCaller().isEmpty()) { + caller_ = other.caller_; + onChanged(); + } + if (!other.getTxhash().isEmpty()) { + txhash_ = other.txhash_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object caller_ = ""; + + /** + * string caller = 1; + * + * @return The caller. + */ + public java.lang.String getCaller() { + java.lang.Object ref = caller_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caller_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmQueryAbiReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmQueryAbiReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq(this); - result.address_ = address_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmQueryAbiReq) - } + /** + * string caller = 1; + * + * @return The bytes for caller. + */ + public com.google.protobuf.ByteString getCallerBytes() { + java.lang.Object ref = caller_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + caller_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:EvmQueryAbiReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq(); - } + /** + * string caller = 1; + * + * @param value + * The caller to set. + * + * @return This builder for chaining. + */ + public Builder setCaller(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + caller_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string caller = 1; + * + * @return This builder for chaining. + */ + public Builder clearCaller() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmQueryAbiReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmQueryAbiReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + caller_ = getDefaultInstance().getCaller(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string caller = 1; + * + * @param value + * The bytes for caller to set. + * + * @return This builder for chaining. + */ + public Builder setCallerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caller_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private java.lang.Object txhash_ = ""; + + /** + * string txhash = 2; + * + * @return The txhash. + */ + public java.lang.String getTxhash() { + java.lang.Object ref = txhash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txhash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - } + /** + * string txhash = 2; + * + * @return The bytes for txhash. + */ + public com.google.protobuf.ByteString getTxhashBytes() { + java.lang.Object ref = txhash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + txhash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface EvmQueryAbiRespOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmQueryAbiResp) - com.google.protobuf.MessageOrBuilder { + /** + * string txhash = 2; + * + * @param value + * The txhash to set. + * + * @return This builder for chaining. + */ + public Builder setTxhash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txhash_ = value; + onChanged(); + return this; + } - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); + /** + * string txhash = 2; + * + * @return This builder for chaining. + */ + public Builder clearTxhash() { - /** - * string abi = 2; - */ - java.lang.String getAbi(); - /** - * string abi = 2; - */ - com.google.protobuf.ByteString - getAbiBytes(); - } - /** - * Protobuf type {@code EvmQueryAbiResp} - */ - public static final class EvmQueryAbiResp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmQueryAbiResp) - EvmQueryAbiRespOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmQueryAbiResp.newBuilder() to construct. - private EvmQueryAbiResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmQueryAbiResp() { - address_ = ""; - abi_ = ""; - } + txhash_ = getDefaultInstance().getTxhash(); + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmQueryAbiResp(); - } + /** + * string txhash = 2; + * + * @param value + * The bytes for txhash to set. + * + * @return This builder for chaining. + */ + public Builder setTxhashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txhash_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmQueryAbiResp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - abi_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_descriptor; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.Builder.class); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(builder_scope:EvmCalcNewContractAddrReq) + } - public static final int ABI_FIELD_NUMBER = 2; - private volatile java.lang.Object abi_; - /** - * string abi = 2; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } - } - /** - * string abi = 2; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(class_scope:EvmCalcNewContractAddrReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmCalcNewContractAddrReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmCalcNewContractAddrReq(input, extensionRegistry); + } + }; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (!getAbiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, abi_); - } - unknownFields.writeTo(output); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (!getAbiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, abi_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getAbi() - .equals(other.getAbi())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + ABI_FIELD_NUMBER; - hash = (53 * hash) + getAbi().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public interface EvmGetPackDataReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmGetPackDataReq) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string abi = 1; + * + * @return The abi. + */ + java.lang.String getAbi(); + + /** + * string abi = 1; + * + * @return The bytes for abi. + */ + com.google.protobuf.ByteString getAbiBytes(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string parameter = 2; + * + * @return The parameter. + */ + java.lang.String getParameter(); + + /** + * string parameter = 2; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); } + /** - * Protobuf type {@code EvmQueryAbiResp} + * Protobuf type {@code EvmGetPackDataReq} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmQueryAbiResp) - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiRespOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - abi_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryAbiResp_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp(this); - result.address_ = address_; - result.abi_ = abi_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (!other.getAbi().isEmpty()) { - abi_ = other.abi_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.lang.Object abi_ = ""; - /** - * string abi = 2; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string abi = 2; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string abi = 2; - */ - public Builder setAbi( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - abi_ = value; - onChanged(); - return this; - } - /** - * string abi = 2; - */ - public Builder clearAbi() { - - abi_ = getDefaultInstance().getAbi(); - onChanged(); - return this; - } - /** - * string abi = 2; - */ - public Builder setAbiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - abi_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmQueryAbiResp) - } + public static final class EvmGetPackDataReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmGetPackDataReq) + EvmGetPackDataReqOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:EvmQueryAbiResp) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp(); - } + // Use EvmGetPackDataReq.newBuilder() to construct. + private EvmGetPackDataReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private EvmGetPackDataReq() { + abi_ = ""; + parameter_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmQueryAbiResp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmQueryAbiResp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmGetPackDataReq(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryAbiResp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private EvmGetPackDataReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + abi_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + parameter_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.Builder.class); + } + + public static final int ABI_FIELD_NUMBER = 1; + private volatile java.lang.Object abi_; + + /** + * string abi = 1; + * + * @return The abi. + */ + @java.lang.Override + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } + } - public interface EvmQueryReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmQueryReq) - com.google.protobuf.MessageOrBuilder { + /** + * string abi = 1; + * + * @return The bytes for abi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); + public static final int PARAMETER_FIELD_NUMBER = 2; + private volatile java.lang.Object parameter_; + + /** + * string parameter = 2; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } + } - /** - * string input = 2; - */ - java.lang.String getInput(); - /** - * string input = 2; - */ - com.google.protobuf.ByteString - getInputBytes(); + /** + * string parameter = 2; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string caller = 3; - */ - java.lang.String getCaller(); - /** - * string caller = 3; - */ - com.google.protobuf.ByteString - getCallerBytes(); - } - /** - * Protobuf type {@code EvmQueryReq} - */ - public static final class EvmQueryReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmQueryReq) - EvmQueryReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmQueryReq.newBuilder() to construct. - private EvmQueryReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmQueryReq() { - address_ = ""; - input_ = ""; - caller_ = ""; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmQueryReq(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmQueryReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - input_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - caller_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.Builder.class); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAbiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abi_); + } + if (!getParameterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameter_); + } + unknownFields.writeTo(output); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int INPUT_FIELD_NUMBER = 2; - private volatile java.lang.Object input_; - /** - * string input = 2; - */ - public java.lang.String getInput() { - java.lang.Object ref = input_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - input_ = s; - return s; - } - } - /** - * string input = 2; - */ - public com.google.protobuf.ByteString - getInputBytes() { - java.lang.Object ref = input_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - input_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + size = 0; + if (!getAbiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, abi_); + } + if (!getParameterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int CALLER_FIELD_NUMBER = 3; - private volatile java.lang.Object caller_; - /** - * string caller = 3; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } - } - /** - * string caller = 3; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq) obj; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (!getAbi().equals(other.getAbi())) + return false; + if (!getParameter().equals(other.getParameter())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ABI_FIELD_NUMBER; + hash = (53 * hash) + getAbi().hashCode(); + hash = (37 * hash) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (!getInputBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_); - } - if (!getCallerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, caller_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (!getInputBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_); - } - if (!getCallerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, caller_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getInput() - .equals(other.getInput())) return false; - if (!getCaller() - .equals(other.getCaller())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + INPUT_FIELD_NUMBER; - hash = (53 * hash) + getInput().hashCode(); - hash = (37 * hash) + CALLER_FIELD_NUMBER; - hash = (53 * hash) + getCaller().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmQueryReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmQueryReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - input_ = ""; - - caller_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq(this); - result.address_ = address_; - result.input_ = input_; - result.caller_ = caller_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (!other.getInput().isEmpty()) { - input_ = other.input_; - onChanged(); - } - if (!other.getCaller().isEmpty()) { - caller_ = other.caller_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.lang.Object input_ = ""; - /** - * string input = 2; - */ - public java.lang.String getInput() { - java.lang.Object ref = input_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - input_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string input = 2; - */ - public com.google.protobuf.ByteString - getInputBytes() { - java.lang.Object ref = input_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - input_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string input = 2; - */ - public Builder setInput( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - input_ = value; - onChanged(); - return this; - } - /** - * string input = 2; - */ - public Builder clearInput() { - - input_ = getDefaultInstance().getInput(); - onChanged(); - return this; - } - /** - * string input = 2; - */ - public Builder setInputBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - input_ = value; - onChanged(); - return this; - } - - private java.lang.Object caller_ = ""; - /** - * string caller = 3; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string caller = 3; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string caller = 3; - */ - public Builder setCaller( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caller_ = value; - onChanged(); - return this; - } - /** - * string caller = 3; - */ - public Builder clearCaller() { - - caller_ = getDefaultInstance().getCaller(); - onChanged(); - return this; - } - /** - * string caller = 3; - */ - public Builder setCallerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caller_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmQueryReq) - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:EvmQueryReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmQueryReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmQueryReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public interface EvmQueryRespOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmQueryResp) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * string input = 2; - */ - java.lang.String getInput(); - /** - * string input = 2; - */ - com.google.protobuf.ByteString - getInputBytes(); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * string caller = 3; - */ - java.lang.String getCaller(); - /** - * string caller = 3; - */ - com.google.protobuf.ByteString - getCallerBytes(); + /** + * Protobuf type {@code EvmGetPackDataReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmGetPackDataReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_descriptor; + } - /** - * string rawData = 4; - */ - java.lang.String getRawData(); - /** - * string rawData = 4; - */ - com.google.protobuf.ByteString - getRawDataBytes(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.Builder.class); + } - /** - * string jsonData = 5; - */ - java.lang.String getJsonData(); - /** - * string jsonData = 5; - */ - com.google.protobuf.ByteString - getJsonDataBytes(); - } - /** - * Protobuf type {@code EvmQueryResp} - */ - public static final class EvmQueryResp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmQueryResp) - EvmQueryRespOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmQueryResp.newBuilder() to construct. - private EvmQueryResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmQueryResp() { - address_ = ""; - input_ = ""; - caller_ = ""; - rawData_ = ""; - jsonData_ = ""; - } + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmQueryResp(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + abi_ = ""; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmQueryResp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - input_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - caller_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - rawData_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - jsonData_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_descriptor; - } + parameter_ = ""; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.Builder.class); - } + return this; + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_descriptor; + } - public static final int INPUT_FIELD_NUMBER = 2; - private volatile java.lang.Object input_; - /** - * string input = 2; - */ - public java.lang.String getInput() { - java.lang.Object ref = input_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - input_ = s; - return s; - } - } - /** - * string input = 2; - */ - public com.google.protobuf.ByteString - getInputBytes() { - java.lang.Object ref = input_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - input_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.getDefaultInstance(); + } - public static final int CALLER_FIELD_NUMBER = 3; - private volatile java.lang.Object caller_; - /** - * string caller = 3; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } - } - /** - * string caller = 3; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int RAWDATA_FIELD_NUMBER = 4; - private volatile java.lang.Object rawData_; - /** - * string rawData = 4; - */ - public java.lang.String getRawData() { - java.lang.Object ref = rawData_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rawData_ = s; - return s; - } - } - /** - * string rawData = 4; - */ - public com.google.protobuf.ByteString - getRawDataBytes() { - java.lang.Object ref = rawData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rawData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq( + this); + result.abi_ = abi_; + result.parameter_ = parameter_; + onBuilt(); + return result; + } - public static final int JSONDATA_FIELD_NUMBER = 5; - private volatile java.lang.Object jsonData_; - /** - * string jsonData = 5; - */ - public java.lang.String getJsonData() { - java.lang.Object ref = jsonData_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jsonData_ = s; - return s; - } - } - /** - * string jsonData = 5; - */ - public com.google.protobuf.ByteString - getJsonDataBytes() { - java.lang.Object ref = jsonData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jsonData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - if (!getInputBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_); - } - if (!getCallerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, caller_); - } - if (!getRawDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rawData_); - } - if (!getJsonDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, jsonData_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - if (!getInputBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_); - } - if (!getCallerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, caller_); - } - if (!getRawDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rawData_); - } - if (!getJsonDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, jsonData_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!getInput() - .equals(other.getInput())) return false; - if (!getCaller() - .equals(other.getCaller())) return false; - if (!getRawData() - .equals(other.getRawData())) return false; - if (!getJsonData() - .equals(other.getJsonData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + INPUT_FIELD_NUMBER; - hash = (53 * hash) + getInput().hashCode(); - hash = (37 * hash) + CALLER_FIELD_NUMBER; - hash = (53 * hash) + getCaller().hashCode(); - hash = (37 * hash) + RAWDATA_FIELD_NUMBER; - hash = (53 * hash) + getRawData().hashCode(); - hash = (37 * hash) + JSONDATA_FIELD_NUMBER; - hash = (53 * hash) + getJsonData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.getDefaultInstance()) + return this; + if (!other.getAbi().isEmpty()) { + abi_ = other.abi_; + onChanged(); + } + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmQueryResp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmQueryResp) - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryRespOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - input_ = ""; - - caller_ = ""; - - rawData_ = ""; - - jsonData_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmQueryResp_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp(this); - result.address_ = address_; - result.input_ = input_; - result.caller_ = caller_; - result.rawData_ = rawData_; - result.jsonData_ = jsonData_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (!other.getInput().isEmpty()) { - input_ = other.input_; - onChanged(); - } - if (!other.getCaller().isEmpty()) { - caller_ = other.caller_; - onChanged(); - } - if (!other.getRawData().isEmpty()) { - rawData_ = other.rawData_; - onChanged(); - } - if (!other.getJsonData().isEmpty()) { - jsonData_ = other.jsonData_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private java.lang.Object input_ = ""; - /** - * string input = 2; - */ - public java.lang.String getInput() { - java.lang.Object ref = input_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - input_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string input = 2; - */ - public com.google.protobuf.ByteString - getInputBytes() { - java.lang.Object ref = input_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - input_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string input = 2; - */ - public Builder setInput( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - input_ = value; - onChanged(); - return this; - } - /** - * string input = 2; - */ - public Builder clearInput() { - - input_ = getDefaultInstance().getInput(); - onChanged(); - return this; - } - /** - * string input = 2; - */ - public Builder setInputBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - input_ = value; - onChanged(); - return this; - } - - private java.lang.Object caller_ = ""; - /** - * string caller = 3; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string caller = 3; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string caller = 3; - */ - public Builder setCaller( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caller_ = value; - onChanged(); - return this; - } - /** - * string caller = 3; - */ - public Builder clearCaller() { - - caller_ = getDefaultInstance().getCaller(); - onChanged(); - return this; - } - /** - * string caller = 3; - */ - public Builder setCallerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caller_ = value; - onChanged(); - return this; - } - - private java.lang.Object rawData_ = ""; - /** - * string rawData = 4; - */ - public java.lang.String getRawData() { - java.lang.Object ref = rawData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rawData_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string rawData = 4; - */ - public com.google.protobuf.ByteString - getRawDataBytes() { - java.lang.Object ref = rawData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rawData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string rawData = 4; - */ - public Builder setRawData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rawData_ = value; - onChanged(); - return this; - } - /** - * string rawData = 4; - */ - public Builder clearRawData() { - - rawData_ = getDefaultInstance().getRawData(); - onChanged(); - return this; - } - /** - * string rawData = 4; - */ - public Builder setRawDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rawData_ = value; - onChanged(); - return this; - } - - private java.lang.Object jsonData_ = ""; - /** - * string jsonData = 5; - */ - public java.lang.String getJsonData() { - java.lang.Object ref = jsonData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jsonData_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string jsonData = 5; - */ - public com.google.protobuf.ByteString - getJsonDataBytes() { - java.lang.Object ref = jsonData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jsonData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string jsonData = 5; - */ - public Builder setJsonData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jsonData_ = value; - onChanged(); - return this; - } - /** - * string jsonData = 5; - */ - public Builder clearJsonData() { - - jsonData_ = getDefaultInstance().getJsonData(); - onChanged(); - return this; - } - /** - * string jsonData = 5; - */ - public Builder setJsonDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jsonData_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmQueryResp) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - // @@protoc_insertion_point(class_scope:EvmQueryResp) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp(); - } + private java.lang.Object abi_ = ""; + + /** + * string abi = 1; + * + * @return The abi. + */ + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string abi = 1; + * + * @return The bytes for abi. + */ + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmQueryResp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmQueryResp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string abi = 1; + * + * @param value + * The abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + abi_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string abi = 1; + * + * @return This builder for chaining. + */ + public Builder clearAbi() { - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmQueryResp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + abi_ = getDefaultInstance().getAbi(); + onChanged(); + return this; + } - } + /** + * string abi = 1; + * + * @param value + * The bytes for abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + abi_ = value; + onChanged(); + return this; + } - public interface EvmContractCreateReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmContractCreateReq) - com.google.protobuf.MessageOrBuilder { + private java.lang.Object parameter_ = ""; + + /** + * string parameter = 2; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * string code = 1; - */ - java.lang.String getCode(); - /** - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); + /** + * string parameter = 2; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string abi = 2; - */ - java.lang.String getAbi(); - /** - * string abi = 2; - */ - com.google.protobuf.ByteString - getAbiBytes(); + /** + * string parameter = 2; + * + * @param value + * The parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameter_ = value; + onChanged(); + return this; + } - /** - * int64 fee = 3; - */ - long getFee(); + /** + * string parameter = 2; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { - /** - * string note = 4; - */ - java.lang.String getNote(); - /** - * string note = 4; - */ - com.google.protobuf.ByteString - getNoteBytes(); + parameter_ = getDefaultInstance().getParameter(); + onChanged(); + return this; + } - /** - * string alias = 5; - */ - java.lang.String getAlias(); - /** - * string alias = 5; - */ - com.google.protobuf.ByteString - getAliasBytes(); + /** + * string parameter = 2; + * + * @param value + * The bytes for parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameter_ = value; + onChanged(); + return this; + } - /** - * string parameter = 6; - */ - java.lang.String getParameter(); - /** - * string parameter = 6; - */ - com.google.protobuf.ByteString - getParameterBytes(); + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * string expire = 7; - */ - java.lang.String getExpire(); - /** - * string expire = 7; - */ - com.google.protobuf.ByteString - getExpireBytes(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - * string paraName = 8; - */ - java.lang.String getParaName(); - /** - * string paraName = 8; - */ - com.google.protobuf.ByteString - getParaNameBytes(); + // @@protoc_insertion_point(builder_scope:EvmGetPackDataReq) + } - /** - * int64 amount = 9; - */ - long getAmount(); - } - /** - * Protobuf type {@code EvmContractCreateReq} - */ - public static final class EvmContractCreateReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmContractCreateReq) - EvmContractCreateReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmContractCreateReq.newBuilder() to construct. - private EvmContractCreateReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmContractCreateReq() { - code_ = ""; - abi_ = ""; - note_ = ""; - alias_ = ""; - parameter_ = ""; - expire_ = ""; - paraName_ = ""; - } + // @@protoc_insertion_point(class_scope:EvmGetPackDataReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmContractCreateReq(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmContractCreateReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - abi_ = s; - break; - } - case 24: { - - fee_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - note_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - alias_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - parameter_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - expire_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - paraName_ = s; - break; - } - case 72: { - - amount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_descriptor; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmGetPackDataReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmGetPackDataReq(input, extensionRegistry); + } + }; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.Builder.class); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int ABI_FIELD_NUMBER = 2; - private volatile java.lang.Object abi_; - /** - * string abi = 2; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } - } - /** - * string abi = 2; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int FEE_FIELD_NUMBER = 3; - private long fee_; - /** - * int64 fee = 3; - */ - public long getFee() { - return fee_; } - public static final int NOTE_FIELD_NUMBER = 4; - private volatile java.lang.Object note_; - /** - * string note = 4; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } - } - /** - * string note = 4; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public interface EvmGetPackDataResposeOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmGetPackDataRespose) + com.google.protobuf.MessageOrBuilder { - public static final int ALIAS_FIELD_NUMBER = 5; - private volatile java.lang.Object alias_; - /** - * string alias = 5; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } - } - /** - * string alias = 5; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string packData = 1; + * + * @return The packData. + */ + java.lang.String getPackData(); - public static final int PARAMETER_FIELD_NUMBER = 6; - private volatile java.lang.Object parameter_; - /** - * string parameter = 6; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } - } - /** - * string parameter = 6; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * string packData = 1; + * + * @return The bytes for packData. + */ + com.google.protobuf.ByteString getPackDataBytes(); } - public static final int EXPIRE_FIELD_NUMBER = 7; - private volatile java.lang.Object expire_; - /** - * string expire = 7; - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } - } /** - * string expire = 7; + * Protobuf type {@code EvmGetPackDataRespose} */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class EvmGetPackDataRespose extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmGetPackDataRespose) + EvmGetPackDataResposeOrBuilder { + private static final long serialVersionUID = 0L; - public static final int PARANAME_FIELD_NUMBER = 8; - private volatile java.lang.Object paraName_; - /** - * string paraName = 8; - */ - public java.lang.String getParaName() { - java.lang.Object ref = paraName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paraName_ = s; - return s; - } - } - /** - * string paraName = 8; - */ - public com.google.protobuf.ByteString - getParaNameBytes() { - java.lang.Object ref = paraName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paraName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Use EvmGetPackDataRespose.newBuilder() to construct. + private EvmGetPackDataRespose(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int AMOUNT_FIELD_NUMBER = 9; - private long amount_; - /** - * int64 amount = 9; - */ - public long getAmount() { - return amount_; - } + private EvmGetPackDataRespose() { + packData_ = ""; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmGetPackDataRespose(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getAbiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, abi_); - } - if (fee_ != 0L) { - output.writeInt64(3, fee_); - } - if (!getNoteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, note_); - } - if (!getAliasBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alias_); - } - if (!getParameterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parameter_); - } - if (!getExpireBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, expire_); - } - if (!getParaNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, paraName_); - } - if (amount_ != 0L) { - output.writeInt64(9, amount_); - } - unknownFields.writeTo(output); - } + private EvmGetPackDataRespose(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + packData_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getAbiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, abi_); - } - if (fee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, fee_); - } - if (!getNoteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, note_); - } - if (!getAliasBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, alias_); - } - if (!getParameterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parameter_); - } - if (!getExpireBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, expire_); - } - if (!getParaNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, paraName_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, amount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.Builder.class); + } + + public static final int PACKDATA_FIELD_NUMBER = 1; + private volatile java.lang.Object packData_; + + /** + * string packData = 1; + * + * @return The packData. + */ + @java.lang.Override + public java.lang.String getPackData() { + java.lang.Object ref = packData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packData_ = s; + return s; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq) obj; - - if (!getCode() - .equals(other.getCode())) return false; - if (!getAbi() - .equals(other.getAbi())) return false; - if (getFee() - != other.getFee()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getAlias() - .equals(other.getAlias())) return false; - if (!getParameter() - .equals(other.getParameter())) return false; - if (!getExpire() - .equals(other.getExpire())) return false; - if (!getParaName() - .equals(other.getParaName())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string packData = 1; + * + * @return The bytes for packData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackDataBytes() { + java.lang.Object ref = packData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + ABI_FIELD_NUMBER; - hash = (53 * hash) + getAbi().hashCode(); - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFee()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (37 * hash) + PARAMETER_FIELD_NUMBER; - hash = (53 * hash) + getParameter().hashCode(); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + getExpire().hashCode(); - hash = (37 * hash) + PARANAME_FIELD_NUMBER; - hash = (53 * hash) + getParaName().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmContractCreateReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmContractCreateReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = ""; - - abi_ = ""; - - fee_ = 0L; - - note_ = ""; - - alias_ = ""; - - parameter_ = ""; - - expire_ = ""; - - paraName_ = ""; - - amount_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCreateReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq(this); - result.code_ = code_; - result.abi_ = abi_; - result.fee_ = fee_; - result.note_ = note_; - result.alias_ = alias_; - result.parameter_ = parameter_; - result.expire_ = expire_; - result.paraName_ = paraName_; - result.amount_ = amount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getAbi().isEmpty()) { - abi_ = other.abi_; - onChanged(); - } - if (other.getFee() != 0L) { - setFee(other.getFee()); - } - if (!other.getNote().isEmpty()) { - note_ = other.note_; - onChanged(); - } - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - onChanged(); - } - if (!other.getParameter().isEmpty()) { - parameter_ = other.parameter_; - onChanged(); - } - if (!other.getExpire().isEmpty()) { - expire_ = other.expire_; - onChanged(); - } - if (!other.getParaName().isEmpty()) { - paraName_ = other.paraName_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object abi_ = ""; - /** - * string abi = 2; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string abi = 2; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string abi = 2; - */ - public Builder setAbi( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - abi_ = value; - onChanged(); - return this; - } - /** - * string abi = 2; - */ - public Builder clearAbi() { - - abi_ = getDefaultInstance().getAbi(); - onChanged(); - return this; - } - /** - * string abi = 2; - */ - public Builder setAbiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - abi_ = value; - onChanged(); - return this; - } - - private long fee_ ; - /** - * int64 fee = 3; - */ - public long getFee() { - return fee_; - } - /** - * int64 fee = 3; - */ - public Builder setFee(long value) { - - fee_ = value; - onChanged(); - return this; - } - /** - * int64 fee = 3; - */ - public Builder clearFee() { - - fee_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object note_ = ""; - /** - * string note = 4; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string note = 4; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string note = 4; - */ - public Builder setNote( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * string note = 4; - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - /** - * string note = 4; - */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - note_ = value; - onChanged(); - return this; - } - - private java.lang.Object alias_ = ""; - /** - * string alias = 5; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string alias = 5; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string alias = 5; - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alias_ = value; - onChanged(); - return this; - } - /** - * string alias = 5; - */ - public Builder clearAlias() { - - alias_ = getDefaultInstance().getAlias(); - onChanged(); - return this; - } - /** - * string alias = 5; - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alias_ = value; - onChanged(); - return this; - } - - private java.lang.Object parameter_ = ""; - /** - * string parameter = 6; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string parameter = 6; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string parameter = 6; - */ - public Builder setParameter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parameter_ = value; - onChanged(); - return this; - } - /** - * string parameter = 6; - */ - public Builder clearParameter() { - - parameter_ = getDefaultInstance().getParameter(); - onChanged(); - return this; - } - /** - * string parameter = 6; - */ - public Builder setParameterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parameter_ = value; - onChanged(); - return this; - } - - private java.lang.Object expire_ = ""; - /** - * string expire = 7; - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string expire = 7; - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expire = 7; - */ - public Builder setExpire( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expire_ = value; - onChanged(); - return this; - } - /** - * string expire = 7; - */ - public Builder clearExpire() { - - expire_ = getDefaultInstance().getExpire(); - onChanged(); - return this; - } - /** - * string expire = 7; - */ - public Builder setExpireBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expire_ = value; - onChanged(); - return this; - } - - private java.lang.Object paraName_ = ""; - /** - * string paraName = 8; - */ - public java.lang.String getParaName() { - java.lang.Object ref = paraName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paraName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string paraName = 8; - */ - public com.google.protobuf.ByteString - getParaNameBytes() { - java.lang.Object ref = paraName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paraName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string paraName = 8; - */ - public Builder setParaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - paraName_ = value; - onChanged(); - return this; - } - /** - * string paraName = 8; - */ - public Builder clearParaName() { - - paraName_ = getDefaultInstance().getParaName(); - onChanged(); - return this; - } - /** - * string paraName = 8; - */ - public Builder setParaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - paraName_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 9; - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 9; - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 9; - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmContractCreateReq) - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPackDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packData_); + } + unknownFields.writeTo(output); + } - // @@protoc_insertion_point(class_scope:EvmContractCreateReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + size = 0; + if (!getPackDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packData_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmContractCreateReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmContractCreateReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose) obj; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + if (!getPackData().equals(other.getPackData())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCreateReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PACKDATA_FIELD_NUMBER; + hash = (53 * hash) + getPackData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public interface EvmContractCallReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmContractCallReq) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * int64 amount = 1; - */ - long getAmount(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * int64 fee = 2; - */ - long getFee(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * string note = 3; - */ - java.lang.String getNote(); - /** - * string note = 3; - */ - com.google.protobuf.ByteString - getNoteBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string parameter = 4; - */ - java.lang.String getParameter(); - /** - * string parameter = 4; - */ - com.google.protobuf.ByteString - getParameterBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * string contractAddr = 5; - */ - java.lang.String getContractAddr(); - /** - * string contractAddr = 5; - */ - com.google.protobuf.ByteString - getContractAddrBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - /** - * string expire = 6; - */ - java.lang.String getExpire(); - /** - * string expire = 6; - */ - com.google.protobuf.ByteString - getExpireBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * string paraName = 7; - */ - java.lang.String getParaName(); - /** - * string paraName = 7; - */ - com.google.protobuf.ByteString - getParaNameBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string abi = 8; - */ - java.lang.String getAbi(); - /** - * string abi = 8; - */ - com.google.protobuf.ByteString - getAbiBytes(); - } - /** - * Protobuf type {@code EvmContractCallReq} - */ - public static final class EvmContractCallReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmContractCallReq) - EvmContractCallReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmContractCallReq.newBuilder() to construct. - private EvmContractCallReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmContractCallReq() { - note_ = ""; - parameter_ = ""; - contractAddr_ = ""; - expire_ = ""; - paraName_ = ""; - abi_ = ""; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmContractCallReq(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmContractCallReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - amount_ = input.readInt64(); - break; - } - case 16: { - - fee_ = input.readInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - note_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - parameter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - contractAddr_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - expire_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - paraName_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - abi_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_descriptor; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.Builder.class); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int AMOUNT_FIELD_NUMBER = 1; - private long amount_; - /** - * int64 amount = 1; - */ - public long getAmount() { - return amount_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int FEE_FIELD_NUMBER = 2; - private long fee_; - /** - * int64 fee = 2; - */ - public long getFee() { - return fee_; - } + /** + * Protobuf type {@code EvmGetPackDataRespose} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmGetPackDataRespose) + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataResposeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_descriptor; + } - public static final int NOTE_FIELD_NUMBER = 3; - private volatile java.lang.Object note_; - /** - * string note = 3; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } - } - /** - * string note = 3; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.Builder.class); + } - public static final int PARAMETER_FIELD_NUMBER = 4; - private volatile java.lang.Object parameter_; - /** - * string parameter = 4; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } - } - /** - * string parameter = 4; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int CONTRACTADDR_FIELD_NUMBER = 5; - private volatile java.lang.Object contractAddr_; - /** - * string contractAddr = 5; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } - } - /** - * string contractAddr = 5; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int EXPIRE_FIELD_NUMBER = 6; - private volatile java.lang.Object expire_; - /** - * string expire = 6; - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } - } - /** - * string expire = 6; - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static final int PARANAME_FIELD_NUMBER = 7; - private volatile java.lang.Object paraName_; - /** - * string paraName = 7; - */ - public java.lang.String getParaName() { - java.lang.Object ref = paraName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paraName_ = s; - return s; - } - } - /** - * string paraName = 7; - */ - public com.google.protobuf.ByteString - getParaNameBytes() { - java.lang.Object ref = paraName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paraName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clear() { + super.clear(); + packData_ = ""; - public static final int ABI_FIELD_NUMBER = 8; - private volatile java.lang.Object abi_; - /** - * string abi = 8; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } - } - /** - * string abi = 8; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.getDefaultInstance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (amount_ != 0L) { - output.writeInt64(1, amount_); - } - if (fee_ != 0L) { - output.writeInt64(2, fee_); - } - if (!getNoteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, note_); - } - if (!getParameterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parameter_); - } - if (!getContractAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contractAddr_); - } - if (!getExpireBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expire_); - } - if (!getParaNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, paraName_); - } - if (!getAbiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, abi_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, amount_); - } - if (fee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, fee_); - } - if (!getNoteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, note_); - } - if (!getParameterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parameter_); - } - if (!getContractAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contractAddr_); - } - if (!getExpireBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, expire_); - } - if (!getParaNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, paraName_); - } - if (!getAbiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, abi_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose( + this); + result.packData_ = packData_; + onBuilt(); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq) obj; - - if (getAmount() - != other.getAmount()) return false; - if (getFee() - != other.getFee()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getParameter() - .equals(other.getParameter())) return false; - if (!getContractAddr() - .equals(other.getContractAddr())) return false; - if (!getExpire() - .equals(other.getExpire())) return false; - if (!getParaName() - .equals(other.getParaName())) return false; - if (!getAbi() - .equals(other.getAbi())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFee()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + PARAMETER_FIELD_NUMBER; - hash = (53 * hash) + getParameter().hashCode(); - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + getExpire().hashCode(); - hash = (37 * hash) + PARANAME_FIELD_NUMBER; - hash = (53 * hash) + getParaName().hashCode(); - hash = (37 * hash) + ABI_FIELD_NUMBER; - hash = (53 * hash) + getAbi().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmContractCallReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmContractCallReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - amount_ = 0L; - - fee_ = 0L; - - note_ = ""; - - parameter_ = ""; - - contractAddr_ = ""; - - expire_ = ""; - - paraName_ = ""; - - abi_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmContractCallReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq(this); - result.amount_ = amount_; - result.fee_ = fee_; - result.note_ = note_; - result.parameter_ = parameter_; - result.contractAddr_ = contractAddr_; - result.expire_ = expire_; - result.paraName_ = paraName_; - result.abi_ = abi_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq.getDefaultInstance()) return this; - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getFee() != 0L) { - setFee(other.getFee()); - } - if (!other.getNote().isEmpty()) { - note_ = other.note_; - onChanged(); - } - if (!other.getParameter().isEmpty()) { - parameter_ = other.parameter_; - onChanged(); - } - if (!other.getContractAddr().isEmpty()) { - contractAddr_ = other.contractAddr_; - onChanged(); - } - if (!other.getExpire().isEmpty()) { - expire_ = other.expire_; - onChanged(); - } - if (!other.getParaName().isEmpty()) { - paraName_ = other.paraName_; - onChanged(); - } - if (!other.getAbi().isEmpty()) { - abi_ = other.abi_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long amount_ ; - /** - * int64 amount = 1; - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 1; - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 1; - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private long fee_ ; - /** - * int64 fee = 2; - */ - public long getFee() { - return fee_; - } - /** - * int64 fee = 2; - */ - public Builder setFee(long value) { - - fee_ = value; - onChanged(); - return this; - } - /** - * int64 fee = 2; - */ - public Builder clearFee() { - - fee_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object note_ = ""; - /** - * string note = 3; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string note = 3; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string note = 3; - */ - public Builder setNote( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * string note = 3; - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - /** - * string note = 3; - */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - note_ = value; - onChanged(); - return this; - } - - private java.lang.Object parameter_ = ""; - /** - * string parameter = 4; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string parameter = 4; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string parameter = 4; - */ - public Builder setParameter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parameter_ = value; - onChanged(); - return this; - } - /** - * string parameter = 4; - */ - public Builder clearParameter() { - - parameter_ = getDefaultInstance().getParameter(); - onChanged(); - return this; - } - /** - * string parameter = 4; - */ - public Builder setParameterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parameter_ = value; - onChanged(); - return this; - } - - private java.lang.Object contractAddr_ = ""; - /** - * string contractAddr = 5; - */ - public java.lang.String getContractAddr() { - java.lang.Object ref = contractAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contractAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contractAddr = 5; - */ - public com.google.protobuf.ByteString - getContractAddrBytes() { - java.lang.Object ref = contractAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contractAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contractAddr = 5; - */ - public Builder setContractAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** - * string contractAddr = 5; - */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - /** - * string contractAddr = 5; - */ - public Builder setContractAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contractAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object expire_ = ""; - /** - * string expire = 6; - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string expire = 6; - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expire = 6; - */ - public Builder setExpire( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expire_ = value; - onChanged(); - return this; - } - /** - * string expire = 6; - */ - public Builder clearExpire() { - - expire_ = getDefaultInstance().getExpire(); - onChanged(); - return this; - } - /** - * string expire = 6; - */ - public Builder setExpireBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expire_ = value; - onChanged(); - return this; - } - - private java.lang.Object paraName_ = ""; - /** - * string paraName = 7; - */ - public java.lang.String getParaName() { - java.lang.Object ref = paraName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paraName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string paraName = 7; - */ - public com.google.protobuf.ByteString - getParaNameBytes() { - java.lang.Object ref = paraName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paraName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string paraName = 7; - */ - public Builder setParaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - paraName_ = value; - onChanged(); - return this; - } - /** - * string paraName = 7; - */ - public Builder clearParaName() { - - paraName_ = getDefaultInstance().getParaName(); - onChanged(); - return this; - } - /** - * string paraName = 7; - */ - public Builder setParaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - paraName_ = value; - onChanged(); - return this; - } - - private java.lang.Object abi_ = ""; - /** - * string abi = 8; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string abi = 8; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string abi = 8; - */ - public Builder setAbi( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - abi_ = value; - onChanged(); - return this; - } - /** - * string abi = 8; - */ - public Builder clearAbi() { - - abi_ = getDefaultInstance().getAbi(); - onChanged(); - return this; - } - /** - * string abi = 8; - */ - public Builder setAbiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - abi_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmContractCallReq) - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(class_scope:EvmContractCallReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose) other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmContractCallReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmContractCallReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.getDefaultInstance()) + return this; + if (!other.getPackData().isEmpty()) { + packData_ = other.packData_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmContractCallReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - } + private java.lang.Object packData_ = ""; + + /** + * string packData = 1; + * + * @return The packData. + */ + public java.lang.String getPackData() { + java.lang.Object ref = packData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packData_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public interface EvmTransferOnlyReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmTransferOnlyReq) - com.google.protobuf.MessageOrBuilder { + /** + * string packData = 1; + * + * @return The bytes for packData. + */ + public com.google.protobuf.ByteString getPackDataBytes() { + java.lang.Object ref = packData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + packData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string to = 1; - */ - java.lang.String getTo(); - /** - * string to = 1; - */ - com.google.protobuf.ByteString - getToBytes(); + /** + * string packData = 1; + * + * @param value + * The packData to set. + * + * @return This builder for chaining. + */ + public Builder setPackData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + packData_ = value; + onChanged(); + return this; + } - /** - * int64 amount = 2; - */ - long getAmount(); + /** + * string packData = 1; + * + * @return This builder for chaining. + */ + public Builder clearPackData() { - /** - * string paraName = 3; - */ - java.lang.String getParaName(); - /** - * string paraName = 3; - */ - com.google.protobuf.ByteString - getParaNameBytes(); + packData_ = getDefaultInstance().getPackData(); + onChanged(); + return this; + } - /** - * string note = 4; - */ - java.lang.String getNote(); - /** - * string note = 4; - */ - com.google.protobuf.ByteString - getNoteBytes(); - } - /** - * Protobuf type {@code EvmTransferOnlyReq} - */ - public static final class EvmTransferOnlyReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmTransferOnlyReq) - EvmTransferOnlyReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmTransferOnlyReq.newBuilder() to construct. - private EvmTransferOnlyReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmTransferOnlyReq() { - to_ = ""; - paraName_ = ""; - note_ = ""; - } + /** + * string packData = 1; + * + * @param value + * The bytes for packData to set. + * + * @return This builder for chaining. + */ + public Builder setPackDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + packData_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmTransferOnlyReq(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmTransferOnlyReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - paraName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - note_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_descriptor; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.Builder.class); - } + // @@protoc_insertion_point(builder_scope:EvmGetPackDataRespose) + } - public static final int TO_FIELD_NUMBER = 1; - private volatile java.lang.Object to_; - /** - * string to = 1; - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 1; - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(class_scope:EvmGetPackDataRespose) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose(); + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - */ - public long getAmount() { - return amount_; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int PARANAME_FIELD_NUMBER = 3; - private volatile java.lang.Object paraName_; - /** - * string paraName = 3; - */ - public java.lang.String getParaName() { - java.lang.Object ref = paraName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paraName_ = s; - return s; - } - } - /** - * string paraName = 3; - */ - public com.google.protobuf.ByteString - getParaNameBytes() { - java.lang.Object ref = paraName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paraName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmGetPackDataRespose parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmGetPackDataRespose(input, extensionRegistry); + } + }; - public static final int NOTE_FIELD_NUMBER = 4; - private volatile java.lang.Object note_; - /** - * string note = 4; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } - } - /** - * string note = 4; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, to_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!getParaNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, paraName_); - } - if (!getNoteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, note_); - } - unknownFields.writeTo(output); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, to_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!getParaNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, paraName_); - } - if (!getNoteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, note_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public interface EvmGetUnpackDataReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmGetUnpackDataReq) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq) obj; - - if (!getTo() - .equals(other.getTo())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getParaName() - .equals(other.getParaName())) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string abi = 1; + * + * @return The abi. + */ + java.lang.String getAbi(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + PARANAME_FIELD_NUMBER; - hash = (53 * hash) + getParaName().hashCode(); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string abi = 1; + * + * @return The bytes for abi. + */ + com.google.protobuf.ByteString getAbiBytes(); - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string parameter = 2; + * + * @return The parameter. + */ + java.lang.String getParameter(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string parameter = 2; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string data = 3; + * + * @return The data. + */ + java.lang.String getData(); + + /** + * string data = 3; + * + * @return The bytes for data. + */ + com.google.protobuf.ByteString getDataBytes(); } + /** - * Protobuf type {@code EvmTransferOnlyReq} + * Protobuf type {@code EvmGetUnpackDataReq} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmTransferOnlyReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - to_ = ""; - - amount_ = 0L; - - paraName_ = ""; - - note_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmTransferOnlyReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq(this); - result.to_ = to_; - result.amount_ = amount_; - result.paraName_ = paraName_; - result.note_ = note_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq.getDefaultInstance()) return this; - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getParaName().isEmpty()) { - paraName_ = other.paraName_; - onChanged(); - } - if (!other.getNote().isEmpty()) { - note_ = other.note_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 1; - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 1; - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 1; - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 1; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 1; - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object paraName_ = ""; - /** - * string paraName = 3; - */ - public java.lang.String getParaName() { - java.lang.Object ref = paraName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - paraName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string paraName = 3; - */ - public com.google.protobuf.ByteString - getParaNameBytes() { - java.lang.Object ref = paraName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - paraName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string paraName = 3; - */ - public Builder setParaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - paraName_ = value; - onChanged(); - return this; - } - /** - * string paraName = 3; - */ - public Builder clearParaName() { - - paraName_ = getDefaultInstance().getParaName(); - onChanged(); - return this; - } - /** - * string paraName = 3; - */ - public Builder setParaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - paraName_ = value; - onChanged(); - return this; - } - - private java.lang.Object note_ = ""; - /** - * string note = 4; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string note = 4; - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string note = 4; - */ - public Builder setNote( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * string note = 4; - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - /** - * string note = 4; - */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - note_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmTransferOnlyReq) - } + public static final class EvmGetUnpackDataReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmGetUnpackDataReq) + EvmGetUnpackDataReqOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:EvmTransferOnlyReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq(); - } + // Use EvmGetUnpackDataReq.newBuilder() to construct. + private EvmGetUnpackDataReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private EvmGetUnpackDataReq() { + abi_ = ""; + parameter_ = ""; + data_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmTransferOnlyReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmTransferOnlyReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmGetUnpackDataReq(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmTransferOnlyReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private EvmGetUnpackDataReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + abi_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + parameter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + data_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.Builder.class); + } + + public static final int ABI_FIELD_NUMBER = 1; + private volatile java.lang.Object abi_; + + /** + * string abi = 1; + * + * @return The abi. + */ + @java.lang.Override + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } + } - } + /** + * string abi = 1; + * + * @return The bytes for abi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface EvmGetNonceReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmGetNonceReq) - com.google.protobuf.MessageOrBuilder { + public static final int PARAMETER_FIELD_NUMBER = 2; + private volatile java.lang.Object parameter_; + + /** + * string parameter = 2; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } + } - /** - * string address = 1; - */ - java.lang.String getAddress(); - /** - * string address = 1; - */ - com.google.protobuf.ByteString - getAddressBytes(); - } - /** - * Protobuf type {@code EvmGetNonceReq} - */ - public static final class EvmGetNonceReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmGetNonceReq) - EvmGetNonceReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmGetNonceReq.newBuilder() to construct. - private EvmGetNonceReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmGetNonceReq() { - address_ = ""; - } + /** + * string parameter = 2; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmGetNonceReq(); - } + public static final int DATA_FIELD_NUMBER = 3; + private volatile java.lang.Object data_; + + /** + * string data = 3; + * + * @return The data. + */ + @java.lang.Override + public java.lang.String getData() { + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmGetNonceReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_descriptor; - } + /** + * string data = 3; + * + * @return The bytes for data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.Builder.class); - } + private byte memoizedIsInitialized = -1; - public static final int ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object address_; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAbiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abi_); + } + if (!getParameterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameter_); + } + if (!getDataBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, data_); + } + unknownFields.writeTo(output); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - memoizedIsInitialized = 1; - return true; - } + size = 0; + if (!getAbiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, abi_); + } + if (!getParameterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameter_); + } + if (!getDataBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq) obj; + + if (!getAbi().equals(other.getAbi())) + return false; + if (!getParameter().equals(other.getParameter())) + return false; + if (!getData().equals(other.getData())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ABI_FIELD_NUMBER; + hash = (53 * hash) + getAbi().hashCode(); + hash = (37 * hash) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq) obj; - - if (!getAddress() - .equals(other.getAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmGetNonceReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmGetNonceReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - address_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq(this); - result.address_ = address_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq.getDefaultInstance()) return this; - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 1; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 1; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 1; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 1; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmGetNonceReq) - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:EvmGetNonceReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmGetNonceReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmGetNonceReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface EvmGetNonceResposeOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmGetNonceRespose) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * int64 nonce = 1; - */ - long getNonce(); - } - /** - * Protobuf type {@code EvmGetNonceRespose} - */ - public static final class EvmGetNonceRespose extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmGetNonceRespose) - EvmGetNonceResposeOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmGetNonceRespose.newBuilder() to construct. - private EvmGetNonceRespose(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmGetNonceRespose() { - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmGetNonceRespose(); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmGetNonceRespose( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_descriptor; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.Builder.class); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - * int64 nonce = 1; - */ - public long getNonce() { - return nonce_; - } + /** + * Protobuf type {@code EvmGetUnpackDataReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmGetUnpackDataReq) + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeInt64(1, nonce_); - } - unknownFields.writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nonce_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose) obj; - - if (getNonce() - != other.getNonce()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + abi_ = ""; - @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) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + parameter_ = ""; - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + data_ = ""; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmGetNonceRespose} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmGetNonceRespose) - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceResposeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetNonceRespose_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose(this); - result.nonce_ = nonce_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nonce_ ; - /** - * int64 nonce = 1; - */ - public long getNonce() { - return nonce_; - } - /** - * int64 nonce = 1; - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * int64 nonce = 1; - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmGetNonceRespose) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_descriptor; + } - // @@protoc_insertion_point(class_scope:EvmGetNonceRespose) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.getDefaultInstance(); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmGetNonceRespose parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmGetNonceRespose(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq( + this); + result.abi_ = abi_; + result.parameter_ = parameter_; + result.data_ = data_; + onBuilt(); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetNonceRespose getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public interface EvmCalcNewContractAddrReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmCalcNewContractAddrReq) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * string caller = 1; - */ - java.lang.String getCaller(); - /** - * string caller = 1; - */ - com.google.protobuf.ByteString - getCallerBytes(); + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * string txhash = 2; - */ - java.lang.String getTxhash(); - /** - * string txhash = 2; - */ - com.google.protobuf.ByteString - getTxhashBytes(); - } - /** - * Protobuf type {@code EvmCalcNewContractAddrReq} - */ - public static final class EvmCalcNewContractAddrReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmCalcNewContractAddrReq) - EvmCalcNewContractAddrReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmCalcNewContractAddrReq.newBuilder() to construct. - private EvmCalcNewContractAddrReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmCalcNewContractAddrReq() { - caller_ = ""; - txhash_ = ""; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmCalcNewContractAddrReq(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmCalcNewContractAddrReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - caller_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - txhash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_descriptor; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.getDefaultInstance()) + return this; + if (!other.getAbi().isEmpty()) { + abi_ = other.abi_; + onChanged(); + } + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + onChanged(); + } + if (!other.getData().isEmpty()) { + data_ = other.data_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int CALLER_FIELD_NUMBER = 1; - private volatile java.lang.Object caller_; - /** - * string caller = 1; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } - } - /** - * string caller = 1; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int TXHASH_FIELD_NUMBER = 2; - private volatile java.lang.Object txhash_; - /** - * string txhash = 2; - */ - public java.lang.String getTxhash() { - java.lang.Object ref = txhash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txhash_ = s; - return s; - } - } - /** - * string txhash = 2; - */ - public com.google.protobuf.ByteString - getTxhashBytes() { - java.lang.Object ref = txhash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txhash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private java.lang.Object abi_ = ""; + + /** + * string abi = 1; + * + * @return The abi. + */ + public java.lang.String getAbi() { + java.lang.Object ref = abi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + abi_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string abi = 1; + * + * @return The bytes for abi. + */ + public com.google.protobuf.ByteString getAbiBytes() { + java.lang.Object ref = abi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + abi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string abi = 1; + * + * @param value + * The abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + abi_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCallerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caller_); - } - if (!getTxhashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, txhash_); - } - unknownFields.writeTo(output); - } + /** + * string abi = 1; + * + * @return This builder for chaining. + */ + public Builder clearAbi() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCallerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caller_); - } - if (!getTxhashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txhash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + abi_ = getDefaultInstance().getAbi(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq) obj; - - if (!getCaller() - .equals(other.getCaller())) return false; - if (!getTxhash() - .equals(other.getTxhash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string abi = 1; + * + * @param value + * The bytes for abi to set. + * + * @return This builder for chaining. + */ + public Builder setAbiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + abi_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CALLER_FIELD_NUMBER; - hash = (53 * hash) + getCaller().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxhash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object parameter_ = ""; + + /** + * string parameter = 2; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string parameter = 2; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string parameter = 2; + * + * @param value + * The parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameter_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmCalcNewContractAddrReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmCalcNewContractAddrReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - caller_ = ""; - - txhash_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmCalcNewContractAddrReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq(this); - result.caller_ = caller_; - result.txhash_ = txhash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq.getDefaultInstance()) return this; - if (!other.getCaller().isEmpty()) { - caller_ = other.caller_; - onChanged(); - } - if (!other.getTxhash().isEmpty()) { - txhash_ = other.txhash_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object caller_ = ""; - /** - * string caller = 1; - */ - public java.lang.String getCaller() { - java.lang.Object ref = caller_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caller_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string caller = 1; - */ - public com.google.protobuf.ByteString - getCallerBytes() { - java.lang.Object ref = caller_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caller_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string caller = 1; - */ - public Builder setCaller( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - caller_ = value; - onChanged(); - return this; - } - /** - * string caller = 1; - */ - public Builder clearCaller() { - - caller_ = getDefaultInstance().getCaller(); - onChanged(); - return this; - } - /** - * string caller = 1; - */ - public Builder setCallerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - caller_ = value; - onChanged(); - return this; - } - - private java.lang.Object txhash_ = ""; - /** - * string txhash = 2; - */ - public java.lang.String getTxhash() { - java.lang.Object ref = txhash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txhash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string txhash = 2; - */ - public com.google.protobuf.ByteString - getTxhashBytes() { - java.lang.Object ref = txhash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txhash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string txhash = 2; - */ - public Builder setTxhash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txhash_ = value; - onChanged(); - return this; - } - /** - * string txhash = 2; - */ - public Builder clearTxhash() { - - txhash_ = getDefaultInstance().getTxhash(); - onChanged(); - return this; - } - /** - * string txhash = 2; - */ - public Builder setTxhashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txhash_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmCalcNewContractAddrReq) - } + /** + * string parameter = 2; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { - // @@protoc_insertion_point(class_scope:EvmCalcNewContractAddrReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq(); - } + parameter_ = getDefaultInstance().getParameter(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string parameter = 2; + * + * @param value + * The bytes for parameter to set. + * + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameter_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmCalcNewContractAddrReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmCalcNewContractAddrReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object data_ = ""; + + /** + * string data = 3; + * + * @return The data. + */ + public java.lang.String getData() { + java.lang.Object ref = data_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string data = 3; + * + * @return The bytes for data. + */ + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmCalcNewContractAddrReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string data = 3; + * + * @param value + * The data to set. + * + * @return This builder for chaining. + */ + public Builder setData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } - } + /** + * string data = 3; + * + * @return This builder for chaining. + */ + public Builder clearData() { - public interface EvmGetPackDataReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmGetPackDataReq) - com.google.protobuf.MessageOrBuilder { + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } - /** - * string abi = 1; - */ - java.lang.String getAbi(); - /** - * string abi = 1; - */ - com.google.protobuf.ByteString - getAbiBytes(); + /** + * string data = 3; + * + * @param value + * The bytes for data to set. + * + * @return This builder for chaining. + */ + public Builder setDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + data_ = value; + onChanged(); + return this; + } - /** - * string parameter = 2; - */ - java.lang.String getParameter(); - /** - * string parameter = 2; - */ - com.google.protobuf.ByteString - getParameterBytes(); - } - /** - * Protobuf type {@code EvmGetPackDataReq} - */ - public static final class EvmGetPackDataReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmGetPackDataReq) - EvmGetPackDataReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmGetPackDataReq.newBuilder() to construct. - private EvmGetPackDataReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmGetPackDataReq() { - abi_ = ""; - parameter_ = ""; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmGetPackDataReq(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmGetPackDataReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - abi_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - parameter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_descriptor; - } + // @@protoc_insertion_point(builder_scope:EvmGetUnpackDataReq) + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.Builder.class); - } + // @@protoc_insertion_point(class_scope:EvmGetUnpackDataReq) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq(); + } - public static final int ABI_FIELD_NUMBER = 1; - private volatile java.lang.Object abi_; - /** - * string abi = 1; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } - } - /** - * string abi = 1; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int PARAMETER_FIELD_NUMBER = 2; - private volatile java.lang.Object parameter_; - /** - * string parameter = 2; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } - } - /** - * string parameter = 2; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmGetUnpackDataReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmGetUnpackDataReq(input, extensionRegistry); + } + }; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAbiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abi_); - } - if (!getParameterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameter_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAbiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, abi_); - } - if (!getParameterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameter_); - } - 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq) obj; - - if (!getAbi() - .equals(other.getAbi())) return false; - if (!getParameter() - .equals(other.getParameter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public interface EvmGetUnpackDataResposeOrBuilder extends + // @@protoc_insertion_point(interface_extends:EvmGetUnpackDataRespose) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ABI_FIELD_NUMBER; - hash = (53 * hash) + getAbi().hashCode(); - hash = (37 * hash) + PARAMETER_FIELD_NUMBER; - hash = (53 * hash) + getParameter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated string unpackData = 1; + * + * @return A list containing the unpackData. + */ + java.util.List getUnpackDataList(); - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated string unpackData = 1; + * + * @return The count of unpackData. + */ + int getUnpackDataCount(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated string unpackData = 1; + * + * @param index + * The index of the element to return. + * + * @return The unpackData at the given index. + */ + java.lang.String getUnpackData(int index); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * repeated string unpackData = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the unpackData at the given index. + */ + com.google.protobuf.ByteString getUnpackDataBytes(int index); } + /** - * Protobuf type {@code EvmGetPackDataReq} + * Protobuf type {@code EvmGetUnpackDataRespose} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmGetPackDataReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - abi_ = ""; - - parameter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq(this); - result.abi_ = abi_; - result.parameter_ = parameter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq.getDefaultInstance()) return this; - if (!other.getAbi().isEmpty()) { - abi_ = other.abi_; - onChanged(); - } - if (!other.getParameter().isEmpty()) { - parameter_ = other.parameter_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object abi_ = ""; - /** - * string abi = 1; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string abi = 1; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string abi = 1; - */ - public Builder setAbi( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - abi_ = value; - onChanged(); - return this; - } - /** - * string abi = 1; - */ - public Builder clearAbi() { - - abi_ = getDefaultInstance().getAbi(); - onChanged(); - return this; - } - /** - * string abi = 1; - */ - public Builder setAbiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - abi_ = value; - onChanged(); - return this; - } - - private java.lang.Object parameter_ = ""; - /** - * string parameter = 2; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string parameter = 2; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string parameter = 2; - */ - public Builder setParameter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parameter_ = value; - onChanged(); - return this; - } - /** - * string parameter = 2; - */ - public Builder clearParameter() { - - parameter_ = getDefaultInstance().getParameter(); - onChanged(); - return this; - } - /** - * string parameter = 2; - */ - public Builder setParameterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parameter_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmGetPackDataReq) - } + public static final class EvmGetUnpackDataRespose extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EvmGetUnpackDataRespose) + EvmGetUnpackDataResposeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvmGetUnpackDataRespose.newBuilder() to construct. + private EvmGetUnpackDataRespose(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - // @@protoc_insertion_point(class_scope:EvmGetPackDataReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq(); - } + private EvmGetUnpackDataRespose() { + unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvmGetUnpackDataRespose(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmGetPackDataReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmGetPackDataReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private EvmGetUnpackDataRespose(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + unpackData_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + unpackData_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + unpackData_ = unpackData_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.Builder.class); + } - public interface EvmGetPackDataResposeOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmGetPackDataRespose) - com.google.protobuf.MessageOrBuilder { + public static final int UNPACKDATA_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList unpackData_; - /** - * string packData = 1; - */ - java.lang.String getPackData(); - /** - * string packData = 1; - */ - com.google.protobuf.ByteString - getPackDataBytes(); - } - /** - * Protobuf type {@code EvmGetPackDataRespose} - */ - public static final class EvmGetPackDataRespose extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmGetPackDataRespose) - EvmGetPackDataResposeOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmGetPackDataRespose.newBuilder() to construct. - private EvmGetPackDataRespose(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmGetPackDataRespose() { - packData_ = ""; - } + /** + * repeated string unpackData = 1; + * + * @return A list containing the unpackData. + */ + public com.google.protobuf.ProtocolStringList getUnpackDataList() { + return unpackData_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmGetPackDataRespose(); - } + /** + * repeated string unpackData = 1; + * + * @return The count of unpackData. + */ + public int getUnpackDataCount() { + return unpackData_.size(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmGetPackDataRespose( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - packData_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_descriptor; - } + /** + * repeated string unpackData = 1; + * + * @param index + * The index of the element to return. + * + * @return The unpackData at the given index. + */ + public java.lang.String getUnpackData(int index) { + return unpackData_.get(index); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.Builder.class); - } + /** + * repeated string unpackData = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the unpackData at the given index. + */ + public com.google.protobuf.ByteString getUnpackDataBytes(int index) { + return unpackData_.getByteString(index); + } - public static final int PACKDATA_FIELD_NUMBER = 1; - private volatile java.lang.Object packData_; - /** - * string packData = 1; - */ - public java.lang.String getPackData() { - java.lang.Object ref = packData_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packData_ = s; - return s; - } - } - /** - * string packData = 1; - */ - public com.google.protobuf.ByteString - getPackDataBytes() { - java.lang.Object ref = packData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private byte memoizedIsInitialized = -1; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - memoizedIsInitialized = 1; - return true; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPackDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packData_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < unpackData_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unpackData_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < unpackData_.size(); i++) { + dataSize += computeStringSizeNoTag(unpackData_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnpackDataList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPackDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packData_); - } - 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 cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose) obj; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose) obj; - - if (!getPackData() - .equals(other.getPackData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + if (!getUnpackDataList().equals(other.getUnpackDataList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PACKDATA_FIELD_NUMBER; - hash = (53 * hash) + getPackData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUnpackDataCount() > 0) { + hash = (37 * hash) + UNPACKDATA_FIELD_NUMBER; + hash = (53 * hash) + getUnpackDataList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmGetPackDataRespose} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmGetPackDataRespose) - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataResposeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - packData_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetPackDataRespose_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose(this); - result.packData_ = packData_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose.getDefaultInstance()) return this; - if (!other.getPackData().isEmpty()) { - packData_ = other.packData_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object packData_ = ""; - /** - * string packData = 1; - */ - public java.lang.String getPackData() { - java.lang.Object ref = packData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packData_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string packData = 1; - */ - public com.google.protobuf.ByteString - getPackDataBytes() { - java.lang.Object ref = packData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string packData = 1; - */ - public Builder setPackData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - packData_ = value; - onChanged(); - return this; - } - /** - * string packData = 1; - */ - public Builder clearPackData() { - - packData_ = getDefaultInstance().getPackData(); - onChanged(); - return this; - } - /** - * string packData = 1; - */ - public Builder setPackDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - packData_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmGetPackDataRespose) - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:EvmGetPackDataRespose) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose(); - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmGetPackDataRespose parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmGetPackDataRespose(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetPackDataRespose getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public interface EvmGetUnpackDataReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmGetUnpackDataReq) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - /** - * string abi = 1; - */ - java.lang.String getAbi(); - /** - * string abi = 1; - */ - com.google.protobuf.ByteString - getAbiBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * string parameter = 2; - */ - java.lang.String getParameter(); - /** - * string parameter = 2; - */ - com.google.protobuf.ByteString - getParameterBytes(); + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string data = 3; - */ - java.lang.String getData(); - /** - * string data = 3; - */ - com.google.protobuf.ByteString - getDataBytes(); - } - /** - * Protobuf type {@code EvmGetUnpackDataReq} - */ - public static final class EvmGetUnpackDataReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmGetUnpackDataReq) - EvmGetUnpackDataReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmGetUnpackDataReq.newBuilder() to construct. - private EvmGetUnpackDataReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmGetUnpackDataReq() { - abi_ = ""; - parameter_ = ""; - data_ = ""; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmGetUnpackDataReq(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmGetUnpackDataReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - abi_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - parameter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_descriptor; - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.Builder.class); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int ABI_FIELD_NUMBER = 1; - private volatile java.lang.Object abi_; - /** - * string abi = 1; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } - } - /** - * string abi = 1; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int PARAMETER_FIELD_NUMBER = 2; - private volatile java.lang.Object parameter_; - /** - * string parameter = 2; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } - } - /** - * string parameter = 2; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * Protobuf type {@code EvmGetUnpackDataRespose} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EvmGetUnpackDataRespose) + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataResposeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_descriptor; + } - public static final int DATA_FIELD_NUMBER = 3; - private volatile java.lang.Object data_; - /** - * string data = 3; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } - } - /** - * string data = 3; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.class, + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.Builder.class); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAbiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abi_); - } - if (!getParameterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameter_); - } - if (!getDataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, data_); - } - unknownFields.writeTo(output); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAbiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, abi_); - } - if (!getParameterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameter_); - } - if (!getDataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clear() { + super.clear(); + unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq) obj; - - if (!getAbi() - .equals(other.getAbi())) return false; - if (!getParameter() - .equals(other.getParameter())) return false; - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ABI_FIELD_NUMBER; - hash = (53 * hash) + getAbi().hashCode(); - hash = (37 * hash) + PARAMETER_FIELD_NUMBER; - hash = (53 * hash) + getParameter().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.getDefaultInstance(); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose build() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose buildPartial() { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + unpackData_ = unpackData_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.unpackData_ = unpackData_; + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmGetUnpackDataReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmGetUnpackDataReq) - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - abi_ = ""; - - parameter_ = ""; - - data_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq(this); - result.abi_ = abi_; - result.parameter_ = parameter_; - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq.getDefaultInstance()) return this; - if (!other.getAbi().isEmpty()) { - abi_ = other.abi_; - onChanged(); - } - if (!other.getParameter().isEmpty()) { - parameter_ = other.parameter_; - onChanged(); - } - if (!other.getData().isEmpty()) { - data_ = other.data_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object abi_ = ""; - /** - * string abi = 1; - */ - public java.lang.String getAbi() { - java.lang.Object ref = abi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - abi_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string abi = 1; - */ - public com.google.protobuf.ByteString - getAbiBytes() { - java.lang.Object ref = abi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - abi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string abi = 1; - */ - public Builder setAbi( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - abi_ = value; - onChanged(); - return this; - } - /** - * string abi = 1; - */ - public Builder clearAbi() { - - abi_ = getDefaultInstance().getAbi(); - onChanged(); - return this; - } - /** - * string abi = 1; - */ - public Builder setAbiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - abi_ = value; - onChanged(); - return this; - } - - private java.lang.Object parameter_ = ""; - /** - * string parameter = 2; - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string parameter = 2; - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string parameter = 2; - */ - public Builder setParameter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parameter_ = value; - onChanged(); - return this; - } - /** - * string parameter = 2; - */ - public Builder clearParameter() { - - parameter_ = getDefaultInstance().getParameter(); - onChanged(); - return this; - } - /** - * string parameter = 2; - */ - public Builder setParameterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parameter_ = value; - onChanged(); - return this; - } - - private java.lang.Object data_ = ""; - /** - * string data = 3; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - data_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string data = 3; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string data = 3; - */ - public Builder setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * string data = 3; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - /** - * string data = 3; - */ - public Builder setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - data_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmGetUnpackDataReq) - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - // @@protoc_insertion_point(class_scope:EvmGetUnpackDataReq) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmGetUnpackDataReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmGetUnpackDataReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose) other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface EvmGetUnpackDataResposeOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvmGetUnpackDataRespose) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose other) { + if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.getDefaultInstance()) + return this; + if (!other.unpackData_.isEmpty()) { + if (unpackData_.isEmpty()) { + unpackData_ = other.unpackData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnpackDataIsMutable(); + unpackData_.addAll(other.unpackData_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * repeated string unpackData = 1; - */ - java.util.List - getUnpackDataList(); - /** - * repeated string unpackData = 1; - */ - int getUnpackDataCount(); - /** - * repeated string unpackData = 1; - */ - java.lang.String getUnpackData(int index); - /** - * repeated string unpackData = 1; - */ - com.google.protobuf.ByteString - getUnpackDataBytes(int index); - } - /** - * Protobuf type {@code EvmGetUnpackDataRespose} - */ - public static final class EvmGetUnpackDataRespose extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvmGetUnpackDataRespose) - EvmGetUnpackDataResposeOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvmGetUnpackDataRespose.newBuilder() to construct. - private EvmGetUnpackDataRespose(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvmGetUnpackDataRespose() { - unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvmGetUnpackDataRespose(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvmGetUnpackDataRespose( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unpackData_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - unpackData_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unpackData_ = unpackData_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_descriptor; - } + private int bitField0_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.Builder.class); - } + private com.google.protobuf.LazyStringList unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; - public static final int UNPACKDATA_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList unpackData_; - /** - * repeated string unpackData = 1; - */ - public com.google.protobuf.ProtocolStringList - getUnpackDataList() { - return unpackData_; - } - /** - * repeated string unpackData = 1; - */ - public int getUnpackDataCount() { - return unpackData_.size(); - } - /** - * repeated string unpackData = 1; - */ - public java.lang.String getUnpackData(int index) { - return unpackData_.get(index); - } - /** - * repeated string unpackData = 1; - */ - public com.google.protobuf.ByteString - getUnpackDataBytes(int index) { - return unpackData_.getByteString(index); - } + private void ensureUnpackDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + unpackData_ = new com.google.protobuf.LazyStringArrayList(unpackData_); + bitField0_ |= 0x00000001; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated string unpackData = 1; + * + * @return A list containing the unpackData. + */ + public com.google.protobuf.ProtocolStringList getUnpackDataList() { + return unpackData_.getUnmodifiableView(); + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated string unpackData = 1; + * + * @return The count of unpackData. + */ + public int getUnpackDataCount() { + return unpackData_.size(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < unpackData_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unpackData_.getRaw(i)); - } - unknownFields.writeTo(output); - } + /** + * repeated string unpackData = 1; + * + * @param index + * The index of the element to return. + * + * @return The unpackData at the given index. + */ + public java.lang.String getUnpackData(int index) { + return unpackData_.get(index); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < unpackData_.size(); i++) { - dataSize += computeStringSizeNoTag(unpackData_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnpackDataList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated string unpackData = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the unpackData at the given index. + */ + public com.google.protobuf.ByteString getUnpackDataBytes(int index) { + return unpackData_.getByteString(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose other = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose) obj; - - if (!getUnpackDataList() - .equals(other.getUnpackDataList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated string unpackData = 1; + * + * @param index + * The index to set the value at. + * @param value + * The unpackData to set. + * + * @return This builder for chaining. + */ + public Builder setUnpackData(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnpackDataIsMutable(); + unpackData_.set(index, value); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUnpackDataCount() > 0) { - hash = (37 * hash) + UNPACKDATA_FIELD_NUMBER; - hash = (53 * hash) + getUnpackDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated string unpackData = 1; + * + * @param value + * The unpackData to add. + * + * @return This builder for chaining. + */ + public Builder addUnpackData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnpackDataIsMutable(); + unpackData_.add(value); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated string unpackData = 1; + * + * @param values + * The unpackData to add. + * + * @return This builder for chaining. + */ + public Builder addAllUnpackData(java.lang.Iterable values) { + ensureUnpackDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unpackData_); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated string unpackData = 1; + * + * @return This builder for chaining. + */ + public Builder clearUnpackData() { + unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvmGetUnpackDataRespose} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EvmGetUnpackDataRespose) - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataResposeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.class, cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.internal_static_EvmGetUnpackDataRespose_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose build() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose buildPartial() { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose result = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - unpackData_ = unpackData_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unpackData_ = unpackData_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose other) { - if (other == cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose.getDefaultInstance()) return this; - if (!other.unpackData_.isEmpty()) { - if (unpackData_.isEmpty()) { - unpackData_ = other.unpackData_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnpackDataIsMutable(); - unpackData_.addAll(other.unpackData_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUnpackDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unpackData_ = new com.google.protobuf.LazyStringArrayList(unpackData_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string unpackData = 1; - */ - public com.google.protobuf.ProtocolStringList - getUnpackDataList() { - return unpackData_.getUnmodifiableView(); - } - /** - * repeated string unpackData = 1; - */ - public int getUnpackDataCount() { - return unpackData_.size(); - } - /** - * repeated string unpackData = 1; - */ - public java.lang.String getUnpackData(int index) { - return unpackData_.get(index); - } - /** - * repeated string unpackData = 1; - */ - public com.google.protobuf.ByteString - getUnpackDataBytes(int index) { - return unpackData_.getByteString(index); - } - /** - * repeated string unpackData = 1; - */ - public Builder setUnpackData( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnpackDataIsMutable(); - unpackData_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string unpackData = 1; - */ - public Builder addUnpackData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnpackDataIsMutable(); - unpackData_.add(value); - onChanged(); - return this; - } - /** - * repeated string unpackData = 1; - */ - public Builder addAllUnpackData( - java.lang.Iterable values) { - ensureUnpackDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unpackData_); - onChanged(); - return this; - } - /** - * repeated string unpackData = 1; - */ - public Builder clearUnpackData() { - unpackData_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string unpackData = 1; - */ - public Builder addUnpackDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnpackDataIsMutable(); - unpackData_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvmGetUnpackDataRespose) - } + /** + * repeated string unpackData = 1; + * + * @param value + * The bytes of the unpackData to add. + * + * @return This builder for chaining. + */ + public Builder addUnpackDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnpackDataIsMutable(); + unpackData_.add(value); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:EvmGetUnpackDataRespose) - private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvmGetUnpackDataRespose parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvmGetUnpackDataRespose(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:EvmGetUnpackDataRespose) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:EvmGetUnpackDataRespose) + private static final cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose getDefaultInstance() { + return DEFAULT_INSTANCE; + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractObject_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractObject_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractState_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractState_StorageEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractState_StorageEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractAction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractAction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptEVMContract_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptEVMContract_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMStateChangeItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMStateChangeItem_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractDataCmd_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractDataCmd_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractStateCmd_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractStateCmd_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EVMContractStateCmd_StorageEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EVMContractStateCmd_StorageEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptEVMContractCmd_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptEVMContractCmd_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CheckEVMAddrReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CheckEVMAddrReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CheckEVMAddrResp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CheckEVMAddrResp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EstimateEVMGasReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EstimateEVMGasReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EstimateEVMGasResp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EstimateEVMGasResp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmDebugReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmDebugReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmDebugResp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmDebugResp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmQueryAbiReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmQueryAbiReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmQueryAbiResp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmQueryAbiResp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmQueryReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmQueryReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmQueryResp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmQueryResp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmContractCreateReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmContractCreateReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmContractCallReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmContractCallReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmTransferOnlyReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmTransferOnlyReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmGetNonceReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmGetNonceReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmGetNonceRespose_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmGetNonceRespose_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmCalcNewContractAddrReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmGetPackDataReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmGetPackDataReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmGetPackDataRespose_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmGetPackDataRespose_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmGetUnpackDataReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmGetUnpackDataReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvmGetUnpackDataRespose_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvmGetUnpackDataRespose_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020EvmService.proto\"c\n\021EVMContractObject\022" + - "\014\n\004addr\030\001 \001(\t\022\036\n\004data\030\002 \001(\0132\020.EVMContrac" + - "tData\022 \n\005state\030\003 \001(\0132\021.EVMContractState\"" + - "z\n\017EVMContractData\022\017\n\007creator\030\001 \001(\t\022\014\n\004n" + - "ame\030\002 \001(\t\022\r\n\005alias\030\003 \001(\t\022\014\n\004addr\030\004 \001(\t\022\014" + - "\n\004code\030\005 \001(\014\022\020\n\010codeHash\030\006 \001(\014\022\013\n\003abi\030\007 " + - "\001(\t\"\251\001\n\020EVMContractState\022\r\n\005nonce\030\001 \001(\004\022" + - "\020\n\010suicided\030\002 \001(\010\022\023\n\013storageHash\030\003 \001(\014\022/" + - "\n\007storage\030\004 \003(\0132\036.EVMContractState.Stora" + - "geEntry\032.\n\014StorageEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\014:\0028\001\"\226\001\n\021EVMContractAction\022\016\n" + - "\006amount\030\001 \001(\004\022\020\n\010gasLimit\030\002 \001(\004\022\020\n\010gasPr" + - "ice\030\003 \001(\r\022\014\n\004code\030\004 \001(\014\022\014\n\004para\030\005 \001(\014\022\r\n" + - "\005alias\030\006 \001(\t\022\014\n\004note\030\007 \001(\t\022\024\n\014contractAd" + - "dr\030\010 \001(\t\"\177\n\022ReceiptEVMContract\022\016\n\006caller" + - "\030\001 \001(\t\022\024\n\014contractName\030\002 \001(\t\022\024\n\014contract" + - "Addr\030\003 \001(\t\022\017\n\007usedGas\030\004 \001(\004\022\013\n\003ret\030\005 \001(\014" + - "\022\017\n\007jsonRet\030\006 \001(\t\"I\n\022EVMStateChangeItem\022" + - "\013\n\003key\030\001 \001(\t\022\020\n\010preValue\030\002 \001(\014\022\024\n\014curren" + - "tValue\030\003 \001(\014\"p\n\022EVMContractDataCmd\022\017\n\007cr" + - "eator\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005alias\030\003 \001(\t" + - "\022\014\n\004addr\030\004 \001(\t\022\014\n\004code\030\005 \001(\t\022\020\n\010codeHash" + - "\030\006 \001(\t\"\257\001\n\023EVMContractStateCmd\022\r\n\005nonce\030" + - "\001 \001(\004\022\020\n\010suicided\030\002 \001(\010\022\023\n\013storageHash\030\003" + - " \001(\t\0222\n\007storage\030\004 \003(\0132!.EVMContractState" + - "Cmd.StorageEntry\032.\n\014StorageEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\025ReceiptEVMCo" + - "ntractCmd\022\016\n\006caller\030\001 \001(\t\022\024\n\014contractNam" + - "e\030\002 \001(\t\022\024\n\014contractAddr\030\003 \001(\t\022\017\n\007usedGas" + - "\030\004 \001(\004\022\013\n\003ret\030\005 \001(\t\"\037\n\017CheckEVMAddrReq\022\014" + - "\n\004addr\030\001 \001(\t\"c\n\020CheckEVMAddrResp\022\020\n\010cont" + - "ract\030\001 \001(\010\022\024\n\014contractAddr\030\002 \001(\t\022\024\n\014cont" + - "ractName\030\003 \001(\t\022\021\n\taliasName\030\004 \001(\t\"-\n\021Est" + - "imateEVMGasReq\022\n\n\002tx\030\001 \001(\t\022\014\n\004from\030\002 \001(\t" + - "\"!\n\022EstimateEVMGasResp\022\013\n\003gas\030\001 \001(\004\"\035\n\013E" + - "vmDebugReq\022\016\n\006optype\030\001 \001(\005\"#\n\014EvmDebugRe" + - "sp\022\023\n\013debugStatus\030\001 \001(\t\"!\n\016EvmQueryAbiRe" + - "q\022\017\n\007address\030\001 \001(\t\"/\n\017EvmQueryAbiResp\022\017\n" + - "\007address\030\001 \001(\t\022\013\n\003abi\030\002 \001(\t\"=\n\013EvmQueryR" + - "eq\022\017\n\007address\030\001 \001(\t\022\r\n\005input\030\002 \001(\t\022\016\n\006ca" + - "ller\030\003 \001(\t\"a\n\014EvmQueryResp\022\017\n\007address\030\001 " + - "\001(\t\022\r\n\005input\030\002 \001(\t\022\016\n\006caller\030\003 \001(\t\022\017\n\007ra" + - "wData\030\004 \001(\t\022\020\n\010jsonData\030\005 \001(\t\"\240\001\n\024EvmCon" + - "tractCreateReq\022\014\n\004code\030\001 \001(\t\022\013\n\003abi\030\002 \001(" + - "\t\022\013\n\003fee\030\003 \001(\003\022\014\n\004note\030\004 \001(\t\022\r\n\005alias\030\005 " + - "\001(\t\022\021\n\tparameter\030\006 \001(\t\022\016\n\006expire\030\007 \001(\t\022\020" + - "\n\010paraName\030\010 \001(\t\022\016\n\006amount\030\t \001(\003\"\227\001\n\022Evm" + - "ContractCallReq\022\016\n\006amount\030\001 \001(\003\022\013\n\003fee\030\002" + - " \001(\003\022\014\n\004note\030\003 \001(\t\022\021\n\tparameter\030\004 \001(\t\022\024\n" + - "\014contractAddr\030\005 \001(\t\022\016\n\006expire\030\006 \001(\t\022\020\n\010p" + - "araName\030\007 \001(\t\022\013\n\003abi\030\010 \001(\t\"P\n\022EvmTransfe" + - "rOnlyReq\022\n\n\002to\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\020\n\010" + - "paraName\030\003 \001(\t\022\014\n\004note\030\004 \001(\t\"!\n\016EvmGetNo" + - "nceReq\022\017\n\007address\030\001 \001(\t\"#\n\022EvmGetNonceRe" + - "spose\022\r\n\005nonce\030\001 \001(\003\";\n\031EvmCalcNewContra" + - "ctAddrReq\022\016\n\006caller\030\001 \001(\t\022\016\n\006txhash\030\002 \001(" + - "\t\"3\n\021EvmGetPackDataReq\022\013\n\003abi\030\001 \001(\t\022\021\n\tp" + - "arameter\030\002 \001(\t\")\n\025EvmGetPackDataRespose\022" + - "\020\n\010packData\030\001 \001(\t\"C\n\023EvmGetUnpackDataReq" + - "\022\013\n\003abi\030\001 \001(\t\022\021\n\tparameter\030\002 \001(\t\022\014\n\004data" + - "\030\003 \001(\t\"-\n\027EvmGetUnpackDataRespose\022\022\n\nunp" + - "ackData\030\001 \003(\tB/\n!cn.chain33.javasdk.mode" + - "l.protobufB\nEvmServiceb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EVMContractObject_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EVMContractObject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractObject_descriptor, - new java.lang.String[] { "Addr", "Data", "State", }); - internal_static_EVMContractData_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_EVMContractData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractData_descriptor, - new java.lang.String[] { "Creator", "Name", "Alias", "Addr", "Code", "CodeHash", "Abi", }); - internal_static_EVMContractState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_EVMContractState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractState_descriptor, - new java.lang.String[] { "Nonce", "Suicided", "StorageHash", "Storage", }); - internal_static_EVMContractState_StorageEntry_descriptor = - internal_static_EVMContractState_descriptor.getNestedTypes().get(0); - internal_static_EVMContractState_StorageEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractState_StorageEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_EVMContractAction_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_EVMContractAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractAction_descriptor, - new java.lang.String[] { "Amount", "GasLimit", "GasPrice", "Code", "Para", "Alias", "Note", "ContractAddr", }); - internal_static_ReceiptEVMContract_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ReceiptEVMContract_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptEVMContract_descriptor, - new java.lang.String[] { "Caller", "ContractName", "ContractAddr", "UsedGas", "Ret", "JsonRet", }); - internal_static_EVMStateChangeItem_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_EVMStateChangeItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMStateChangeItem_descriptor, - new java.lang.String[] { "Key", "PreValue", "CurrentValue", }); - internal_static_EVMContractDataCmd_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_EVMContractDataCmd_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractDataCmd_descriptor, - new java.lang.String[] { "Creator", "Name", "Alias", "Addr", "Code", "CodeHash", }); - internal_static_EVMContractStateCmd_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_EVMContractStateCmd_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractStateCmd_descriptor, - new java.lang.String[] { "Nonce", "Suicided", "StorageHash", "Storage", }); - internal_static_EVMContractStateCmd_StorageEntry_descriptor = - internal_static_EVMContractStateCmd_descriptor.getNestedTypes().get(0); - internal_static_EVMContractStateCmd_StorageEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EVMContractStateCmd_StorageEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_ReceiptEVMContractCmd_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ReceiptEVMContractCmd_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptEVMContractCmd_descriptor, - new java.lang.String[] { "Caller", "ContractName", "ContractAddr", "UsedGas", "Ret", }); - internal_static_CheckEVMAddrReq_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_CheckEVMAddrReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CheckEVMAddrReq_descriptor, - new java.lang.String[] { "Addr", }); - internal_static_CheckEVMAddrResp_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_CheckEVMAddrResp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CheckEVMAddrResp_descriptor, - new java.lang.String[] { "Contract", "ContractAddr", "ContractName", "AliasName", }); - internal_static_EstimateEVMGasReq_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_EstimateEVMGasReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EstimateEVMGasReq_descriptor, - new java.lang.String[] { "Tx", "From", }); - internal_static_EstimateEVMGasResp_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_EstimateEVMGasResp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EstimateEVMGasResp_descriptor, - new java.lang.String[] { "Gas", }); - internal_static_EvmDebugReq_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_EvmDebugReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmDebugReq_descriptor, - new java.lang.String[] { "Optype", }); - internal_static_EvmDebugResp_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_EvmDebugResp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmDebugResp_descriptor, - new java.lang.String[] { "DebugStatus", }); - internal_static_EvmQueryAbiReq_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_EvmQueryAbiReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmQueryAbiReq_descriptor, - new java.lang.String[] { "Address", }); - internal_static_EvmQueryAbiResp_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_EvmQueryAbiResp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmQueryAbiResp_descriptor, - new java.lang.String[] { "Address", "Abi", }); - internal_static_EvmQueryReq_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_EvmQueryReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmQueryReq_descriptor, - new java.lang.String[] { "Address", "Input", "Caller", }); - internal_static_EvmQueryResp_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_EvmQueryResp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmQueryResp_descriptor, - new java.lang.String[] { "Address", "Input", "Caller", "RawData", "JsonData", }); - internal_static_EvmContractCreateReq_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_EvmContractCreateReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmContractCreateReq_descriptor, - new java.lang.String[] { "Code", "Abi", "Fee", "Note", "Alias", "Parameter", "Expire", "ParaName", "Amount", }); - internal_static_EvmContractCallReq_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_EvmContractCallReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmContractCallReq_descriptor, - new java.lang.String[] { "Amount", "Fee", "Note", "Parameter", "ContractAddr", "Expire", "ParaName", "Abi", }); - internal_static_EvmTransferOnlyReq_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_EvmTransferOnlyReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmTransferOnlyReq_descriptor, - new java.lang.String[] { "To", "Amount", "ParaName", "Note", }); - internal_static_EvmGetNonceReq_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_EvmGetNonceReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmGetNonceReq_descriptor, - new java.lang.String[] { "Address", }); - internal_static_EvmGetNonceRespose_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_EvmGetNonceRespose_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmGetNonceRespose_descriptor, - new java.lang.String[] { "Nonce", }); - internal_static_EvmCalcNewContractAddrReq_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmCalcNewContractAddrReq_descriptor, - new java.lang.String[] { "Caller", "Txhash", }); - internal_static_EvmGetPackDataReq_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_EvmGetPackDataReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmGetPackDataReq_descriptor, - new java.lang.String[] { "Abi", "Parameter", }); - internal_static_EvmGetPackDataRespose_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_EvmGetPackDataRespose_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmGetPackDataRespose_descriptor, - new java.lang.String[] { "PackData", }); - internal_static_EvmGetUnpackDataReq_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_EvmGetUnpackDataReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmGetUnpackDataReq_descriptor, - new java.lang.String[] { "Abi", "Parameter", "Data", }); - internal_static_EvmGetUnpackDataRespose_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_EvmGetUnpackDataRespose_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvmGetUnpackDataRespose_descriptor, - new java.lang.String[] { "UnpackData", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvmGetUnpackDataRespose parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvmGetUnpackDataRespose(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.EvmService.EvmGetUnpackDataRespose getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractObject_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractObject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractData_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractState_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractState_StorageEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractState_StorageEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractAction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptEVMContract_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptEVMContract_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMStateChangeItem_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMStateChangeItem_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractDataCmd_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractDataCmd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractStateCmd_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractStateCmd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EVMContractStateCmd_StorageEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EVMContractStateCmd_StorageEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptEVMContractCmd_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptEVMContractCmd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CheckEVMAddrReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CheckEVMAddrReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CheckEVMAddrResp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CheckEVMAddrResp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EstimateEVMGasReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EstimateEVMGasReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EstimateEVMGasResp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EstimateEVMGasResp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmDebugReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmDebugReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmDebugResp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmDebugResp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmQueryAbiReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmQueryAbiReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmQueryAbiResp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmQueryAbiResp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmQueryReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmQueryReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmQueryResp_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmQueryResp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmContractCreateReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmContractCreateReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmContractCallReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmContractCallReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmTransferOnlyReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmTransferOnlyReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmGetNonceReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmGetNonceReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmGetNonceRespose_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmGetNonceRespose_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmCalcNewContractAddrReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmGetPackDataReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmGetPackDataReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmGetPackDataRespose_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmGetPackDataRespose_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmGetUnpackDataReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmGetUnpackDataReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EvmGetUnpackDataRespose_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EvmGetUnpackDataRespose_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\020EvmService.proto\"c\n\021EVMContractObject\022" + + "\014\n\004addr\030\001 \001(\t\022\036\n\004data\030\002 \001(\0132\020.EVMContrac" + + "tData\022 \n\005state\030\003 \001(\0132\021.EVMContractState\"" + + "z\n\017EVMContractData\022\017\n\007creator\030\001 \001(\t\022\014\n\004n" + + "ame\030\002 \001(\t\022\r\n\005alias\030\003 \001(\t\022\014\n\004addr\030\004 \001(\t\022\014" + + "\n\004code\030\005 \001(\014\022\020\n\010codeHash\030\006 \001(\014\022\013\n\003abi\030\007 " + + "\001(\t\"\251\001\n\020EVMContractState\022\r\n\005nonce\030\001 \001(\004\022" + + "\020\n\010suicided\030\002 \001(\010\022\023\n\013storageHash\030\003 \001(\014\022/" + + "\n\007storage\030\004 \003(\0132\036.EVMContractState.Stora" + + "geEntry\032.\n\014StorageEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\014:\0028\001\"\226\001\n\021EVMContractAction\022\016\n" + + "\006amount\030\001 \001(\004\022\020\n\010gasLimit\030\002 \001(\004\022\020\n\010gasPr" + + "ice\030\003 \001(\r\022\014\n\004code\030\004 \001(\014\022\014\n\004para\030\005 \001(\014\022\r\n" + + "\005alias\030\006 \001(\t\022\014\n\004note\030\007 \001(\t\022\024\n\014contractAd" + + "dr\030\010 \001(\t\"\177\n\022ReceiptEVMContract\022\016\n\006caller" + + "\030\001 \001(\t\022\024\n\014contractName\030\002 \001(\t\022\024\n\014contract" + + "Addr\030\003 \001(\t\022\017\n\007usedGas\030\004 \001(\004\022\013\n\003ret\030\005 \001(\014" + + "\022\017\n\007jsonRet\030\006 \001(\t\"I\n\022EVMStateChangeItem\022" + + "\013\n\003key\030\001 \001(\t\022\020\n\010preValue\030\002 \001(\014\022\024\n\014curren" + + "tValue\030\003 \001(\014\"p\n\022EVMContractDataCmd\022\017\n\007cr" + + "eator\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005alias\030\003 \001(\t" + + "\022\014\n\004addr\030\004 \001(\t\022\014\n\004code\030\005 \001(\t\022\020\n\010codeHash" + + "\030\006 \001(\t\"\257\001\n\023EVMContractStateCmd\022\r\n\005nonce\030" + + "\001 \001(\004\022\020\n\010suicided\030\002 \001(\010\022\023\n\013storageHash\030\003" + + " \001(\t\0222\n\007storage\030\004 \003(\0132!.EVMContractState" + + "Cmd.StorageEntry\032.\n\014StorageEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\025ReceiptEVMCo" + + "ntractCmd\022\016\n\006caller\030\001 \001(\t\022\024\n\014contractNam" + + "e\030\002 \001(\t\022\024\n\014contractAddr\030\003 \001(\t\022\017\n\007usedGas" + + "\030\004 \001(\004\022\013\n\003ret\030\005 \001(\t\"\037\n\017CheckEVMAddrReq\022\014" + + "\n\004addr\030\001 \001(\t\"c\n\020CheckEVMAddrResp\022\020\n\010cont" + + "ract\030\001 \001(\010\022\024\n\014contractAddr\030\002 \001(\t\022\024\n\014cont" + + "ractName\030\003 \001(\t\022\021\n\taliasName\030\004 \001(\t\"-\n\021Est" + + "imateEVMGasReq\022\n\n\002tx\030\001 \001(\t\022\014\n\004from\030\002 \001(\t" + + "\"!\n\022EstimateEVMGasResp\022\013\n\003gas\030\001 \001(\004\"\035\n\013E" + + "vmDebugReq\022\016\n\006optype\030\001 \001(\005\"#\n\014EvmDebugRe" + + "sp\022\023\n\013debugStatus\030\001 \001(\t\"!\n\016EvmQueryAbiRe" + + "q\022\017\n\007address\030\001 \001(\t\"/\n\017EvmQueryAbiResp\022\017\n" + + "\007address\030\001 \001(\t\022\013\n\003abi\030\002 \001(\t\"=\n\013EvmQueryR" + + "eq\022\017\n\007address\030\001 \001(\t\022\r\n\005input\030\002 \001(\t\022\016\n\006ca" + + "ller\030\003 \001(\t\"a\n\014EvmQueryResp\022\017\n\007address\030\001 " + + "\001(\t\022\r\n\005input\030\002 \001(\t\022\016\n\006caller\030\003 \001(\t\022\017\n\007ra" + + "wData\030\004 \001(\t\022\020\n\010jsonData\030\005 \001(\t\"\240\001\n\024EvmCon" + + "tractCreateReq\022\014\n\004code\030\001 \001(\t\022\013\n\003abi\030\002 \001(" + + "\t\022\013\n\003fee\030\003 \001(\003\022\014\n\004note\030\004 \001(\t\022\r\n\005alias\030\005 " + + "\001(\t\022\021\n\tparameter\030\006 \001(\t\022\016\n\006expire\030\007 \001(\t\022\020" + + "\n\010paraName\030\010 \001(\t\022\016\n\006amount\030\t \001(\003\"\227\001\n\022Evm" + + "ContractCallReq\022\016\n\006amount\030\001 \001(\003\022\013\n\003fee\030\002" + + " \001(\003\022\014\n\004note\030\003 \001(\t\022\021\n\tparameter\030\004 \001(\t\022\024\n" + + "\014contractAddr\030\005 \001(\t\022\016\n\006expire\030\006 \001(\t\022\020\n\010p" + + "araName\030\007 \001(\t\022\013\n\003abi\030\010 \001(\t\"P\n\022EvmTransfe" + + "rOnlyReq\022\n\n\002to\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\020\n\010" + + "paraName\030\003 \001(\t\022\014\n\004note\030\004 \001(\t\"!\n\016EvmGetNo" + + "nceReq\022\017\n\007address\030\001 \001(\t\"#\n\022EvmGetNonceRe" + + "spose\022\r\n\005nonce\030\001 \001(\003\";\n\031EvmCalcNewContra" + + "ctAddrReq\022\016\n\006caller\030\001 \001(\t\022\016\n\006txhash\030\002 \001(" + + "\t\"3\n\021EvmGetPackDataReq\022\013\n\003abi\030\001 \001(\t\022\021\n\tp" + + "arameter\030\002 \001(\t\")\n\025EvmGetPackDataRespose\022" + + "\020\n\010packData\030\001 \001(\t\"C\n\023EvmGetUnpackDataReq" + + "\022\013\n\003abi\030\001 \001(\t\022\021\n\tparameter\030\002 \001(\t\022\014\n\004data" + + "\030\003 \001(\t\"-\n\027EvmGetUnpackDataRespose\022\022\n\nunp" + + "ackData\030\001 \003(\tB/\n!cn.chain33.javasdk.mode" + "l.protobufB\nEvmServiceb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_EVMContractObject_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_EVMContractObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractObject_descriptor, new java.lang.String[] { "Addr", "Data", "State", }); + internal_static_EVMContractData_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_EVMContractData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractData_descriptor, + new java.lang.String[] { "Creator", "Name", "Alias", "Addr", "Code", "CodeHash", "Abi", }); + internal_static_EVMContractState_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_EVMContractState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractState_descriptor, + new java.lang.String[] { "Nonce", "Suicided", "StorageHash", "Storage", }); + internal_static_EVMContractState_StorageEntry_descriptor = internal_static_EVMContractState_descriptor + .getNestedTypes().get(0); + internal_static_EVMContractState_StorageEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractState_StorageEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_EVMContractAction_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_EVMContractAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractAction_descriptor, new java.lang.String[] { "Amount", "GasLimit", "GasPrice", + "Code", "Para", "Alias", "Note", "ContractAddr", }); + internal_static_ReceiptEVMContract_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_ReceiptEVMContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptEVMContract_descriptor, + new java.lang.String[] { "Caller", "ContractName", "ContractAddr", "UsedGas", "Ret", "JsonRet", }); + internal_static_EVMStateChangeItem_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_EVMStateChangeItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMStateChangeItem_descriptor, + new java.lang.String[] { "Key", "PreValue", "CurrentValue", }); + internal_static_EVMContractDataCmd_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_EVMContractDataCmd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractDataCmd_descriptor, + new java.lang.String[] { "Creator", "Name", "Alias", "Addr", "Code", "CodeHash", }); + internal_static_EVMContractStateCmd_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_EVMContractStateCmd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractStateCmd_descriptor, + new java.lang.String[] { "Nonce", "Suicided", "StorageHash", "Storage", }); + internal_static_EVMContractStateCmd_StorageEntry_descriptor = internal_static_EVMContractStateCmd_descriptor + .getNestedTypes().get(0); + internal_static_EVMContractStateCmd_StorageEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EVMContractStateCmd_StorageEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_ReceiptEVMContractCmd_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_ReceiptEVMContractCmd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptEVMContractCmd_descriptor, + new java.lang.String[] { "Caller", "ContractName", "ContractAddr", "UsedGas", "Ret", }); + internal_static_CheckEVMAddrReq_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_CheckEVMAddrReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CheckEVMAddrReq_descriptor, new java.lang.String[] { "Addr", }); + internal_static_CheckEVMAddrResp_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_CheckEVMAddrResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CheckEVMAddrResp_descriptor, + new java.lang.String[] { "Contract", "ContractAddr", "ContractName", "AliasName", }); + internal_static_EstimateEVMGasReq_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_EstimateEVMGasReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EstimateEVMGasReq_descriptor, new java.lang.String[] { "Tx", "From", }); + internal_static_EstimateEVMGasResp_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_EstimateEVMGasResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EstimateEVMGasResp_descriptor, new java.lang.String[] { "Gas", }); + internal_static_EvmDebugReq_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_EvmDebugReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmDebugReq_descriptor, new java.lang.String[] { "Optype", }); + internal_static_EvmDebugResp_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_EvmDebugResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmDebugResp_descriptor, new java.lang.String[] { "DebugStatus", }); + internal_static_EvmQueryAbiReq_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_EvmQueryAbiReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmQueryAbiReq_descriptor, new java.lang.String[] { "Address", }); + internal_static_EvmQueryAbiResp_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_EvmQueryAbiResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmQueryAbiResp_descriptor, new java.lang.String[] { "Address", "Abi", }); + internal_static_EvmQueryReq_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_EvmQueryReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmQueryReq_descriptor, new java.lang.String[] { "Address", "Input", "Caller", }); + internal_static_EvmQueryResp_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_EvmQueryResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmQueryResp_descriptor, + new java.lang.String[] { "Address", "Input", "Caller", "RawData", "JsonData", }); + internal_static_EvmContractCreateReq_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_EvmContractCreateReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmContractCreateReq_descriptor, new java.lang.String[] { "Code", "Abi", "Fee", "Note", + "Alias", "Parameter", "Expire", "ParaName", "Amount", }); + internal_static_EvmContractCallReq_descriptor = getDescriptor().getMessageTypes().get(20); + internal_static_EvmContractCallReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmContractCallReq_descriptor, new java.lang.String[] { "Amount", "Fee", "Note", + "Parameter", "ContractAddr", "Expire", "ParaName", "Abi", }); + internal_static_EvmTransferOnlyReq_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_EvmTransferOnlyReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmTransferOnlyReq_descriptor, + new java.lang.String[] { "To", "Amount", "ParaName", "Note", }); + internal_static_EvmGetNonceReq_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_EvmGetNonceReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmGetNonceReq_descriptor, new java.lang.String[] { "Address", }); + internal_static_EvmGetNonceRespose_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_EvmGetNonceRespose_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmGetNonceRespose_descriptor, new java.lang.String[] { "Nonce", }); + internal_static_EvmCalcNewContractAddrReq_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_EvmCalcNewContractAddrReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmCalcNewContractAddrReq_descriptor, new java.lang.String[] { "Caller", "Txhash", }); + internal_static_EvmGetPackDataReq_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_EvmGetPackDataReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmGetPackDataReq_descriptor, new java.lang.String[] { "Abi", "Parameter", }); + internal_static_EvmGetPackDataRespose_descriptor = getDescriptor().getMessageTypes().get(26); + internal_static_EvmGetPackDataRespose_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmGetPackDataRespose_descriptor, new java.lang.String[] { "PackData", }); + internal_static_EvmGetUnpackDataReq_descriptor = getDescriptor().getMessageTypes().get(27); + internal_static_EvmGetUnpackDataReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmGetUnpackDataReq_descriptor, new java.lang.String[] { "Abi", "Parameter", "Data", }); + internal_static_EvmGetUnpackDataRespose_descriptor = getDescriptor().getMessageTypes().get(28); + internal_static_EvmGetUnpackDataRespose_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EvmGetUnpackDataRespose_descriptor, new java.lang.String[] { "UnpackData", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.proto b/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.proto index cd9f88b..15b6750 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.proto +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/EvmService.proto @@ -1,6 +1,6 @@ -syntax = "proto3"; +syntax = "proto3"; option java_outer_classname = "EvmService"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; //合约对象信息 message EVMContractObject { @@ -108,8 +108,8 @@ message CheckEVMAddrResp { } message EstimateEVMGasReq { - string tx = 1; - string from = 2; + string tx = 1; + string from = 2; } message EstimateEVMGasResp { uint64 gas = 1; @@ -148,65 +148,63 @@ message EvmQueryResp { } message EvmContractCreateReq { - string code = 1; - string abi = 2; - int64 fee = 3; - string note = 4; - string alias = 5; - string parameter= 6; - string expire = 7; - string paraName = 8; - int64 amount = 9; + string code = 1; + string abi = 2; + int64 fee = 3; + string note = 4; + string alias = 5; + string parameter = 6; + string expire = 7; + string paraName = 8; + int64 amount = 9; } message EvmContractCallReq { - int64 amount = 1; + int64 amount = 1; int64 fee = 2; - string note = 3; - string parameter = 4; - string contractAddr = 5; - string expire = 6; - string paraName = 7; - string abi = 8; + string note = 3; + string parameter = 4; + string contractAddr = 5; + string expire = 6; + string paraName = 7; + string abi = 8; } message EvmTransferOnlyReq { - string to = 1; - int64 amount = 2; - string paraName = 3; - string note = 4; + string to = 1; + int64 amount = 2; + string paraName = 3; + string note = 4; } message EvmGetNonceReq { - string address = 1; + string address = 1; } message EvmGetNonceRespose { - int64 nonce = 1; + int64 nonce = 1; } message EvmCalcNewContractAddrReq { - string caller = 1; - string txhash = 2; + string caller = 1; + string txhash = 2; } message EvmGetPackDataReq { - string abi = 1; - string parameter = 2; + string abi = 1; + string parameter = 2; } message EvmGetPackDataRespose { - string packData = 1; + string packData = 1; } message EvmGetUnpackDataReq { - string abi = 1; - string parameter = 2; - string data = 3; + string abi = 1; + string parameter = 2; + string data = 3; } message EvmGetUnpackDataRespose { - repeated string unpackData = 1; + repeated string unpackData = 1; } - - diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/ExecuterProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/ExecuterProtobuf.java index 2573cf0..6ce1d44 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/ExecuterProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/ExecuterProtobuf.java @@ -4,10293 +4,10815 @@ package cn.chain33.javasdk.model.protobuf; public final class ExecuterProtobuf { - private ExecuterProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GenesisOrBuilder extends - // @@protoc_insertion_point(interface_extends:Genesis) - com.google.protobuf.MessageOrBuilder { - - /** - * bool isrun = 1; - * @return The isrun. - */ - boolean getIsrun(); - } - /** - * Protobuf type {@code Genesis} - */ - public static final class Genesis extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Genesis) - GenesisOrBuilder { - private static final long serialVersionUID = 0L; - // Use Genesis.newBuilder() to construct. - private Genesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Genesis() { + private ExecuterProtobuf() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Genesis(); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Genesis( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isrun_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_descriptor; + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.Builder.class); + public interface GenesisOrBuilder extends + // @@protoc_insertion_point(interface_extends:Genesis) + com.google.protobuf.MessageOrBuilder { + + /** + * bool isrun = 1; + * + * @return The isrun. + */ + boolean getIsrun(); } - public static final int ISRUN_FIELD_NUMBER = 1; - private boolean isrun_; /** - * bool isrun = 1; - * @return The isrun. + * Protobuf type {@code Genesis} */ - public boolean getIsrun() { - return isrun_; - } + public static final class Genesis extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Genesis) + GenesisOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use Genesis.newBuilder() to construct. + private Genesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private Genesis() { + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isrun_ != false) { - output.writeBool(1, isrun_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Genesis(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isrun_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isrun_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis) obj; - - if (getIsrun() - != other.getIsrun()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private Genesis(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + isrun_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISRUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsrun()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int ISRUN_FIELD_NUMBER = 1; + private boolean isrun_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Genesis} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Genesis) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.GenesisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isrun_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis(this); - result.isrun_ = isrun_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.getDefaultInstance()) return this; - if (other.getIsrun() != false) { - setIsrun(other.getIsrun()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isrun_ ; - /** - * bool isrun = 1; - * @return The isrun. - */ - public boolean getIsrun() { - return isrun_; - } - /** - * bool isrun = 1; - * @param value The isrun to set. - * @return This builder for chaining. - */ - public Builder setIsrun(boolean value) { - - isrun_ = value; - onChanged(); - return this; - } - /** - * bool isrun = 1; - * @return This builder for chaining. - */ - public Builder clearIsrun() { - - isrun_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Genesis) - } + /** + * bool isrun = 1; + * + * @return The isrun. + */ + @java.lang.Override + public boolean getIsrun() { + return isrun_; + } - // @@protoc_insertion_point(class_scope:Genesis) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis(); - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Genesis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Genesis(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isrun_ != false) { + output.writeBool(1, isrun_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - } + size = 0; + if (isrun_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isrun_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public interface ExecTxListOrBuilder extends - // @@protoc_insertion_point(interface_extends:ExecTxList) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis) obj; - /** - * bytes stateHash = 1; - * @return The stateHash. - */ - com.google.protobuf.ByteString getStateHash(); + if (getIsrun() != other.getIsrun()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - * bytes parentHash = 7; - * @return The parentHash. - */ - com.google.protobuf.ByteString getParentHash(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISRUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsrun()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * bytes mainHash = 8; - * @return The mainHash. - */ - com.google.protobuf.ByteString getMainHash(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * int64 mainHeight = 9; - * @return The mainHeight. - */ - long getMainHeight(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * int64 blockTime = 3; - * @return The blockTime. - */ - long getBlockTime(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * int64 height = 4; - * @return The height. - */ - long getHeight(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * uint64 difficulty = 5; - * @return The difficulty. - */ - long getDifficulty(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * bool isMempool = 6; - * @return The isMempool. - */ - boolean getIsMempool(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * repeated .Transaction txs = 2; - */ - java.util.List - getTxsList(); - /** - * repeated .Transaction txs = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); - /** - * repeated .Transaction txs = 2; - */ - int getTxsCount(); - /** - * repeated .Transaction txs = 2; - */ - java.util.List - getTxsOrBuilderList(); - /** - * repeated .Transaction txs = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index); - } - /** - * Protobuf type {@code ExecTxList} - */ - public static final class ExecTxList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ExecTxList) - ExecTxListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecTxList.newBuilder() to construct. - private ExecTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecTxList() { - stateHash_ = com.google.protobuf.ByteString.EMPTY; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - mainHash_ = com.google.protobuf.ByteString.EMPTY; - txs_ = java.util.Collections.emptyList(); - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExecTxList(); - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecTxList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } - stateHash_ = input.readBytes(); - break; + /** + * Protobuf type {@code Genesis} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Genesis) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.GenesisOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_descriptor; } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry)); - break; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.Builder.class); } - case 24: { - blockTime_ = input.readInt64(); - break; + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - case 32: { - height_ = input.readInt64(); - break; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - case 40: { - difficulty_ = input.readUInt64(); - break; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } } - case 48: { - isMempool_ = input.readBool(); - break; + @java.lang.Override + public Builder clear() { + super.clear(); + isrun_ = false; + + return this; } - case 58: { - parentHash_ = input.readBytes(); - break; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Genesis_descriptor; } - case 66: { - mainHash_ = input.readBytes(); - break; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.getDefaultInstance(); } - case 72: { - mainHeight_ = input.readInt64(); - break; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis( + this); + result.isrun_ = isrun_; + onBuilt(); + return result; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.Builder.class); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int STATEHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString stateHash_; - /** - * bytes stateHash = 1; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int PARENTHASH_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString parentHash_; - /** - * bytes parentHash = 7; - * @return The parentHash. - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int MAINHASH_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString mainHash_; - /** - * bytes mainHash = 8; - * @return The mainHash. - */ - public com.google.protobuf.ByteString getMainHash() { - return mainHash_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int MAINHEIGHT_FIELD_NUMBER = 9; - private long mainHeight_; - /** - * int64 mainHeight = 9; - * @return The mainHeight. - */ - public long getMainHeight() { - return mainHeight_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int BLOCKTIME_FIELD_NUMBER = 3; - private long blockTime_; - /** - * int64 blockTime = 3; - * @return The blockTime. - */ - public long getBlockTime() { - return blockTime_; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int HEIGHT_FIELD_NUMBER = 4; - private long height_; - /** - * int64 height = 4; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int DIFFICULTY_FIELD_NUMBER = 5; - private long difficulty_; - /** - * uint64 difficulty = 5; - * @return The difficulty. - */ - public long getDifficulty() { - return difficulty_; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis.getDefaultInstance()) + return this; + if (other.getIsrun() != false) { + setIsrun(other.getIsrun()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int ISMEMPOOL_FIELD_NUMBER = 6; - private boolean isMempool_; - /** - * bool isMempool = 6; - * @return The isMempool. - */ - public boolean getIsMempool() { - return isMempool_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int TXS_FIELD_NUMBER = 2; - private java.util.List txs_; - /** - * repeated .Transaction txs = 2; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .Transaction txs = 2; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .Transaction txs = 2; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .Transaction txs = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .Transaction txs = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private boolean isrun_; - memoizedIsInitialized = 1; - return true; - } + /** + * bool isrun = 1; + * + * @return The isrun. + */ + @java.lang.Override + public boolean getIsrun() { + return isrun_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!stateHash_.isEmpty()) { - output.writeBytes(1, stateHash_); - } - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(2, txs_.get(i)); - } - if (blockTime_ != 0L) { - output.writeInt64(3, blockTime_); - } - if (height_ != 0L) { - output.writeInt64(4, height_); - } - if (difficulty_ != 0L) { - output.writeUInt64(5, difficulty_); - } - if (isMempool_ != false) { - output.writeBool(6, isMempool_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(7, parentHash_); - } - if (!mainHash_.isEmpty()) { - output.writeBytes(8, mainHash_); - } - if (mainHeight_ != 0L) { - output.writeInt64(9, mainHeight_); - } - unknownFields.writeTo(output); - } + /** + * bool isrun = 1; + * + * @param value + * The isrun to set. + * + * @return This builder for chaining. + */ + public Builder setIsrun(boolean value) { + + isrun_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!stateHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, stateHash_); - } - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, txs_.get(i)); - } - if (blockTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, blockTime_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, height_); - } - if (difficulty_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, difficulty_); - } - if (isMempool_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isMempool_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, parentHash_); - } - if (!mainHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, mainHash_); - } - if (mainHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, mainHeight_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * bool isrun = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsrun() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList) obj; - - if (!getStateHash() - .equals(other.getStateHash())) return false; - if (!getParentHash() - .equals(other.getParentHash())) return false; - if (!getMainHash() - .equals(other.getMainHash())) return false; - if (getMainHeight() - != other.getMainHeight()) return false; - if (getBlockTime() - != other.getBlockTime()) return false; - if (getHeight() - != other.getHeight()) return false; - if (getDifficulty() - != other.getDifficulty()) return false; - if (getIsMempool() - != other.getIsMempool()) return false; - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + isrun_ = false; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATEHASH_FIELD_NUMBER; - hash = (53 * hash) + getStateHash().hashCode(); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MAINHASH_FIELD_NUMBER; - hash = (53 * hash) + getMainHash().hashCode(); - hash = (37 * hash) + MAINHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMainHeight()); - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockTime()); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDifficulty()); - hash = (37 * hash) + ISMEMPOOL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMempool()); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(builder_scope:Genesis) + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + // @@protoc_insertion_point(class_scope:Genesis) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Genesis parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Genesis(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Genesis getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecTxListOrBuilder extends + // @@protoc_insertion_point(interface_extends:ExecTxList) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes stateHash = 1; + * + * @return The stateHash. + */ + com.google.protobuf.ByteString getStateHash(); + + /** + * bytes parentHash = 7; + * + * @return The parentHash. + */ + com.google.protobuf.ByteString getParentHash(); + + /** + * bytes mainHash = 8; + * + * @return The mainHash. + */ + com.google.protobuf.ByteString getMainHash(); + + /** + * int64 mainHeight = 9; + * + * @return The mainHeight. + */ + long getMainHeight(); + + /** + * int64 blockTime = 3; + * + * @return The blockTime. + */ + long getBlockTime(); + + /** + * int64 height = 4; + * + * @return The height. + */ + long getHeight(); + + /** + * uint64 difficulty = 5; + * + * @return The difficulty. + */ + long getDifficulty(); + + /** + * bool isMempool = 6; + * + * @return The isMempool. + */ + boolean getIsMempool(); + + /** + * repeated .Transaction txs = 2; + */ + java.util.List getTxsList(); + + /** + * repeated .Transaction txs = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); + + /** + * repeated .Transaction txs = 2; + */ + int getTxsCount(); + + /** + * repeated .Transaction txs = 2; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .Transaction txs = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder(int index); } + /** * Protobuf type {@code ExecTxList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ExecTxList) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - stateHash_ = com.google.protobuf.ByteString.EMPTY; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - mainHash_ = com.google.protobuf.ByteString.EMPTY; - - mainHeight_ = 0L; - - blockTime_ = 0L; - - height_ = 0L; - - difficulty_ = 0L; - - isMempool_ = false; - - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList(this); - int from_bitField0_ = bitField0_; - result.stateHash_ = stateHash_; - result.parentHash_ = parentHash_; - result.mainHash_ = mainHash_; - result.mainHeight_ = mainHeight_; - result.blockTime_ = blockTime_; - result.height_ = height_; - result.difficulty_ = difficulty_; - result.isMempool_ = isMempool_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.getDefaultInstance()) return this; - if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { - setStateHash(other.getStateHash()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMainHash() != com.google.protobuf.ByteString.EMPTY) { - setMainHash(other.getMainHash()); - } - if (other.getMainHeight() != 0L) { - setMainHeight(other.getMainHeight()); - } - if (other.getBlockTime() != 0L) { - setBlockTime(other.getBlockTime()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getDifficulty() != 0L) { - setDifficulty(other.getDifficulty()); - } - if (other.getIsMempool() != false) { - setIsMempool(other.getIsMempool()); - } - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateHash = 1; - * @return The stateHash. - */ - public com.google.protobuf.ByteString getStateHash() { - return stateHash_; - } - /** - * bytes stateHash = 1; - * @param value The stateHash to set. - * @return This builder for chaining. - */ - public Builder setStateHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateHash_ = value; - onChanged(); - return this; - } - /** - * bytes stateHash = 1; - * @return This builder for chaining. - */ - public Builder clearStateHash() { - - stateHash_ = getDefaultInstance().getStateHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes parentHash = 7; - * @return The parentHash. - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** - * bytes parentHash = 7; - * @param value The parentHash to set. - * @return This builder for chaining. - */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * bytes parentHash = 7; - * @return This builder for chaining. - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString mainHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes mainHash = 8; - * @return The mainHash. - */ - public com.google.protobuf.ByteString getMainHash() { - return mainHash_; - } - /** - * bytes mainHash = 8; - * @param value The mainHash to set. - * @return This builder for chaining. - */ - public Builder setMainHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - mainHash_ = value; - onChanged(); - return this; - } - /** - * bytes mainHash = 8; - * @return This builder for chaining. - */ - public Builder clearMainHash() { - - mainHash_ = getDefaultInstance().getMainHash(); - onChanged(); - return this; - } - - private long mainHeight_ ; - /** - * int64 mainHeight = 9; - * @return The mainHeight. - */ - public long getMainHeight() { - return mainHeight_; - } - /** - * int64 mainHeight = 9; - * @param value The mainHeight to set. - * @return This builder for chaining. - */ - public Builder setMainHeight(long value) { - - mainHeight_ = value; - onChanged(); - return this; - } - /** - * int64 mainHeight = 9; - * @return This builder for chaining. - */ - public Builder clearMainHeight() { - - mainHeight_ = 0L; - onChanged(); - return this; - } - - private long blockTime_ ; - /** - * int64 blockTime = 3; - * @return The blockTime. - */ - public long getBlockTime() { - return blockTime_; - } - /** - * int64 blockTime = 3; - * @param value The blockTime to set. - * @return This builder for chaining. - */ - public Builder setBlockTime(long value) { - - blockTime_ = value; - onChanged(); - return this; - } - /** - * int64 blockTime = 3; - * @return This builder for chaining. - */ - public Builder clearBlockTime() { - - blockTime_ = 0L; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 4; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 4; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 4; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long difficulty_ ; - /** - * uint64 difficulty = 5; - * @return The difficulty. - */ - public long getDifficulty() { - return difficulty_; - } - /** - * uint64 difficulty = 5; - * @param value The difficulty to set. - * @return This builder for chaining. - */ - public Builder setDifficulty(long value) { - - difficulty_ = value; - onChanged(); - return this; - } - /** - * uint64 difficulty = 5; - * @return This builder for chaining. - */ - public Builder clearDifficulty() { - - difficulty_ = 0L; - onChanged(); - return this; - } - - private boolean isMempool_ ; - /** - * bool isMempool = 6; - * @return The isMempool. - */ - public boolean getIsMempool() { - return isMempool_; - } - /** - * bool isMempool = 6; - * @param value The isMempool to set. - * @return This builder for chaining. - */ - public Builder setIsMempool(boolean value) { - - isMempool_ = value; - onChanged(); - return this; - } - /** - * bool isMempool = 6; - * @return This builder for chaining. - */ - public Builder clearIsMempool() { - - isMempool_ = false; - onChanged(); - return this; - } - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txsBuilder_; - - /** - * repeated .Transaction txs = 2; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .Transaction txs = 2; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .Transaction txs = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .Transaction txs = 2; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Transaction txs = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .Transaction txs = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Transaction txs = 2; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .Transaction txs = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 2; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ExecTxList) - } + public static final class ExecTxList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ExecTxList) + ExecTxListOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ExecTxList) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList(); - } + // Use ExecTxList.newBuilder() to construct. + private ExecTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private ExecTxList() { + stateHash_ = com.google.protobuf.ByteString.EMPTY; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + mainHash_ = com.google.protobuf.ByteString.EMPTY; + txs_ = java.util.Collections.emptyList(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecTxList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecTxList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecTxList(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ExecTxList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + stateHash_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry)); + break; + } + case 24: { + + blockTime_ = input.readInt64(); + break; + } + case 32: { + + height_ = input.readInt64(); + break; + } + case 40: { + + difficulty_ = input.readUInt64(); + break; + } + case 48: { + + isMempool_ = input.readBool(); + break; + } + case 58: { + + parentHash_ = input.readBytes(); + break; + } + case 66: { + + mainHash_ = input.readBytes(); + break; + } + case 72: { + + mainHeight_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_descriptor; + } - public interface QueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:Query) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.Builder.class); + } - /** - * bytes execer = 1; - * @return The execer. - */ - com.google.protobuf.ByteString getExecer(); + public static final int STATEHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString stateHash_; - /** - * string funcName = 2; - * @return The funcName. - */ - java.lang.String getFuncName(); - /** - * string funcName = 2; - * @return The bytes for funcName. - */ - com.google.protobuf.ByteString - getFuncNameBytes(); + /** + * bytes stateHash = 1; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } - /** - * bytes payload = 3; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - } - /** - * Protobuf type {@code Query} - */ - public static final class Query extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Query) - QueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Query.newBuilder() to construct. - private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Query() { - execer_ = com.google.protobuf.ByteString.EMPTY; - funcName_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int PARENTHASH_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString parentHash_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Query(); - } + /** + * bytes parentHash = 7; + * + * @return The parentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Query( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - execer_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - funcName_ = s; - break; - } - case 26: { - - payload_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_descriptor; - } + public static final int MAINHASH_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString mainHash_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.Builder.class); - } + /** + * bytes mainHash = 8; + * + * @return The mainHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainHash() { + return mainHash_; + } - public static final int EXECER_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString execer_; - /** - * bytes execer = 1; - * @return The execer. - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } + public static final int MAINHEIGHT_FIELD_NUMBER = 9; + private long mainHeight_; - public static final int FUNCNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object funcName_; - /** - * string funcName = 2; - * @return The funcName. - */ - public java.lang.String getFuncName() { - java.lang.Object ref = funcName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - funcName_ = s; - return s; - } - } - /** - * string funcName = 2; - * @return The bytes for funcName. - */ - public com.google.protobuf.ByteString - getFuncNameBytes() { - java.lang.Object ref = funcName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - funcName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 mainHeight = 9; + * + * @return The mainHeight. + */ + @java.lang.Override + public long getMainHeight() { + return mainHeight_; + } - public static final int PAYLOAD_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString payload_; - /** - * bytes payload = 3; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } + public static final int BLOCKTIME_FIELD_NUMBER = 3; + private long blockTime_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * int64 blockTime = 3; + * + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } - memoizedIsInitialized = 1; - return true; - } + public static final int HEIGHT_FIELD_NUMBER = 4; + private long height_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!execer_.isEmpty()) { - output.writeBytes(1, execer_); - } - if (!getFuncNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, funcName_); - } - if (!payload_.isEmpty()) { - output.writeBytes(3, payload_); - } - unknownFields.writeTo(output); - } + /** + * int64 height = 4; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!execer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, execer_); - } - if (!getFuncNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, funcName_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, payload_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int DIFFICULTY_FIELD_NUMBER = 5; + private long difficulty_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query) obj; - - if (!getExecer() - .equals(other.getExecer())) return false; - if (!getFuncName() - .equals(other.getFuncName())) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * uint64 difficulty = 5; + * + * @return The difficulty. + */ + @java.lang.Override + public long getDifficulty() { + return difficulty_; + } + + public static final int ISMEMPOOL_FIELD_NUMBER = 6; + private boolean isMempool_; + + /** + * bool isMempool = 6; + * + * @return The isMempool. + */ + @java.lang.Override + public boolean getIsMempool() { + return isMempool_; + } + + public static final int TXS_FIELD_NUMBER = 2; + private java.util.List txs_; + + /** + * repeated .Transaction txs = 2; + */ + @java.lang.Override + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .Transaction txs = 2; + */ + @java.lang.Override + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .Transaction txs = 2; + */ + @java.lang.Override + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .Transaction txs = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .Transaction txs = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - hash = (37 * hash) + FUNCNAME_FIELD_NUMBER; - hash = (53 * hash) + getFuncName().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!stateHash_.isEmpty()) { + output.writeBytes(1, stateHash_); + } + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(2, txs_.get(i)); + } + if (blockTime_ != 0L) { + output.writeInt64(3, blockTime_); + } + if (height_ != 0L) { + output.writeInt64(4, height_); + } + if (difficulty_ != 0L) { + output.writeUInt64(5, difficulty_); + } + if (isMempool_ != false) { + output.writeBool(6, isMempool_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(7, parentHash_); + } + if (!mainHash_.isEmpty()) { + output.writeBytes(8, mainHash_); + } + if (mainHeight_ != 0L) { + output.writeInt64(9, mainHeight_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Query} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Query) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.QueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - execer_ = com.google.protobuf.ByteString.EMPTY; - - funcName_ = ""; - - payload_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query(this); - result.execer_ = execer_; - result.funcName_ = funcName_; - result.payload_ = payload_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.getDefaultInstance()) return this; - if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { - setExecer(other.getExecer()); - } - if (!other.getFuncName().isEmpty()) { - funcName_ = other.funcName_; - onChanged(); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes execer = 1; - * @return The execer. - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } - /** - * bytes execer = 1; - * @param value The execer to set. - * @return This builder for chaining. - */ - public Builder setExecer(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - * bytes execer = 1; - * @return This builder for chaining. - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - - private java.lang.Object funcName_ = ""; - /** - * string funcName = 2; - * @return The funcName. - */ - public java.lang.String getFuncName() { - java.lang.Object ref = funcName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - funcName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string funcName = 2; - * @return The bytes for funcName. - */ - public com.google.protobuf.ByteString - getFuncNameBytes() { - java.lang.Object ref = funcName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - funcName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string funcName = 2; - * @param value The funcName to set. - * @return This builder for chaining. - */ - public Builder setFuncName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - funcName_ = value; - onChanged(); - return this; - } - /** - * string funcName = 2; - * @return This builder for chaining. - */ - public Builder clearFuncName() { - - funcName_ = getDefaultInstance().getFuncName(); - onChanged(); - return this; - } - /** - * string funcName = 2; - * @param value The bytes for funcName to set. - * @return This builder for chaining. - */ - public Builder setFuncNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - funcName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 3; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 3; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * bytes payload = 3; - * @return This builder for chaining. - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Query) - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - // @@protoc_insertion_point(class_scope:Query) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query(); - } + size = 0; + if (!stateHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, stateHash_); + } + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, txs_.get(i)); + } + if (blockTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, blockTime_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, height_); + } + if (difficulty_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, difficulty_); + } + if (isMempool_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isMempool_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, parentHash_); + } + if (!mainHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, mainHash_); + } + if (mainHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, mainHeight_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList) obj; + + if (!getStateHash().equals(other.getStateHash())) + return false; + if (!getParentHash().equals(other.getParentHash())) + return false; + if (!getMainHash().equals(other.getMainHash())) + return false; + if (getMainHeight() != other.getMainHeight()) + return false; + if (getBlockTime() != other.getBlockTime()) + return false; + if (getHeight() != other.getHeight()) + return false; + if (getDifficulty() != other.getDifficulty()) + return false; + if (getIsMempool() != other.getIsMempool()) + return false; + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATEHASH_FIELD_NUMBER; + hash = (53 * hash) + getStateHash().hashCode(); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MAINHASH_FIELD_NUMBER; + hash = (53 * hash) + getMainHash().hashCode(); + hash = (37 * hash) + MAINHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMainHeight()); + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockTime()); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDifficulty()); + hash = (37 * hash) + ISMEMPOOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsMempool()); + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Query parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Query(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface CreateTxInOrBuilder extends - // @@protoc_insertion_point(interface_extends:CreateTxIn) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * bytes execer = 1; - * @return The execer. - */ - com.google.protobuf.ByteString getExecer(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * string actionName = 2; - * @return The actionName. - */ - java.lang.String getActionName(); - /** - * string actionName = 2; - * @return The bytes for actionName. - */ - com.google.protobuf.ByteString - getActionNameBytes(); + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * bytes payload = 3; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - } - /** - * Protobuf type {@code CreateTxIn} - */ - public static final class CreateTxIn extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CreateTxIn) - CreateTxInOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTxIn.newBuilder() to construct. - private CreateTxIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTxIn() { - execer_ = com.google.protobuf.ByteString.EMPTY; - actionName_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTxIn(); - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTxIn( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - execer_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - actionName_ = s; - break; - } - case 26: { - - payload_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int EXECER_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString execer_; - /** - * bytes execer = 1; - * @return The execer. - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int ACTIONNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object actionName_; - /** - * string actionName = 2; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } - } - /** - * string actionName = 2; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int PAYLOAD_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString payload_; - /** - * bytes payload = 3; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!execer_.isEmpty()) { - output.writeBytes(1, execer_); - } - if (!getActionNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, actionName_); - } - if (!payload_.isEmpty()) { - output.writeBytes(3, payload_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!execer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, execer_); - } - if (!getActionNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, actionName_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, payload_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * Protobuf type {@code ExecTxList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ExecTxList) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) obj; - - if (!getExecer() - .equals(other.getExecer())) return false; - if (!getActionName() - .equals(other.getActionName())) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; - hash = (53 * hash) + getActionName().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CreateTxIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CreateTxIn) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - execer_ = com.google.protobuf.ByteString.EMPTY; - - actionName_ = ""; - - payload_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn(this); - result.execer_ = execer_; - result.actionName_ = actionName_; - result.payload_ = payload_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.getDefaultInstance()) return this; - if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { - setExecer(other.getExecer()); - } - if (!other.getActionName().isEmpty()) { - actionName_ = other.actionName_; - onChanged(); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes execer = 1; - * @return The execer. - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } - /** - * bytes execer = 1; - * @param value The execer to set. - * @return This builder for chaining. - */ - public Builder setExecer(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - * bytes execer = 1; - * @return This builder for chaining. - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - - private java.lang.Object actionName_ = ""; - /** - * string actionName = 2; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string actionName = 2; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string actionName = 2; - * @param value The actionName to set. - * @return This builder for chaining. - */ - public Builder setActionName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - actionName_ = value; - onChanged(); - return this; - } - /** - * string actionName = 2; - * @return This builder for chaining. - */ - public Builder clearActionName() { - - actionName_ = getDefaultInstance().getActionName(); - onChanged(); - return this; - } - /** - * string actionName = 2; - * @param value The bytes for actionName to set. - * @return This builder for chaining. - */ - public Builder setActionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - actionName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 3; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 3; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * bytes payload = 3; - * @return This builder for chaining. - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CreateTxIn) - } + @java.lang.Override + public Builder clear() { + super.clear(); + stateHash_ = com.google.protobuf.ByteString.EMPTY; - // @@protoc_insertion_point(class_scope:CreateTxIn) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn(); - } + parentHash_ = com.google.protobuf.ByteString.EMPTY; - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } + mainHash_ = com.google.protobuf.ByteString.EMPTY; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTxIn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTxIn(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + mainHeight_ = 0L; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + blockTime_ = 0L; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + height_ = 0L; - } + difficulty_ = 0L; - public interface ArrayConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:ArrayConfig) - com.google.protobuf.MessageOrBuilder { + isMempool_ = false; - /** - * repeated string value = 3; - * @return A list containing the value. - */ - java.util.List - getValueList(); - /** - * repeated string value = 3; - * @return The count of value. - */ - int getValueCount(); - /** - * repeated string value = 3; - * @param index The index of the element to return. - * @return The value at the given index. - */ - java.lang.String getValue(int index); - /** - * repeated string value = 3; - * @param index The index of the value to return. - * @return The bytes of the value at the given index. - */ - com.google.protobuf.ByteString - getValueBytes(int index); - } - /** - *
-   * 配置修改部分
-   * 
- * - * Protobuf type {@code ArrayConfig} - */ - public static final class ArrayConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ArrayConfig) - ArrayConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArrayConfig.newBuilder() to construct. - private ArrayConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArrayConfig() { - value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txsBuilder_.clear(); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ArrayConfig(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ExecTxList_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArrayConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - value_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = value_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.getDefaultInstance(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int VALUE_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList value_; - /** - * repeated string value = 3; - * @return A list containing the value. - */ - public com.google.protobuf.ProtocolStringList - getValueList() { - return value_; - } - /** - * repeated string value = 3; - * @return The count of value. - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated string value = 3; - * @param index The index of the element to return. - * @return The value at the given index. - */ - public java.lang.String getValue(int index) { - return value_.get(index); - } - /** - * repeated string value = 3; - * @param index The index of the value to return. - * @return The bytes of the value at the given index. - */ - public com.google.protobuf.ByteString - getValueBytes(int index) { - return value_.getByteString(index); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList( + this); + int from_bitField0_ = bitField0_; + result.stateHash_ = stateHash_; + result.parentHash_ = parentHash_; + result.mainHash_ = mainHash_; + result.mainHeight_ = mainHeight_; + result.blockTime_ = blockTime_; + result.height_ = height_; + result.difficulty_ = difficulty_; + result.isMempool_ = isMempool_; + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + onBuilt(); + return result; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clone() { + return super.clone(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < value_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_.getRaw(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < value_.size(); i++) { - dataSize += computeStringSizeNoTag(value_.getRaw(i)); - } - size += dataSize; - size += 1 * getValueList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) obj; - - if (!getValueList() - .equals(other.getValueList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList.getDefaultInstance()) + return this; + if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { + setStateHash(other.getStateHash()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMainHash() != com.google.protobuf.ByteString.EMPTY) { + setMainHash(other.getMainHash()); + } + if (other.getMainHeight() != 0L) { + setMainHeight(other.getMainHeight()); + } + if (other.getBlockTime() != 0L) { + setBlockTime(other.getBlockTime()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getDifficulty() != 0L) { + setDifficulty(other.getDifficulty()); + } + if (other.getIsMempool() != false) { + setIsMempool(other.getIsMempool()); + } + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 配置修改部分
-     * 
- * - * Protobuf type {@code ArrayConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ArrayConfig) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_ = value_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = new com.google.protobuf.LazyStringArrayList(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string value = 3; - * @return A list containing the value. - */ - public com.google.protobuf.ProtocolStringList - getValueList() { - return value_.getUnmodifiableView(); - } - /** - * repeated string value = 3; - * @return The count of value. - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated string value = 3; - * @param index The index of the element to return. - * @return The value at the given index. - */ - public java.lang.String getValue(int index) { - return value_.get(index); - } - /** - * repeated string value = 3; - * @param index The index of the value to return. - * @return The bytes of the value at the given index. - */ - public com.google.protobuf.ByteString - getValueBytes(int index) { - return value_.getByteString(index); - } - /** - * repeated string value = 3; - * @param index The index to set the value at. - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string value = 3; - * @param value The value to add. - * @return This builder for chaining. - */ - public Builder addValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.add(value); - onChanged(); - return this; - } - /** - * repeated string value = 3; - * @param values The value to add. - * @return This builder for chaining. - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated string value = 3; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string value = 3; - * @param value The bytes of the value to add. - * @return This builder for chaining. - */ - public Builder addValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValueIsMutable(); - value_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ArrayConfig) - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - // @@protoc_insertion_point(class_scope:ArrayConfig) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private int bitField0_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrayConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArrayConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * bytes stateHash = 1; + * + * @return The stateHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateHash() { + return stateHash_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bytes stateHash = 1; + * + * @param value + * The stateHash to set. + * + * @return This builder for chaining. + */ + public Builder setStateHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateHash_ = value; + onChanged(); + return this; + } - } + /** + * bytes stateHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearStateHash() { - public interface StringConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:StringConfig) - com.google.protobuf.MessageOrBuilder { + stateHash_ = getDefaultInstance().getStateHash(); + onChanged(); + return this; + } - /** - * string value = 3; - * @return The value. - */ - java.lang.String getValue(); - /** - * string value = 3; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code StringConfig} - */ - public static final class StringConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:StringConfig) - StringConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use StringConfig.newBuilder() to construct. - private StringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StringConfig() { - value_ = ""; - } + private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringConfig(); - } + /** + * bytes parentHash = 7; + * + * @return The parentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StringConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_descriptor; - } + /** + * bytes parentHash = 7; + * + * @param value + * The parentHash to set. + * + * @return This builder for chaining. + */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder.class); - } + /** + * bytes parentHash = 7; + * + * @return This builder for chaining. + */ + public Builder clearParentHash() { - public static final int VALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object value_; - /** - * string value = 3; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 3; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private com.google.protobuf.ByteString mainHash_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + /** + * bytes mainHash = 8; + * + * @return The mainHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainHash() { + return mainHash_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - unknownFields.writeTo(output); - } + /** + * bytes mainHash = 8; + * + * @param value + * The mainHash to set. + * + * @return This builder for chaining. + */ + public Builder setMainHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + mainHash_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * bytes mainHash = 8; + * + * @return This builder for chaining. + */ + public Builder clearMainHash() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + mainHash_ = getDefaultInstance().getMainHash(); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private long mainHeight_; - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int64 mainHeight = 9; + * + * @return The mainHeight. + */ + @java.lang.Override + public long getMainHeight() { + return mainHeight_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * int64 mainHeight = 9; + * + * @param value + * The mainHeight to set. + * + * @return This builder for chaining. + */ + public Builder setMainHeight(long value) { + + mainHeight_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code StringConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:StringConfig) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig(this); - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 3; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 3; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 3; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 3; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 3; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:StringConfig) - } + /** + * int64 mainHeight = 9; + * + * @return This builder for chaining. + */ + public Builder clearMainHeight() { - // @@protoc_insertion_point(class_scope:StringConfig) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig(); - } + mainHeight_ = 0L; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private long blockTime_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StringConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * int64 blockTime = 3; + * + * @return The blockTime. + */ + @java.lang.Override + public long getBlockTime() { + return blockTime_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * int64 blockTime = 3; + * + * @param value + * The blockTime to set. + * + * @return This builder for chaining. + */ + public Builder setBlockTime(long value) { + + blockTime_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * int64 blockTime = 3; + * + * @return This builder for chaining. + */ + public Builder clearBlockTime() { - } + blockTime_ = 0L; + onChanged(); + return this; + } - public interface Int32ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:Int32Config) - com.google.protobuf.MessageOrBuilder { + private long height_; - /** - * int32 value = 3; - * @return The value. - */ - int getValue(); - } - /** - * Protobuf type {@code Int32Config} - */ - public static final class Int32Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Int32Config) - Int32ConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use Int32Config.newBuilder() to construct. - private Int32Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Int32Config() { - } + /** + * int64 height = 4; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int32Config(); - } + /** + * int64 height = 4; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Int32Config( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - value_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_descriptor; - } + /** + * int64 height = 4; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder.class); - } + height_ = 0L; + onChanged(); + return this; + } - public static final int VALUE_FIELD_NUMBER = 3; - private int value_; - /** - * int32 value = 3; - * @return The value. - */ - public int getValue() { - return value_; - } + private long difficulty_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * uint64 difficulty = 5; + * + * @return The difficulty. + */ + @java.lang.Override + public long getDifficulty() { + return difficulty_; + } - memoizedIsInitialized = 1; - return true; - } + /** + * uint64 difficulty = 5; + * + * @param value + * The difficulty to set. + * + * @return This builder for chaining. + */ + public Builder setDifficulty(long value) { + + difficulty_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != 0) { - output.writeInt32(3, value_); - } - unknownFields.writeTo(output); - } + /** + * uint64 difficulty = 5; + * + * @return This builder for chaining. + */ + public Builder clearDifficulty() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + difficulty_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) obj; - - if (getValue() - != other.getValue()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private boolean isMempool_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * bool isMempool = 6; + * + * @return The isMempool. + */ + @java.lang.Override + public boolean getIsMempool() { + return isMempool_; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * bool isMempool = 6; + * + * @param value + * The isMempool to set. + * + * @return This builder for chaining. + */ + public Builder setIsMempool(boolean value) { + + isMempool_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * bool isMempool = 6; + * + * @return This builder for chaining. + */ + public Builder clearIsMempool() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Int32Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Int32Config) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config(this); - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance()) return this; - if (other.getValue() != 0) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int value_ ; - /** - * int32 value = 3; - * @return The value. - */ - public int getValue() { - return value_; - } - /** - * int32 value = 3; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(int value) { - - value_ = value; - onChanged(); - return this; - } - /** - * int32 value = 3; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Int32Config) - } + isMempool_ = false; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:Int32Config) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config(); - } + private java.util.List txs_ = java.util.Collections + .emptyList(); - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000001; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Int32Config(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .Transaction txs = 2; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .Transaction txs = 2; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Transaction txs = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } - } + /** + * repeated .Transaction txs = 2; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } - public interface ConfigItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:ConfigItem) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .Transaction txs = 2; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + /** + * repeated .Transaction txs = 2; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } - /** - * string addr = 2; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 2; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + /** + * repeated .Transaction txs = 2; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } - /** - * .ArrayConfig arr = 3; - * @return Whether the arr field is set. - */ - boolean hasArr(); - /** - * .ArrayConfig arr = 3; - * @return The arr. - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getArr(); - /** - * .ArrayConfig arr = 3; - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder getArrOrBuilder(); + /** + * repeated .Transaction txs = 2; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - /** - * .StringConfig str = 4; - * @return Whether the str field is set. - */ - boolean hasStr(); - /** - * .StringConfig str = 4; - * @return The str. - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getStr(); - /** - * .StringConfig str = 4; - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder getStrOrBuilder(); + /** + * repeated .Transaction txs = 2; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - /** - * .Int32Config int = 5; - * @return Whether the int field is set. - */ - boolean hasInt(); - /** - * .Int32Config int = 5; - * @return The int. - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getInt(); - /** - * .Int32Config int = 5; - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder getIntOrBuilder(); + /** + * repeated .Transaction txs = 2; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } - /** - * int32 Ty = 11; - * @return The ty. - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.ValueCase getValueCase(); - } - /** - * Protobuf type {@code ConfigItem} - */ - public static final class ConfigItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ConfigItem) - ConfigItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigItem.newBuilder() to construct. - private ConfigItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfigItem() { - key_ = ""; - addr_ = ""; - } + /** + * repeated .Transaction txs = 2; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfigItem(); - } + /** + * repeated .Transaction txs = 2; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConfigItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 88: { - - ty_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_descriptor; - } + /** + * repeated .Transaction txs = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder.class); - } + /** + * repeated .Transaction txs = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ARR(3), - STR(4), - INT(5), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 3: return ARR; - case 4: return STR; - case 5: return INT; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + /** + * repeated .Transaction txs = 2; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .Transaction txs = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { + return getTxsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } - public static final int ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object addr_; - /** - * string addr = 2; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 2; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .Transaction txs = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } - public static final int ARR_FIELD_NUMBER = 3; - /** - * .ArrayConfig arr = 3; - * @return Whether the arr field is set. - */ - public boolean hasArr() { - return valueCase_ == 3; - } - /** - * .ArrayConfig arr = 3; - * @return The arr. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getArr() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); - } - /** - * .ArrayConfig arr = 3; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder getArrOrBuilder() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); - } + /** + * repeated .Transaction txs = 2; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } - public static final int STR_FIELD_NUMBER = 4; - /** - * .StringConfig str = 4; - * @return Whether the str field is set. - */ - public boolean hasStr() { - return valueCase_ == 4; - } - /** - * .StringConfig str = 4; - * @return The str. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getStr() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); - } - /** - * .StringConfig str = 4; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder getStrOrBuilder() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); - } + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } - public static final int INT_FIELD_NUMBER = 5; - /** - * .Int32Config int = 5; - * @return Whether the int field is set. - */ - public boolean hasInt() { - return valueCase_ == 5; - } - /** - * .Int32Config int = 5; - * @return The int. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getInt() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); - } - /** - * .Int32Config int = 5; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder getIntOrBuilder() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int TY_FIELD_NUMBER = 11; - private int ty_; - /** - * int32 Ty = 11; - * @return The ty. - */ - public int getTy() { - return ty_; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(builder_scope:ExecTxList) + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(class_scope:ExecTxList) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addr_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_); - } - if (ty_ != 0) { - output.writeInt32(11, ty_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, addr_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, ty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecTxList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecTxList(input, extensionRegistry); + } + }; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getAddr() - .equals(other.getAddr())) return false; - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 3: - if (!getArr() - .equals(other.getArr())) return false; - break; - case 4: - if (!getStr() - .equals(other.getStr())) return false; - break; - case 5: - if (!getInt() - .equals(other.getInt())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 3: - hash = (37 * hash) + ARR_FIELD_NUMBER; - hash = (53 * hash) + getArr().hashCode(); - break; - case 4: - hash = (37 * hash) + STR_FIELD_NUMBER; - hash = (53 * hash) + getStr().hashCode(); - break; - case 5: - hash = (37 * hash) + INT_FIELD_NUMBER; - hash = (53 * hash) + getInt().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ExecTxList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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 ConfigItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ConfigItem) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - addr_ = ""; - - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem(this); - result.key_ = key_; - result.addr_ = addr_; - if (valueCase_ == 3) { - if (arrBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = arrBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (strBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = strBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (intBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = intBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case ARR: { - mergeArr(other.getArr()); - break; - } - case STR: { - mergeStr(other.getStr()); - break; - } - case INT: { - mergeInt(other.getInt()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 2; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 2; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 2; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 2; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 2; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder> arrBuilder_; - /** - * .ArrayConfig arr = 3; - * @return Whether the arr field is set. - */ - public boolean hasArr() { - return valueCase_ == 3; - } - /** - * .ArrayConfig arr = 3; - * @return The arr. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getArr() { - if (arrBuilder_ == null) { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return arrBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); - } - } - /** - * .ArrayConfig arr = 3; - */ - public Builder setArr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig value) { - if (arrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - arrBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .ArrayConfig arr = 3; - */ - public Builder setArr( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder builderForValue) { - if (arrBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - arrBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .ArrayConfig arr = 3; - */ - public Builder mergeArr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig value) { - if (arrBuilder_ == null) { - if (valueCase_ == 3 && - value_ != cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.newBuilder((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - arrBuilder_.mergeFrom(value); - } - arrBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .ArrayConfig arr = 3; - */ - public Builder clearArr() { - if (arrBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - arrBuilder_.clear(); - } - return this; - } - /** - * .ArrayConfig arr = 3; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder getArrBuilder() { - return getArrFieldBuilder().getBuilder(); - } - /** - * .ArrayConfig arr = 3; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder getArrOrBuilder() { - if ((valueCase_ == 3) && (arrBuilder_ != null)) { - return arrBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); - } - } - /** - * .ArrayConfig arr = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder> - getArrFieldBuilder() { - if (arrBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); - } - arrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder>( - (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return arrBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder> strBuilder_; - /** - * .StringConfig str = 4; - * @return Whether the str field is set. - */ - public boolean hasStr() { - return valueCase_ == 4; - } - /** - * .StringConfig str = 4; - * @return The str. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getStr() { - if (strBuilder_ == null) { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return strBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); - } - } - /** - * .StringConfig str = 4; - */ - public Builder setStr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig value) { - if (strBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - strBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .StringConfig str = 4; - */ - public Builder setStr( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder builderForValue) { - if (strBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - strBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .StringConfig str = 4; - */ - public Builder mergeStr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig value) { - if (strBuilder_ == null) { - if (valueCase_ == 4 && - value_ != cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.newBuilder((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - strBuilder_.mergeFrom(value); - } - strBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .StringConfig str = 4; - */ - public Builder clearStr() { - if (strBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - strBuilder_.clear(); - } - return this; - } - /** - * .StringConfig str = 4; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder getStrBuilder() { - return getStrFieldBuilder().getBuilder(); - } - /** - * .StringConfig str = 4; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder getStrOrBuilder() { - if ((valueCase_ == 4) && (strBuilder_ != null)) { - return strBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); - } - } - /** - * .StringConfig str = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder> - getStrFieldBuilder() { - if (strBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); - } - strBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder>( - (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return strBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder> intBuilder_; - /** - * .Int32Config int = 5; - * @return Whether the int field is set. - */ - public boolean hasInt() { - return valueCase_ == 5; - } - /** - * .Int32Config int = 5; - * @return The int. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getInt() { - if (intBuilder_ == null) { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return intBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); - } - } - /** - * .Int32Config int = 5; - */ - public Builder setInt(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config value) { - if (intBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - intBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .Int32Config int = 5; - */ - public Builder setInt( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder builderForValue) { - if (intBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - intBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .Int32Config int = 5; - */ - public Builder mergeInt(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config value) { - if (intBuilder_ == null) { - if (valueCase_ == 5 && - value_ != cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.newBuilder((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - intBuilder_.mergeFrom(value); - } - intBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .Int32Config int = 5; - */ - public Builder clearInt() { - if (intBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - intBuilder_.clear(); - } - return this; - } - /** - * .Int32Config int = 5; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder getIntBuilder() { - return getIntFieldBuilder().getBuilder(); - } - /** - * .Int32Config int = 5; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder getIntOrBuilder() { - if ((valueCase_ == 5) && (intBuilder_ != null)) { - return intBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; - } - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); - } - } - /** - * .Int32Config int = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder> - getIntFieldBuilder() { - if (intBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); - } - intBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder>( - (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return intBuilder_; - } - - private int ty_ ; - /** - * int32 Ty = 11; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 Ty = 11; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 Ty = 11; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ConfigItem) - } + public interface QueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:Query) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(class_scope:ConfigItem) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem(); - } + /** + * bytes execer = 1; + * + * @return The execer. + */ + com.google.protobuf.ByteString getExecer(); - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string funcName = 2; + * + * @return The funcName. + */ + java.lang.String getFuncName(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string funcName = 2; + * + * @return The bytes for funcName. + */ + com.google.protobuf.ByteString getFuncNameBytes(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + /** + * bytes payload = 3; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * Protobuf type {@code Query} + */ + public static final class Query extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Query) + QueryOrBuilder { + private static final long serialVersionUID = 0L; - } + // Use Query.newBuilder() to construct. + private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public interface ModifyConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:ModifyConfig) - com.google.protobuf.MessageOrBuilder { + private Query() { + execer_ = com.google.protobuf.ByteString.EMPTY; + funcName_ = ""; + payload_ = com.google.protobuf.ByteString.EMPTY; + } - /** - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Query(); + } - /** - * string value = 2; - * @return The value. - */ - java.lang.String getValue(); - /** - * string value = 2; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - /** - * string op = 3; - * @return The op. - */ - java.lang.String getOp(); - /** - * string op = 3; - * @return The bytes for op. - */ - com.google.protobuf.ByteString - getOpBytes(); + private Query(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + execer_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + funcName_ = s; + break; + } + case 26: { + + payload_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - /** - * string addr = 4; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 4; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); - } - /** - * Protobuf type {@code ModifyConfig} - */ - public static final class ModifyConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ModifyConfig) - ModifyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModifyConfig.newBuilder() to construct. - private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModifyConfig() { - key_ = ""; - value_ = ""; - op_ = ""; - addr_ = ""; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ModifyConfig(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModifyConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - op_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_descriptor; - } + public static final int EXECER_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString execer_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.Builder.class); - } + /** + * bytes execer = 1; + * + * @return The execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecer() { + return execer_; + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int FUNCNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object funcName_; - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string funcName = 2; + * + * @return The funcName. + */ + @java.lang.Override + public java.lang.String getFuncName() { + java.lang.Object ref = funcName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + funcName_ = s; + return s; + } + } - public static final int OP_FIELD_NUMBER = 3; - private volatile java.lang.Object op_; - /** - * string op = 3; - * @return The op. - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - op_ = s; - return s; - } - } - /** - * string op = 3; - * @return The bytes for op. - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string funcName = 2; + * + * @return The bytes for funcName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFuncNameBytes() { + java.lang.Object ref = funcName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + funcName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int ADDR_FIELD_NUMBER = 4; - private volatile java.lang.Object addr_; - /** - * string addr = 4; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 4; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int PAYLOAD_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString payload_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * bytes payload = 3; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (!getOpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, op_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (!getOpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, op_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!getOp() - .equals(other.getOp())) return false; - if (!getAddr() - .equals(other.getAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!execer_.isEmpty()) { + output.writeBytes(1, execer_); + } + if (!getFuncNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, funcName_); + } + if (!payload_.isEmpty()) { + output.writeBytes(3, payload_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOp().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + if (!execer_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, execer_); + } + if (!getFuncNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, funcName_); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, payload_); + } + 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 cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query) obj; + + if (!getExecer().equals(other.getExecer())) + return false; + if (!getFuncName().equals(other.getFuncName())) + return false; + if (!getPayload().equals(other.getPayload())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + hash = (37 * hash) + FUNCNAME_FIELD_NUMBER; + hash = (53 * hash) + getFuncName().hashCode(); + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Query} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Query) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.QueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + execer_ = com.google.protobuf.ByteString.EMPTY; + + funcName_ = ""; + + payload_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Query_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query( + this); + result.execer_ = execer_; + result.funcName_ = funcName_; + result.payload_ = payload_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query.getDefaultInstance()) + return this; + if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { + setExecer(other.getExecer()); + } + if (!other.getFuncName().isEmpty()) { + funcName_ = other.funcName_; + onChanged(); + } + if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes execer = 1; + * + * @return The execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecer() { + return execer_; + } + + /** + * bytes execer = 1; + * + * @param value + * The execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecer(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } + + /** + * bytes execer = 1; + * + * @return This builder for chaining. + */ + public Builder clearExecer() { + + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } + + private java.lang.Object funcName_ = ""; + + /** + * string funcName = 2; + * + * @return The funcName. + */ + public java.lang.String getFuncName() { + java.lang.Object ref = funcName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + funcName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string funcName = 2; + * + * @return The bytes for funcName. + */ + public com.google.protobuf.ByteString getFuncNameBytes() { + java.lang.Object ref = funcName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + funcName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string funcName = 2; + * + * @param value + * The funcName to set. + * + * @return This builder for chaining. + */ + public Builder setFuncName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + funcName_ = value; + onChanged(); + return this; + } + + /** + * string funcName = 2; + * + * @return This builder for chaining. + */ + public Builder clearFuncName() { + + funcName_ = getDefaultInstance().getFuncName(); + onChanged(); + return this; + } + + /** + * string funcName = 2; + * + * @param value + * The bytes for funcName to set. + * + * @return This builder for chaining. + */ + public Builder setFuncNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + funcName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes payload = 3; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * bytes payload = 3; + * + * @param value + * The payload to set. + * + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + payload_ = value; + onChanged(); + return this; + } + + /** + * bytes payload = 3; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Query) + } + + // @@protoc_insertion_point(class_scope:Query) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Query parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Query(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Query getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface CreateTxInOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateTxIn) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes execer = 1; + * + * @return The execer. + */ + com.google.protobuf.ByteString getExecer(); + + /** + * string actionName = 2; + * + * @return The actionName. + */ + java.lang.String getActionName(); + + /** + * string actionName = 2; + * + * @return The bytes for actionName. + */ + com.google.protobuf.ByteString getActionNameBytes(); + + /** + * bytes payload = 3; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); } + /** - * Protobuf type {@code ModifyConfig} + * Protobuf type {@code CreateTxIn} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ModifyConfig) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = ""; - - op_ = ""; - - addr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig(this); - result.key_ = key_; - result.value_ = value_; - result.op_ = op_; - result.addr_ = addr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (!other.getOp().isEmpty()) { - op_ = other.op_; - onChanged(); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private java.lang.Object op_ = ""; - /** - * string op = 3; - * @return The op. - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - op_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string op = 3; - * @return The bytes for op. - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string op = 3; - * @param value The op to set. - * @return This builder for chaining. - */ - public Builder setOp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - op_ = value; - onChanged(); - return this; - } - /** - * string op = 3; - * @return This builder for chaining. - */ - public Builder clearOp() { - - op_ = getDefaultInstance().getOp(); - onChanged(); - return this; - } - /** - * string op = 3; - * @param value The bytes for op to set. - * @return This builder for chaining. - */ - public Builder setOpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - op_ = value; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 4; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 4; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 4; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 4; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 4; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ModifyConfig) - } + public static final class CreateTxIn extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateTxIn) + CreateTxInOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ModifyConfig) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig(); - } + // Use CreateTxIn.newBuilder() to construct. + private CreateTxIn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private CreateTxIn() { + execer_ = com.google.protobuf.ByteString.EMPTY; + actionName_ = ""; + payload_ = com.google.protobuf.ByteString.EMPTY; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTxIn(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private CreateTxIn(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + execer_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + actionName_ = s; + break; + } + case 26: { + + payload_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_descriptor; + } - public interface ReceiptConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptConfig) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.Builder.class); + } - /** - * .ConfigItem prev = 1; - * @return Whether the prev field is set. - */ - boolean hasPrev(); - /** - * .ConfigItem prev = 1; - * @return The prev. - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getPrev(); - /** - * .ConfigItem prev = 1; - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getPrevOrBuilder(); + public static final int EXECER_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString execer_; - /** - * .ConfigItem current = 2; - * @return Whether the current field is set. - */ - boolean hasCurrent(); - /** - * .ConfigItem current = 2; - * @return The current. - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getCurrent(); - /** - * .ConfigItem current = 2; - */ - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getCurrentOrBuilder(); - } - /** - * Protobuf type {@code ReceiptConfig} - */ - public static final class ReceiptConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptConfig) - ReceiptConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptConfig.newBuilder() to construct. - private ReceiptConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptConfig() { - } + /** + * bytes execer = 1; + * + * @return The execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecer() { + return execer_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptConfig(); - } + public static final int ACTIONNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object actionName_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder subBuilder = null; - if (prev_ != null) { - subBuilder = prev_.toBuilder(); - } - prev_ = input.readMessage(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prev_); - prev_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder subBuilder = null; - if (current_ != null) { - subBuilder = current_.toBuilder(); - } - current_ = input.readMessage(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(current_); - current_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_descriptor; - } + /** + * string actionName = 2; + * + * @return The actionName. + */ + @java.lang.Override + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.Builder.class); - } + /** + * string actionName = 2; + * + * @return The bytes for actionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString payload_; + + /** + * bytes payload = 3; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!execer_.isEmpty()) { + output.writeBytes(1, execer_); + } + if (!getActionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, actionName_); + } + if (!payload_.isEmpty()) { + output.writeBytes(3, payload_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!execer_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, execer_); + } + if (!getActionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, actionName_); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, payload_); + } + 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 cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) obj; + + if (!getExecer().equals(other.getExecer())) + return false; + if (!getActionName().equals(other.getActionName())) + return false; + if (!getPayload().equals(other.getPayload())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getActionName().hashCode(); + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 CreateTxIn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateTxIn) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxInOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + execer_ = com.google.protobuf.ByteString.EMPTY; + + actionName_ = ""; + + payload_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_CreateTxIn_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn( + this); + result.execer_ = execer_; + result.actionName_ = actionName_; + result.payload_ = payload_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.getDefaultInstance()) + return this; + if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { + setExecer(other.getExecer()); + } + if (!other.getActionName().isEmpty()) { + actionName_ = other.actionName_; + onChanged(); + } + if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes execer = 1; + * + * @return The execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecer() { + return execer_; + } + + /** + * bytes execer = 1; + * + * @param value + * The execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecer(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } + + /** + * bytes execer = 1; + * + * @return This builder for chaining. + */ + public Builder clearExecer() { + + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } + + private java.lang.Object actionName_ = ""; + + /** + * string actionName = 2; + * + * @return The actionName. + */ + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string actionName = 2; + * + * @return The bytes for actionName. + */ + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string actionName = 2; + * + * @param value + * The actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + actionName_ = value; + onChanged(); + return this; + } + + /** + * string actionName = 2; + * + * @return This builder for chaining. + */ + public Builder clearActionName() { + + actionName_ = getDefaultInstance().getActionName(); + onChanged(); + return this; + } + + /** + * string actionName = 2; + * + * @param value + * The bytes for actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + actionName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes payload = 3; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * bytes payload = 3; + * + * @param value + * The payload to set. + * + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + payload_ = value; + onChanged(); + return this; + } + + /** + * bytes payload = 3; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CreateTxIn) + } + + // @@protoc_insertion_point(class_scope:CreateTxIn) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTxIn parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTxIn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArrayConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:ArrayConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string value = 3; + * + * @return A list containing the value. + */ + java.util.List getValueList(); + + /** + * repeated string value = 3; + * + * @return The count of value. + */ + int getValueCount(); + + /** + * repeated string value = 3; + * + * @param index + * The index of the element to return. + * + * @return The value at the given index. + */ + java.lang.String getValue(int index); + + /** + * repeated string value = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the value at the given index. + */ + com.google.protobuf.ByteString getValueBytes(int index); + } + + /** + *
+     * 配置修改部分
+     * 
+ * + * Protobuf type {@code ArrayConfig} + */ + public static final class ArrayConfig extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ArrayConfig) + ArrayConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ArrayConfig.newBuilder() to construct. + private ArrayConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArrayConfig() { + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArrayConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArrayConfig(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + value_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + value_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + value_ = value_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList value_; + + /** + * repeated string value = 3; + * + * @return A list containing the value. + */ + public com.google.protobuf.ProtocolStringList getValueList() { + return value_; + } + + /** + * repeated string value = 3; + * + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + + /** + * repeated string value = 3; + * + * @param index + * The index of the element to return. + * + * @return The value at the given index. + */ + public java.lang.String getValue(int index) { + return value_.get(index); + } + + /** + * repeated string value = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the value at the given index. + */ + public com.google.protobuf.ByteString getValueBytes(int index) { + return value_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < value_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < value_.size(); i++) { + dataSize += computeStringSizeNoTag(value_.getRaw(i)); + } + size += dataSize; + size += 1 * getValueList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) obj; + + if (!getValueList().equals(other.getValueList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ArrayConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ArrayConfig) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ArrayConfig_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_ = value_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance()) + return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = new com.google.protobuf.LazyStringArrayList(value_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string value = 3; + * + * @return A list containing the value. + */ + public com.google.protobuf.ProtocolStringList getValueList() { + return value_.getUnmodifiableView(); + } + + /** + * repeated string value = 3; + * + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + + /** + * repeated string value = 3; + * + * @param index + * The index of the element to return. + * + * @return The value at the given index. + */ + public java.lang.String getValue(int index) { + return value_.get(index); + } + + /** + * repeated string value = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the value at the given index. + */ + public com.google.protobuf.ByteString getValueBytes(int index) { + return value_.getByteString(index); + } + + /** + * repeated string value = 3; + * + * @param index + * The index to set the value at. + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string value = 3; + * + * @param value + * The value to add. + * + * @return This builder for chaining. + */ + public Builder addValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(value); + onChanged(); + return this; + } + + /** + * repeated string value = 3; + * + * @param values + * The value to add. + * + * @return This builder for chaining. + */ + public Builder addAllValue(java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, value_); + onChanged(); + return this; + } + + /** + * repeated string value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string value = 3; + * + * @param value + * The bytes of the value to add. + * + * @return This builder for chaining. + */ + public Builder addValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValueIsMutable(); + value_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ArrayConfig) + } + + // @@protoc_insertion_point(class_scope:ArrayConfig) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrayConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StringConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:StringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string value = 3; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * string value = 3; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + * Protobuf type {@code StringConfig} + */ + public static final class StringConfig extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:StringConfig) + StringConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StringConfig.newBuilder() to construct. + private StringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringConfig() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StringConfig(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object value_; + + /** + * string value = 3; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * string value = 3; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) obj; + + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 StringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:StringConfig) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_StringConfig_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig( + this); + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + + /** + * string value = 3; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string value = 3; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string value = 3; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + * string value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + * string value = 3; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:StringConfig) + } + + // @@protoc_insertion_point(class_scope:StringConfig) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StringConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Int32ConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:Int32Config) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 value = 3; + * + * @return The value. + */ + int getValue(); + } + + /** + * Protobuf type {@code Int32Config} + */ + public static final class Int32Config extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Int32Config) + Int32ConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Int32Config.newBuilder() to construct. + private Int32Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Int32Config() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Int32Config(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Int32Config(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: { + + value_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 3; + private int value_; + + /** + * int32 value = 3; + * + * @return The value. + */ + @java.lang.Override + public int getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (value_ != 0) { + output.writeInt32(3, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) obj; + + if (getValue() != other.getValue()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Int32Config} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Int32Config) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_Int32Config_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config( + this); + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance()) + return this; + if (other.getValue() != 0) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int value_; + + /** + * int32 value = 3; + * + * @return The value. + */ + @java.lang.Override + public int getValue() { + return value_; + } + + /** + * int32 value = 3; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + + /** + * int32 value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Int32Config) + } + + // @@protoc_insertion_point(class_scope:Int32Config) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Int32Config parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Int32Config(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConfigItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:ConfigItem) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * string addr = 2; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 2; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + * .ArrayConfig arr = 3; + * + * @return Whether the arr field is set. + */ + boolean hasArr(); + + /** + * .ArrayConfig arr = 3; + * + * @return The arr. + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getArr(); + + /** + * .ArrayConfig arr = 3; + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder getArrOrBuilder(); + + /** + * .StringConfig str = 4; + * + * @return Whether the str field is set. + */ + boolean hasStr(); + + /** + * .StringConfig str = 4; + * + * @return The str. + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getStr(); + + /** + * .StringConfig str = 4; + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder getStrOrBuilder(); + + /** + * .Int32Config int = 5; + * + * @return Whether the int field is set. + */ + boolean hasInt(); + + /** + * .Int32Config int = 5; + * + * @return The int. + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getInt(); + + /** + * .Int32Config int = 5; + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder getIntOrBuilder(); + + /** + * int32 Ty = 11; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.ValueCase getValueCase(); + } + + /** + * Protobuf type {@code ConfigItem} + */ + public static final class ConfigItem extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ConfigItem) + ConfigItemOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConfigItem.newBuilder() to construct. + private ConfigItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigItem() { + key_ = ""; + addr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigItem(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConfigItem(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder + .mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder + .mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 88: { + + ty_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ARR(3), STR(4), INT(5), VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 3: + return ARR; + case 4: + return STR; + case 5: + return INT; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDR_FIELD_NUMBER = 2; + private volatile java.lang.Object addr_; + + /** + * string addr = 2; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 2; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARR_FIELD_NUMBER = 3; + + /** + * .ArrayConfig arr = 3; + * + * @return Whether the arr field is set. + */ + @java.lang.Override + public boolean hasArr() { + return valueCase_ == 3; + } + + /** + * .ArrayConfig arr = 3; + * + * @return The arr. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getArr() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); + } + + /** + * .ArrayConfig arr = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder getArrOrBuilder() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); + } + + public static final int STR_FIELD_NUMBER = 4; + + /** + * .StringConfig str = 4; + * + * @return Whether the str field is set. + */ + @java.lang.Override + public boolean hasStr() { + return valueCase_ == 4; + } + + /** + * .StringConfig str = 4; + * + * @return The str. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getStr() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); + } + + /** + * .StringConfig str = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder getStrOrBuilder() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); + } + + public static final int INT_FIELD_NUMBER = 5; + + /** + * .Int32Config int = 5; + * + * @return Whether the int field is set. + */ + @java.lang.Override + public boolean hasInt() { + return valueCase_ == 5; + } + + /** + * .Int32Config int = 5; + * + * @return The int. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getInt() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); + } + + /** + * .Int32Config int = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder getIntOrBuilder() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); + } + + public static final int TY_FIELD_NUMBER = 11; + private int ty_; + + /** + * int32 Ty = 11; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addr_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_); + } + if (ty_ != 0) { + output.writeInt32(11, ty_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, addr_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, + (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, + (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, + (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, ty_); + } + 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 cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 3: + if (!getArr().equals(other.getArr())) + return false; + break; + case 4: + if (!getStr().equals(other.getStr())) + return false; + break; + case 5: + if (!getInt().equals(other.getInt())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 3: + hash = (37 * hash) + ARR_FIELD_NUMBER; + hash = (53 * hash) + getArr().hashCode(); + break; + case 4: + hash = (37 * hash) + STR_FIELD_NUMBER; + hash = (53 * hash) + getStr().hashCode(); + break; + case 5: + hash = (37 * hash) + INT_FIELD_NUMBER; + hash = (53 * hash) + getInt().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ConfigItem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ConfigItem) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + addr_ = ""; + + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ConfigItem_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem( + this); + result.key_ = key_; + result.addr_ = addr_; + if (valueCase_ == 3) { + if (arrBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = arrBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (strBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = strBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (intBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = intBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case ARR: { + mergeArr(other.getArr()); + break; + } + case STR: { + mergeStr(other.getStr()); + break; + } + case INT: { + mergeInt(other.getInt()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 2; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 2; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 2; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 2; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 2; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 arrBuilder_; + + /** + * .ArrayConfig arr = 3; + * + * @return Whether the arr field is set. + */ + @java.lang.Override + public boolean hasArr() { + return valueCase_ == 3; + } + + /** + * .ArrayConfig arr = 3; + * + * @return The arr. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig getArr() { + if (arrBuilder_ == null) { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return arrBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); + } + } + + /** + * .ArrayConfig arr = 3; + */ + public Builder setArr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig value) { + if (arrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + arrBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .ArrayConfig arr = 3; + */ + public Builder setArr( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder builderForValue) { + if (arrBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + arrBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + + /** + * .ArrayConfig arr = 3; + */ + public Builder mergeArr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig value) { + if (arrBuilder_ == null) { + if (valueCase_ == 3 && value_ != cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig + .newBuilder((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + arrBuilder_.mergeFrom(value); + } + arrBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .ArrayConfig arr = 3; + */ + public Builder clearArr() { + if (arrBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + arrBuilder_.clear(); + } + return this; + } + + /** + * .ArrayConfig arr = 3; + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.Builder getArrBuilder() { + return getArrFieldBuilder().getBuilder(); + } + + /** + * .ArrayConfig arr = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfigOrBuilder getArrOrBuilder() { + if ((valueCase_ == 3) && (arrBuilder_ != null)) { + return arrBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); + } + } + + /** + * .ArrayConfig arr = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getArrFieldBuilder() { + if (arrBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig.getDefaultInstance(); + } + arrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ArrayConfig) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return arrBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 strBuilder_; + + /** + * .StringConfig str = 4; + * + * @return Whether the str field is set. + */ + @java.lang.Override + public boolean hasStr() { + return valueCase_ == 4; + } + + /** + * .StringConfig str = 4; + * + * @return The str. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig getStr() { + if (strBuilder_ == null) { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return strBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); + } + } + + /** + * .StringConfig str = 4; + */ + public Builder setStr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig value) { + if (strBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + strBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .StringConfig str = 4; + */ + public Builder setStr( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder builderForValue) { + if (strBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + strBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + + /** + * .StringConfig str = 4; + */ + public Builder mergeStr(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig value) { + if (strBuilder_ == null) { + if (valueCase_ == 4 && value_ != cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig + .newBuilder((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + strBuilder_.mergeFrom(value); + } + strBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .StringConfig str = 4; + */ + public Builder clearStr() { + if (strBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + strBuilder_.clear(); + } + return this; + } + + /** + * .StringConfig str = 4; + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.Builder getStrBuilder() { + return getStrFieldBuilder().getBuilder(); + } + + /** + * .StringConfig str = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfigOrBuilder getStrOrBuilder() { + if ((valueCase_ == 4) && (strBuilder_ != null)) { + return strBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); + } + } + + /** + * .StringConfig str = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getStrFieldBuilder() { + if (strBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig.getDefaultInstance(); + } + strBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.StringConfig) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged(); + ; + return strBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 intBuilder_; + + /** + * .Int32Config int = 5; + * + * @return Whether the int field is set. + */ + @java.lang.Override + public boolean hasInt() { + return valueCase_ == 5; + } + + /** + * .Int32Config int = 5; + * + * @return The int. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config getInt() { + if (intBuilder_ == null) { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return intBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); + } + } + + /** + * .Int32Config int = 5; + */ + public Builder setInt(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config value) { + if (intBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + intBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .Int32Config int = 5; + */ + public Builder setInt( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder builderForValue) { + if (intBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + intBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + + /** + * .Int32Config int = 5; + */ + public Builder mergeInt(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config value) { + if (intBuilder_ == null) { + if (valueCase_ == 5 && value_ != cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config + .newBuilder((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + intBuilder_.mergeFrom(value); + } + intBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .Int32Config int = 5; + */ + public Builder clearInt() { + if (intBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + intBuilder_.clear(); + } + return this; + } + + /** + * .Int32Config int = 5; + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.Builder getIntBuilder() { + return getIntFieldBuilder().getBuilder(); + } + + /** + * .Int32Config int = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32ConfigOrBuilder getIntOrBuilder() { + if ((valueCase_ == 5) && (intBuilder_ != null)) { + return intBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_; + } + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); + } + } + + /** + * .Int32Config int = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getIntFieldBuilder() { + if (intBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config.getDefaultInstance(); + } + intBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.Int32Config) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged(); + ; + return intBuilder_; + } + + private int ty_; + + /** + * int32 Ty = 11; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 Ty = 11; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 Ty = 11; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ConfigItem) + } + + // @@protoc_insertion_point(class_scope:ConfigItem) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigItem parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigItem(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ModifyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:ModifyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * string op = 3; + * + * @return The op. + */ + java.lang.String getOp(); + + /** + * string op = 3; + * + * @return The bytes for op. + */ + com.google.protobuf.ByteString getOpBytes(); + + /** + * string addr = 4; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + } + + /** + * Protobuf type {@code ModifyConfig} + */ + public static final class ModifyConfig extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ModifyConfig) + ModifyConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ModifyConfig.newBuilder() to construct. + private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModifyConfig() { + key_ = ""; + value_ = ""; + op_ = ""; + addr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModifyConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModifyConfig(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + op_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + + /** + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OP_FIELD_NUMBER = 3; + private volatile java.lang.Object op_; + + /** + * string op = 3; + * + * @return The op. + */ + @java.lang.Override + public java.lang.String getOp() { + java.lang.Object ref = op_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + op_ = s; + return s; + } + } + + /** + * string op = 3; + * + * @return The bytes for op. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDR_FIELD_NUMBER = 4; + private volatile java.lang.Object addr_; + + /** + * string addr = 4; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (!getOpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, op_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (!getOpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, op_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); + } + 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 cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!getOp().equals(other.getOp())) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOp().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ModifyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ModifyConfig) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + op_ = ""; + + addr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ModifyConfig_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig( + this); + result.key_ = key_; + result.value_ = value_; + result.op_ = op_; + result.addr_ = addr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (!other.getOp().isEmpty()) { + op_ = other.op_; + onChanged(); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + * string value = 2; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private java.lang.Object op_ = ""; + + /** + * string op = 3; + * + * @return The op. + */ + public java.lang.String getOp() { + java.lang.Object ref = op_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + op_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string op = 3; + * + * @return The bytes for op. + */ + public com.google.protobuf.ByteString getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string op = 3; + * + * @param value + * The op to set. + * + * @return This builder for chaining. + */ + public Builder setOp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + op_ = value; + onChanged(); + return this; + } + + /** + * string op = 3; + * + * @return This builder for chaining. + */ + public Builder clearOp() { + + op_ = getDefaultInstance().getOp(); + onChanged(); + return this; + } + + /** + * string op = 3; + * + * @param value + * The bytes for op to set. + * + * @return This builder for chaining. + */ + public Builder setOpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + op_ = value; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 4; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 4; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ModifyConfig) + } + + // @@protoc_insertion_point(class_scope:ModifyConfig) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ModifyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * .ConfigItem prev = 1; + * + * @return Whether the prev field is set. + */ + boolean hasPrev(); + + /** + * .ConfigItem prev = 1; + * + * @return The prev. + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getPrev(); + + /** + * .ConfigItem prev = 1; + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getPrevOrBuilder(); + + /** + * .ConfigItem current = 2; + * + * @return Whether the current field is set. + */ + boolean hasCurrent(); + + /** + * .ConfigItem current = 2; + * + * @return The current. + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getCurrent(); + + /** + * .ConfigItem current = 2; + */ + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getCurrentOrBuilder(); + } + + /** + * Protobuf type {@code ReceiptConfig} + */ + public static final class ReceiptConfig extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptConfig) + ReceiptConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptConfig.newBuilder() to construct. + private ReceiptConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptConfig() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptConfig(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder subBuilder = null; + if (prev_ != null) { + subBuilder = prev_.toBuilder(); + } + prev_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prev_); + prev_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder subBuilder = null; + if (current_ != null) { + subBuilder = current_.toBuilder(); + } + current_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(current_); + current_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.Builder.class); + } + + public static final int PREV_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem prev_; + + /** + * .ConfigItem prev = 1; + * + * @return Whether the prev field is set. + */ + @java.lang.Override + public boolean hasPrev() { + return prev_ != null; + } + + /** + * .ConfigItem prev = 1; + * + * @return The prev. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getPrev() { + return prev_ == null ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() + : prev_; + } + + /** + * .ConfigItem prev = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getPrevOrBuilder() { + return getPrev(); + } + + public static final int CURRENT_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem current_; + + /** + * .ConfigItem current = 2; + * + * @return Whether the current field is set. + */ + @java.lang.Override + public boolean hasCurrent() { + return current_ != null; + } + + /** + * .ConfigItem current = 2; + * + * @return The current. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getCurrent() { + return current_ == null ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() + : current_; + } + + /** + * .ConfigItem current = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getCurrentOrBuilder() { + return getCurrent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (prev_ != null) { + output.writeMessage(1, getPrev()); + } + if (current_ != null) { + output.writeMessage(2, getCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (prev_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrev()); + } + if (current_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCurrent()); + } + 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 cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig) obj; + + if (hasPrev() != other.hasPrev()) + return false; + if (hasPrev()) { + if (!getPrev().equals(other.getPrev())) + return false; + } + if (hasCurrent() != other.hasCurrent()) + return false; + if (hasCurrent()) { + if (!getCurrent().equals(other.getCurrent())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrev()) { + hash = (37 * hash) + PREV_FIELD_NUMBER; + hash = (53 * hash) + getPrev().hashCode(); + } + if (hasCurrent()) { + hash = (37 * hash) + CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getCurrent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptConfig) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (prevBuilder_ == null) { + prev_ = null; + } else { + prev_ = null; + prevBuilder_ = null; + } + if (currentBuilder_ == null) { + current_ = null; + } else { + current_ = null; + currentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig( + this); + if (prevBuilder_ == null) { + result.prev_ = prev_; + } else { + result.prev_ = prevBuilder_.build(); + } + if (currentBuilder_ == null) { + result.current_ = current_; + } else { + result.current_ = currentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.getDefaultInstance()) + return this; + if (other.hasPrev()) { + mergePrev(other.getPrev()); + } + if (other.hasCurrent()) { + mergeCurrent(other.getCurrent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem prev_; + private com.google.protobuf.SingleFieldBuilderV3 prevBuilder_; + + /** + * .ConfigItem prev = 1; + * + * @return Whether the prev field is set. + */ + public boolean hasPrev() { + return prevBuilder_ != null || prev_ != null; + } + + /** + * .ConfigItem prev = 1; + * + * @return The prev. + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getPrev() { + if (prevBuilder_ == null) { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() + : prev_; + } else { + return prevBuilder_.getMessage(); + } + } + + /** + * .ConfigItem prev = 1; + */ + public Builder setPrev(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { + if (prevBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prev_ = value; + onChanged(); + } else { + prevBuilder_.setMessage(value); + } + + return this; + } + + /** + * .ConfigItem prev = 1; + */ + public Builder setPrev( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder builderForValue) { + if (prevBuilder_ == null) { + prev_ = builderForValue.build(); + onChanged(); + } else { + prevBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .ConfigItem prev = 1; + */ + public Builder mergePrev(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { + if (prevBuilder_ == null) { + if (prev_ != null) { + prev_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.newBuilder(prev_) + .mergeFrom(value).buildPartial(); + } else { + prev_ = value; + } + onChanged(); + } else { + prevBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .ConfigItem prev = 1; + */ + public Builder clearPrev() { + if (prevBuilder_ == null) { + prev_ = null; + onChanged(); + } else { + prev_ = null; + prevBuilder_ = null; + } + + return this; + } + + /** + * .ConfigItem prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder getPrevBuilder() { + + onChanged(); + return getPrevFieldBuilder().getBuilder(); + } + + /** + * .ConfigItem prev = 1; + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getPrevOrBuilder() { + if (prevBuilder_ != null) { + return prevBuilder_.getMessageOrBuilder(); + } else { + return prev_ == null + ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() + : prev_; + } + } + + /** + * .ConfigItem prev = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPrevFieldBuilder() { + if (prevBuilder_ == null) { + prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPrev(), getParentForChildren(), isClean()); + prev_ = null; + } + return prevBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem current_; + private com.google.protobuf.SingleFieldBuilderV3 currentBuilder_; + + /** + * .ConfigItem current = 2; + * + * @return Whether the current field is set. + */ + public boolean hasCurrent() { + return currentBuilder_ != null || current_ != null; + } + + /** + * .ConfigItem current = 2; + * + * @return The current. + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getCurrent() { + if (currentBuilder_ == null) { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() + : current_; + } else { + return currentBuilder_.getMessage(); + } + } + + /** + * .ConfigItem current = 2; + */ + public Builder setCurrent(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { + if (currentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + current_ = value; + onChanged(); + } else { + currentBuilder_.setMessage(value); + } + + return this; + } + + /** + * .ConfigItem current = 2; + */ + public Builder setCurrent( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder builderForValue) { + if (currentBuilder_ == null) { + current_ = builderForValue.build(); + onChanged(); + } else { + currentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .ConfigItem current = 2; + */ + public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { + if (currentBuilder_ == null) { + if (current_ != null) { + current_ = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.newBuilder(current_) + .mergeFrom(value).buildPartial(); + } else { + current_ = value; + } + onChanged(); + } else { + currentBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .ConfigItem current = 2; + */ + public Builder clearCurrent() { + if (currentBuilder_ == null) { + current_ = null; + onChanged(); + } else { + current_ = null; + currentBuilder_ = null; + } + + return this; + } + + /** + * .ConfigItem current = 2; + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder getCurrentBuilder() { + + onChanged(); + return getCurrentFieldBuilder().getBuilder(); + } + + /** + * .ConfigItem current = 2; + */ + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getCurrentOrBuilder() { + if (currentBuilder_ != null) { + return currentBuilder_.getMessageOrBuilder(); + } else { + return current_ == null + ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() + : current_; + } + } + + /** + * .ConfigItem current = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCurrentFieldBuilder() { + if (currentBuilder_ == null) { + currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getCurrent(), getParentForChildren(), isClean()); + current_ = null; + } + return currentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptConfig) + } + + // @@protoc_insertion_point(class_scope:ReceiptConfig) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + * Protobuf type {@code ReplyConfig} + */ + public static final class ReplyConfig extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyConfig) + ReplyConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyConfig.newBuilder() to construct. + private ReplyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyConfig() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyConfig(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + + /** + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyConfig) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig( + this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + * string value = 2; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyConfig) + } + + // @@protoc_insertion_point(class_scope:ReplyConfig) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig(); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HistoryCertStoreOrBuilder extends + // @@protoc_insertion_point(interface_extends:HistoryCertStore) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes rootcerts = 1; + * + * @return A list containing the rootcerts. + */ + java.util.List getRootcertsList(); + + /** + * repeated bytes rootcerts = 1; + * + * @return The count of rootcerts. + */ + int getRootcertsCount(); + + /** + * repeated bytes rootcerts = 1; + * + * @param index + * The index of the element to return. + * + * @return The rootcerts at the given index. + */ + com.google.protobuf.ByteString getRootcerts(int index); + + /** + * repeated bytes intermediateCerts = 2; + * + * @return A list containing the intermediateCerts. + */ + java.util.List getIntermediateCertsList(); + + /** + * repeated bytes intermediateCerts = 2; + * + * @return The count of intermediateCerts. + */ + int getIntermediateCertsCount(); + + /** + * repeated bytes intermediateCerts = 2; + * + * @param index + * The index of the element to return. + * + * @return The intermediateCerts at the given index. + */ + com.google.protobuf.ByteString getIntermediateCerts(int index); + + /** + * repeated bytes revocationList = 3; + * + * @return A list containing the revocationList. + */ + java.util.List getRevocationListList(); + + /** + * repeated bytes revocationList = 3; + * + * @return The count of revocationList. + */ + int getRevocationListCount(); + + /** + * repeated bytes revocationList = 3; + * + * @param index + * The index of the element to return. + * + * @return The revocationList at the given index. + */ + com.google.protobuf.ByteString getRevocationList(int index); + + /** + * int64 curHeigth = 4; + * + * @return The curHeigth. + */ + long getCurHeigth(); + + /** + * int64 nxtHeight = 5; + * + * @return The nxtHeight. + */ + long getNxtHeight(); + } + + /** + * Protobuf type {@code HistoryCertStore} + */ + public static final class HistoryCertStore extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HistoryCertStore) + HistoryCertStoreOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HistoryCertStore.newBuilder() to construct. + private HistoryCertStore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistoryCertStore() { + rootcerts_ = java.util.Collections.emptyList(); + intermediateCerts_ = java.util.Collections.emptyList(); + revocationList_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HistoryCertStore(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistoryCertStore(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rootcerts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rootcerts_.add(input.readBytes()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + intermediateCerts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + intermediateCerts_.add(input.readBytes()); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + revocationList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + revocationList_.add(input.readBytes()); + break; + } + case 32: { + + curHeigth_ = input.readInt64(); + break; + } + case 40: { + + nxtHeight_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + rootcerts_ = java.util.Collections.unmodifiableList(rootcerts_); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + intermediateCerts_ = java.util.Collections.unmodifiableList(intermediateCerts_); // C + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + revocationList_ = java.util.Collections.unmodifiableList(revocationList_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.Builder.class); + } + + public static final int ROOTCERTS_FIELD_NUMBER = 1; + private java.util.List rootcerts_; + + /** + * repeated bytes rootcerts = 1; + * + * @return A list containing the rootcerts. + */ + @java.lang.Override + public java.util.List getRootcertsList() { + return rootcerts_; + } + + /** + * repeated bytes rootcerts = 1; + * + * @return The count of rootcerts. + */ + public int getRootcertsCount() { + return rootcerts_.size(); + } + + /** + * repeated bytes rootcerts = 1; + * + * @param index + * The index of the element to return. + * + * @return The rootcerts at the given index. + */ + public com.google.protobuf.ByteString getRootcerts(int index) { + return rootcerts_.get(index); + } + + public static final int INTERMEDIATECERTS_FIELD_NUMBER = 2; + private java.util.List intermediateCerts_; + + /** + * repeated bytes intermediateCerts = 2; + * + * @return A list containing the intermediateCerts. + */ + @java.lang.Override + public java.util.List getIntermediateCertsList() { + return intermediateCerts_; + } + + /** + * repeated bytes intermediateCerts = 2; + * + * @return The count of intermediateCerts. + */ + public int getIntermediateCertsCount() { + return intermediateCerts_.size(); + } + + /** + * repeated bytes intermediateCerts = 2; + * + * @param index + * The index of the element to return. + * + * @return The intermediateCerts at the given index. + */ + public com.google.protobuf.ByteString getIntermediateCerts(int index) { + return intermediateCerts_.get(index); + } + + public static final int REVOCATIONLIST_FIELD_NUMBER = 3; + private java.util.List revocationList_; + + /** + * repeated bytes revocationList = 3; + * + * @return A list containing the revocationList. + */ + @java.lang.Override + public java.util.List getRevocationListList() { + return revocationList_; + } + + /** + * repeated bytes revocationList = 3; + * + * @return The count of revocationList. + */ + public int getRevocationListCount() { + return revocationList_.size(); + } + + /** + * repeated bytes revocationList = 3; + * + * @param index + * The index of the element to return. + * + * @return The revocationList at the given index. + */ + public com.google.protobuf.ByteString getRevocationList(int index) { + return revocationList_.get(index); + } + + public static final int CURHEIGTH_FIELD_NUMBER = 4; + private long curHeigth_; + + /** + * int64 curHeigth = 4; + * + * @return The curHeigth. + */ + @java.lang.Override + public long getCurHeigth() { + return curHeigth_; + } + + public static final int NXTHEIGHT_FIELD_NUMBER = 5; + private long nxtHeight_; + + /** + * int64 nxtHeight = 5; + * + * @return The nxtHeight. + */ + @java.lang.Override + public long getNxtHeight() { + return nxtHeight_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < rootcerts_.size(); i++) { + output.writeBytes(1, rootcerts_.get(i)); + } + for (int i = 0; i < intermediateCerts_.size(); i++) { + output.writeBytes(2, intermediateCerts_.get(i)); + } + for (int i = 0; i < revocationList_.size(); i++) { + output.writeBytes(3, revocationList_.get(i)); + } + if (curHeigth_ != 0L) { + output.writeInt64(4, curHeigth_); + } + if (nxtHeight_ != 0L) { + output.writeInt64(5, nxtHeight_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < rootcerts_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(rootcerts_.get(i)); + } + size += dataSize; + size += 1 * getRootcertsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < intermediateCerts_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(intermediateCerts_.get(i)); + } + size += dataSize; + size += 1 * getIntermediateCertsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < revocationList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(revocationList_.get(i)); + } + size += dataSize; + size += 1 * getRevocationListList().size(); + } + if (curHeigth_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, curHeigth_); + } + if (nxtHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, nxtHeight_); + } + 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 cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore) obj; + + if (!getRootcertsList().equals(other.getRootcertsList())) + return false; + if (!getIntermediateCertsList().equals(other.getIntermediateCertsList())) + return false; + if (!getRevocationListList().equals(other.getRevocationListList())) + return false; + if (getCurHeigth() != other.getCurHeigth()) + return false; + if (getNxtHeight() != other.getNxtHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRootcertsCount() > 0) { + hash = (37 * hash) + ROOTCERTS_FIELD_NUMBER; + hash = (53 * hash) + getRootcertsList().hashCode(); + } + if (getIntermediateCertsCount() > 0) { + hash = (37 * hash) + INTERMEDIATECERTS_FIELD_NUMBER; + hash = (53 * hash) + getIntermediateCertsList().hashCode(); + } + if (getRevocationListCount() > 0) { + hash = (37 * hash) + REVOCATIONLIST_FIELD_NUMBER; + hash = (53 * hash) + getRevocationListList().hashCode(); + } + hash = (37 * hash) + CURHEIGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurHeigth()); + hash = (37 * hash) + NXTHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNxtHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 HistoryCertStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HistoryCertStore) + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.class, + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int PREV_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem prev_; - /** - * .ConfigItem prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prev_ != null; - } - /** - * .ConfigItem prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getPrev() { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() : prev_; - } - /** - * .ConfigItem prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getPrevOrBuilder() { - return getPrev(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static final int CURRENT_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem current_; - /** - * .ConfigItem current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return current_ != null; - } - /** - * .ConfigItem current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getCurrent() { - return current_ == null ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() : current_; - } - /** - * .ConfigItem current = 2; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getCurrentOrBuilder() { - return getCurrent(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + rootcerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + intermediateCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + revocationList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + curHeigth_ = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + nxtHeight_ = 0L; - memoizedIsInitialized = 1; - return true; - } + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (prev_ != null) { - output.writeMessage(1, getPrev()); - } - if (current_ != null) { - output.writeMessage(2, getCurrent()); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (prev_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrev()); - } - if (current_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCurrent()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig) obj; - - if (hasPrev() != other.hasPrev()) return false; - if (hasPrev()) { - if (!getPrev() - .equals(other.getPrev())) return false; - } - if (hasCurrent() != other.hasCurrent()) return false; - if (hasCurrent()) { - if (!getCurrent() - .equals(other.getCurrent())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore build() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPrev()) { - hash = (37 * hash) + PREV_FIELD_NUMBER; - hash = (53 * hash) + getPrev().hashCode(); - } - if (hasCurrent()) { - hash = (37 * hash) + CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getCurrent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore buildPartial() { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + rootcerts_ = java.util.Collections.unmodifiableList(rootcerts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rootcerts_ = rootcerts_; + if (((bitField0_ & 0x00000002) != 0)) { + intermediateCerts_ = java.util.Collections.unmodifiableList(intermediateCerts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.intermediateCerts_ = intermediateCerts_; + if (((bitField0_ & 0x00000004) != 0)) { + revocationList_ = java.util.Collections.unmodifiableList(revocationList_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.revocationList_ = revocationList_; + result.curHeigth_ = curHeigth_; + result.nxtHeight_ = nxtHeight_; + onBuilt(); + return result; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReceiptConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptConfig) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (prevBuilder_ == null) { - prev_ = null; - } else { - prev_ = null; - prevBuilder_ = null; - } - if (currentBuilder_ == null) { - current_ = null; - } else { - current_ = null; - currentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReceiptConfig_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig(this); - if (prevBuilder_ == null) { - result.prev_ = prev_; - } else { - result.prev_ = prevBuilder_.build(); - } - if (currentBuilder_ == null) { - result.current_ = current_; - } else { - result.current_ = currentBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig.getDefaultInstance()) return this; - if (other.hasPrev()) { - mergePrev(other.getPrev()); - } - if (other.hasCurrent()) { - mergeCurrent(other.getCurrent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem prev_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder> prevBuilder_; - /** - * .ConfigItem prev = 1; - * @return Whether the prev field is set. - */ - public boolean hasPrev() { - return prevBuilder_ != null || prev_ != null; - } - /** - * .ConfigItem prev = 1; - * @return The prev. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getPrev() { - if (prevBuilder_ == null) { - return prev_ == null ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() : prev_; - } else { - return prevBuilder_.getMessage(); - } - } - /** - * .ConfigItem prev = 1; - */ - public Builder setPrev(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { - if (prevBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - prev_ = value; - onChanged(); - } else { - prevBuilder_.setMessage(value); - } - - return this; - } - /** - * .ConfigItem prev = 1; - */ - public Builder setPrev( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder builderForValue) { - if (prevBuilder_ == null) { - prev_ = builderForValue.build(); - onChanged(); - } else { - prevBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ConfigItem prev = 1; - */ - public Builder mergePrev(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { - if (prevBuilder_ == null) { - if (prev_ != null) { - prev_ = - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.newBuilder(prev_).mergeFrom(value).buildPartial(); - } else { - prev_ = value; - } - onChanged(); - } else { - prevBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ConfigItem prev = 1; - */ - public Builder clearPrev() { - if (prevBuilder_ == null) { - prev_ = null; - onChanged(); - } else { - prev_ = null; - prevBuilder_ = null; - } - - return this; - } - /** - * .ConfigItem prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder getPrevBuilder() { - - onChanged(); - return getPrevFieldBuilder().getBuilder(); - } - /** - * .ConfigItem prev = 1; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getPrevOrBuilder() { - if (prevBuilder_ != null) { - return prevBuilder_.getMessageOrBuilder(); - } else { - return prev_ == null ? - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() : prev_; - } - } - /** - * .ConfigItem prev = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder> - getPrevFieldBuilder() { - if (prevBuilder_ == null) { - prevBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder>( - getPrev(), - getParentForChildren(), - isClean()); - prev_ = null; - } - return prevBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem current_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder> currentBuilder_; - /** - * .ConfigItem current = 2; - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return currentBuilder_ != null || current_ != null; - } - /** - * .ConfigItem current = 2; - * @return The current. - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem getCurrent() { - if (currentBuilder_ == null) { - return current_ == null ? cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() : current_; - } else { - return currentBuilder_.getMessage(); - } - } - /** - * .ConfigItem current = 2; - */ - public Builder setCurrent(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { - if (currentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - current_ = value; - onChanged(); - } else { - currentBuilder_.setMessage(value); - } - - return this; - } - /** - * .ConfigItem current = 2; - */ - public Builder setCurrent( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder builderForValue) { - if (currentBuilder_ == null) { - current_ = builderForValue.build(); - onChanged(); - } else { - currentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ConfigItem current = 2; - */ - public Builder mergeCurrent(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem value) { - if (currentBuilder_ == null) { - if (current_ != null) { - current_ = - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.newBuilder(current_).mergeFrom(value).buildPartial(); - } else { - current_ = value; - } - onChanged(); - } else { - currentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ConfigItem current = 2; - */ - public Builder clearCurrent() { - if (currentBuilder_ == null) { - current_ = null; - onChanged(); - } else { - current_ = null; - currentBuilder_ = null; - } - - return this; - } - /** - * .ConfigItem current = 2; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder getCurrentBuilder() { - - onChanged(); - return getCurrentFieldBuilder().getBuilder(); - } - /** - * .ConfigItem current = 2; - */ - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder getCurrentOrBuilder() { - if (currentBuilder_ != null) { - return currentBuilder_.getMessageOrBuilder(); - } else { - return current_ == null ? - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.getDefaultInstance() : current_; - } - } - /** - * .ConfigItem current = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder> - getCurrentFieldBuilder() { - if (currentBuilder_ == null) { - currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItem.Builder, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ConfigItemOrBuilder>( - getCurrent(), - getParentForChildren(), - isClean()); - current_ = null; - } - return currentBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptConfig) - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - // @@protoc_insertion_point(class_scope:ReceiptConfig) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig(); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReceiptConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore other) { + if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.getDefaultInstance()) + return this; + if (!other.rootcerts_.isEmpty()) { + if (rootcerts_.isEmpty()) { + rootcerts_ = other.rootcerts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRootcertsIsMutable(); + rootcerts_.addAll(other.rootcerts_); + } + onChanged(); + } + if (!other.intermediateCerts_.isEmpty()) { + if (intermediateCerts_.isEmpty()) { + intermediateCerts_ = other.intermediateCerts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIntermediateCertsIsMutable(); + intermediateCerts_.addAll(other.intermediateCerts_); + } + onChanged(); + } + if (!other.revocationList_.isEmpty()) { + if (revocationList_.isEmpty()) { + revocationList_ = other.revocationList_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRevocationListIsMutable(); + revocationList_.addAll(other.revocationList_); + } + onChanged(); + } + if (other.getCurHeigth() != 0L) { + setCurHeigth(other.getCurHeigth()); + } + if (other.getNxtHeight() != 0L) { + setNxtHeight(other.getNxtHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public interface ReplyConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyConfig) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + private int bitField0_; - /** - * string value = 2; - * @return The value. - */ - java.lang.String getValue(); - /** - * string value = 2; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code ReplyConfig} - */ - public static final class ReplyConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyConfig) - ReplyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyConfig.newBuilder() to construct. - private ReplyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyConfig() { - key_ = ""; - value_ = ""; - } + private java.util.List rootcerts_ = java.util.Collections.emptyList(); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyConfig(); - } + private void ensureRootcertsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rootcerts_ = new java.util.ArrayList(rootcerts_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_descriptor; - } + /** + * repeated bytes rootcerts = 1; + * + * @return A list containing the rootcerts. + */ + public java.util.List getRootcertsList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(rootcerts_) + : rootcerts_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.Builder.class); - } + /** + * repeated bytes rootcerts = 1; + * + * @return The count of rootcerts. + */ + public int getRootcertsCount() { + return rootcerts_.size(); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated bytes rootcerts = 1; + * + * @param index + * The index of the element to return. + * + * @return The rootcerts at the given index. + */ + public com.google.protobuf.ByteString getRootcerts(int index) { + return rootcerts_.get(index); + } - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated bytes rootcerts = 1; + * + * @param index + * The index to set the value at. + * @param value + * The rootcerts to set. + * + * @return This builder for chaining. + */ + public Builder setRootcerts(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootcertsIsMutable(); + rootcerts_.set(index, value); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated bytes rootcerts = 1; + * + * @param value + * The rootcerts to add. + * + * @return This builder for chaining. + */ + public Builder addRootcerts(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootcertsIsMutable(); + rootcerts_.add(value); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated bytes rootcerts = 1; + * + * @param values + * The rootcerts to add. + * + * @return This builder for chaining. + */ + public Builder addAllRootcerts(java.lang.Iterable values) { + ensureRootcertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootcerts_); + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - unknownFields.writeTo(output); - } + /** + * repeated bytes rootcerts = 1; + * + * @return This builder for chaining. + */ + public Builder clearRootcerts() { + rootcerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private java.util.List intermediateCerts_ = java.util.Collections + .emptyList(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private void ensureIntermediateCertsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + intermediateCerts_ = new java.util.ArrayList(intermediateCerts_); + bitField0_ |= 0x00000002; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated bytes intermediateCerts = 2; + * + * @return A list containing the intermediateCerts. + */ + public java.util.List getIntermediateCertsList() { + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(intermediateCerts_) + : intermediateCerts_; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated bytes intermediateCerts = 2; + * + * @return The count of intermediateCerts. + */ + public int getIntermediateCertsCount() { + return intermediateCerts_.size(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated bytes intermediateCerts = 2; + * + * @param index + * The index of the element to return. + * + * @return The intermediateCerts at the given index. + */ + public com.google.protobuf.ByteString getIntermediateCerts(int index) { + return intermediateCerts_.get(index); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyConfig) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_ReplyConfig_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyConfig) - } + /** + * repeated bytes intermediateCerts = 2; + * + * @param index + * The index to set the value at. + * @param value + * The intermediateCerts to set. + * + * @return This builder for chaining. + */ + public Builder setIntermediateCerts(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntermediateCertsIsMutable(); + intermediateCerts_.set(index, value); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReplyConfig) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig(); - } + /** + * repeated bytes intermediateCerts = 2; + * + * @param value + * The intermediateCerts to add. + * + * @return This builder for chaining. + */ + public Builder addIntermediateCerts(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntermediateCertsIsMutable(); + intermediateCerts_.add(value); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated bytes intermediateCerts = 2; + * + * @param values + * The intermediateCerts to add. + * + * @return This builder for chaining. + */ + public Builder addAllIntermediateCerts( + java.lang.Iterable values) { + ensureIntermediateCertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intermediateCerts_); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated bytes intermediateCerts = 2; + * + * @return This builder for chaining. + */ + public Builder clearIntermediateCerts() { + intermediateCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.util.List revocationList_ = java.util.Collections.emptyList(); - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.ReplyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private void ensureRevocationListIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + revocationList_ = new java.util.ArrayList(revocationList_); + bitField0_ |= 0x00000004; + } + } - } + /** + * repeated bytes revocationList = 3; + * + * @return A list containing the revocationList. + */ + public java.util.List getRevocationListList() { + return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(revocationList_) + : revocationList_; + } - public interface HistoryCertStoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:HistoryCertStore) - com.google.protobuf.MessageOrBuilder { + /** + * repeated bytes revocationList = 3; + * + * @return The count of revocationList. + */ + public int getRevocationListCount() { + return revocationList_.size(); + } - /** - * repeated bytes rootcerts = 1; - * @return A list containing the rootcerts. - */ - java.util.List getRootcertsList(); - /** - * repeated bytes rootcerts = 1; - * @return The count of rootcerts. - */ - int getRootcertsCount(); - /** - * repeated bytes rootcerts = 1; - * @param index The index of the element to return. - * @return The rootcerts at the given index. - */ - com.google.protobuf.ByteString getRootcerts(int index); + /** + * repeated bytes revocationList = 3; + * + * @param index + * The index of the element to return. + * + * @return The revocationList at the given index. + */ + public com.google.protobuf.ByteString getRevocationList(int index) { + return revocationList_.get(index); + } - /** - * repeated bytes intermediateCerts = 2; - * @return A list containing the intermediateCerts. - */ - java.util.List getIntermediateCertsList(); - /** - * repeated bytes intermediateCerts = 2; - * @return The count of intermediateCerts. - */ - int getIntermediateCertsCount(); - /** - * repeated bytes intermediateCerts = 2; - * @param index The index of the element to return. - * @return The intermediateCerts at the given index. - */ - com.google.protobuf.ByteString getIntermediateCerts(int index); + /** + * repeated bytes revocationList = 3; + * + * @param index + * The index to set the value at. + * @param value + * The revocationList to set. + * + * @return This builder for chaining. + */ + public Builder setRevocationList(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevocationListIsMutable(); + revocationList_.set(index, value); + onChanged(); + return this; + } - /** - * repeated bytes revocationList = 3; - * @return A list containing the revocationList. - */ - java.util.List getRevocationListList(); - /** - * repeated bytes revocationList = 3; - * @return The count of revocationList. - */ - int getRevocationListCount(); - /** - * repeated bytes revocationList = 3; - * @param index The index of the element to return. - * @return The revocationList at the given index. - */ - com.google.protobuf.ByteString getRevocationList(int index); + /** + * repeated bytes revocationList = 3; + * + * @param value + * The revocationList to add. + * + * @return This builder for chaining. + */ + public Builder addRevocationList(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevocationListIsMutable(); + revocationList_.add(value); + onChanged(); + return this; + } - /** - * int64 curHeigth = 4; - * @return The curHeigth. - */ - long getCurHeigth(); + /** + * repeated bytes revocationList = 3; + * + * @param values + * The revocationList to add. + * + * @return This builder for chaining. + */ + public Builder addAllRevocationList(java.lang.Iterable values) { + ensureRevocationListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revocationList_); + onChanged(); + return this; + } - /** - * int64 nxtHeight = 5; - * @return The nxtHeight. - */ - long getNxtHeight(); - } - /** - * Protobuf type {@code HistoryCertStore} - */ - public static final class HistoryCertStore extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HistoryCertStore) - HistoryCertStoreOrBuilder { - private static final long serialVersionUID = 0L; - // Use HistoryCertStore.newBuilder() to construct. - private HistoryCertStore(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HistoryCertStore() { - rootcerts_ = java.util.Collections.emptyList(); - intermediateCerts_ = java.util.Collections.emptyList(); - revocationList_ = java.util.Collections.emptyList(); - } + /** + * repeated bytes revocationList = 3; + * + * @return This builder for chaining. + */ + public Builder clearRevocationList() { + revocationList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HistoryCertStore(); - } + private long curHeigth_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HistoryCertStore( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rootcerts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rootcerts_.add(input.readBytes()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - intermediateCerts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - intermediateCerts_.add(input.readBytes()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - revocationList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - revocationList_.add(input.readBytes()); - break; - } - case 32: { - - curHeigth_ = input.readInt64(); - break; - } - case 40: { - - nxtHeight_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rootcerts_ = java.util.Collections.unmodifiableList(rootcerts_); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - intermediateCerts_ = java.util.Collections.unmodifiableList(intermediateCerts_); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - revocationList_ = java.util.Collections.unmodifiableList(revocationList_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_descriptor; - } + /** + * int64 curHeigth = 4; + * + * @return The curHeigth. + */ + @java.lang.Override + public long getCurHeigth() { + return curHeigth_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.Builder.class); - } + /** + * int64 curHeigth = 4; + * + * @param value + * The curHeigth to set. + * + * @return This builder for chaining. + */ + public Builder setCurHeigth(long value) { + + curHeigth_ = value; + onChanged(); + return this; + } - public static final int ROOTCERTS_FIELD_NUMBER = 1; - private java.util.List rootcerts_; - /** - * repeated bytes rootcerts = 1; - * @return A list containing the rootcerts. - */ - public java.util.List - getRootcertsList() { - return rootcerts_; - } - /** - * repeated bytes rootcerts = 1; - * @return The count of rootcerts. - */ - public int getRootcertsCount() { - return rootcerts_.size(); - } - /** - * repeated bytes rootcerts = 1; - * @param index The index of the element to return. - * @return The rootcerts at the given index. - */ - public com.google.protobuf.ByteString getRootcerts(int index) { - return rootcerts_.get(index); - } + /** + * int64 curHeigth = 4; + * + * @return This builder for chaining. + */ + public Builder clearCurHeigth() { - public static final int INTERMEDIATECERTS_FIELD_NUMBER = 2; - private java.util.List intermediateCerts_; - /** - * repeated bytes intermediateCerts = 2; - * @return A list containing the intermediateCerts. - */ - public java.util.List - getIntermediateCertsList() { - return intermediateCerts_; - } - /** - * repeated bytes intermediateCerts = 2; - * @return The count of intermediateCerts. - */ - public int getIntermediateCertsCount() { - return intermediateCerts_.size(); - } - /** - * repeated bytes intermediateCerts = 2; - * @param index The index of the element to return. - * @return The intermediateCerts at the given index. - */ - public com.google.protobuf.ByteString getIntermediateCerts(int index) { - return intermediateCerts_.get(index); - } + curHeigth_ = 0L; + onChanged(); + return this; + } - public static final int REVOCATIONLIST_FIELD_NUMBER = 3; - private java.util.List revocationList_; - /** - * repeated bytes revocationList = 3; - * @return A list containing the revocationList. - */ - public java.util.List - getRevocationListList() { - return revocationList_; - } - /** - * repeated bytes revocationList = 3; - * @return The count of revocationList. - */ - public int getRevocationListCount() { - return revocationList_.size(); - } - /** - * repeated bytes revocationList = 3; - * @param index The index of the element to return. - * @return The revocationList at the given index. - */ - public com.google.protobuf.ByteString getRevocationList(int index) { - return revocationList_.get(index); - } + private long nxtHeight_; - public static final int CURHEIGTH_FIELD_NUMBER = 4; - private long curHeigth_; - /** - * int64 curHeigth = 4; - * @return The curHeigth. - */ - public long getCurHeigth() { - return curHeigth_; - } + /** + * int64 nxtHeight = 5; + * + * @return The nxtHeight. + */ + @java.lang.Override + public long getNxtHeight() { + return nxtHeight_; + } - public static final int NXTHEIGHT_FIELD_NUMBER = 5; - private long nxtHeight_; - /** - * int64 nxtHeight = 5; - * @return The nxtHeight. - */ - public long getNxtHeight() { - return nxtHeight_; - } + /** + * int64 nxtHeight = 5; + * + * @param value + * The nxtHeight to set. + * + * @return This builder for chaining. + */ + public Builder setNxtHeight(long value) { + + nxtHeight_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * int64 nxtHeight = 5; + * + * @return This builder for chaining. + */ + public Builder clearNxtHeight() { - memoizedIsInitialized = 1; - return true; - } + nxtHeight_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rootcerts_.size(); i++) { - output.writeBytes(1, rootcerts_.get(i)); - } - for (int i = 0; i < intermediateCerts_.size(); i++) { - output.writeBytes(2, intermediateCerts_.get(i)); - } - for (int i = 0; i < revocationList_.size(); i++) { - output.writeBytes(3, revocationList_.get(i)); - } - if (curHeigth_ != 0L) { - output.writeInt64(4, curHeigth_); - } - if (nxtHeight_ != 0L) { - output.writeInt64(5, nxtHeight_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < rootcerts_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(rootcerts_.get(i)); - } - size += dataSize; - size += 1 * getRootcertsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < intermediateCerts_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(intermediateCerts_.get(i)); - } - size += dataSize; - size += 1 * getIntermediateCertsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < revocationList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(revocationList_.get(i)); - } - size += dataSize; - size += 1 * getRevocationListList().size(); - } - if (curHeigth_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, curHeigth_); - } - if (nxtHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, nxtHeight_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore other = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore) obj; - - if (!getRootcertsList() - .equals(other.getRootcertsList())) return false; - if (!getIntermediateCertsList() - .equals(other.getIntermediateCertsList())) return false; - if (!getRevocationListList() - .equals(other.getRevocationListList())) return false; - if (getCurHeigth() - != other.getCurHeigth()) return false; - if (getNxtHeight() - != other.getNxtHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:HistoryCertStore) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRootcertsCount() > 0) { - hash = (37 * hash) + ROOTCERTS_FIELD_NUMBER; - hash = (53 * hash) + getRootcertsList().hashCode(); - } - if (getIntermediateCertsCount() > 0) { - hash = (37 * hash) + INTERMEDIATECERTS_FIELD_NUMBER; - hash = (53 * hash) + getIntermediateCertsList().hashCode(); - } - if (getRevocationListCount() > 0) { - hash = (37 * hash) + REVOCATIONLIST_FIELD_NUMBER; - hash = (53 * hash) + getRevocationListList().hashCode(); - } - hash = (37 * hash) + CURHEIGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurHeigth()); - hash = (37 * hash) + NXTHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNxtHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:HistoryCertStore) + private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore(); + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistoryCertStore parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistoryCertStore(input, extensionRegistry); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code HistoryCertStore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HistoryCertStore) - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.class, cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - rootcerts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - intermediateCerts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - revocationList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - curHeigth_ = 0L; - - nxtHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.internal_static_HistoryCertStore_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore build() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore buildPartial() { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore result = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - rootcerts_ = java.util.Collections.unmodifiableList(rootcerts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rootcerts_ = rootcerts_; - if (((bitField0_ & 0x00000002) != 0)) { - intermediateCerts_ = java.util.Collections.unmodifiableList(intermediateCerts_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.intermediateCerts_ = intermediateCerts_; - if (((bitField0_ & 0x00000004) != 0)) { - revocationList_ = java.util.Collections.unmodifiableList(revocationList_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.revocationList_ = revocationList_; - result.curHeigth_ = curHeigth_; - result.nxtHeight_ = nxtHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore other) { - if (other == cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore.getDefaultInstance()) return this; - if (!other.rootcerts_.isEmpty()) { - if (rootcerts_.isEmpty()) { - rootcerts_ = other.rootcerts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRootcertsIsMutable(); - rootcerts_.addAll(other.rootcerts_); - } - onChanged(); - } - if (!other.intermediateCerts_.isEmpty()) { - if (intermediateCerts_.isEmpty()) { - intermediateCerts_ = other.intermediateCerts_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureIntermediateCertsIsMutable(); - intermediateCerts_.addAll(other.intermediateCerts_); - } - onChanged(); - } - if (!other.revocationList_.isEmpty()) { - if (revocationList_.isEmpty()) { - revocationList_ = other.revocationList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRevocationListIsMutable(); - revocationList_.addAll(other.revocationList_); - } - onChanged(); - } - if (other.getCurHeigth() != 0L) { - setCurHeigth(other.getCurHeigth()); - } - if (other.getNxtHeight() != 0L) { - setNxtHeight(other.getNxtHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rootcerts_ = java.util.Collections.emptyList(); - private void ensureRootcertsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rootcerts_ = new java.util.ArrayList(rootcerts_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes rootcerts = 1; - * @return A list containing the rootcerts. - */ - public java.util.List - getRootcertsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(rootcerts_) : rootcerts_; - } - /** - * repeated bytes rootcerts = 1; - * @return The count of rootcerts. - */ - public int getRootcertsCount() { - return rootcerts_.size(); - } - /** - * repeated bytes rootcerts = 1; - * @param index The index of the element to return. - * @return The rootcerts at the given index. - */ - public com.google.protobuf.ByteString getRootcerts(int index) { - return rootcerts_.get(index); - } - /** - * repeated bytes rootcerts = 1; - * @param index The index to set the value at. - * @param value The rootcerts to set. - * @return This builder for chaining. - */ - public Builder setRootcerts( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRootcertsIsMutable(); - rootcerts_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes rootcerts = 1; - * @param value The rootcerts to add. - * @return This builder for chaining. - */ - public Builder addRootcerts(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRootcertsIsMutable(); - rootcerts_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes rootcerts = 1; - * @param values The rootcerts to add. - * @return This builder for chaining. - */ - public Builder addAllRootcerts( - java.lang.Iterable values) { - ensureRootcertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rootcerts_); - onChanged(); - return this; - } - /** - * repeated bytes rootcerts = 1; - * @return This builder for chaining. - */ - public Builder clearRootcerts() { - rootcerts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List intermediateCerts_ = java.util.Collections.emptyList(); - private void ensureIntermediateCertsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - intermediateCerts_ = new java.util.ArrayList(intermediateCerts_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated bytes intermediateCerts = 2; - * @return A list containing the intermediateCerts. - */ - public java.util.List - getIntermediateCertsList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(intermediateCerts_) : intermediateCerts_; - } - /** - * repeated bytes intermediateCerts = 2; - * @return The count of intermediateCerts. - */ - public int getIntermediateCertsCount() { - return intermediateCerts_.size(); - } - /** - * repeated bytes intermediateCerts = 2; - * @param index The index of the element to return. - * @return The intermediateCerts at the given index. - */ - public com.google.protobuf.ByteString getIntermediateCerts(int index) { - return intermediateCerts_.get(index); - } - /** - * repeated bytes intermediateCerts = 2; - * @param index The index to set the value at. - * @param value The intermediateCerts to set. - * @return This builder for chaining. - */ - public Builder setIntermediateCerts( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntermediateCertsIsMutable(); - intermediateCerts_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes intermediateCerts = 2; - * @param value The intermediateCerts to add. - * @return This builder for chaining. - */ - public Builder addIntermediateCerts(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntermediateCertsIsMutable(); - intermediateCerts_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes intermediateCerts = 2; - * @param values The intermediateCerts to add. - * @return This builder for chaining. - */ - public Builder addAllIntermediateCerts( - java.lang.Iterable values) { - ensureIntermediateCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, intermediateCerts_); - onChanged(); - return this; - } - /** - * repeated bytes intermediateCerts = 2; - * @return This builder for chaining. - */ - public Builder clearIntermediateCerts() { - intermediateCerts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private java.util.List revocationList_ = java.util.Collections.emptyList(); - private void ensureRevocationListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - revocationList_ = new java.util.ArrayList(revocationList_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated bytes revocationList = 3; - * @return A list containing the revocationList. - */ - public java.util.List - getRevocationListList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(revocationList_) : revocationList_; - } - /** - * repeated bytes revocationList = 3; - * @return The count of revocationList. - */ - public int getRevocationListCount() { - return revocationList_.size(); - } - /** - * repeated bytes revocationList = 3; - * @param index The index of the element to return. - * @return The revocationList at the given index. - */ - public com.google.protobuf.ByteString getRevocationList(int index) { - return revocationList_.get(index); - } - /** - * repeated bytes revocationList = 3; - * @param index The index to set the value at. - * @param value The revocationList to set. - * @return This builder for chaining. - */ - public Builder setRevocationList( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRevocationListIsMutable(); - revocationList_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes revocationList = 3; - * @param value The revocationList to add. - * @return This builder for chaining. - */ - public Builder addRevocationList(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRevocationListIsMutable(); - revocationList_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes revocationList = 3; - * @param values The revocationList to add. - * @return This builder for chaining. - */ - public Builder addAllRevocationList( - java.lang.Iterable values) { - ensureRevocationListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, revocationList_); - onChanged(); - return this; - } - /** - * repeated bytes revocationList = 3; - * @return This builder for chaining. - */ - public Builder clearRevocationList() { - revocationList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private long curHeigth_ ; - /** - * int64 curHeigth = 4; - * @return The curHeigth. - */ - public long getCurHeigth() { - return curHeigth_; - } - /** - * int64 curHeigth = 4; - * @param value The curHeigth to set. - * @return This builder for chaining. - */ - public Builder setCurHeigth(long value) { - - curHeigth_ = value; - onChanged(); - return this; - } - /** - * int64 curHeigth = 4; - * @return This builder for chaining. - */ - public Builder clearCurHeigth() { - - curHeigth_ = 0L; - onChanged(); - return this; - } - - private long nxtHeight_ ; - /** - * int64 nxtHeight = 5; - * @return The nxtHeight. - */ - public long getNxtHeight() { - return nxtHeight_; - } - /** - * int64 nxtHeight = 5; - * @param value The nxtHeight to set. - * @return This builder for chaining. - */ - public Builder setNxtHeight(long value) { - - nxtHeight_ = value; - onChanged(); - return this; - } - /** - * int64 nxtHeight = 5; - * @return This builder for chaining. - */ - public Builder clearNxtHeight() { - - nxtHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HistoryCertStore) - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:HistoryCertStore) - private static final cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HistoryCertStore parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HistoryCertStore(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Genesis_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Genesis_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ExecTxList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ExecTxList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Query_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Query_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CreateTxIn_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CreateTxIn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ArrayConfig_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ArrayConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_StringConfig_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_StringConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Int32Config_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Int32Config_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ConfigItem_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ConfigItem_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ModifyConfig_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ModifyConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptConfig_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyConfig_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HistoryCertStore_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HistoryCertStore_fieldAccessorTable; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.HistoryCertStore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Genesis_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Genesis_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ExecTxList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ExecTxList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Query_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Query_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CreateTxIn_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CreateTxIn_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ArrayConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ArrayConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_StringConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_StringConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Int32Config_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Int32Config_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ConfigItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ConfigItem_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ModifyConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ModifyConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HistoryCertStore_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HistoryCertStore_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016executor.proto\032\021transaction.proto\"\030\n\007G" + - "enesis\022\r\n\005isrun\030\001 \001(\010\"\276\001\n\nExecTxList\022\021\n\t" + - "stateHash\030\001 \001(\014\022\022\n\nparentHash\030\007 \001(\014\022\020\n\010m" + - "ainHash\030\010 \001(\014\022\022\n\nmainHeight\030\t \001(\003\022\021\n\tblo" + - "ckTime\030\003 \001(\003\022\016\n\006height\030\004 \001(\003\022\022\n\ndifficul" + - "ty\030\005 \001(\004\022\021\n\tisMempool\030\006 \001(\010\022\031\n\003txs\030\002 \003(\013" + - "2\014.Transaction\":\n\005Query\022\016\n\006execer\030\001 \001(\014\022" + - "\020\n\010funcName\030\002 \001(\t\022\017\n\007payload\030\003 \001(\014\"A\n\nCr" + - "eateTxIn\022\016\n\006execer\030\001 \001(\014\022\022\n\nactionName\030\002" + - " \001(\t\022\017\n\007payload\030\003 \001(\014\"\034\n\013ArrayConfig\022\r\n\005" + - "value\030\003 \003(\t\"\035\n\014StringConfig\022\r\n\005value\030\003 \001" + - "(\t\"\034\n\013Int32Config\022\r\n\005value\030\003 \001(\005\"\224\001\n\nCon" + - "figItem\022\013\n\003key\030\001 \001(\t\022\014\n\004addr\030\002 \001(\t\022\033\n\003ar" + - "r\030\003 \001(\0132\014.ArrayConfigH\000\022\034\n\003str\030\004 \001(\0132\r.S" + - "tringConfigH\000\022\033\n\003int\030\005 \001(\0132\014.Int32Config" + - "H\000\022\n\n\002Ty\030\013 \001(\005B\007\n\005value\"D\n\014ModifyConfig\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\n\n\002op\030\003 \001(\t\022" + - "\014\n\004addr\030\004 \001(\t\"H\n\rReceiptConfig\022\031\n\004prev\030\001" + - " \001(\0132\013.ConfigItem\022\034\n\007current\030\002 \001(\0132\013.Con" + - "figItem\")\n\013ReplyConfig\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t\"~\n\020HistoryCertStore\022\021\n\trootce" + - "rts\030\001 \003(\014\022\031\n\021intermediateCerts\030\002 \003(\014\022\026\n\016" + - "revocationList\030\003 \003(\014\022\021\n\tcurHeigth\030\004 \001(\003\022" + - "\021\n\tnxtHeight\030\005 \001(\003B5\n!cn.chain33.javasdk" + - ".model.protobufB\020ExecuterProtobufb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), - }); - internal_static_Genesis_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Genesis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Genesis_descriptor, - new java.lang.String[] { "Isrun", }); - internal_static_ExecTxList_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ExecTxList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ExecTxList_descriptor, - new java.lang.String[] { "StateHash", "ParentHash", "MainHash", "MainHeight", "BlockTime", "Height", "Difficulty", "IsMempool", "Txs", }); - internal_static_Query_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_Query_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Query_descriptor, - new java.lang.String[] { "Execer", "FuncName", "Payload", }); - internal_static_CreateTxIn_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_CreateTxIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CreateTxIn_descriptor, - new java.lang.String[] { "Execer", "ActionName", "Payload", }); - internal_static_ArrayConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_ArrayConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ArrayConfig_descriptor, - new java.lang.String[] { "Value", }); - internal_static_StringConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_StringConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_StringConfig_descriptor, - new java.lang.String[] { "Value", }); - internal_static_Int32Config_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_Int32Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Int32Config_descriptor, - new java.lang.String[] { "Value", }); - internal_static_ConfigItem_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ConfigItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ConfigItem_descriptor, - new java.lang.String[] { "Key", "Addr", "Arr", "Str", "Int", "Ty", "Value", }); - internal_static_ModifyConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_ModifyConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ModifyConfig_descriptor, - new java.lang.String[] { "Key", "Value", "Op", "Addr", }); - internal_static_ReceiptConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_ReceiptConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptConfig_descriptor, - new java.lang.String[] { "Prev", "Current", }); - internal_static_ReplyConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_ReplyConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyConfig_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_HistoryCertStore_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_HistoryCertStore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HistoryCertStore_descriptor, - new java.lang.String[] { "Rootcerts", "IntermediateCerts", "RevocationList", "CurHeigth", "NxtHeight", }); - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\016executor.proto\032\021transaction.proto\"\030\n\007G" + + "enesis\022\r\n\005isrun\030\001 \001(\010\"\276\001\n\nExecTxList\022\021\n\t" + + "stateHash\030\001 \001(\014\022\022\n\nparentHash\030\007 \001(\014\022\020\n\010m" + + "ainHash\030\010 \001(\014\022\022\n\nmainHeight\030\t \001(\003\022\021\n\tblo" + + "ckTime\030\003 \001(\003\022\016\n\006height\030\004 \001(\003\022\022\n\ndifficul" + + "ty\030\005 \001(\004\022\021\n\tisMempool\030\006 \001(\010\022\031\n\003txs\030\002 \003(\013" + + "2\014.Transaction\":\n\005Query\022\016\n\006execer\030\001 \001(\014\022" + + "\020\n\010funcName\030\002 \001(\t\022\017\n\007payload\030\003 \001(\014\"A\n\nCr" + + "eateTxIn\022\016\n\006execer\030\001 \001(\014\022\022\n\nactionName\030\002" + + " \001(\t\022\017\n\007payload\030\003 \001(\014\"\034\n\013ArrayConfig\022\r\n\005" + + "value\030\003 \003(\t\"\035\n\014StringConfig\022\r\n\005value\030\003 \001" + + "(\t\"\034\n\013Int32Config\022\r\n\005value\030\003 \001(\005\"\224\001\n\nCon" + + "figItem\022\013\n\003key\030\001 \001(\t\022\014\n\004addr\030\002 \001(\t\022\033\n\003ar" + + "r\030\003 \001(\0132\014.ArrayConfigH\000\022\034\n\003str\030\004 \001(\0132\r.S" + + "tringConfigH\000\022\033\n\003int\030\005 \001(\0132\014.Int32Config" + + "H\000\022\n\n\002Ty\030\013 \001(\005B\007\n\005value\"D\n\014ModifyConfig\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\n\n\002op\030\003 \001(\t\022" + + "\014\n\004addr\030\004 \001(\t\"H\n\rReceiptConfig\022\031\n\004prev\030\001" + + " \001(\0132\013.ConfigItem\022\034\n\007current\030\002 \001(\0132\013.Con" + + "figItem\")\n\013ReplyConfig\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t\"~\n\020HistoryCertStore\022\021\n\trootce" + + "rts\030\001 \003(\014\022\031\n\021intermediateCerts\030\002 \003(\014\022\026\n\016" + + "revocationList\030\003 \003(\014\022\021\n\tcurHeigth\030\004 \001(\003\022" + + "\021\n\tnxtHeight\030\005 \001(\003B5\n!cn.chain33.javasdk" + + ".model.protobufB\020ExecuterProtobufb\006proto" + "3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), }); + internal_static_Genesis_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_Genesis_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Genesis_descriptor, new java.lang.String[] { "Isrun", }); + internal_static_ExecTxList_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_ExecTxList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ExecTxList_descriptor, new java.lang.String[] { "StateHash", "ParentHash", "MainHash", + "MainHeight", "BlockTime", "Height", "Difficulty", "IsMempool", "Txs", }); + internal_static_Query_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_Query_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Query_descriptor, new java.lang.String[] { "Execer", "FuncName", "Payload", }); + internal_static_CreateTxIn_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_CreateTxIn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateTxIn_descriptor, new java.lang.String[] { "Execer", "ActionName", "Payload", }); + internal_static_ArrayConfig_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_ArrayConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ArrayConfig_descriptor, new java.lang.String[] { "Value", }); + internal_static_StringConfig_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_StringConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_StringConfig_descriptor, new java.lang.String[] { "Value", }); + internal_static_Int32Config_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_Int32Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Int32Config_descriptor, new java.lang.String[] { "Value", }); + internal_static_ConfigItem_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_ConfigItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ConfigItem_descriptor, + new java.lang.String[] { "Key", "Addr", "Arr", "Str", "Int", "Ty", "Value", }); + internal_static_ModifyConfig_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_ModifyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ModifyConfig_descriptor, new java.lang.String[] { "Key", "Value", "Op", "Addr", }); + internal_static_ReceiptConfig_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_ReceiptConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptConfig_descriptor, new java.lang.String[] { "Prev", "Current", }); + internal_static_ReplyConfig_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_ReplyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyConfig_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_HistoryCertStore_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_HistoryCertStore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HistoryCertStore_descriptor, new java.lang.String[] { "Rootcerts", "IntermediateCerts", + "RevocationList", "CurHeigth", "NxtHeight", }); + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/GrpcService.java b/src/main/java/cn/chain33/javasdk/model/protobuf/GrpcService.java index 4f0d8f5..54c7c28 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/GrpcService.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/GrpcService.java @@ -4,119 +4,112 @@ package cn.chain33.javasdk.model.protobuf; public final class GrpcService { - private GrpcService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } + private GrpcService() { + } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\ngrpc.proto\032\014common.proto\032\021transaction." + - "proto\032\020blockchain.proto\032\014wallet.proto\032\tp" + - "2p.proto\032\raccount.proto\032\016executor.proto2" + - "\271\025\n\007chain33\022!\n\tGetBlocks\022\n.ReqBlocks\032\006.R" + - "eply\"\000\022#\n\rGetLastHeader\022\007.ReqNil\032\007.Heade" + - "r\"\000\022.\n\024CreateRawTransaction\022\t.CreateTx\032\t" + - ".UnsignTx\"\000\0228\n\020CreateRawTxGroup\022\027.Create" + - "TransactionGroup\032\t.UnsignTx\"\000\0222\n\020QueryTr" + - "ansaction\022\010.ReqHash\032\022.TransactionDetail\"" + - "\000\022)\n\017SendTransaction\022\014.Transaction\032\006.Rep" + - "ly\"\000\0221\n\024GetTransactionByAddr\022\010.ReqAddr\032\r" + - ".ReplyTxInfos\"\000\022;\n\026GetTransactionByHashe" + - "s\022\n.ReqHashes\032\023.TransactionDetails\"\000\022,\n\n" + - "GetMemPool\022\016.ReqGetMempool\032\014.ReplyTxList" + - "\"\000\022)\n\013GetAccounts\022\007.ReqNil\032\017.WalletAccou" + - "nts\"\000\022.\n\nGetAccount\022\016.ReqGetAccount\032\016.Wa" + - "lletAccount\"\000\022.\n\nNewAccount\022\016.ReqNewAcco" + - "unt\032\016.WalletAccount\"\000\022F\n\025WalletTransacti" + - "onList\022\031.ReqWalletTransactionList\032\020.Wall" + - "etTxDetails\"\000\022:\n\rImportPrivkey\022\027.ReqWall" + - "etImportPrivkey\032\016.WalletAccount\"\000\0226\n\rSen" + - "dToAddress\022\027.ReqWalletSendToAddress\032\n.Re" + - "plyHash\"\000\022&\n\010SetTxFee\022\020.ReqWalletSetFee\032" + - "\006.Reply\"\000\022/\n\007SetLabl\022\022.ReqWalletSetLabel" + - "\032\016.WalletAccount\"\000\0226\n\014MergeBalance\022\026.Req" + - "WalletMergeBalance\032\014.ReplyHashes\"\000\022*\n\tSe" + - "tPasswd\022\023.ReqWalletSetPasswd\032\006.Reply\"\000\022\031" + - "\n\004Lock\022\007.ReqNil\032\006.Reply\"\000\022!\n\006UnLock\022\r.Wa" + - "lletUnLock\032\006.Reply\"\000\022)\n\016GetLastMemPool\022\007" + - ".ReqNil\032\014.ReplyTxList\"\000\0220\n\014GetProperFee\022" + - "\r.ReqProperFee\032\017.ReplyProperFee\"\000\022+\n\017Get" + - "WalletStatus\022\007.ReqNil\032\r.WalletStatus\"\000\022." + - "\n\020GetBlockOverview\022\010.ReqHash\032\016.BlockOver" + - "view\"\000\022,\n\017GetAddrOverview\022\010.ReqAddr\032\r.Ad" + - "drOverview\"\000\022%\n\014GetBlockHash\022\007.ReqInt\032\n." + - "ReplyHash\"\000\022%\n\007GenSeed\022\014.GenSeedLang\032\n.R" + - "eplySeed\"\000\022%\n\007GetSeed\022\014.GetSeedByPw\032\n.Re" + - "plySeed\"\000\022#\n\010SaveSeed\022\r.SaveSeedByPw\032\006.R" + - "eply\"\000\022&\n\nGetBalance\022\013.ReqBalance\032\t.Acco" + - "unts\"\000\022&\n\nQueryChain\022\016.ChainExecutor\032\006.R" + - "eply\"\000\022&\n\nExecWallet\022\016.ChainExecutor\032\006.R" + - "eply\"\000\022*\n\016QueryConsensus\022\016.ChainExecutor" + - "\032\006.Reply\"\000\022-\n\021CreateTransaction\022\013.Create" + - "TxIn\032\t.UnsignTx\"\000\022$\n\016GetHexTxByHash\022\010.Re" + - "qHash\032\006.HexTx\"\000\022)\n\013DumpPrivkey\022\n.ReqStri" + - "ng\032\014.ReplyString\"\000\022.\n\020DumpPrivkeysFile\022\020" + - ".ReqPrivkeysFile\032\006.Reply\"\000\0220\n\022ImportPriv" + - "keysFile\022\020.ReqPrivkeysFile\032\006.Reply\"\000\022\"\n\007" + - "Version\022\007.ReqNil\032\014.VersionInfo\"\000\022\033\n\006IsSy" + - "nc\022\007.ReqNil\032\006.Reply\"\000\022*\n\013GetPeerInfo\022\016.P" + - "2PGetPeerReq\032\t.PeerList\"\000\022,\n\007NetInfo\022\021.P" + - "2PGetNetInfoReq\032\014.NodeNetInfo\"\000\022#\n\016IsNtp" + - "ClockSync\022\007.ReqNil\032\006.Reply\"\000\022$\n\017GetFatal" + - "Failure\022\007.ReqNil\032\006.Int32\"\000\022)\n\024GetLastBlo" + - "ckSequence\022\007.ReqNil\032\006.Int64\"\000\022\'\n\021GetSequ" + - "enceByHash\022\010.ReqHash\032\006.Int64\"\000\022/\n\020GetBlo" + - "ckByHashes\022\n.ReqHashes\032\r.BlockDetails\"\000\022" + - "$\n\rGetBlockBySeq\022\006.Int64\032\t.BlockSeq\"\000\022\037\n" + - "\nCloseQueue\022\007.ReqNil\032\006.Reply\"\000\022:\n\021GetAll" + - "ExecBalance\022\022.ReqAllExecBalance\032\017.AllExe" + - "cBalance\"\000\022-\n\tSignRawTx\022\r.ReqSignRawTx\032\017" + - ".ReplySignRawTx\"\000\022=\n\032CreateNoBalanceTran" + - "saction\022\014.NoBalanceTx\032\017.ReplySignRawTx\"\000" + - "\022*\n\014QueryRandNum\022\014.ReqRandHash\032\n.ReplyHa" + - "sh\"\000\022\034\n\007GetFork\022\007.ReqKey\032\006.Int64\"\000\0226\n\022Cr" + - "eateNoBalanceTxs\022\r.NoBalanceTxs\032\017.ReplyS" + - "ignRawTx\"\000\0227\n\020GetParaTxByTitle\022\021.ReqPara" + - "TxByTitle\032\016.ParaTxDetails\"\000\022=\n\021LoadParaT" + - "xByTitle\022\021.ReqHeightByTitle\032\023.ReplyHeigh" + - "tByTitle\"\000\0229\n\021GetParaTxByHeight\022\022.ReqPar" + - "aTxByHeight\032\016.ParaTxDetails\"\000\022$\n\nGetHead" + - "ers\022\n.ReqBlocks\032\010.Headers\"\000B0\n!cn.chain3" + - "3.javasdk.model.protobufB\013GrpcServiceb\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.WalletProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.P2pService.getDescriptor(), - cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.getDescriptor(), - }); - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.WalletProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.P2pService.getDescriptor(); - cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.getDescriptor(); - } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } - // @@protoc_insertion_point(outer_class_scope) + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\ngrpc.proto\032\014common.proto\032\021transaction." + + "proto\032\020blockchain.proto\032\014wallet.proto\032\tp" + + "2p.proto\032\raccount.proto\032\016executor.proto2" + + "\271\025\n\007chain33\022!\n\tGetBlocks\022\n.ReqBlocks\032\006.R" + + "eply\"\000\022#\n\rGetLastHeader\022\007.ReqNil\032\007.Heade" + + "r\"\000\022.\n\024CreateRawTransaction\022\t.CreateTx\032\t" + + ".UnsignTx\"\000\0228\n\020CreateRawTxGroup\022\027.Create" + + "TransactionGroup\032\t.UnsignTx\"\000\0222\n\020QueryTr" + + "ansaction\022\010.ReqHash\032\022.TransactionDetail\"" + + "\000\022)\n\017SendTransaction\022\014.Transaction\032\006.Rep" + + "ly\"\000\0221\n\024GetTransactionByAddr\022\010.ReqAddr\032\r" + + ".ReplyTxInfos\"\000\022;\n\026GetTransactionByHashe" + + "s\022\n.ReqHashes\032\023.TransactionDetails\"\000\022,\n\n" + + "GetMemPool\022\016.ReqGetMempool\032\014.ReplyTxList" + + "\"\000\022)\n\013GetAccounts\022\007.ReqNil\032\017.WalletAccou" + + "nts\"\000\022.\n\nGetAccount\022\016.ReqGetAccount\032\016.Wa" + + "lletAccount\"\000\022.\n\nNewAccount\022\016.ReqNewAcco" + + "unt\032\016.WalletAccount\"\000\022F\n\025WalletTransacti" + + "onList\022\031.ReqWalletTransactionList\032\020.Wall" + + "etTxDetails\"\000\022:\n\rImportPrivkey\022\027.ReqWall" + + "etImportPrivkey\032\016.WalletAccount\"\000\0226\n\rSen" + + "dToAddress\022\027.ReqWalletSendToAddress\032\n.Re" + + "plyHash\"\000\022&\n\010SetTxFee\022\020.ReqWalletSetFee\032" + + "\006.Reply\"\000\022/\n\007SetLabl\022\022.ReqWalletSetLabel" + + "\032\016.WalletAccount\"\000\0226\n\014MergeBalance\022\026.Req" + + "WalletMergeBalance\032\014.ReplyHashes\"\000\022*\n\tSe" + + "tPasswd\022\023.ReqWalletSetPasswd\032\006.Reply\"\000\022\031" + + "\n\004Lock\022\007.ReqNil\032\006.Reply\"\000\022!\n\006UnLock\022\r.Wa" + + "lletUnLock\032\006.Reply\"\000\022)\n\016GetLastMemPool\022\007" + + ".ReqNil\032\014.ReplyTxList\"\000\0220\n\014GetProperFee\022" + + "\r.ReqProperFee\032\017.ReplyProperFee\"\000\022+\n\017Get" + + "WalletStatus\022\007.ReqNil\032\r.WalletStatus\"\000\022." + + "\n\020GetBlockOverview\022\010.ReqHash\032\016.BlockOver" + + "view\"\000\022,\n\017GetAddrOverview\022\010.ReqAddr\032\r.Ad" + + "drOverview\"\000\022%\n\014GetBlockHash\022\007.ReqInt\032\n." + + "ReplyHash\"\000\022%\n\007GenSeed\022\014.GenSeedLang\032\n.R" + + "eplySeed\"\000\022%\n\007GetSeed\022\014.GetSeedByPw\032\n.Re" + + "plySeed\"\000\022#\n\010SaveSeed\022\r.SaveSeedByPw\032\006.R" + + "eply\"\000\022&\n\nGetBalance\022\013.ReqBalance\032\t.Acco" + + "unts\"\000\022&\n\nQueryChain\022\016.ChainExecutor\032\006.R" + + "eply\"\000\022&\n\nExecWallet\022\016.ChainExecutor\032\006.R" + + "eply\"\000\022*\n\016QueryConsensus\022\016.ChainExecutor" + + "\032\006.Reply\"\000\022-\n\021CreateTransaction\022\013.Create" + + "TxIn\032\t.UnsignTx\"\000\022$\n\016GetHexTxByHash\022\010.Re" + + "qHash\032\006.HexTx\"\000\022)\n\013DumpPrivkey\022\n.ReqStri" + + "ng\032\014.ReplyString\"\000\022.\n\020DumpPrivkeysFile\022\020" + + ".ReqPrivkeysFile\032\006.Reply\"\000\0220\n\022ImportPriv" + + "keysFile\022\020.ReqPrivkeysFile\032\006.Reply\"\000\022\"\n\007" + + "Version\022\007.ReqNil\032\014.VersionInfo\"\000\022\033\n\006IsSy" + + "nc\022\007.ReqNil\032\006.Reply\"\000\022*\n\013GetPeerInfo\022\016.P" + + "2PGetPeerReq\032\t.PeerList\"\000\022,\n\007NetInfo\022\021.P" + + "2PGetNetInfoReq\032\014.NodeNetInfo\"\000\022#\n\016IsNtp" + + "ClockSync\022\007.ReqNil\032\006.Reply\"\000\022$\n\017GetFatal" + + "Failure\022\007.ReqNil\032\006.Int32\"\000\022)\n\024GetLastBlo" + + "ckSequence\022\007.ReqNil\032\006.Int64\"\000\022\'\n\021GetSequ" + + "enceByHash\022\010.ReqHash\032\006.Int64\"\000\022/\n\020GetBlo" + + "ckByHashes\022\n.ReqHashes\032\r.BlockDetails\"\000\022" + + "$\n\rGetBlockBySeq\022\006.Int64\032\t.BlockSeq\"\000\022\037\n" + + "\nCloseQueue\022\007.ReqNil\032\006.Reply\"\000\022:\n\021GetAll" + + "ExecBalance\022\022.ReqAllExecBalance\032\017.AllExe" + + "cBalance\"\000\022-\n\tSignRawTx\022\r.ReqSignRawTx\032\017" + + ".ReplySignRawTx\"\000\022=\n\032CreateNoBalanceTran" + + "saction\022\014.NoBalanceTx\032\017.ReplySignRawTx\"\000" + + "\022*\n\014QueryRandNum\022\014.ReqRandHash\032\n.ReplyHa" + + "sh\"\000\022\034\n\007GetFork\022\007.ReqKey\032\006.Int64\"\000\0226\n\022Cr" + + "eateNoBalanceTxs\022\r.NoBalanceTxs\032\017.ReplyS" + + "ignRawTx\"\000\0227\n\020GetParaTxByTitle\022\021.ReqPara" + + "TxByTitle\032\016.ParaTxDetails\"\000\022=\n\021LoadParaT" + + "xByTitle\022\021.ReqHeightByTitle\032\023.ReplyHeigh" + + "tByTitle\"\000\0229\n\021GetParaTxByHeight\022\022.ReqPar" + + "aTxByHeight\032\016.ParaTxDetails\"\000\022$\n\nGetHead" + + "ers\022\n.ReqBlocks\032\010.Headers\"\000B0\n!cn.chain3" + + "3.javasdk.model.protobufB\013GrpcServiceb\006p" + "roto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.WalletProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.P2pService.getDescriptor(), + cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.getDescriptor(), }); + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.WalletProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.P2pService.getDescriptor(); + cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/Manage.proto b/src/main/java/cn/chain33/javasdk/model/protobuf/Manage.proto index 5b85100..51d08d6 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/Manage.proto +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/Manage.proto @@ -1,6 +1,6 @@ -syntax = "proto3"; -option java_outer_classname = "Manage"; -option java_package = "cn.chain33.javasdk.model"; +syntax = "proto3"; +option java_outer_classname = "ManageProtobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; message ManageAction { oneof value { diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/ManageProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/ManageProtobuf.java index a11fe68..e5e9f3e 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/ManageProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/ManageProtobuf.java @@ -4,1790 +4,1920 @@ package cn.chain33.javasdk.model.protobuf; public final class ManageProtobuf { - private ManageProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ManageActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:ManageAction) - com.google.protobuf.MessageOrBuilder { - - /** - * .ModifyConfig modify = 1; - */ - boolean hasModify(); - /** - * .ModifyConfig modify = 1; - */ - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getModify(); - /** - * .ModifyConfig modify = 1; - */ - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder getModifyOrBuilder(); - - /** - * int32 Ty = 2; - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.ValueCase getValueCase(); - } - /** - * Protobuf type {@code ManageAction} - */ - public static final class ManageAction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ManageAction) - ManageActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManageAction.newBuilder() to construct. - private ManageAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ManageAction() { - ty_ = 0; + private ManageProtobuf() { } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ManageAction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 16: { - - ty_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_descriptor; + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.class, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.Builder.class); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - MODIFY(1), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return MODIFY; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + public interface ManageActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:ManageAction) + com.google.protobuf.MessageOrBuilder { - public static final int MODIFY_FIELD_NUMBER = 1; - /** - * .ModifyConfig modify = 1; - */ - public boolean hasModify() { - return valueCase_ == 1; - } - /** - * .ModifyConfig modify = 1; - */ - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getModify() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); - } - /** - * .ModifyConfig modify = 1; - */ - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder getModifyOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + /** + * .ModifyConfig modify = 1; + * + * @return Whether the modify field is set. + */ + boolean hasModify(); + + /** + * .ModifyConfig modify = 1; + * + * @return The modify. + */ + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getModify(); + + /** + * .ModifyConfig modify = 1; + */ + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder getModifyOrBuilder(); + + /** + * int32 Ty = 2; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.ValueCase getValueCase(); } - public static final int TY_FIELD_NUMBER = 2; - private int ty_; /** - * int32 Ty = 2; + * Protobuf type {@code ManageAction} */ - public int getTy() { - return ty_; - } + public static final class ManageAction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ManageAction) + ManageActionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ManageAction.newBuilder() to construct. + private ManageAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private ManageAction() { + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManageAction(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_); - } - if (ty_ != 0) { - output.writeInt32(2, ty_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, ty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private ManageAction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder + .mergeFrom((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 16: { + + ty_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction other = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction) obj; - - boolean result = true; - result = result && (getTy() - == other.getTy()); - result = result && getValueCase().equals( - other.getValueCase()); - if (!result) return false; - switch (valueCase_) { - case 1: - result = result && getModify() - .equals(other.getModify()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + MODIFY_FIELD_NUMBER; - hash = (53 * hash) + getModify().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.class, + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.Builder.class); + } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private int valueCase_ = 0; + private java.lang.Object value_; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MODIFY(1), VALUE_NOT_SET(0); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ManageAction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ManageAction) - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.class, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction build() { - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction buildPartial() { - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction result = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction(this); - if (valueCase_ == 1) { - if (modifyBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = modifyBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction other) { - if (other == cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case MODIFY: { - mergeModify(other.getModify()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder> modifyBuilder_; - /** - * .ModifyConfig modify = 1; - */ - public boolean hasModify() { - return valueCase_ == 1; - } - /** - * .ModifyConfig modify = 1; - */ - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getModify() { - if (modifyBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return modifyBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); - } - } - /** - * .ModifyConfig modify = 1; - */ - public Builder setModify(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig value) { - if (modifyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - modifyBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .ModifyConfig modify = 1; - */ - public Builder setModify( - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder builderForValue) { - if (modifyBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - modifyBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .ModifyConfig modify = 1; - */ - public Builder mergeModify(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig value) { - if (modifyBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.newBuilder((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - modifyBuilder_.mergeFrom(value); - } - modifyBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .ModifyConfig modify = 1; - */ - public Builder clearModify() { - if (modifyBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - modifyBuilder_.clear(); - } - return this; - } - /** - * .ModifyConfig modify = 1; - */ - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder getModifyBuilder() { - return getModifyFieldBuilder().getBuilder(); - } - /** - * .ModifyConfig modify = 1; - */ - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder getModifyOrBuilder() { - if ((valueCase_ == 1) && (modifyBuilder_ != null)) { - return modifyBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; - } - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); - } - } - /** - * .ModifyConfig modify = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder> - getModifyFieldBuilder() { - if (modifyBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); - } - modifyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder>( - (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return modifyBuilder_; - } - - private int ty_ ; - /** - * int32 Ty = 2; - */ - public int getTy() { - return ty_; - } - /** - * int32 Ty = 2; - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 Ty = 2; - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ManageAction) - } + private final int value; - // @@protoc_insertion_point(class_scope:ManageAction) - private static final cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction(); - } + private ValueCase(int value) { + this.value = value; + } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManageAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ManageAction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return MODIFY; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public int getNumber() { + return this.value; + } + }; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } - } + public static final int MODIFY_FIELD_NUMBER = 1; - public interface ModifyConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:ModifyConfig) - com.google.protobuf.MessageOrBuilder { + /** + * .ModifyConfig modify = 1; + * + * @return Whether the modify field is set. + */ + @java.lang.Override + public boolean hasModify() { + return valueCase_ == 1; + } - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); + /** + * .ModifyConfig modify = 1; + * + * @return The modify. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getModify() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + } - /** - * string value = 2; - */ - java.lang.String getValue(); - /** - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); + /** + * .ModifyConfig modify = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder getModifyOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + } - /** - * string op = 3; - */ - java.lang.String getOp(); - /** - * string op = 3; - */ - com.google.protobuf.ByteString - getOpBytes(); + public static final int TY_FIELD_NUMBER = 2; + private int ty_; + + /** + * int32 Ty = 2; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } - /** - * string addr = 4; - */ - java.lang.String getAddr(); - /** - * string addr = 4; - */ - com.google.protobuf.ByteString - getAddrBytes(); - } - /** - * Protobuf type {@code ModifyConfig} - */ - public static final class ModifyConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ModifyConfig) - ModifyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModifyConfig.newBuilder() to construct. - private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModifyConfig() { - key_ = ""; - value_ = ""; - op_ = ""; - addr_ = ""; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModifyConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_); + } + if (ty_ != 0) { + output.writeInt32(2, ty_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, ty_); + } + 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 cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction other = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getModify().equals(other.getModify())) + return false; + break; case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - op_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_descriptor; - } + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.class, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + MODIFY_FIELD_NUMBER; + hash = (53 * hash) + getModify().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int OP_FIELD_NUMBER = 3; - private volatile java.lang.Object op_; - /** - * string op = 3; - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - op_ = s; - return s; - } - } - /** - * string op = 3; - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int ADDR_FIELD_NUMBER = 4; - private volatile java.lang.Object addr_; - /** - * string addr = 4; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 4; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (!getOpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, op_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (!getOpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, op_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig other = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) obj; - - boolean result = true; - result = result && getKey() - .equals(other.getKey()); - result = result && getValue() - .equals(other.getValue()); - result = result && getOp() - .equals(other.getOp()); - result = result && getAddr() - .equals(other.getAddr()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOp().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ManageAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ManageAction) + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.class, + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ManageAction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction build() { + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction buildPartial() { + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction result = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction( + this); + if (valueCase_ == 1) { + if (modifyBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = modifyBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction other) { + if (other == cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case MODIFY: { + mergeModify(other.getModify()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 modifyBuilder_; + + /** + * .ModifyConfig modify = 1; + * + * @return Whether the modify field is set. + */ + @java.lang.Override + public boolean hasModify() { + return valueCase_ == 1; + } + + /** + * .ModifyConfig modify = 1; + * + * @return The modify. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getModify() { + if (modifyBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return modifyBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + } + } + + /** + * .ModifyConfig modify = 1; + */ + public Builder setModify(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig value) { + if (modifyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + modifyBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .ModifyConfig modify = 1; + */ + public Builder setModify( + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder builderForValue) { + if (modifyBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + modifyBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .ModifyConfig modify = 1; + */ + public Builder mergeModify(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig value) { + if (modifyBuilder_ == null) { + if (valueCase_ == 1 && value_ != cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig + .newBuilder((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + modifyBuilder_.mergeFrom(value); + } + modifyBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .ModifyConfig modify = 1; + */ + public Builder clearModify() { + if (modifyBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + modifyBuilder_.clear(); + } + return this; + } + + /** + * .ModifyConfig modify = 1; + */ + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder getModifyBuilder() { + return getModifyFieldBuilder().getBuilder(); + } + + /** + * .ModifyConfig modify = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder getModifyOrBuilder() { + if ((valueCase_ == 1) && (modifyBuilder_ != null)) { + return modifyBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_; + } + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + } + } + + /** + * .ModifyConfig modify = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getModifyFieldBuilder() { + if (modifyBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + } + modifyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return modifyBuilder_; + } + + private int ty_; + + /** + * int32 Ty = 2; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 Ty = 2; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 Ty = 2; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ManageAction) + } + + // @@protoc_insertion_point(class_scope:ManageAction) + private static final cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction(); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManageAction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ManageAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface ModifyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:ModifyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * string op = 3; + * + * @return The op. + */ + java.lang.String getOp(); + + /** + * string op = 3; + * + * @return The bytes for op. + */ + com.google.protobuf.ByteString getOpBytes(); + + /** + * string addr = 4; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); } + /** * Protobuf type {@code ModifyConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ModifyConfig) - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.class, cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = ""; - - op_ = ""; - - addr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig build() { - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig buildPartial() { - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig result = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig(this); - result.key_ = key_; - result.value_ = value_; - result.op_ = op_; - result.addr_ = addr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig other) { - if (other == cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (!other.getOp().isEmpty()) { - op_ = other.op_; - onChanged(); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private java.lang.Object op_ = ""; - /** - * string op = 3; - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - op_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string op = 3; - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string op = 3; - */ - public Builder setOp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - op_ = value; - onChanged(); - return this; - } - /** - * string op = 3; - */ - public Builder clearOp() { - - op_ = getDefaultInstance().getOp(); - onChanged(); - return this; - } - /** - * string op = 3; - */ - public Builder setOpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - op_ = value; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 4; - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 4; - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 4; - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 4; - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 4; - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ModifyConfig) - } + public static final class ModifyConfig extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ModifyConfig) + ModifyConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ModifyConfig.newBuilder() to construct. + private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - // @@protoc_insertion_point(class_scope:ModifyConfig) - private static final cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig(); - } + private ModifyConfig() { + key_ = ""; + value_ = ""; + op_ = ""; + addr_ = ""; + } - public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModifyConfig(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModifyConfig(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + op_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.class, + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + + /** + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OP_FIELD_NUMBER = 3; + private volatile java.lang.Object op_; + + /** + * string op = 3; + * + * @return The op. + */ + @java.lang.Override + public java.lang.String getOp() { + java.lang.Object ref = op_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + op_ = s; + return s; + } + } + + /** + * string op = 3; + * + * @return The bytes for op. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDR_FIELD_NUMBER = 4; + private volatile java.lang.Object addr_; + + /** + * string addr = 4; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (!getOpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, op_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (!getOpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, op_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_); + } + 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 cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig other = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!getOp().equals(other.getOp())) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOp().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ModifyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ModifyConfig) + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.class, + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + op_ = ""; + + addr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.internal_static_ModifyConfig_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig build() { + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig buildPartial() { + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig result = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig( + this); + result.key_ = key_; + result.value_ = value_; + result.op_ = op_; + result.addr_ = addr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig other) { + if (other == cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (!other.getOp().isEmpty()) { + op_ = other.op_; + onChanged(); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + * string value = 2; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private java.lang.Object op_ = ""; + + /** + * string op = 3; + * + * @return The op. + */ + public java.lang.String getOp() { + java.lang.Object ref = op_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + op_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string op = 3; + * + * @return The bytes for op. + */ + public com.google.protobuf.ByteString getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string op = 3; + * + * @param value + * The op to set. + * + * @return This builder for chaining. + */ + public Builder setOp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + op_ = value; + onChanged(); + return this; + } + + /** + * string op = 3; + * + * @return This builder for chaining. + */ + public Builder clearOp() { + + op_ = getDefaultInstance().getOp(); + onChanged(); + return this; + } + + /** + * string op = 3; + * + * @param value + * The bytes for op to set. + * + * @return This builder for chaining. + */ + public Builder setOpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + op_ = value; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 4; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 4; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 4; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 4; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ModifyConfig) + } + + // @@protoc_insertion_point(class_scope:ModifyConfig) + private static final cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig(); + } + + public static cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.ManageProtobuf.ModifyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ManageAction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ManageAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ModifyConfig_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ModifyConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ManageAction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ManageAction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ModifyConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ModifyConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014Manage.proto\"D\n\014ManageAction\022\037\n\006modify" + - "\030\001 \001(\0132\r.ModifyConfigH\000\022\n\n\002Ty\030\002 \001(\005B\007\n\005v" + - "alue\"D\n\014ModifyConfig\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t\022\n\n\002op\030\003 \001(\t\022\014\n\004addr\030\004 \001(\tB\"\n\030cn" + - ".chain33.javasdk.modelB\006Manageb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_ManageAction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ManageAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ManageAction_descriptor, - new java.lang.String[] { "Modify", "Ty", "Value", }); - internal_static_ModifyConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ModifyConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ModifyConfig_descriptor, - new java.lang.String[] { "Key", "Value", "Op", "Addr", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\014Manage.proto\"D\n\014ManageAction\022\037\n\006modify" + + "\030\001 \001(\0132\r.ModifyConfigH\000\022\n\n\002Ty\030\002 \001(\005B\007\n\005v" + + "alue\"D\n\014ModifyConfig\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t\022\n\n\002op\030\003 \001(\t\022\014\n\004addr\030\004 \001(\tB3\n!cn" + + ".chain33.javasdk.model.protobufB\016ManageP" + "rotobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ManageAction_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ManageAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ManageAction_descriptor, new java.lang.String[] { "Modify", "Ty", "Value", }); + internal_static_ModifyConfig_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_ModifyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ModifyConfig_descriptor, new java.lang.String[] { "Key", "Value", "Op", "Addr", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/P2pService.java b/src/main/java/cn/chain33/javasdk/model/protobuf/P2pService.java index 61c783c..51a83cd 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/P2pService.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/P2pService.java @@ -4,1290 +4,683 @@ package cn.chain33.javasdk.model.protobuf; public final class P2pService { - private P2pService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface P2PGetPeerInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetPeerInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     */ p2p版本
-     * 
- * - * int32 version = 1; - * @return The version. - */ - int getVersion(); - } - /** - *
-   **
-   * 请求获取远程节点的节点信息
-   * 
- * - * Protobuf type {@code P2PGetPeerInfo} - */ - public static final class P2PGetPeerInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetPeerInfo) - P2PGetPeerInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetPeerInfo.newBuilder() to construct. - private P2PGetPeerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetPeerInfo() { + private P2pService() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetPeerInfo(); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetPeerInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_descriptor; + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.Builder.class); + public interface P2PGetPeerInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetPeerInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         */ p2p版本
+         * 
+ * + * int32 version = 1; + * + * @return The version. + */ + int getVersion(); } - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; /** *
-     */ p2p版本
+     **
+     * 请求获取远程节点的节点信息
      * 
* - * int32 version = 1; - * @return The version. + * Protobuf type {@code P2PGetPeerInfo} */ - public int getVersion() { - return version_; - } + public static final class P2PGetPeerInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetPeerInfo) + P2PGetPeerInfoOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use P2PGetPeerInfo.newBuilder() to construct. + private P2PGetPeerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private P2PGetPeerInfo() { + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetPeerInfo(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private P2PGetPeerInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * 请求获取远程节点的节点信息
-     * 
- * - * Protobuf type {@code P2PGetPeerInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetPeerInfo) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo(this); - result.version_ = version_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - *
-       */ p2p版本
-       * 
- * - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } - /** - *
-       */ p2p版本
-       * 
- * - * int32 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-       */ p2p版本
-       * 
- * - * int32 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetPeerInfo) - } + /** + *
+         */ p2p版本
+         * 
+ * + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } - // @@protoc_insertion_point(class_scope:P2PGetPeerInfo) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo(); - } + private byte memoizedIsInitialized = -1; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetPeerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetPeerInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - } + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public interface P2PPeerInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PPeerInfo) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) obj; - /** - *
-     */节点的IP地址
-     * 
- * - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - *
-     */节点的IP地址
-     * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + if (getVersion() != other.getVersion()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - *
-     */节点的外网端口
-     * 
- * - * int32 port = 2; - * @return The port. - */ - int getPort(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - *
-     */节点的名称
-     * 
- * - * string name = 3; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     */节点的名称
-     * 
- * - * string name = 3; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - *
-     */ mempool 的大小
-     * 
- * - * int32 mempoolSize = 4; - * @return The mempoolSize. - */ - int getMempoolSize(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - *
-     */节点当前高度头部数据
-     * 
- * - * .Header header = 5; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - *
-     */节点当前高度头部数据
-     * 
- * - * .Header header = 5; - * @return The header. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); - /** - *
-     */节点当前高度头部数据
-     * 
- * - * .Header header = 5; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * string version = 6; - * @return The version. - */ - java.lang.String getVersion(); - /** - * string version = 6; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * string localDBVersion = 7; - * @return The localDBVersion. - */ - java.lang.String getLocalDBVersion(); - /** - * string localDBVersion = 7; - * @return The bytes for localDBVersion. - */ - com.google.protobuf.ByteString - getLocalDBVersionBytes(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * string storeDBVersion = 8; - * @return The storeDBVersion. - */ - java.lang.String getStoreDBVersion(); - /** - * string storeDBVersion = 8; - * @return The bytes for storeDBVersion. - */ - com.google.protobuf.ByteString - getStoreDBVersionBytes(); - } - /** - *
-   **
-   * 节点信息
-   * 
- * - * Protobuf type {@code P2PPeerInfo} - */ - public static final class P2PPeerInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PPeerInfo) - P2PPeerInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PPeerInfo.newBuilder() to construct. - private P2PPeerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PPeerInfo() { - addr_ = ""; - name_ = ""; - version_ = ""; - localDBVersion_ = ""; - storeDBVersion_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PPeerInfo(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PPeerInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } - addr_ = s; - break; + /** + *
+         **
+         * 请求获取远程节点的节点信息
+         * 
+ * + * Protobuf type {@code P2PGetPeerInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetPeerInfo) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_descriptor; } - case 16: { - port_ = input.readInt32(); - break; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.Builder.class); } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - case 32: { - mempoolSize_ = input.readInt32(); - break; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - case 42: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - break; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + return this; } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - localDBVersion_ = s; - break; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerInfo_descriptor; } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - storeDBVersion_ = s; - break; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.getDefaultInstance(); } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo( + this); + result.version_ = version_; + onBuilt(); + return result; + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - *
-     */节点的IP地址
-     * 
- * - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - *
-     */节点的IP地址
-     * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int PORT_FIELD_NUMBER = 2; - private int port_; - /** - *
-     */节点的外网端口
-     * 
- * - * int32 port = 2; - * @return The port. - */ - public int getPort() { - return port_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     */节点的名称
-     * 
- * - * string name = 3; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     */节点的名称
-     * 
- * - * string name = 3; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int MEMPOOLSIZE_FIELD_NUMBER = 4; - private int mempoolSize_; - /** - *
-     */ mempool 的大小
-     * 
- * - * int32 mempoolSize = 4; - * @return The mempoolSize. - */ - public int getMempoolSize() { - return mempoolSize_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int HEADER_FIELD_NUMBER = 5; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - /** - *
-     */节点当前高度头部数据
-     * 
- * - * .Header header = 5; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return header_ != null; - } - /** - *
-     */节点当前高度头部数据
-     * 
- * - * .Header header = 5; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - /** - *
-     */节点当前高度头部数据
-     * 
- * - * .Header header = 5; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object version_; - /** - * string version = 6; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 6; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int LOCALDBVERSION_FIELD_NUMBER = 7; - private volatile java.lang.Object localDBVersion_; - /** - * string localDBVersion = 7; - * @return The localDBVersion. - */ - public java.lang.String getLocalDBVersion() { - java.lang.Object ref = localDBVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localDBVersion_ = s; - return s; - } - } - /** - * string localDBVersion = 7; - * @return The bytes for localDBVersion. - */ - public com.google.protobuf.ByteString - getLocalDBVersionBytes() { - java.lang.Object ref = localDBVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int STOREDBVERSION_FIELD_NUMBER = 8; - private volatile java.lang.Object storeDBVersion_; - /** - * string storeDBVersion = 8; - * @return The storeDBVersion. - */ - public java.lang.String getStoreDBVersion() { - java.lang.Object ref = storeDBVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storeDBVersion_ = s; - return s; - } - } - /** - * string storeDBVersion = 8; - * @return The bytes for storeDBVersion. - */ - public com.google.protobuf.ByteString - getStoreDBVersionBytes() { - java.lang.Object ref = storeDBVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storeDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.getDefaultInstance()) + return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (port_ != 0) { - output.writeInt32(2, port_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (mempoolSize_ != 0) { - output.writeInt32(4, mempoolSize_); - } - if (header_ != null) { - output.writeMessage(5, getHeader()); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); - } - if (!getLocalDBVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, localDBVersion_); - } - if (!getStoreDBVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, storeDBVersion_); - } - unknownFields.writeTo(output); - } + private int version_; + + /** + *
+             */ p2p版本
+             * 
+ * + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (mempoolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, mempoolSize_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getHeader()); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); - } - if (!getLocalDBVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, localDBVersion_); - } - if (!getStoreDBVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, storeDBVersion_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+             */ p2p版本
+             * 
+ * + * int32 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (getPort() - != other.getPort()) return false; - if (!getName() - .equals(other.getName())) return false; - if (getMempoolSize() - != other.getMempoolSize()) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getLocalDBVersion() - .equals(other.getLocalDBVersion())) return false; - if (!getStoreDBVersion() - .equals(other.getStoreDBVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + *
+             */ p2p版本
+             * 
+ * + * int32 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + MEMPOOLSIZE_FIELD_NUMBER; - hash = (53 * hash) + getMempoolSize(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + LOCALDBVERSION_FIELD_NUMBER; - hash = (53 * hash) + getLocalDBVersion().hashCode(); - hash = (37 * hash) + STOREDBVERSION_FIELD_NUMBER; - hash = (53 * hash) + getStoreDBVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(builder_scope:P2PGetPeerInfo) + } + + // @@protoc_insertion_point(class_scope:P2PGetPeerInfo) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetPeerInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetPeerInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PPeerInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PPeerInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         */节点的IP地址
+         * 
+ * + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + *
+         */节点的IP地址
+         * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + *
+         */节点的外网端口
+         * 
+ * + * int32 port = 2; + * + * @return The port. + */ + int getPort(); + + /** + *
+         */节点的名称
+         * 
+ * + * string name = 3; + * + * @return The name. + */ + java.lang.String getName(); + + /** + *
+         */节点的名称
+         * 
+ * + * string name = 3; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + *
+         */ mempool 的大小
+         * 
+ * + * int32 mempoolSize = 4; + * + * @return The mempoolSize. + */ + int getMempoolSize(); + + /** + *
+         */节点当前高度头部数据
+         * 
+ * + * .Header header = 5; + * + * @return Whether the header field is set. + */ + boolean hasHeader(); + + /** + *
+         */节点当前高度头部数据
+         * 
+ * + * .Header header = 5; + * + * @return The header. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); + + /** + *
+         */节点当前高度头部数据
+         * 
+ * + * .Header header = 5; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + + /** + * string version = 6; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * string version = 6; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * string localDBVersion = 7; + * + * @return The localDBVersion. + */ + java.lang.String getLocalDBVersion(); + + /** + * string localDBVersion = 7; + * + * @return The bytes for localDBVersion. + */ + com.google.protobuf.ByteString getLocalDBVersionBytes(); + + /** + * string storeDBVersion = 8; + * + * @return The storeDBVersion. + */ + java.lang.String getStoreDBVersion(); + + /** + * string storeDBVersion = 8; + * + * @return The bytes for storeDBVersion. + */ + com.google.protobuf.ByteString getStoreDBVersionBytes(); } + /** *
      **
@@ -1296,31739 +689,33546 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code P2PPeerInfo}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:P2PPeerInfo)
-        cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder.class);
-      }
-
-      // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.newBuilder()
-      private Builder() {
-        maybeForceBuilderInitialization();
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
-      }
-      @java.lang.Override
-      public Builder clear() {
-        super.clear();
-        addr_ = "";
-
-        port_ = 0;
-
-        name_ = "";
-
-        mempoolSize_ = 0;
-
-        if (headerBuilder_ == null) {
-          header_ = null;
-        } else {
-          header_ = null;
-          headerBuilder_ = null;
-        }
-        version_ = "";
-
-        localDBVersion_ = "";
-
-        storeDBVersion_ = "";
-
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_descriptor;
-      }
-
-      @java.lang.Override
-      public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getDefaultInstanceForType() {
-        return cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo build() {
-        cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo buildPartial() {
-        cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo(this);
-        result.addr_ = addr_;
-        result.port_ = port_;
-        result.name_ = name_;
-        result.mempoolSize_ = mempoolSize_;
-        if (headerBuilder_ == null) {
-          result.header_ = header_;
-        } else {
-          result.header_ = headerBuilder_.build();
-        }
-        result.version_ = version_;
-        result.localDBVersion_ = localDBVersion_;
-        result.storeDBVersion_ = storeDBVersion_;
-        onBuilt();
-        return result;
-      }
-
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.setField(field, value);
-      }
-      @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-      @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-      @java.lang.Override
-      public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo) {
-          return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo other) {
-        if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance()) return this;
-        if (!other.getAddr().isEmpty()) {
-          addr_ = other.addr_;
-          onChanged();
-        }
-        if (other.getPort() != 0) {
-          setPort(other.getPort());
-        }
-        if (!other.getName().isEmpty()) {
-          name_ = other.name_;
-          onChanged();
-        }
-        if (other.getMempoolSize() != 0) {
-          setMempoolSize(other.getMempoolSize());
-        }
-        if (other.hasHeader()) {
-          mergeHeader(other.getHeader());
-        }
-        if (!other.getVersion().isEmpty()) {
-          version_ = other.version_;
-          onChanged();
-        }
-        if (!other.getLocalDBVersion().isEmpty()) {
-          localDBVersion_ = other.localDBVersion_;
-          onChanged();
-        }
-        if (!other.getStoreDBVersion().isEmpty()) {
-          storeDBVersion_ = other.storeDBVersion_;
-          onChanged();
-        }
-        this.mergeUnknownFields(other.unknownFields);
-        onChanged();
-        return this;
-      }
-
-      @java.lang.Override
-      public final boolean isInitialized() {
-        return true;
-      }
-
-      @java.lang.Override
-      public Builder mergeFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-
-      private java.lang.Object addr_ = "";
-      /**
-       * 
-       */节点的IP地址
-       * 
- * - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       */节点的IP地址
-       * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       */节点的IP地址
-       * 
- * - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - *
-       */节点的IP地址
-       * 
- * - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - *
-       */节点的IP地址
-       * 
- * - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private int port_ ; - /** - *
-       */节点的外网端口
-       * 
- * - * int32 port = 2; - * @return The port. - */ - public int getPort() { - return port_; - } - /** - *
-       */节点的外网端口
-       * 
- * - * int32 port = 2; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - *
-       */节点的外网端口
-       * 
- * - * int32 port = 2; - * @return This builder for chaining. - */ - public Builder clearPort() { - - port_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       */节点的名称
-       * 
- * - * string name = 3; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       */节点的名称
-       * 
- * - * string name = 3; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       */节点的名称
-       * 
- * - * string name = 3; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       */节点的名称
-       * 
- * - * string name = 3; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       */节点的名称
-       * 
- * - * string name = 3; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int mempoolSize_ ; - /** - *
-       */ mempool 的大小
-       * 
- * - * int32 mempoolSize = 4; - * @return The mempoolSize. - */ - public int getMempoolSize() { - return mempoolSize_; - } - /** - *
-       */ mempool 的大小
-       * 
- * - * int32 mempoolSize = 4; - * @param value The mempoolSize to set. - * @return This builder for chaining. - */ - public Builder setMempoolSize(int value) { - - mempoolSize_ = value; - onChanged(); - return this; - } - /** - *
-       */ mempool 的大小
-       * 
- * - * int32 mempoolSize = 4; - * @return This builder for chaining. - */ - public Builder clearMempoolSize() { - - mempoolSize_ = 0; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> headerBuilder_; - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - */ - public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - */ - public Builder setHeader( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - */ - public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - } - /** - *
-       */节点当前高度头部数据
-       * 
- * - * .Header header = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private java.lang.Object version_ = ""; - /** - * string version = 6; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 6; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 6; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 6; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 6; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object localDBVersion_ = ""; - /** - * string localDBVersion = 7; - * @return The localDBVersion. - */ - public java.lang.String getLocalDBVersion() { - java.lang.Object ref = localDBVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localDBVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string localDBVersion = 7; - * @return The bytes for localDBVersion. - */ - public com.google.protobuf.ByteString - getLocalDBVersionBytes() { - java.lang.Object ref = localDBVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string localDBVersion = 7; - * @param value The localDBVersion to set. - * @return This builder for chaining. - */ - public Builder setLocalDBVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - localDBVersion_ = value; - onChanged(); - return this; - } - /** - * string localDBVersion = 7; - * @return This builder for chaining. - */ - public Builder clearLocalDBVersion() { - - localDBVersion_ = getDefaultInstance().getLocalDBVersion(); - onChanged(); - return this; - } - /** - * string localDBVersion = 7; - * @param value The bytes for localDBVersion to set. - * @return This builder for chaining. - */ - public Builder setLocalDBVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - localDBVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object storeDBVersion_ = ""; - /** - * string storeDBVersion = 8; - * @return The storeDBVersion. - */ - public java.lang.String getStoreDBVersion() { - java.lang.Object ref = storeDBVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storeDBVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string storeDBVersion = 8; - * @return The bytes for storeDBVersion. - */ - public com.google.protobuf.ByteString - getStoreDBVersionBytes() { - java.lang.Object ref = storeDBVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storeDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string storeDBVersion = 8; - * @param value The storeDBVersion to set. - * @return This builder for chaining. - */ - public Builder setStoreDBVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storeDBVersion_ = value; - onChanged(); - return this; - } - /** - * string storeDBVersion = 8; - * @return This builder for chaining. - */ - public Builder clearStoreDBVersion() { - - storeDBVersion_ = getDefaultInstance().getStoreDBVersion(); - onChanged(); - return this; - } - /** - * string storeDBVersion = 8; - * @param value The bytes for storeDBVersion to set. - * @return This builder for chaining. - */ - public Builder setStoreDBVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storeDBVersion_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PPeerInfo) - } - - // @@protoc_insertion_point(class_scope:P2PPeerInfo) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo(); - } + public static final class P2PPeerInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PPeerInfo) + P2PPeerInfoOrBuilder { + private static final long serialVersionUID = 0L; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PPeerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PPeerInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Use P2PPeerInfo.newBuilder() to construct. + private P2PPeerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private P2PPeerInfo() { + addr_ = ""; + name_ = ""; + version_ = ""; + localDBVersion_ = ""; + storeDBVersion_ = ""; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PPeerInfo(); + } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public interface P2PVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PVersion) - com.google.protobuf.MessageOrBuilder { + private P2PPeerInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 16: { + + port_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 32: { + + mempoolSize_ = input.readInt32(); + break; + } + case 42: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + localDBVersion_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + storeDBVersion_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - /** - *
-     */当前版本
-     * 
- * - * int32 version = 1; - * @return The version. - */ - int getVersion(); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_descriptor; + } - /** - *
-     */服务类型
-     * 
- * - * int64 service = 2; - * @return The service. - */ - long getService(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder.class); + } - /** - *
-     */时间戳
-     * 
- * - * int64 timestamp = 3; - * @return The timestamp. - */ - long getTimestamp(); + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; - /** - *
-     */数据包的目的地址
-     * 
- * - * string addrRecv = 4; - * @return The addrRecv. - */ - java.lang.String getAddrRecv(); - /** - *
-     */数据包的目的地址
-     * 
- * - * string addrRecv = 4; - * @return The bytes for addrRecv. - */ - com.google.protobuf.ByteString - getAddrRecvBytes(); + /** + *
+         */节点的IP地址
+         * 
+ * + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } - /** - *
-     */数据发送的源地址
-     * 
- * - * string addrFrom = 5; - * @return The addrFrom. - */ - java.lang.String getAddrFrom(); - /** - *
-     */数据发送的源地址
-     * 
- * - * string addrFrom = 5; - * @return The bytes for addrFrom. - */ - com.google.protobuf.ByteString - getAddrFromBytes(); + /** + *
+         */节点的IP地址
+         * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - *
-     */随机数
-     * 
- * - * int64 nonce = 6; - * @return The nonce. - */ - long getNonce(); + public static final int PORT_FIELD_NUMBER = 2; + private int port_; + + /** + *
+         */节点的外网端口
+         * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + + /** + *
+         */节点的名称
+         * 
+ * + * string name = 3; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } - /** - *
-     */用户代理
-     * 
- * - * string userAgent = 7; - * @return The userAgent. - */ - java.lang.String getUserAgent(); - /** - *
-     */用户代理
-     * 
- * - * string userAgent = 7; - * @return The bytes for userAgent. - */ - com.google.protobuf.ByteString - getUserAgentBytes(); + /** + *
+         */节点的名称
+         * 
+ * + * string name = 3; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - *
-     */当前节点的高度
-     * 
- * - * int64 startHeight = 8; - * @return The startHeight. - */ - long getStartHeight(); - } - /** - *
-   **
-   * p2p节点间发送版本数据结构
-   * 
- * - * Protobuf type {@code P2PVersion} - */ - public static final class P2PVersion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PVersion) - P2PVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PVersion.newBuilder() to construct. - private P2PVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PVersion() { - addrRecv_ = ""; - addrFrom_ = ""; - userAgent_ = ""; - } + public static final int MEMPOOLSIZE_FIELD_NUMBER = 4; + private int mempoolSize_; + + /** + *
+         */ mempool 的大小
+         * 
+ * + * int32 mempoolSize = 4; + * + * @return The mempoolSize. + */ + @java.lang.Override + public int getMempoolSize() { + return mempoolSize_; + } + + public static final int HEADER_FIELD_NUMBER = 5; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + + /** + *
+         */节点当前高度头部数据
+         * 
+ * + * .Header header = 5; + * + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + + /** + *
+         */节点当前高度头部数据
+         * 
+ * + * .Header header = 5; + * + * @return The header. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + + /** + *
+         */节点当前高度头部数据
+         * 
+ * + * .Header header = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int VERSION_FIELD_NUMBER = 6; + private volatile java.lang.Object version_; + + /** + * string version = 6; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PVersion(); - } + /** + * string version = 6; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { + public static final int LOCALDBVERSION_FIELD_NUMBER = 7; + private volatile java.lang.Object localDBVersion_; - version_ = input.readInt32(); - break; + /** + * string localDBVersion = 7; + * + * @return The localDBVersion. + */ + @java.lang.Override + public java.lang.String getLocalDBVersion() { + java.lang.Object ref = localDBVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localDBVersion_ = s; + return s; } - case 16: { + } - service_ = input.readInt64(); - break; + /** + * string localDBVersion = 7; + * + * @return The bytes for localDBVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocalDBVersionBytes() { + java.lang.Object ref = localDBVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + localDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 24: { + } - timestamp_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + public static final int STOREDBVERSION_FIELD_NUMBER = 8; + private volatile java.lang.Object storeDBVersion_; - addrRecv_ = s; - break; + /** + * string storeDBVersion = 8; + * + * @return The storeDBVersion. + */ + @java.lang.Override + public java.lang.String getStoreDBVersion() { + java.lang.Object ref = storeDBVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storeDBVersion_ = s; + return s; } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + } - addrFrom_ = s; - break; + /** + * string storeDBVersion = 8; + * + * @return The bytes for storeDBVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStoreDBVersionBytes() { + java.lang.Object ref = storeDBVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storeDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 48: { + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } - nonce_ = input.readInt64(); - break; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (mempoolSize_ != 0) { + output.writeInt32(4, mempoolSize_); } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + if (header_ != null) { + output.writeMessage(5, getHeader()); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); + } + if (!getLocalDBVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, localDBVersion_); + } + if (!getStoreDBVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, storeDBVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - userAgent_ = s; - break; + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - case 64: { + if (mempoolSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, mempoolSize_); + } + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHeader()); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); + } + if (!getLocalDBVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, localDBVersion_); + } + if (!getStoreDBVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, storeDBVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - startHeight_ = input.readInt64(); - break; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (getPort() != other.getPort()) + return false; + if (!getName().equals(other.getName())) + return false; + if (getMempoolSize() != other.getMempoolSize()) + return false; + if (hasHeader() != other.hasHeader()) + return false; + if (hasHeader()) { + if (!getHeader().equals(other.getHeader())) + return false; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + if (!getVersion().equals(other.getVersion())) + return false; + if (!getLocalDBVersion().equals(other.getLocalDBVersion())) + return false; + if (!getStoreDBVersion().equals(other.getStoreDBVersion())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MEMPOOLSIZE_FIELD_NUMBER; + hash = (53 * hash) + getMempoolSize(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + LOCALDBVERSION_FIELD_NUMBER; + hash = (53 * hash) + getLocalDBVersion().hashCode(); + hash = (37 * hash) + STOREDBVERSION_FIELD_NUMBER; + hash = (53 * hash) + getStoreDBVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - *
-     */当前版本
-     * 
- * - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int SERVICE_FIELD_NUMBER = 2; - private long service_; - /** - *
-     */服务类型
-     * 
- * - * int64 service = 2; - * @return The service. - */ - public long getService() { - return service_; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_; - /** - *
-     */时间戳
-     * 
- * - * int64 timestamp = 3; - * @return The timestamp. - */ - public long getTimestamp() { - return timestamp_; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int ADDRRECV_FIELD_NUMBER = 4; - private volatile java.lang.Object addrRecv_; - /** - *
-     */数据包的目的地址
-     * 
- * - * string addrRecv = 4; - * @return The addrRecv. - */ - public java.lang.String getAddrRecv() { - java.lang.Object ref = addrRecv_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addrRecv_ = s; - return s; - } - } - /** - *
-     */数据包的目的地址
-     * 
- * - * string addrRecv = 4; - * @return The bytes for addrRecv. - */ - public com.google.protobuf.ByteString - getAddrRecvBytes() { - java.lang.Object ref = addrRecv_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addrRecv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int ADDRFROM_FIELD_NUMBER = 5; - private volatile java.lang.Object addrFrom_; - /** - *
-     */数据发送的源地址
-     * 
- * - * string addrFrom = 5; - * @return The addrFrom. - */ - public java.lang.String getAddrFrom() { - java.lang.Object ref = addrFrom_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addrFrom_ = s; - return s; - } - } - /** - *
-     */数据发送的源地址
-     * 
- * - * string addrFrom = 5; - * @return The bytes for addrFrom. - */ - public com.google.protobuf.ByteString - getAddrFromBytes() { - java.lang.Object ref = addrFrom_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addrFrom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int NONCE_FIELD_NUMBER = 6; - private long nonce_; - /** - *
-     */随机数
-     * 
- * - * int64 nonce = 6; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int USERAGENT_FIELD_NUMBER = 7; - private volatile java.lang.Object userAgent_; - /** - *
-     */用户代理
-     * 
- * - * string userAgent = 7; - * @return The userAgent. - */ - public java.lang.String getUserAgent() { - java.lang.Object ref = userAgent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userAgent_ = s; - return s; - } - } - /** - *
-     */用户代理
-     * 
- * - * string userAgent = 7; - * @return The bytes for userAgent. - */ - public com.google.protobuf.ByteString - getUserAgentBytes() { - java.lang.Object ref = userAgent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int STARTHEIGHT_FIELD_NUMBER = 8; - private long startHeight_; - /** - *
-     */当前节点的高度
-     * 
- * - * int64 startHeight = 8; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - if (service_ != 0L) { - output.writeInt64(2, service_); - } - if (timestamp_ != 0L) { - output.writeInt64(3, timestamp_); - } - if (!getAddrRecvBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addrRecv_); - } - if (!getAddrFromBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, addrFrom_); - } - if (nonce_ != 0L) { - output.writeInt64(6, nonce_); - } - if (!getUserAgentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, userAgent_); - } - if (startHeight_ != 0L) { - output.writeInt64(8, startHeight_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - if (service_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, service_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timestamp_); - } - if (!getAddrRecvBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addrRecv_); - } - if (!getAddrFromBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, addrFrom_); - } - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, nonce_); - } - if (!getUserAgentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, userAgent_); - } - if (startHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, startHeight_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) obj; - - if (getVersion() - != other.getVersion()) return false; - if (getService() - != other.getService()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getAddrRecv() - .equals(other.getAddrRecv())) return false; - if (!getAddrFrom() - .equals(other.getAddrFrom())) return false; - if (getNonce() - != other.getNonce()) return false; - if (!getUserAgent() - .equals(other.getUserAgent())) return false; - if (getStartHeight() - != other.getStartHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getService()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + ADDRRECV_FIELD_NUMBER; - hash = (53 * hash) + getAddrRecv().hashCode(); - hash = (37 * hash) + ADDRFROM_FIELD_NUMBER; - hash = (53 * hash) + getAddrFrom().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (37 * hash) + USERAGENT_FIELD_NUMBER; - hash = (53 * hash) + getUserAgent().hashCode(); - hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p节点间发送版本数据结构
-     * 
- * - * Protobuf type {@code P2PVersion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PVersion) - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - service_ = 0L; - - timestamp_ = 0L; - - addrRecv_ = ""; - - addrFrom_ = ""; - - nonce_ = 0L; - - userAgent_ = ""; - - startHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion(this); - result.version_ = version_; - result.service_ = service_; - result.timestamp_ = timestamp_; - result.addrRecv_ = addrRecv_; - result.addrFrom_ = addrFrom_; - result.nonce_ = nonce_; - result.userAgent_ = userAgent_; - result.startHeight_ = startHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.getService() != 0L) { - setService(other.getService()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (!other.getAddrRecv().isEmpty()) { - addrRecv_ = other.addrRecv_; - onChanged(); - } - if (!other.getAddrFrom().isEmpty()) { - addrFrom_ = other.addrFrom_; - onChanged(); - } - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (!other.getUserAgent().isEmpty()) { - userAgent_ = other.userAgent_; - onChanged(); - } - if (other.getStartHeight() != 0L) { - setStartHeight(other.getStartHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - *
-       */当前版本
-       * 
- * - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } - /** - *
-       */当前版本
-       * 
- * - * int32 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-       */当前版本
-       * 
- * - * int32 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private long service_ ; - /** - *
-       */服务类型
-       * 
- * - * int64 service = 2; - * @return The service. - */ - public long getService() { - return service_; - } - /** - *
-       */服务类型
-       * 
- * - * int64 service = 2; - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(long value) { - - service_ = value; - onChanged(); - return this; - } - /** - *
-       */服务类型
-       * 
- * - * int64 service = 2; - * @return This builder for chaining. - */ - public Builder clearService() { - - service_ = 0L; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - *
-       */时间戳
-       * 
- * - * int64 timestamp = 3; - * @return The timestamp. - */ - public long getTimestamp() { - return timestamp_; - } - /** - *
-       */时间戳
-       * 
- * - * int64 timestamp = 3; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - *
-       */时间戳
-       * 
- * - * int64 timestamp = 3; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object addrRecv_ = ""; - /** - *
-       */数据包的目的地址
-       * 
- * - * string addrRecv = 4; - * @return The addrRecv. - */ - public java.lang.String getAddrRecv() { - java.lang.Object ref = addrRecv_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addrRecv_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       */数据包的目的地址
-       * 
- * - * string addrRecv = 4; - * @return The bytes for addrRecv. - */ - public com.google.protobuf.ByteString - getAddrRecvBytes() { - java.lang.Object ref = addrRecv_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addrRecv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       */数据包的目的地址
-       * 
- * - * string addrRecv = 4; - * @param value The addrRecv to set. - * @return This builder for chaining. - */ - public Builder setAddrRecv( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addrRecv_ = value; - onChanged(); - return this; - } - /** - *
-       */数据包的目的地址
-       * 
- * - * string addrRecv = 4; - * @return This builder for chaining. - */ - public Builder clearAddrRecv() { - - addrRecv_ = getDefaultInstance().getAddrRecv(); - onChanged(); - return this; - } - /** - *
-       */数据包的目的地址
-       * 
- * - * string addrRecv = 4; - * @param value The bytes for addrRecv to set. - * @return This builder for chaining. - */ - public Builder setAddrRecvBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addrRecv_ = value; - onChanged(); - return this; - } - - private java.lang.Object addrFrom_ = ""; - /** - *
-       */数据发送的源地址
-       * 
- * - * string addrFrom = 5; - * @return The addrFrom. - */ - public java.lang.String getAddrFrom() { - java.lang.Object ref = addrFrom_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addrFrom_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       */数据发送的源地址
-       * 
- * - * string addrFrom = 5; - * @return The bytes for addrFrom. - */ - public com.google.protobuf.ByteString - getAddrFromBytes() { - java.lang.Object ref = addrFrom_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addrFrom_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       */数据发送的源地址
-       * 
- * - * string addrFrom = 5; - * @param value The addrFrom to set. - * @return This builder for chaining. - */ - public Builder setAddrFrom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addrFrom_ = value; - onChanged(); - return this; - } - /** - *
-       */数据发送的源地址
-       * 
- * - * string addrFrom = 5; - * @return This builder for chaining. - */ - public Builder clearAddrFrom() { - - addrFrom_ = getDefaultInstance().getAddrFrom(); - onChanged(); - return this; - } - /** - *
-       */数据发送的源地址
-       * 
- * - * string addrFrom = 5; - * @param value The bytes for addrFrom to set. - * @return This builder for chaining. - */ - public Builder setAddrFromBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addrFrom_ = value; - onChanged(); - return this; - } - - private long nonce_ ; - /** - *
-       */随机数
-       * 
- * - * int64 nonce = 6; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - *
-       */随机数
-       * 
- * - * int64 nonce = 6; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - *
-       */随机数
-       * 
- * - * int64 nonce = 6; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object userAgent_ = ""; - /** - *
-       */用户代理
-       * 
- * - * string userAgent = 7; - * @return The userAgent. - */ - public java.lang.String getUserAgent() { - java.lang.Object ref = userAgent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userAgent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       */用户代理
-       * 
- * - * string userAgent = 7; - * @return The bytes for userAgent. - */ - public com.google.protobuf.ByteString - getUserAgentBytes() { - java.lang.Object ref = userAgent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       */用户代理
-       * 
- * - * string userAgent = 7; - * @param value The userAgent to set. - * @return This builder for chaining. - */ - public Builder setUserAgent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - userAgent_ = value; - onChanged(); - return this; - } - /** - *
-       */用户代理
-       * 
- * - * string userAgent = 7; - * @return This builder for chaining. - */ - public Builder clearUserAgent() { - - userAgent_ = getDefaultInstance().getUserAgent(); - onChanged(); - return this; - } - /** - *
-       */用户代理
-       * 
- * - * string userAgent = 7; - * @param value The bytes for userAgent to set. - * @return This builder for chaining. - */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - userAgent_ = value; - onChanged(); - return this; - } - - private long startHeight_ ; - /** - *
-       */当前节点的高度
-       * 
- * - * int64 startHeight = 8; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; - } - /** - *
-       */当前节点的高度
-       * 
- * - * int64 startHeight = 8; - * @param value The startHeight to set. - * @return This builder for chaining. - */ - public Builder setStartHeight(long value) { - - startHeight_ = value; - onChanged(); - return this; - } - /** - *
-       */当前节点的高度
-       * 
- * - * int64 startHeight = 8; - * @return This builder for chaining. - */ - public Builder clearStartHeight() { - - startHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PVersion) - } + /** + *
+         **
+         * 节点信息
+         * 
+ * + * Protobuf type {@code P2PPeerInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PPeerInfo) + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_descriptor; + } - // @@protoc_insertion_point(class_scope:P2PVersion) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder.class); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; - } + port_ = 0; - public interface P2PVerAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PVerAck) - com.google.protobuf.MessageOrBuilder { + name_ = ""; - /** - * int32 version = 1; - * @return The version. - */ - int getVersion(); + mempoolSize_ = 0; - /** - * int64 service = 2; - * @return The service. - */ - long getService(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + version_ = ""; - /** - * int64 nonce = 3; - * @return The nonce. - */ - long getNonce(); - } - /** - *
-   **
-   * P2P 版本返回
-   * 
- * - * Protobuf type {@code P2PVerAck} - */ - public static final class P2PVerAck extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PVerAck) - P2PVerAckOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PVerAck.newBuilder() to construct. - private P2PVerAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PVerAck() { - } + localDBVersion_ = ""; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PVerAck(); - } + storeDBVersion_ = ""; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PVerAck( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { + return this; + } - version_ = input.readInt32(); - break; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPeerInfo_descriptor; } - case 16: { - service_ = input.readInt64(); - break; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance(); } - case 24: { - nonce_ = input.readInt64(); - break; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo( + this); + result.addr_ = addr_; + result.port_ = port_; + result.name_ = name_; + result.mempoolSize_ = mempoolSize_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.version_ = version_; + result.localDBVersion_ = localDBVersion_; + result.storeDBVersion_ = storeDBVersion_; + onBuilt(); + return result; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.Builder.class); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int SERVICE_FIELD_NUMBER = 2; - private long service_; - /** - * int64 service = 2; - * @return The service. - */ - public long getService() { - return service_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int NONCE_FIELD_NUMBER = 3; - private long nonce_; - /** - * int64 nonce = 3; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - if (service_ != 0L) { - output.writeInt64(2, service_); - } - if (nonce_ != 0L) { - output.writeInt64(3, nonce_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - if (service_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, service_); - } - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, nonce_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getMempoolSize() != 0) { + setMempoolSize(other.getMempoolSize()); + } + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getLocalDBVersion().isEmpty()) { + localDBVersion_ = other.localDBVersion_; + onChanged(); + } + if (!other.getStoreDBVersion().isEmpty()) { + storeDBVersion_ = other.storeDBVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck) obj; - - if (getVersion() - != other.getVersion()) return false; - if (getService() - != other.getService()) return false; - if (getNonce() - != other.getNonce()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getService()); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private java.lang.Object addr_ = ""; + + /** + *
+             */节点的IP地址
+             * 
+ * + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+             */节点的IP地址
+             * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * P2P 版本返回
-     * 
- * - * Protobuf type {@code P2PVerAck} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PVerAck) - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - service_ = 0L; - - nonce_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck(this); - result.version_ = version_; - result.service_ = service_; - result.nonce_ = nonce_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.getService() != 0L) { - setService(other.getService()); - } - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } - /** - * int32 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int32 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private long service_ ; - /** - * int64 service = 2; - * @return The service. - */ - public long getService() { - return service_; - } - /** - * int64 service = 2; - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(long value) { - - service_ = value; - onChanged(); - return this; - } - /** - * int64 service = 2; - * @return This builder for chaining. - */ - public Builder clearService() { - - service_ = 0L; - onChanged(); - return this; - } - - private long nonce_ ; - /** - * int64 nonce = 3; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - * int64 nonce = 3; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * int64 nonce = 3; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PVerAck) - } + /** + *
+             */节点的IP地址
+             * 
+ * + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:P2PVerAck) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck(); - } + /** + *
+             */节点的IP地址
+             * 
+ * + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+             */节点的IP地址
+             * 
+ * + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PVerAck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PVerAck(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private int port_; + + /** + *
+             */节点的外网端口
+             * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + *
+             */节点的外网端口
+             * 
+ * + * int32 port = 2; + * + * @param value + * The port to set. + * + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+             */节点的外网端口
+             * 
+ * + * int32 port = 2; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } - } + private java.lang.Object name_ = ""; + + /** + *
+             */节点的名称
+             * 
+ * + * string name = 3; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public interface P2PPingOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PPing) - com.google.protobuf.MessageOrBuilder { + /** + *
+             */节点的名称
+             * 
+ * + * string name = 3; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - *
-     */随机数
-     * 
- * - * int64 nonce = 1; - * @return The nonce. - */ - long getNonce(); + /** + *
+             */节点的名称
+             * 
+ * + * string name = 3; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 2; - * @return The addr. - */ - java.lang.String getAddr(); - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 2; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + /** + *
+             */节点的名称
+             * 
+ * + * string name = 3; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } - /** - *
-     */节点的外网端口
-     * 
- * - * int32 port = 3; - * @return The port. - */ - int getPort(); + /** + *
+             */节点的名称
+             * 
+ * + * string name = 3; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } - /** - *
-     *签名
-     * 
- * - * .Signature sign = 4; - * @return Whether the sign field is set. - */ - boolean hasSign(); - /** - *
-     *签名
-     * 
- * - * .Signature sign = 4; - * @return The sign. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSign(); - /** - *
-     *签名
-     * 
- * - * .Signature sign = 4; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignOrBuilder(); - } - /** - *
-   **
-   * P2P 心跳包
-   * 
- * - * Protobuf type {@code P2PPing} - */ - public static final class P2PPing extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PPing) - P2PPingOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PPing.newBuilder() to construct. - private P2PPing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PPing() { - addr_ = ""; - } + private int mempoolSize_; + + /** + *
+             */ mempool 的大小
+             * 
+ * + * int32 mempoolSize = 4; + * + * @return The mempoolSize. + */ + @java.lang.Override + public int getMempoolSize() { + return mempoolSize_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PPing(); - } + /** + *
+             */ mempool 的大小
+             * 
+ * + * int32 mempoolSize = 4; + * + * @param value + * The mempoolSize to set. + * + * @return This builder for chaining. + */ + public Builder setMempoolSize(int value) { + + mempoolSize_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PPing( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 24: { - - port_ = input.readInt32(); - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null; - if (sign_ != null) { - subBuilder = sign_.toBuilder(); - } - sign_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sign_); - sign_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_descriptor; - } + /** + *
+             */ mempool 的大小
+             * 
+ * + * int32 mempoolSize = 4; + * + * @return This builder for chaining. + */ + public Builder clearMempoolSize() { + + mempoolSize_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder.class); - } + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + private com.google.protobuf.SingleFieldBuilderV3 headerBuilder_; + + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + * + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - *
-     */随机数
-     * 
- * - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + * + * @return The header. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + if (headerBuilder_ == null) { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } else { + return headerBuilder_.getMessage(); + } + } - public static final int ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object addr_; - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 2; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 2; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + */ + public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } - public static final int PORT_FIELD_NUMBER = 3; - private int port_; - /** - *
-     */节点的外网端口
-     * 
- * - * int32 port = 3; - * @return The port. - */ - public int getPort() { - return port_; - } + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + */ + public Builder setHeader( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } - public static final int SIGN_FIELD_NUMBER = 4; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature sign_; - /** - *
-     *签名
-     * 
- * - * .Signature sign = 4; - * @return Whether the sign field is set. - */ - public boolean hasSign() { - return sign_ != null; - } - /** - *
-     *签名
-     * 
- * - * .Signature sign = 4; - * @return The sign. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSign() { - return sign_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : sign_; - } - /** - *
-     *签名
-     * 
- * - * .Signature sign = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignOrBuilder() { - return getSign(); - } + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + */ + public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_) + .mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeInt64(1, nonce_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addr_); - } - if (port_ != 0) { - output.writeInt32(3, port_); - } - if (sign_ != null) { - output.writeMessage(4, getSign()); - } - unknownFields.writeTo(output); - } + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nonce_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, addr_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, port_); - } - if (sign_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSign()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+             */节点当前高度头部数据
+             * 
+ * + * .Header header = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeader(), getParentForChildren(), isClean()); + header_ = null; + } + return headerBuilder_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPing)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) obj; - - if (getNonce() - != other.getNonce()) return false; - if (!getAddr() - .equals(other.getAddr())) return false; - if (getPort() - != other.getPort()) return false; - if (hasSign() != other.hasSign()) return false; - if (hasSign()) { - if (!getSign() - .equals(other.getSign())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private java.lang.Object version_ = ""; + + /** + * string version = 6; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @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) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - if (hasSign()) { - hash = (37 * hash) + SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSign().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string version = 6; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string version = 6; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string version = 6; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * P2P 心跳包
-     * 
- * - * Protobuf type {@code P2PPing} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PPing) - cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - addr_ = ""; - - port_ = 0; - - if (signBuilder_ == null) { - sign_ = null; - } else { - sign_ = null; - signBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPing(this); - result.nonce_ = nonce_; - result.addr_ = addr_; - result.port_ = port_; - if (signBuilder_ == null) { - result.sign_ = sign_; - } else { - result.sign_ = signBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - if (other.hasSign()) { - mergeSign(other.getSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nonce_ ; - /** - *
-       */随机数
-       * 
- * - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - *
-       */随机数
-       * 
- * - * int64 nonce = 1; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - *
-       */随机数
-       * 
- * - * int64 nonce = 1; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 2; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 2; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 2; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 2; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 2; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private int port_ ; - /** - *
-       */节点的外网端口
-       * 
- * - * int32 port = 3; - * @return The port. - */ - public int getPort() { - return port_; - } - /** - *
-       */节点的外网端口
-       * 
- * - * int32 port = 3; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - *
-       */节点的外网端口
-       * 
- * - * int32 port = 3; - * @return This builder for chaining. - */ - public Builder clearPort() { - - port_ = 0; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature sign_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> signBuilder_; - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - * @return Whether the sign field is set. - */ - public boolean hasSign() { - return signBuilder_ != null || sign_ != null; - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - * @return The sign. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSign() { - if (signBuilder_ == null) { - return sign_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : sign_; - } else { - return signBuilder_.getMessage(); - } - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - */ - public Builder setSign(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sign_ = value; - onChanged(); - } else { - signBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - */ - public Builder setSign( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { - if (signBuilder_ == null) { - sign_ = builderForValue.build(); - onChanged(); - } else { - signBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - */ - public Builder mergeSign(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signBuilder_ == null) { - if (sign_ != null) { - sign_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.newBuilder(sign_).mergeFrom(value).buildPartial(); - } else { - sign_ = value; - } - onChanged(); - } else { - signBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - */ - public Builder clearSign() { - if (signBuilder_ == null) { - sign_ = null; - onChanged(); - } else { - sign_ = null; - signBuilder_ = null; - } - - return this; - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignBuilder() { - - onChanged(); - return getSignFieldBuilder().getBuilder(); - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignOrBuilder() { - if (signBuilder_ != null) { - return signBuilder_.getMessageOrBuilder(); - } else { - return sign_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : sign_; - } - } - /** - *
-       *签名
-       * 
- * - * .Signature sign = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> - getSignFieldBuilder() { - if (signBuilder_ == null) { - signBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder>( - getSign(), - getParentForChildren(), - isClean()); - sign_ = null; - } - return signBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PPing) - } + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:P2PPing) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PPing DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPing(); - } + /** + * string version = 6; + * + * @param value + * The bytes for version to set. + * + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.lang.Object localDBVersion_ = ""; + + /** + * string localDBVersion = 7; + * + * @return The localDBVersion. + */ + public java.lang.String getLocalDBVersion() { + java.lang.Object ref = localDBVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localDBVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PPing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PPing(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string localDBVersion = 7; + * + * @return The bytes for localDBVersion. + */ + public com.google.protobuf.ByteString getLocalDBVersionBytes() { + java.lang.Object ref = localDBVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + localDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string localDBVersion = 7; + * + * @param value + * The localDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setLocalDBVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localDBVersion_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string localDBVersion = 7; + * + * @return This builder for chaining. + */ + public Builder clearLocalDBVersion() { - } + localDBVersion_ = getDefaultInstance().getLocalDBVersion(); + onChanged(); + return this; + } - public interface P2PPongOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PPong) - com.google.protobuf.MessageOrBuilder { + /** + * string localDBVersion = 7; + * + * @param value + * The bytes for localDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setLocalDBVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localDBVersion_ = value; + onChanged(); + return this; + } - /** - * int64 nonce = 1; - * @return The nonce. - */ - long getNonce(); - } - /** - *
-   **
-   * 心跳返回包
-   * 
- * - * Protobuf type {@code P2PPong} - */ - public static final class P2PPong extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PPong) - P2PPongOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PPong.newBuilder() to construct. - private P2PPong(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PPong() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PPong(); - } + private java.lang.Object storeDBVersion_ = ""; + + /** + * string storeDBVersion = 8; + * + * @return The storeDBVersion. + */ + public java.lang.String getStoreDBVersion() { + java.lang.Object ref = storeDBVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storeDBVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PPong( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_descriptor; - } + /** + * string storeDBVersion = 8; + * + * @return The bytes for storeDBVersion. + */ + public com.google.protobuf.ByteString getStoreDBVersionBytes() { + java.lang.Object ref = storeDBVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + storeDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.Builder.class); - } + /** + * string storeDBVersion = 8; + * + * @param value + * The storeDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setStoreDBVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storeDBVersion_ = value; + onChanged(); + return this; + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + /** + * string storeDBVersion = 8; + * + * @return This builder for chaining. + */ + public Builder clearStoreDBVersion() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + storeDBVersion_ = getDefaultInstance().getStoreDBVersion(); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string storeDBVersion = 8; + * + * @param value + * The bytes for storeDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setStoreDBVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storeDBVersion_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeInt64(1, nonce_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nonce_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPong)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPong) obj; - - if (getNonce() - != other.getNonce()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:P2PPeerInfo) + } - @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) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:P2PPeerInfo) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PPong prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PPeerInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PPeerInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PVersion) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         */当前版本
+         * 
+ * + * int32 version = 1; + * + * @return The version. + */ + int getVersion(); + + /** + *
+         */服务类型
+         * 
+ * + * int64 service = 2; + * + * @return The service. + */ + long getService(); + + /** + *
+         */时间戳
+         * 
+ * + * int64 timestamp = 3; + * + * @return The timestamp. + */ + long getTimestamp(); + + /** + *
+         */数据包的目的地址
+         * 
+ * + * string addrRecv = 4; + * + * @return The addrRecv. + */ + java.lang.String getAddrRecv(); + + /** + *
+         */数据包的目的地址
+         * 
+ * + * string addrRecv = 4; + * + * @return The bytes for addrRecv. + */ + com.google.protobuf.ByteString getAddrRecvBytes(); + + /** + *
+         */数据发送的源地址
+         * 
+ * + * string addrFrom = 5; + * + * @return The addrFrom. + */ + java.lang.String getAddrFrom(); + + /** + *
+         */数据发送的源地址
+         * 
+ * + * string addrFrom = 5; + * + * @return The bytes for addrFrom. + */ + com.google.protobuf.ByteString getAddrFromBytes(); + + /** + *
+         */随机数
+         * 
+ * + * int64 nonce = 6; + * + * @return The nonce. + */ + long getNonce(); + + /** + *
+         */用户代理
+         * 
+ * + * string userAgent = 7; + * + * @return The userAgent. + */ + java.lang.String getUserAgent(); + + /** + *
+         */用户代理
+         * 
+ * + * string userAgent = 7; + * + * @return The bytes for userAgent. + */ + com.google.protobuf.ByteString getUserAgentBytes(); + + /** + *
+         */当前节点的高度
+         * 
+ * + * int64 startHeight = 8; + * + * @return The startHeight. + */ + long getStartHeight(); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** *
      **
-     * 心跳返回包
+     * p2p节点间发送版本数据结构
      * 
* - * Protobuf type {@code P2PPong} + * Protobuf type {@code P2PVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PPong) - cn.chain33.javasdk.model.protobuf.P2pService.P2PPongOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPong(this); - result.nonce_ = nonce_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPong) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPong)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PPong other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPong) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nonce_ ; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - * int64 nonce = 1; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * int64 nonce = 1; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PPong) - } + public static final class P2PVersion extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PVersion) + P2PVersionOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:P2PPong) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PPong DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPong(); - } + // Use P2PVersion.newBuilder() to construct. + private P2PVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private P2PVersion() { + addrRecv_ = ""; + addrFrom_ = ""; + userAgent_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PPong parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PPong(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PVersion(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private P2PVersion(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + case 16: { + + service_ = input.readInt64(); + break; + } + case 24: { + + timestamp_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + addrRecv_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + addrFrom_ = s; + break; + } + case 48: { + + nonce_ = input.readInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + userAgent_ = s; + break; + } + case 64: { + + startHeight_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + + /** + *
+         */当前版本
+         * 
+ * + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int SERVICE_FIELD_NUMBER = 2; + private long service_; + + /** + *
+         */服务类型
+         * 
+ * + * int64 service = 2; + * + * @return The service. + */ + @java.lang.Override + public long getService() { + return service_; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 3; + private long timestamp_; + + /** + *
+         */时间戳
+         * 
+ * + * int64 timestamp = 3; + * + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + + public static final int ADDRRECV_FIELD_NUMBER = 4; + private volatile java.lang.Object addrRecv_; + + /** + *
+         */数据包的目的地址
+         * 
+ * + * string addrRecv = 4; + * + * @return The addrRecv. + */ + @java.lang.Override + public java.lang.String getAddrRecv() { + java.lang.Object ref = addrRecv_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addrRecv_ = s; + return s; + } + } - public interface P2PGetAddrOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetAddr) - com.google.protobuf.MessageOrBuilder { + /** + *
+         */数据包的目的地址
+         * 
+ * + * string addrRecv = 4; + * + * @return The bytes for addrRecv. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrRecvBytes() { + java.lang.Object ref = addrRecv_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addrRecv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int64 nonce = 1; - * @return The nonce. - */ - long getNonce(); - } - /** - *
-   **
-   * 获取对方节点所连接的其他节点地址的请求包
-   * 
- * - * Protobuf type {@code P2PGetAddr} - */ - public static final class P2PGetAddr extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetAddr) - P2PGetAddrOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetAddr.newBuilder() to construct. - private P2PGetAddr(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetAddr() { - } + public static final int ADDRFROM_FIELD_NUMBER = 5; + private volatile java.lang.Object addrFrom_; + + /** + *
+         */数据发送的源地址
+         * 
+ * + * string addrFrom = 5; + * + * @return The addrFrom. + */ + @java.lang.Override + public java.lang.String getAddrFrom() { + java.lang.Object ref = addrFrom_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addrFrom_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetAddr(); - } + /** + *
+         */数据发送的源地址
+         * 
+ * + * string addrFrom = 5; + * + * @return The bytes for addrFrom. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrFromBytes() { + java.lang.Object ref = addrFrom_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addrFrom_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetAddr( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_descriptor; - } + public static final int NONCE_FIELD_NUMBER = 6; + private long nonce_; + + /** + *
+         */随机数
+         * 
+ * + * int64 nonce = 6; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + public static final int USERAGENT_FIELD_NUMBER = 7; + private volatile java.lang.Object userAgent_; + + /** + *
+         */用户代理
+         * 
+ * + * string userAgent = 7; + * + * @return The userAgent. + */ + @java.lang.Override + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAgent_ = s; + return s; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.Builder.class); - } + /** + *
+         */用户代理
+         * 
+ * + * string userAgent = 7; + * + * @return The bytes for userAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + public static final int STARTHEIGHT_FIELD_NUMBER = 8; + private long startHeight_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + *
+         */当前节点的高度
+         * 
+ * + * int64 startHeight = 8; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeInt64(1, nonce_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nonce_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) obj; - - if (getNonce() - != other.getNonce()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + if (service_ != 0L) { + output.writeInt64(2, service_); + } + if (timestamp_ != 0L) { + output.writeInt64(3, timestamp_); + } + if (!getAddrRecvBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addrRecv_); + } + if (!getAddrFromBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, addrFrom_); + } + if (nonce_ != 0L) { + output.writeInt64(6, nonce_); + } + if (!getUserAgentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, userAgent_); + } + if (startHeight_ != 0L) { + output.writeInt64(8, startHeight_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + if (service_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, service_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, timestamp_); + } + if (!getAddrRecvBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addrRecv_); + } + if (!getAddrFromBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, addrFrom_); + } + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, nonce_); + } + if (!getUserAgentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, userAgent_); + } + if (startHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, startHeight_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) obj; + + if (getVersion() != other.getVersion()) + return false; + if (getService() != other.getService()) + return false; + if (getTimestamp() != other.getTimestamp()) + return false; + if (!getAddrRecv().equals(other.getAddrRecv())) + return false; + if (!getAddrFrom().equals(other.getAddrFrom())) + return false; + if (getNonce() != other.getNonce()) + return false; + if (!getUserAgent().equals(other.getUserAgent())) + return false; + if (getStartHeight() != other.getStartHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getService()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); + hash = (37 * hash) + ADDRRECV_FIELD_NUMBER; + hash = (53 * hash) + getAddrRecv().hashCode(); + hash = (37 * hash) + ADDRFROM_FIELD_NUMBER; + hash = (53 * hash) + getAddrFrom().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (37 * hash) + USERAGENT_FIELD_NUMBER; + hash = (53 * hash) + getUserAgent().hashCode(); + hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * 获取对方节点所连接的其他节点地址的请求包
-     * 
- * - * Protobuf type {@code P2PGetAddr} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetAddr) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddrOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr(this); - result.nonce_ = nonce_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nonce_ ; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - * int64 nonce = 1; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * int64 nonce = 1; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetAddr) - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:P2PGetAddr) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetAddr parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetAddr(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public interface P2PAddrOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PAddr) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * int64 nonce = 1; - * @return The nonce. - */ - long getNonce(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @return A list containing the addrlist. - */ - java.util.List - getAddrlistList(); - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @return The count of addrlist. - */ - int getAddrlistCount(); - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @param index The index of the element to return. - * @return The addrlist at the given index. - */ - java.lang.String getAddrlist(int index); - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @param index The index of the value to return. - * @return The bytes of the addrlist at the given index. - */ - com.google.protobuf.ByteString - getAddrlistBytes(int index); - } - /** - *
-   **
-   * 返回请求地址列表的社保
-   * 
- * - * Protobuf type {@code P2PAddr} - */ - public static final class P2PAddr extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PAddr) - P2PAddrOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PAddr.newBuilder() to construct. - private P2PAddr(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PAddr() { - addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PAddr(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PAddr( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - addrlist_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - addrlist_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - addrlist_ = addrlist_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.Builder.class); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int ADDRLIST_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList addrlist_; - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @return A list containing the addrlist. - */ - public com.google.protobuf.ProtocolStringList - getAddrlistList() { - return addrlist_; - } - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @return The count of addrlist. - */ - public int getAddrlistCount() { - return addrlist_.size(); - } - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @param index The index of the element to return. - * @return The addrlist at the given index. - */ - public java.lang.String getAddrlist(int index) { - return addrlist_.get(index); - } - /** - *
-     */对方节点返回的其他节点信息
-     * 
- * - * repeated string addrlist = 2; - * @param index The index of the value to return. - * @return The bytes of the addrlist at the given index. - */ - public com.google.protobuf.ByteString - getAddrlistBytes(int index) { - return addrlist_.getByteString(index); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeInt64(1, nonce_); - } - for (int i = 0; i < addrlist_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addrlist_.getRaw(i)); - } - unknownFields.writeTo(output); - } + /** + *
+         **
+         * p2p节点间发送版本数据结构
+         * 
+ * + * Protobuf type {@code P2PVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PVersion) + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nonce_); - } - { - int dataSize = 0; - for (int i = 0; i < addrlist_.size(); i++) { - dataSize += computeStringSizeNoTag(addrlist_.getRaw(i)); - } - size += dataSize; - size += 1 * getAddrlistList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.Builder.class); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr) obj; - - if (getNonce() - != other.getNonce()) return false; - if (!getAddrlistList() - .equals(other.getAddrlistList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - if (getAddrlistCount() > 0) { - hash = (37 * hash) + ADDRLIST_FIELD_NUMBER; - hash = (53 * hash) + getAddrlistList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * 返回请求地址列表的社保
-     * 
- * - * Protobuf type {@code P2PAddr} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PAddr) - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr(this); - int from_bitField0_ = bitField0_; - result.nonce_ = nonce_; - if (((bitField0_ & 0x00000001) != 0)) { - addrlist_ = addrlist_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addrlist_ = addrlist_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (!other.addrlist_.isEmpty()) { - if (addrlist_.isEmpty()) { - addrlist_ = other.addrlist_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddrlistIsMutable(); - addrlist_.addAll(other.addrlist_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long nonce_ ; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - * int64 nonce = 1; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * int64 nonce = 1; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAddrlistIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - addrlist_ = new com.google.protobuf.LazyStringArrayList(addrlist_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @return A list containing the addrlist. - */ - public com.google.protobuf.ProtocolStringList - getAddrlistList() { - return addrlist_.getUnmodifiableView(); - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @return The count of addrlist. - */ - public int getAddrlistCount() { - return addrlist_.size(); - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @param index The index of the element to return. - * @return The addrlist at the given index. - */ - public java.lang.String getAddrlist(int index) { - return addrlist_.get(index); - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @param index The index of the value to return. - * @return The bytes of the addrlist at the given index. - */ - public com.google.protobuf.ByteString - getAddrlistBytes(int index) { - return addrlist_.getByteString(index); - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @param index The index to set the value at. - * @param value The addrlist to set. - * @return This builder for chaining. - */ - public Builder setAddrlist( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddrlistIsMutable(); - addrlist_.set(index, value); - onChanged(); - return this; - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @param value The addrlist to add. - * @return This builder for chaining. - */ - public Builder addAddrlist( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddrlistIsMutable(); - addrlist_.add(value); - onChanged(); - return this; - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @param values The addrlist to add. - * @return This builder for chaining. - */ - public Builder addAllAddrlist( - java.lang.Iterable values) { - ensureAddrlistIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addrlist_); - onChanged(); - return this; - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @return This builder for chaining. - */ - public Builder clearAddrlist() { - addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       */对方节点返回的其他节点信息
-       * 
- * - * repeated string addrlist = 2; - * @param value The bytes of the addrlist to add. - * @return This builder for chaining. - */ - public Builder addAddrlistBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAddrlistIsMutable(); - addrlist_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PAddr) - } - - // @@protoc_insertion_point(class_scope:P2PAddr) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr(); - } - - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getDefaultInstance() { - return DEFAULT_INSTANCE; - } + service_ = 0L; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PAddr parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PAddr(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + timestamp_ = 0L; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + addrRecv_ = ""; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + addrFrom_ = ""; - } + nonce_ = 0L; - public interface P2PAddrListOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PAddrList) - com.google.protobuf.MessageOrBuilder { + userAgent_ = ""; - /** - * int64 nonce = 1; - * @return The nonce. - */ - long getNonce(); + startHeight_ = 0L; - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - java.util.List - getPeerinfoList(); - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerinfo(int index); - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - int getPeerinfoCount(); - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - java.util.List - getPeerinfoOrBuilderList(); - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder getPeerinfoOrBuilder( - int index); - } - /** - * Protobuf type {@code P2PAddrList} - */ - public static final class P2PAddrList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PAddrList) - P2PAddrListOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PAddrList.newBuilder() to construct. - private P2PAddrList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PAddrList() { - peerinfo_ = java.util.Collections.emptyList(); - } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PAddrList(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVersion_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PAddrList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nonce_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - peerinfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - peerinfo_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - peerinfo_ = java.util.Collections.unmodifiableList(peerinfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int NONCE_FIELD_NUMBER = 1; - private long nonce_; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion( + this); + result.version_ = version_; + result.service_ = service_; + result.timestamp_ = timestamp_; + result.addrRecv_ = addrRecv_; + result.addrFrom_ = addrFrom_; + result.nonce_ = nonce_; + result.userAgent_ = userAgent_; + result.startHeight_ = startHeight_; + onBuilt(); + return result; + } - public static final int PEERINFO_FIELD_NUMBER = 2; - private java.util.List peerinfo_; - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public java.util.List getPeerinfoList() { - return peerinfo_; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public java.util.List - getPeerinfoOrBuilderList() { - return peerinfo_; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public int getPeerinfoCount() { - return peerinfo_.size(); - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerinfo(int index) { - return peerinfo_.get(index); - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder getPeerinfoOrBuilder( - int index) { - return peerinfo_.get(index); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nonce_ != 0L) { - output.writeInt64(1, nonce_); - } - for (int i = 0; i < peerinfo_.size(); i++) { - output.writeMessage(2, peerinfo_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nonce_); - } - for (int i = 0; i < peerinfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, peerinfo_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList) obj; - - if (getNonce() - != other.getNonce()) return false; - if (!getPeerinfoList() - .equals(other.getPeerinfoList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - if (getPeerinfoCount() > 0) { - hash = (37 * hash) + PEERINFO_FIELD_NUMBER; - hash = (53 * hash) + getPeerinfoList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance()) + return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (other.getService() != 0L) { + setService(other.getService()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (!other.getAddrRecv().isEmpty()) { + addrRecv_ = other.addrRecv_; + onChanged(); + } + if (!other.getAddrFrom().isEmpty()) { + addrFrom_ = other.addrFrom_; + onChanged(); + } + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (!other.getUserAgent().isEmpty()) { + userAgent_ = other.userAgent_; + onChanged(); + } + if (other.getStartHeight() != 0L) { + setStartHeight(other.getStartHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code P2PAddrList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PAddrList) - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPeerinfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nonce_ = 0L; - - if (peerinfoBuilder_ == null) { - peerinfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - peerinfoBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList(this); - int from_bitField0_ = bitField0_; - result.nonce_ = nonce_; - if (peerinfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - peerinfo_ = java.util.Collections.unmodifiableList(peerinfo_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.peerinfo_ = peerinfo_; - } else { - result.peerinfo_ = peerinfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.getDefaultInstance()) return this; - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (peerinfoBuilder_ == null) { - if (!other.peerinfo_.isEmpty()) { - if (peerinfo_.isEmpty()) { - peerinfo_ = other.peerinfo_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePeerinfoIsMutable(); - peerinfo_.addAll(other.peerinfo_); - } - onChanged(); - } - } else { - if (!other.peerinfo_.isEmpty()) { - if (peerinfoBuilder_.isEmpty()) { - peerinfoBuilder_.dispose(); - peerinfoBuilder_ = null; - peerinfo_ = other.peerinfo_; - bitField0_ = (bitField0_ & ~0x00000001); - peerinfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPeerinfoFieldBuilder() : null; - } else { - peerinfoBuilder_.addAllMessages(other.peerinfo_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long nonce_ ; - /** - * int64 nonce = 1; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - * int64 nonce = 1; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - * int64 nonce = 1; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private java.util.List peerinfo_ = - java.util.Collections.emptyList(); - private void ensurePeerinfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - peerinfo_ = new java.util.ArrayList(peerinfo_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder> peerinfoBuilder_; - - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public java.util.List getPeerinfoList() { - if (peerinfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(peerinfo_); - } else { - return peerinfoBuilder_.getMessageList(); - } - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public int getPeerinfoCount() { - if (peerinfoBuilder_ == null) { - return peerinfo_.size(); - } else { - return peerinfoBuilder_.getCount(); - } - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerinfo(int index) { - if (peerinfoBuilder_ == null) { - return peerinfo_.get(index); - } else { - return peerinfoBuilder_.getMessage(index); - } - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder setPeerinfo( - int index, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo value) { - if (peerinfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeerinfoIsMutable(); - peerinfo_.set(index, value); - onChanged(); - } else { - peerinfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder setPeerinfo( - int index, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder builderForValue) { - if (peerinfoBuilder_ == null) { - ensurePeerinfoIsMutable(); - peerinfo_.set(index, builderForValue.build()); - onChanged(); - } else { - peerinfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder addPeerinfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo value) { - if (peerinfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeerinfoIsMutable(); - peerinfo_.add(value); - onChanged(); - } else { - peerinfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder addPeerinfo( - int index, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo value) { - if (peerinfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeerinfoIsMutable(); - peerinfo_.add(index, value); - onChanged(); - } else { - peerinfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder addPeerinfo( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder builderForValue) { - if (peerinfoBuilder_ == null) { - ensurePeerinfoIsMutable(); - peerinfo_.add(builderForValue.build()); - onChanged(); - } else { - peerinfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder addPeerinfo( - int index, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder builderForValue) { - if (peerinfoBuilder_ == null) { - ensurePeerinfoIsMutable(); - peerinfo_.add(index, builderForValue.build()); - onChanged(); - } else { - peerinfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder addAllPeerinfo( - java.lang.Iterable values) { - if (peerinfoBuilder_ == null) { - ensurePeerinfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, peerinfo_); - onChanged(); - } else { - peerinfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder clearPeerinfo() { - if (peerinfoBuilder_ == null) { - peerinfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - peerinfoBuilder_.clear(); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public Builder removePeerinfo(int index) { - if (peerinfoBuilder_ == null) { - ensurePeerinfoIsMutable(); - peerinfo_.remove(index); - onChanged(); - } else { - peerinfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder getPeerinfoBuilder( - int index) { - return getPeerinfoFieldBuilder().getBuilder(index); - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder getPeerinfoOrBuilder( - int index) { - if (peerinfoBuilder_ == null) { - return peerinfo_.get(index); } else { - return peerinfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public java.util.List - getPeerinfoOrBuilderList() { - if (peerinfoBuilder_ != null) { - return peerinfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(peerinfo_); - } - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder addPeerinfoBuilder() { - return getPeerinfoFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance()); - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder addPeerinfoBuilder( - int index) { - return getPeerinfoFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance()); - } - /** - * repeated .P2PPeerInfo peerinfo = 2; - */ - public java.util.List - getPeerinfoBuilderList() { - return getPeerinfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder> - getPeerinfoFieldBuilder() { - if (peerinfoBuilder_ == null) { - peerinfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder>( - peerinfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - peerinfo_ = null; - } - return peerinfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PAddrList) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - // @@protoc_insertion_point(class_scope:P2PAddrList) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList(); - } + private int version_; + + /** + *
+             */当前版本
+             * 
+ * + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+             */当前版本
+             * 
+ * + * int32 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PAddrList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PAddrList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+             */当前版本
+             * 
+ * + * int32 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private long service_; + + /** + *
+             */服务类型
+             * 
+ * + * int64 service = 2; + * + * @return The service. + */ + @java.lang.Override + public long getService() { + return service_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+             */服务类型
+             * 
+ * + * int64 service = 2; + * + * @param value + * The service to set. + * + * @return This builder for chaining. + */ + public Builder setService(long value) { + + service_ = value; + onChanged(); + return this; + } - } + /** + *
+             */服务类型
+             * 
+ * + * int64 service = 2; + * + * @return This builder for chaining. + */ + public Builder clearService() { + + service_ = 0L; + onChanged(); + return this; + } - public interface P2PExternalInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PExternalInfo) - com.google.protobuf.MessageOrBuilder { + private long timestamp_; + + /** + *
+             */时间戳
+             * 
+ * + * int64 timestamp = 3; + * + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + /** + *
+             */时间戳
+             * 
+ * + * int64 timestamp = 3; + * + * @param value + * The timestamp to set. + * + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } - /** - *
-     *节点是否在外网
-     * 
- * - * bool isoutside = 2; - * @return The isoutside. - */ - boolean getIsoutside(); - } - /** - *
-   **
-   * 节点外网信息
-   * 
- * - * Protobuf type {@code P2PExternalInfo} - */ - public static final class P2PExternalInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PExternalInfo) - P2PExternalInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PExternalInfo.newBuilder() to construct. - private P2PExternalInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PExternalInfo() { - addr_ = ""; - } + /** + *
+             */时间戳
+             * 
+ * + * int64 timestamp = 3; + * + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PExternalInfo(); - } + private java.lang.Object addrRecv_ = ""; + + /** + *
+             */数据包的目的地址
+             * 
+ * + * string addrRecv = 4; + * + * @return The addrRecv. + */ + public java.lang.String getAddrRecv() { + java.lang.Object ref = addrRecv_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addrRecv_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PExternalInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 16: { - - isoutside_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_descriptor; - } + /** + *
+             */数据包的目的地址
+             * 
+ * + * string addrRecv = 4; + * + * @return The bytes for addrRecv. + */ + public com.google.protobuf.ByteString getAddrRecvBytes() { + java.lang.Object ref = addrRecv_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addrRecv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.Builder.class); - } + /** + *
+             */数据包的目的地址
+             * 
+ * + * string addrRecv = 4; + * + * @param value + * The addrRecv to set. + * + * @return This builder for chaining. + */ + public Builder setAddrRecv(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addrRecv_ = value; + onChanged(); + return this; + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - *
-     */节点的外网地址
-     * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + *
+             */数据包的目的地址
+             * 
+ * + * string addrRecv = 4; + * + * @return This builder for chaining. + */ + public Builder clearAddrRecv() { + + addrRecv_ = getDefaultInstance().getAddrRecv(); + onChanged(); + return this; + } - public static final int ISOUTSIDE_FIELD_NUMBER = 2; - private boolean isoutside_; - /** - *
-     *节点是否在外网
-     * 
- * - * bool isoutside = 2; - * @return The isoutside. - */ - public boolean getIsoutside() { - return isoutside_; - } + /** + *
+             */数据包的目的地址
+             * 
+ * + * string addrRecv = 4; + * + * @param value + * The bytes for addrRecv to set. + * + * @return This builder for chaining. + */ + public Builder setAddrRecvBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addrRecv_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private java.lang.Object addrFrom_ = ""; + + /** + *
+             */数据发送的源地址
+             * 
+ * + * string addrFrom = 5; + * + * @return The addrFrom. + */ + public java.lang.String getAddrFrom() { + java.lang.Object ref = addrFrom_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addrFrom_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + *
+             */数据发送的源地址
+             * 
+ * + * string addrFrom = 5; + * + * @return The bytes for addrFrom. + */ + public com.google.protobuf.ByteString getAddrFromBytes() { + java.lang.Object ref = addrFrom_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addrFrom_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (isoutside_ != false) { - output.writeBool(2, isoutside_); - } - unknownFields.writeTo(output); - } + /** + *
+             */数据发送的源地址
+             * 
+ * + * string addrFrom = 5; + * + * @param value + * The addrFrom to set. + * + * @return This builder for chaining. + */ + public Builder setAddrFrom(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addrFrom_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (isoutside_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isoutside_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+             */数据发送的源地址
+             * 
+ * + * string addrFrom = 5; + * + * @return This builder for chaining. + */ + public Builder clearAddrFrom() { + + addrFrom_ = getDefaultInstance().getAddrFrom(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (getIsoutside() - != other.getIsoutside()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + *
+             */数据发送的源地址
+             * 
+ * + * string addrFrom = 5; + * + * @param value + * The bytes for addrFrom to set. + * + * @return This builder for chaining. + */ + public Builder setAddrFromBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addrFrom_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + ISOUTSIDE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsoutside()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private long nonce_; + + /** + *
+             */随机数
+             * 
+ * + * int64 nonce = 6; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + *
+             */随机数
+             * 
+ * + * int64 nonce = 6; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+             */随机数
+             * 
+ * + * int64 nonce = 6; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * 节点外网信息
-     * 
- * - * Protobuf type {@code P2PExternalInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PExternalInfo) - cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - isoutside_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo(this); - result.addr_ = addr_; - result.isoutside_ = isoutside_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (other.getIsoutside() != false) { - setIsoutside(other.getIsoutside()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - *
-       */节点的外网地址
-       * 
- * - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private boolean isoutside_ ; - /** - *
-       *节点是否在外网
-       * 
- * - * bool isoutside = 2; - * @return The isoutside. - */ - public boolean getIsoutside() { - return isoutside_; - } - /** - *
-       *节点是否在外网
-       * 
- * - * bool isoutside = 2; - * @param value The isoutside to set. - * @return This builder for chaining. - */ - public Builder setIsoutside(boolean value) { - - isoutside_ = value; - onChanged(); - return this; - } - /** - *
-       *节点是否在外网
-       * 
- * - * bool isoutside = 2; - * @return This builder for chaining. - */ - public Builder clearIsoutside() { - - isoutside_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PExternalInfo) - } + private java.lang.Object userAgent_ = ""; + + /** + *
+             */用户代理
+             * 
+ * + * string userAgent = 7; + * + * @return The userAgent. + */ + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - // @@protoc_insertion_point(class_scope:P2PExternalInfo) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo(); - } + /** + *
+             */用户代理
+             * 
+ * + * string userAgent = 7; + * + * @return The bytes for userAgent. + */ + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+             */用户代理
+             * 
+ * + * string userAgent = 7; + * + * @param value + * The userAgent to set. + * + * @return This builder for chaining. + */ + public Builder setUserAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userAgent_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PExternalInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PExternalInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+             */用户代理
+             * 
+ * + * string userAgent = 7; + * + * @return This builder for chaining. + */ + public Builder clearUserAgent() { + + userAgent_ = getDefaultInstance().getUserAgent(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + *
+             */用户代理
+             * 
+ * + * string userAgent = 7; + * + * @param value + * The bytes for userAgent to set. + * + * @return This builder for chaining. + */ + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userAgent_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private long startHeight_; + + /** + *
+             */当前节点的高度
+             * 
+ * + * int64 startHeight = 8; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } - } + /** + *
+             */当前节点的高度
+             * 
+ * + * int64 startHeight = 8; + * + * @param value + * The startHeight to set. + * + * @return This builder for chaining. + */ + public Builder setStartHeight(long value) { + + startHeight_ = value; + onChanged(); + return this; + } - public interface P2PGetBlocksOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetBlocks) - com.google.protobuf.MessageOrBuilder { + /** + *
+             */当前节点的高度
+             * 
+ * + * int64 startHeight = 8; + * + * @return This builder for chaining. + */ + public Builder clearStartHeight() { + + startHeight_ = 0L; + onChanged(); + return this; + } - /** - * int32 version = 1; - * @return The version. - */ - int getVersion(); + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * int64 startHeight = 2; - * @return The startHeight. - */ - long getStartHeight(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - * int64 endHeight = 3; - * @return The endHeight. - */ - long getEndHeight(); - } - /** - *
-   **
-   * 获取区间区块
-   * 
- * - * Protobuf type {@code P2PGetBlocks} - */ - public static final class P2PGetBlocks extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetBlocks) - P2PGetBlocksOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetBlocks.newBuilder() to construct. - private P2PGetBlocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetBlocks() { - } + // @@protoc_insertion_point(builder_scope:P2PVersion) + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetBlocks(); - } + // @@protoc_insertion_point(class_scope:P2PVersion) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetBlocks( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } - version_ = input.readInt32(); - break; + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PVersion parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PVersion(input, extensionRegistry); } - case 16: { + }; - startHeight_ = input.readInt64(); - break; - } - case 24: { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - endHeight_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; } - public static final int STARTHEIGHT_FIELD_NUMBER = 2; - private long startHeight_; - /** - * int64 startHeight = 2; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; + public interface P2PVerAckOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PVerAck) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 version = 1; + * + * @return The version. + */ + int getVersion(); + + /** + * int64 service = 2; + * + * @return The service. + */ + long getService(); + + /** + * int64 nonce = 3; + * + * @return The nonce. + */ + long getNonce(); } - public static final int ENDHEIGHT_FIELD_NUMBER = 3; - private long endHeight_; /** - * int64 endHeight = 3; - * @return The endHeight. + *
+     **
+     * P2P 版本返回
+     * 
+ * + * Protobuf type {@code P2PVerAck} */ - public long getEndHeight() { - return endHeight_; - } + public static final class P2PVerAck extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PVerAck) + P2PVerAckOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use P2PVerAck.newBuilder() to construct. + private P2PVerAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private P2PVerAck() { + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - if (startHeight_ != 0L) { - output.writeInt64(2, startHeight_); - } - if (endHeight_ != 0L) { - output.writeInt64(3, endHeight_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PVerAck(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - if (startHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, startHeight_); - } - if (endHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, endHeight_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) obj; - - if (getVersion() - != other.getVersion()) return false; - if (getStartHeight() - != other.getStartHeight()) return false; - if (getEndHeight() - != other.getEndHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private P2PVerAck(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + case 16: { + + service_ = input.readInt64(); + break; + } + case 24: { + + nonce_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartHeight()); - hash = (37 * hash) + ENDHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEndHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * 获取区间区块
-     * 
- * - * Protobuf type {@code P2PGetBlocks} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetBlocks) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocksOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - startHeight_ = 0L; - - endHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks(this); - result.version_ = version_; - result.startHeight_ = startHeight_; - result.endHeight_ = endHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.getStartHeight() != 0L) { - setStartHeight(other.getStartHeight()); - } - if (other.getEndHeight() != 0L) { - setEndHeight(other.getEndHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } - /** - * int32 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int32 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private long startHeight_ ; - /** - * int64 startHeight = 2; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; - } - /** - * int64 startHeight = 2; - * @param value The startHeight to set. - * @return This builder for chaining. - */ - public Builder setStartHeight(long value) { - - startHeight_ = value; - onChanged(); - return this; - } - /** - * int64 startHeight = 2; - * @return This builder for chaining. - */ - public Builder clearStartHeight() { - - startHeight_ = 0L; - onChanged(); - return this; - } - - private long endHeight_ ; - /** - * int64 endHeight = 3; - * @return The endHeight. - */ - public long getEndHeight() { - return endHeight_; - } - /** - * int64 endHeight = 3; - * @param value The endHeight to set. - * @return This builder for chaining. - */ - public Builder setEndHeight(long value) { - - endHeight_ = value; - onChanged(); - return this; - } - /** - * int64 endHeight = 3; - * @return This builder for chaining. - */ - public Builder clearEndHeight() { - - endHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetBlocks) - } + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } - // @@protoc_insertion_point(class_scope:P2PGetBlocks) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks(); - } + public static final int SERVICE_FIELD_NUMBER = 2; + private long service_; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * int64 service = 2; + * + * @return The service. + */ + @java.lang.Override + public long getService() { + return service_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetBlocks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetBlocks(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int NONCE_FIELD_NUMBER = 3; + private long nonce_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * int64 nonce = 3; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface P2PGetMempoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetMempool) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - * int32 version = 1; - * @return The version. - */ - int getVersion(); - } - /** - *
-   **
-   * 获取mempool
-   * 
- * - * Protobuf type {@code P2PGetMempool} - */ - public static final class P2PGetMempool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetMempool) - P2PGetMempoolOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetMempool.newBuilder() to construct. - private P2PGetMempool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetMempool() { - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + if (service_ != 0L) { + output.writeInt64(2, service_); + } + if (nonce_ != 0L) { + output.writeInt64(3, nonce_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetMempool(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetMempool( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_descriptor; - } + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + if (service_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, service_); + } + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, nonce_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck) obj; + + if (getVersion() != other.getVersion()) + return false; + if (getService() != other.getService()) + return false; + if (getNonce() != other.getNonce()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getService()); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * 获取mempool
-     * 
- * - * Protobuf type {@code P2PGetMempool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetMempool) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool(this); - result.version_ = version_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } - /** - * int32 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int32 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetMempool) - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - // @@protoc_insertion_point(class_scope:P2PGetMempool) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetMempool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetMempool(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public interface P2PInvOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PInv) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * repeated .Inventory invs = 1; - */ - java.util.List - getInvsList(); - /** - * repeated .Inventory invs = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index); - /** - * repeated .Inventory invs = 1; - */ - int getInvsCount(); - /** - * repeated .Inventory invs = 1; - */ - java.util.List - getInvsOrBuilderList(); - /** - * repeated .Inventory invs = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder( - int index); - } - /** - * Protobuf type {@code P2PInv} - */ - public static final class P2PInv extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PInv) - P2PInvOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PInv.newBuilder() to construct. - private P2PInv(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PInv() { - invs_ = java.util.Collections.emptyList(); - } + /** + *
+         **
+         * P2P 版本返回
+         * 
+ * + * Protobuf type {@code P2PVerAck} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PVerAck) + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAckOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PInv(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PInv( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - invs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - invs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - invs_ = java.util.Collections.unmodifiableList(invs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_descriptor; - } + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.Builder.class); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int INVS_FIELD_NUMBER = 1; - private java.util.List invs_; - /** - * repeated .Inventory invs = 1; - */ - public java.util.List getInvsList() { - return invs_; - } - /** - * repeated .Inventory invs = 1; - */ - public java.util.List - getInvsOrBuilderList() { - return invs_; - } - /** - * repeated .Inventory invs = 1; - */ - public int getInvsCount() { - return invs_.size(); - } - /** - * repeated .Inventory invs = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { - return invs_.get(index); - } - /** - * repeated .Inventory invs = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder( - int index) { - return invs_.get(index); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; - memoizedIsInitialized = 1; - return true; - } + service_ = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < invs_.size(); i++) { - output.writeMessage(1, invs_.get(i)); - } - unknownFields.writeTo(output); - } + nonce_ = 0L; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < invs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, invs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PInv)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PInv) obj; - - if (!getInvsList() - .equals(other.getInvsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PVerAck_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInvsCount() > 0) { - hash = (37 * hash) + INVS_FIELD_NUMBER; - hash = (53 * hash) + getInvsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.getDefaultInstance(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PInv prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck( + this); + result.version_ = version_; + result.service_ = service_; + result.nonce_ = nonce_; + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code P2PInv} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PInv) - cn.chain33.javasdk.model.protobuf.P2pService.P2PInvOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInvsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (invsBuilder_ == null) { - invs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - invsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PInv(this); - int from_bitField0_ = bitField0_; - if (invsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - invs_ = java.util.Collections.unmodifiableList(invs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invs_ = invs_; - } else { - result.invs_ = invsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PInv) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PInv)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PInv other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance()) return this; - if (invsBuilder_ == null) { - if (!other.invs_.isEmpty()) { - if (invs_.isEmpty()) { - invs_ = other.invs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvsIsMutable(); - invs_.addAll(other.invs_); - } - onChanged(); - } - } else { - if (!other.invs_.isEmpty()) { - if (invsBuilder_.isEmpty()) { - invsBuilder_.dispose(); - invsBuilder_ = null; - invs_ = other.invs_; - bitField0_ = (bitField0_ & ~0x00000001); - invsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInvsFieldBuilder() : null; - } else { - invsBuilder_.addAllMessages(other.invs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PInv) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List invs_ = - java.util.Collections.emptyList(); - private void ensureInvsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - invs_ = new java.util.ArrayList(invs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Inventory, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder> invsBuilder_; - - /** - * repeated .Inventory invs = 1; - */ - public java.util.List getInvsList() { - if (invsBuilder_ == null) { - return java.util.Collections.unmodifiableList(invs_); - } else { - return invsBuilder_.getMessageList(); - } - } - /** - * repeated .Inventory invs = 1; - */ - public int getInvsCount() { - if (invsBuilder_ == null) { - return invs_.size(); - } else { - return invsBuilder_.getCount(); - } - } - /** - * repeated .Inventory invs = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { - if (invsBuilder_ == null) { - return invs_.get(index); - } else { - return invsBuilder_.getMessage(index); - } - } - /** - * repeated .Inventory invs = 1; - */ - public Builder setInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { - if (invsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvsIsMutable(); - invs_.set(index, value); - onChanged(); - } else { - invsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder setInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.set(index, builderForValue.build()); - onChanged(); - } else { - invsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder addInvs(cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { - if (invsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvsIsMutable(); - invs_.add(value); - onChanged(); - } else { - invsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder addInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { - if (invsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvsIsMutable(); - invs_.add(index, value); - onChanged(); - } else { - invsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder addInvs( - cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.add(builderForValue.build()); - onChanged(); - } else { - invsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder addInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.add(index, builderForValue.build()); - onChanged(); - } else { - invsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder addAllInvs( - java.lang.Iterable values) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invs_); - onChanged(); - } else { - invsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder clearInvs() { - if (invsBuilder_ == null) { - invs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - invsBuilder_.clear(); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public Builder removeInvs(int index) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.remove(index); - onChanged(); - } else { - invsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Inventory invs = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder getInvsBuilder( - int index) { - return getInvsFieldBuilder().getBuilder(index); - } - /** - * repeated .Inventory invs = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder( - int index) { - if (invsBuilder_ == null) { - return invs_.get(index); } else { - return invsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Inventory invs = 1; - */ - public java.util.List - getInvsOrBuilderList() { - if (invsBuilder_ != null) { - return invsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(invs_); - } - } - /** - * repeated .Inventory invs = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder() { - return getInvsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); - } - /** - * repeated .Inventory invs = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder( - int index) { - return getInvsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); - } - /** - * repeated .Inventory invs = 1; - */ - public java.util.List - getInvsBuilderList() { - return getInvsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Inventory, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder> - getInvsFieldBuilder() { - if (invsBuilder_ == null) { - invsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Inventory, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder>( - invs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - invs_ = null; - } - return invsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PInv) - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - // @@protoc_insertion_point(class_scope:P2PInv) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PInv DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PInv(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PInv parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PInv(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck) other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface InventoryOrBuilder extends - // @@protoc_insertion_point(interface_extends:Inventory) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.getDefaultInstance()) + return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (other.getService() != 0L) { + setService(other.getService()); + } + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - *
-     *类型,数据类型,MSG_TX MSG_BLOCK
-     * 
- * - * int32 ty = 1; - * @return The ty. - */ - int getTy(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - *
-     */哈希
-     * 
- * - * bytes hash = 2; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - *
-     *高度
-     * 
- * - * int64 height = 3; - * @return The height. - */ - long getHeight(); - } - /** - *
-   * ty=MSG_TX MSG_BLOCK
-   * 
- * - * Protobuf type {@code Inventory} - */ - public static final class Inventory extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Inventory) - InventoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Inventory.newBuilder() to construct. - private Inventory(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Inventory() { - hash_ = com.google.protobuf.ByteString.EMPTY; - } + private int version_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Inventory(); - } + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Inventory( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { + /** + * int32 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + + /** + * int32 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } - ty_ = input.readInt32(); - break; + private long service_; + + /** + * int64 service = 2; + * + * @return The service. + */ + @java.lang.Override + public long getService() { + return service_; + } + + /** + * int64 service = 2; + * + * @param value + * The service to set. + * + * @return This builder for chaining. + */ + public Builder setService(long value) { + + service_ = value; + onChanged(); + return this; + } + + /** + * int64 service = 2; + * + * @return This builder for chaining. + */ + public Builder clearService() { + + service_ = 0L; + onChanged(); + return this; + } + + private long nonce_; + + /** + * int64 nonce = 3; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + * int64 nonce = 3; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; } - case 18: { - hash_ = input.readBytes(); - break; + /** + * int64 nonce = 3; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; } - case 24: { - height_ = input.readInt64(); - break; + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } + + // @@protoc_insertion_point(builder_scope:P2PVerAck) } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.Inventory.class, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder.class); - } + // @@protoc_insertion_point(class_scope:P2PVerAck) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck(); + } - public static final int TY_FIELD_NUMBER = 1; - private int ty_; - /** - *
-     *类型,数据类型,MSG_TX MSG_BLOCK
-     * 
- * - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PVerAck parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PVerAck(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PPingOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PPing) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         */随机数
+         * 
+ * + * int64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 2; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 2; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + *
+         */节点的外网端口
+         * 
+ * + * int32 port = 3; + * + * @return The port. + */ + int getPort(); + + /** + *
+         * 签名
+         * 
+ * + * .Signature sign = 4; + * + * @return Whether the sign field is set. + */ + boolean hasSign(); + + /** + *
+         * 签名
+         * 
+ * + * .Signature sign = 4; + * + * @return The sign. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSign(); + + /** + *
+         * 签名
+         * 
+ * + * .Signature sign = 4; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignOrBuilder(); } - public static final int HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString hash_; /** *
-     */哈希
+     **
+     * P2P 心跳包
      * 
* - * bytes hash = 2; - * @return The hash. + * Protobuf type {@code P2PPing} */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + public static final class P2PPing extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PPing) + P2PPingOrBuilder { + private static final long serialVersionUID = 0L; - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - *
-     *高度
+        // Use P2PPing.newBuilder() to construct.
+        private P2PPing(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+            super(builder);
+        }
+
+        private P2PPing() {
+            addr_ = "";
+        }
+
+        @java.lang.Override
+        @SuppressWarnings({ "unused" })
+        protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+            return new P2PPing();
+        }
+
+        @java.lang.Override
+        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+            return this.unknownFields;
+        }
+
+        private P2PPing(com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+            this();
+            if (extensionRegistry == null) {
+                throw new java.lang.NullPointerException();
+            }
+            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+                    .newBuilder();
+            try {
+                boolean done = false;
+                while (!done) {
+                    int tag = input.readTag();
+                    switch (tag) {
+                    case 0:
+                        done = true;
+                        break;
+                    case 8: {
+
+                        nonce_ = input.readInt64();
+                        break;
+                    }
+                    case 18: {
+                        java.lang.String s = input.readStringRequireUtf8();
+
+                        addr_ = s;
+                        break;
+                    }
+                    case 24: {
+
+                        port_ = input.readInt32();
+                        break;
+                    }
+                    case 34: {
+                        cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null;
+                        if (sign_ != null) {
+                            subBuilder = sign_.toBuilder();
+                        }
+                        sign_ = input.readMessage(
+                                cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(),
+                                extensionRegistry);
+                        if (subBuilder != null) {
+                            subBuilder.mergeFrom(sign_);
+                            sign_ = subBuilder.buildPartial();
+                        }
+
+                        break;
+                    }
+                    default: {
+                        if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                            done = true;
+                        }
+                        break;
+                    }
+                    }
+                }
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+                throw e.setUnfinishedMessage(this);
+            } catch (java.io.IOException e) {
+                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+            } finally {
+                this.unknownFields = unknownFields.build();
+                makeExtensionsImmutable();
+            }
+        }
+
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+            return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_descriptor;
+        }
+
+        @java.lang.Override
+        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+            return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_fieldAccessorTable
+                    .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class,
+                            cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder.class);
+        }
+
+        public static final int NONCE_FIELD_NUMBER = 1;
+        private long nonce_;
+
+        /**
+         * 
+         */随机数
+         * 
+ * + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + public static final int ADDR_FIELD_NUMBER = 2; + private volatile java.lang.Object addr_; + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 2; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 2; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 3; + private int port_; + + /** + *
+         */节点的外网端口
+         * 
+ * + * int32 port = 3; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int SIGN_FIELD_NUMBER = 4; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature sign_; + + /** + *
+         * 签名
+         * 
+ * + * .Signature sign = 4; + * + * @return Whether the sign field is set. + */ + @java.lang.Override + public boolean hasSign() { + return sign_ != null; + } + + /** + *
+         * 签名
+         * 
+ * + * .Signature sign = 4; + * + * @return The sign. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSign() { + return sign_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : sign_; + } + + /** + *
+         * 签名
+         * 
+ * + * .Signature sign = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignOrBuilder() { + return getSign(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeInt64(1, nonce_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addr_); + } + if (port_ != 0) { + output.writeInt32(3, port_); + } + if (sign_ != null) { + output.writeMessage(4, getSign()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nonce_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, addr_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); + } + if (sign_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSign()); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PPing)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) obj; + + if (getNonce() != other.getNonce()) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (getPort() != other.getPort()) + return false; + if (hasSign() != other.hasSign()) + return false; + if (hasSign()) { + if (!getSign().equals(other.getSign())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @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) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + if (hasSign()) { + hash = (37 * hash) + SIGN_FIELD_NUMBER; + hash = (53 * hash) + getSign().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * P2P 心跳包
+         * 
+ * + * Protobuf type {@code P2PPing} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PPing) + cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + addr_ = ""; + + port_ = 0; + + if (signBuilder_ == null) { + sign_ = null; + } else { + sign_ = null; + signBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPing_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPing( + this); + result.nonce_ = nonce_; + result.addr_ = addr_; + result.port_ = port_; + if (signBuilder_ == null) { + result.sign_ = sign_; + } else { + result.sign_ = signBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (other.hasSign()) { + mergeSign(other.getSign()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nonce_; + + /** + *
+             */随机数
+             * 
+ * + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + *
+             */随机数
+             * 
+ * + * int64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + *
+             */随机数
+             * 
+ * + * int64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 2; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 2; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 2; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 2; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 2; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private int port_; + + /** + *
+             */节点的外网端口
+             * 
+ * + * int32 port = 3; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + /** + *
+             */节点的外网端口
+             * 
+ * + * int32 port = 3; + * + * @param value + * The port to set. + * + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + + /** + *
+             */节点的外网端口
+             * 
+ * + * int32 port = 3; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature sign_; + private com.google.protobuf.SingleFieldBuilderV3 signBuilder_; + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + * + * @return Whether the sign field is set. + */ + public boolean hasSign() { + return signBuilder_ != null || sign_ != null; + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + * + * @return The sign. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSign() { + if (signBuilder_ == null) { + return sign_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : sign_; + } else { + return signBuilder_.getMessage(); + } + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + */ + public Builder setSign(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sign_ = value; + onChanged(); + } else { + signBuilder_.setMessage(value); + } + + return this; + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + */ + public Builder setSign( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { + if (signBuilder_ == null) { + sign_ = builderForValue.build(); + onChanged(); + } else { + signBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + */ + public Builder mergeSign(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signBuilder_ == null) { + if (sign_ != null) { + sign_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.newBuilder(sign_) + .mergeFrom(value).buildPartial(); + } else { + sign_ = value; + } + onChanged(); + } else { + signBuilder_.mergeFrom(value); + } + + return this; + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + */ + public Builder clearSign() { + if (signBuilder_ == null) { + sign_ = null; + onChanged(); + } else { + sign_ = null; + signBuilder_ = null; + } + + return this; + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignBuilder() { + + onChanged(); + return getSignFieldBuilder().getBuilder(); + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignOrBuilder() { + if (signBuilder_ != null) { + return signBuilder_.getMessageOrBuilder(); + } else { + return sign_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : sign_; + } + } + + /** + *
+             * 签名
+             * 
+ * + * .Signature sign = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getSignFieldBuilder() { + if (signBuilder_ == null) { + signBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getSign(), getParentForChildren(), isClean()); + sign_ = null; + } + return signBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PPing) + } + + // @@protoc_insertion_point(class_scope:P2PPing) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PPing DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPing(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PPing parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PPing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PPongOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PPong) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); + } + + /** + *
+     **
+     * 心跳返回包
+     * 
+ * + * Protobuf type {@code P2PPong} + */ + public static final class P2PPong extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PPong) + P2PPongOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PPong.newBuilder() to construct. + private P2PPong(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PPong() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PPong(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PPong(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + nonce_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.Builder.class); + } + + public static final int NONCE_FIELD_NUMBER = 1; + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeInt64(1, nonce_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(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 cn.chain33.javasdk.model.protobuf.P2pService.P2PPong)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PPong other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPong) obj; + + if (getNonce() != other.getNonce()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @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) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PPong prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PPong} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PPong) + cn.chain33.javasdk.model.protobuf.P2pService.P2PPongOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PPong_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPong result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPong result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPong( + this); + result.nonce_ = nonce_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PPong) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPong) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PPong other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPong parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PPong) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + * int64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + * int64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PPong) + } + + // @@protoc_insertion_point(class_scope:P2PPong) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PPong DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PPong(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PPong getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PPong parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PPong(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PGetAddrOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetAddr) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); + } + + /** + *
+     **
+     * 获取对方节点所连接的其他节点地址的请求包
+     * 
+ * + * Protobuf type {@code P2PGetAddr} + */ + public static final class P2PGetAddr extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetAddr) + P2PGetAddrOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PGetAddr.newBuilder() to construct. + private P2PGetAddr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PGetAddr() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetAddr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PGetAddr(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + nonce_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.Builder.class); + } + + public static final int NONCE_FIELD_NUMBER = 1; + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeInt64(1, nonce_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(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 cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) obj; + + if (getNonce() != other.getNonce()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @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) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PGetAddr} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetAddr) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddrOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetAddr_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr( + this); + result.nonce_ = nonce_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + * int64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + * int64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PGetAddr) + } + + // @@protoc_insertion_point(class_scope:P2PGetAddr) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetAddr parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetAddr(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PAddrOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PAddr) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @return A list containing the addrlist. + */ + java.util.List getAddrlistList(); + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @return The count of addrlist. + */ + int getAddrlistCount(); + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @param index + * The index of the element to return. + * + * @return The addrlist at the given index. + */ + java.lang.String getAddrlist(int index); + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addrlist at the given index. + */ + com.google.protobuf.ByteString getAddrlistBytes(int index); + } + + /** + *
+     **
+     * 返回请求地址列表的社保
+     * 
+ * + * Protobuf type {@code P2PAddr} + */ + public static final class P2PAddr extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PAddr) + P2PAddrOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PAddr.newBuilder() to construct. + private P2PAddr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PAddr() { + addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PAddr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PAddr(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + nonce_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + addrlist_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + addrlist_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + addrlist_ = addrlist_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.Builder.class); + } + + public static final int NONCE_FIELD_NUMBER = 1; + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + public static final int ADDRLIST_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList addrlist_; + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @return A list containing the addrlist. + */ + public com.google.protobuf.ProtocolStringList getAddrlistList() { + return addrlist_; + } + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @return The count of addrlist. + */ + public int getAddrlistCount() { + return addrlist_.size(); + } + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @param index + * The index of the element to return. + * + * @return The addrlist at the given index. + */ + public java.lang.String getAddrlist(int index) { + return addrlist_.get(index); + } + + /** + *
+         */对方节点返回的其他节点信息
+         * 
+ * + * repeated string addrlist = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addrlist at the given index. + */ + public com.google.protobuf.ByteString getAddrlistBytes(int index) { + return addrlist_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeInt64(1, nonce_); + } + for (int i = 0; i < addrlist_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addrlist_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nonce_); + } + { + int dataSize = 0; + for (int i = 0; i < addrlist_.size(); i++) { + dataSize += computeStringSizeNoTag(addrlist_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddrlistList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr) obj; + + if (getNonce() != other.getNonce()) + return false; + if (!getAddrlistList().equals(other.getAddrlistList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @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) + com.google.protobuf.Internal.hashLong(getNonce()); + if (getAddrlistCount() > 0) { + hash = (37 * hash) + ADDRLIST_FIELD_NUMBER; + hash = (53 * hash) + getAddrlistList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PAddr} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PAddr) + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddr_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr( + this); + int from_bitField0_ = bitField0_; + result.nonce_ = nonce_; + if (((bitField0_ & 0x00000001) != 0)) { + addrlist_ = addrlist_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addrlist_ = addrlist_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (!other.addrlist_.isEmpty()) { + if (addrlist_.isEmpty()) { + addrlist_ = other.addrlist_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddrlistIsMutable(); + addrlist_.addAll(other.addrlist_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + * int64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + * int64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAddrlistIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + addrlist_ = new com.google.protobuf.LazyStringArrayList(addrlist_); + bitField0_ |= 0x00000001; + } + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @return A list containing the addrlist. + */ + public com.google.protobuf.ProtocolStringList getAddrlistList() { + return addrlist_.getUnmodifiableView(); + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @return The count of addrlist. + */ + public int getAddrlistCount() { + return addrlist_.size(); + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @param index + * The index of the element to return. + * + * @return The addrlist at the given index. + */ + public java.lang.String getAddrlist(int index) { + return addrlist_.get(index); + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addrlist at the given index. + */ + public com.google.protobuf.ByteString getAddrlistBytes(int index) { + return addrlist_.getByteString(index); + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @param index + * The index to set the value at. + * @param value + * The addrlist to set. + * + * @return This builder for chaining. + */ + public Builder setAddrlist(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddrlistIsMutable(); + addrlist_.set(index, value); + onChanged(); + return this; + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @param value + * The addrlist to add. + * + * @return This builder for chaining. + */ + public Builder addAddrlist(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddrlistIsMutable(); + addrlist_.add(value); + onChanged(); + return this; + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @param values + * The addrlist to add. + * + * @return This builder for chaining. + */ + public Builder addAllAddrlist(java.lang.Iterable values) { + ensureAddrlistIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addrlist_); + onChanged(); + return this; + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @return This builder for chaining. + */ + public Builder clearAddrlist() { + addrlist_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             */对方节点返回的其他节点信息
+             * 
+ * + * repeated string addrlist = 2; + * + * @param value + * The bytes of the addrlist to add. + * + * @return This builder for chaining. + */ + public Builder addAddrlistBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddrlistIsMutable(); + addrlist_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PAddr) + } + + // @@protoc_insertion_point(class_scope:P2PAddr) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PAddr parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PAddr(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PAddrListOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PAddrList) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + long getNonce(); + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + java.util.List getPeerinfoList(); + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerinfo(int index); + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + int getPeerinfoCount(); + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + java.util.List getPeerinfoOrBuilderList(); + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder getPeerinfoOrBuilder(int index); + } + + /** + * Protobuf type {@code P2PAddrList} + */ + public static final class P2PAddrList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PAddrList) + P2PAddrListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PAddrList.newBuilder() to construct. + private P2PAddrList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PAddrList() { + peerinfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PAddrList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PAddrList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + nonce_ = input.readInt64(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + peerinfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + peerinfo_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + peerinfo_ = java.util.Collections.unmodifiableList(peerinfo_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.Builder.class); + } + + public static final int NONCE_FIELD_NUMBER = 1; + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + public static final int PEERINFO_FIELD_NUMBER = 2; + private java.util.List peerinfo_; + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + @java.lang.Override + public java.util.List getPeerinfoList() { + return peerinfo_; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + @java.lang.Override + public java.util.List getPeerinfoOrBuilderList() { + return peerinfo_; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + @java.lang.Override + public int getPeerinfoCount() { + return peerinfo_.size(); + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerinfo(int index) { + return peerinfo_.get(index); + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder getPeerinfoOrBuilder(int index) { + return peerinfo_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nonce_ != 0L) { + output.writeInt64(1, nonce_); + } + for (int i = 0; i < peerinfo_.size(); i++) { + output.writeMessage(2, peerinfo_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nonce_); + } + for (int i = 0; i < peerinfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, peerinfo_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList) obj; + + if (getNonce() != other.getNonce()) + return false; + if (!getPeerinfoList().equals(other.getPeerinfoList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @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) + com.google.protobuf.Internal.hashLong(getNonce()); + if (getPeerinfoCount() > 0) { + hash = (37 * hash) + PEERINFO_FIELD_NUMBER; + hash = (53 * hash) + getPeerinfoList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PAddrList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PAddrList) + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPeerinfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nonce_ = 0L; + + if (peerinfoBuilder_ == null) { + peerinfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + peerinfoBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PAddrList_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList( + this); + int from_bitField0_ = bitField0_; + result.nonce_ = nonce_; + if (peerinfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + peerinfo_ = java.util.Collections.unmodifiableList(peerinfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.peerinfo_ = peerinfo_; + } else { + result.peerinfo_ = peerinfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.getDefaultInstance()) + return this; + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (peerinfoBuilder_ == null) { + if (!other.peerinfo_.isEmpty()) { + if (peerinfo_.isEmpty()) { + peerinfo_ = other.peerinfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePeerinfoIsMutable(); + peerinfo_.addAll(other.peerinfo_); + } + onChanged(); + } + } else { + if (!other.peerinfo_.isEmpty()) { + if (peerinfoBuilder_.isEmpty()) { + peerinfoBuilder_.dispose(); + peerinfoBuilder_ = null; + peerinfo_ = other.peerinfo_; + bitField0_ = (bitField0_ & ~0x00000001); + peerinfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPeerinfoFieldBuilder() : null; + } else { + peerinfoBuilder_.addAllMessages(other.peerinfo_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long nonce_; + + /** + * int64 nonce = 1; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + * int64 nonce = 1; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + * int64 nonce = 1; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + private java.util.List peerinfo_ = java.util.Collections + .emptyList(); + + private void ensurePeerinfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + peerinfo_ = new java.util.ArrayList( + peerinfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 peerinfoBuilder_; + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public java.util.List getPeerinfoList() { + if (peerinfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(peerinfo_); + } else { + return peerinfoBuilder_.getMessageList(); + } + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public int getPeerinfoCount() { + if (peerinfoBuilder_ == null) { + return peerinfo_.size(); + } else { + return peerinfoBuilder_.getCount(); + } + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerinfo(int index) { + if (peerinfoBuilder_ == null) { + return peerinfo_.get(index); + } else { + return peerinfoBuilder_.getMessage(index); + } + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder setPeerinfo(int index, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo value) { + if (peerinfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerinfoIsMutable(); + peerinfo_.set(index, value); + onChanged(); + } else { + peerinfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder setPeerinfo(int index, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder builderForValue) { + if (peerinfoBuilder_ == null) { + ensurePeerinfoIsMutable(); + peerinfo_.set(index, builderForValue.build()); + onChanged(); + } else { + peerinfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder addPeerinfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo value) { + if (peerinfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerinfoIsMutable(); + peerinfo_.add(value); + onChanged(); + } else { + peerinfoBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder addPeerinfo(int index, cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo value) { + if (peerinfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerinfoIsMutable(); + peerinfo_.add(index, value); + onChanged(); + } else { + peerinfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder addPeerinfo( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder builderForValue) { + if (peerinfoBuilder_ == null) { + ensurePeerinfoIsMutable(); + peerinfo_.add(builderForValue.build()); + onChanged(); + } else { + peerinfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder addPeerinfo(int index, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder builderForValue) { + if (peerinfoBuilder_ == null) { + ensurePeerinfoIsMutable(); + peerinfo_.add(index, builderForValue.build()); + onChanged(); + } else { + peerinfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder addAllPeerinfo( + java.lang.Iterable values) { + if (peerinfoBuilder_ == null) { + ensurePeerinfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerinfo_); + onChanged(); + } else { + peerinfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder clearPeerinfo() { + if (peerinfoBuilder_ == null) { + peerinfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + peerinfoBuilder_.clear(); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public Builder removePeerinfo(int index) { + if (peerinfoBuilder_ == null) { + ensurePeerinfoIsMutable(); + peerinfo_.remove(index); + onChanged(); + } else { + peerinfoBuilder_.remove(index); + } + return this; + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder getPeerinfoBuilder(int index) { + return getPeerinfoFieldBuilder().getBuilder(index); + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfoOrBuilder getPeerinfoOrBuilder(int index) { + if (peerinfoBuilder_ == null) { + return peerinfo_.get(index); + } else { + return peerinfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public java.util.List getPeerinfoOrBuilderList() { + if (peerinfoBuilder_ != null) { + return peerinfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(peerinfo_); + } + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder addPeerinfoBuilder() { + return getPeerinfoFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance()); + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.Builder addPeerinfoBuilder(int index) { + return getPeerinfoFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance()); + } + + /** + * repeated .P2PPeerInfo peerinfo = 2; + */ + public java.util.List getPeerinfoBuilderList() { + return getPeerinfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getPeerinfoFieldBuilder() { + if (peerinfoBuilder_ == null) { + peerinfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + peerinfo_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + peerinfo_ = null; + } + return peerinfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PAddrList) + } + + // @@protoc_insertion_point(class_scope:P2PAddrList) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PAddrList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PAddrList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PExternalInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PExternalInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + *
+         * 节点是否在外网
+         * 
+ * + * bool isoutside = 2; + * + * @return The isoutside. + */ + boolean getIsoutside(); + } + + /** + *
+     **
+     * 节点外网信息
+     * 
+ * + * Protobuf type {@code P2PExternalInfo} + */ + public static final class P2PExternalInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PExternalInfo) + P2PExternalInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PExternalInfo.newBuilder() to construct. + private P2PExternalInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PExternalInfo() { + addr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PExternalInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PExternalInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 16: { + + isoutside_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.Builder.class); + } + + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + *
+         */节点的外网地址
+         * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISOUTSIDE_FIELD_NUMBER = 2; + private boolean isoutside_; + + /** + *
+         * 节点是否在外网
+         * 
+ * + * bool isoutside = 2; + * + * @return The isoutside. + */ + @java.lang.Override + public boolean getIsoutside() { + return isoutside_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (isoutside_ != false) { + output.writeBool(2, isoutside_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (isoutside_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isoutside_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (getIsoutside() != other.getIsoutside()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + ISOUTSIDE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsoutside()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PExternalInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PExternalInfo) + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; + + isoutside_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PExternalInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo( + this); + result.addr_ = addr_; + result.isoutside_ = isoutside_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.getIsoutside() != false) { + setIsoutside(other.getIsoutside()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object addr_ = ""; + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + *
+             */节点的外网地址
+             * 
+ * + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private boolean isoutside_; + + /** + *
+             * 节点是否在外网
+             * 
+ * + * bool isoutside = 2; + * + * @return The isoutside. + */ + @java.lang.Override + public boolean getIsoutside() { + return isoutside_; + } + + /** + *
+             * 节点是否在外网
+             * 
+ * + * bool isoutside = 2; + * + * @param value + * The isoutside to set. + * + * @return This builder for chaining. + */ + public Builder setIsoutside(boolean value) { + + isoutside_ = value; + onChanged(); + return this; + } + + /** + *
+             * 节点是否在外网
+             * 
+ * + * bool isoutside = 2; + * + * @return This builder for chaining. + */ + public Builder clearIsoutside() { + + isoutside_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PExternalInfo) + } + + // @@protoc_insertion_point(class_scope:P2PExternalInfo) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PExternalInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PExternalInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PExternalInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PGetBlocksOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetBlocks) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 version = 1; + * + * @return The version. + */ + int getVersion(); + + /** + * int64 startHeight = 2; + * + * @return The startHeight. + */ + long getStartHeight(); + + /** + * int64 endHeight = 3; + * + * @return The endHeight. + */ + long getEndHeight(); + } + + /** + *
+     **
+     * 获取区间区块
+     * 
+ * + * Protobuf type {@code P2PGetBlocks} + */ + public static final class P2PGetBlocks extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetBlocks) + P2PGetBlocksOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PGetBlocks.newBuilder() to construct. + private P2PGetBlocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PGetBlocks() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetBlocks(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PGetBlocks(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + case 16: { + + startHeight_ = input.readInt64(); + break; + } + case 24: { + + endHeight_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int STARTHEIGHT_FIELD_NUMBER = 2; + private long startHeight_; + + /** + * int64 startHeight = 2; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } + + public static final int ENDHEIGHT_FIELD_NUMBER = 3; + private long endHeight_; + + /** + * int64 endHeight = 3; + * + * @return The endHeight. + */ + @java.lang.Override + public long getEndHeight() { + return endHeight_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + if (startHeight_ != 0L) { + output.writeInt64(2, startHeight_); + } + if (endHeight_ != 0L) { + output.writeInt64(3, endHeight_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + if (startHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, startHeight_); + } + if (endHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, endHeight_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) obj; + + if (getVersion() != other.getVersion()) + return false; + if (getStartHeight() != other.getStartHeight()) + return false; + if (getEndHeight() != other.getEndHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartHeight()); + hash = (37 * hash) + ENDHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PGetBlocks} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetBlocks) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + startHeight_ = 0L; + + endHeight_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetBlocks_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks( + this); + result.version_ = version_; + result.startHeight_ = startHeight_; + result.endHeight_ = endHeight_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.getDefaultInstance()) + return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (other.getStartHeight() != 0L) { + setStartHeight(other.getStartHeight()); + } + if (other.getEndHeight() != 0L) { + setEndHeight(other.getEndHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int version_; + + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + /** + * int32 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + + /** + * int32 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private long startHeight_; + + /** + * int64 startHeight = 2; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } + + /** + * int64 startHeight = 2; + * + * @param value + * The startHeight to set. + * + * @return This builder for chaining. + */ + public Builder setStartHeight(long value) { + + startHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 startHeight = 2; + * + * @return This builder for chaining. + */ + public Builder clearStartHeight() { + + startHeight_ = 0L; + onChanged(); + return this; + } + + private long endHeight_; + + /** + * int64 endHeight = 3; + * + * @return The endHeight. + */ + @java.lang.Override + public long getEndHeight() { + return endHeight_; + } + + /** + * int64 endHeight = 3; + * + * @param value + * The endHeight to set. + * + * @return This builder for chaining. + */ + public Builder setEndHeight(long value) { + + endHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 endHeight = 3; + * + * @return This builder for chaining. + */ + public Builder clearEndHeight() { + + endHeight_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PGetBlocks) + } + + // @@protoc_insertion_point(class_scope:P2PGetBlocks) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetBlocks parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetBlocks(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PGetMempoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetMempool) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 version = 1; + * + * @return The version. + */ + int getVersion(); + } + + /** + *
+     **
+     * 获取mempool
+     * 
+ * + * Protobuf type {@code P2PGetMempool} + */ + public static final class P2PGetMempool extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetMempool) + P2PGetMempoolOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PGetMempool.newBuilder() to construct. + private P2PGetMempool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PGetMempool() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetMempool(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PGetMempool(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) obj; + + if (getVersion() != other.getVersion()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * 获取mempool
+         * 
+ * + * Protobuf type {@code P2PGetMempool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetMempool) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetMempool_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool( + this); + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.getDefaultInstance()) + return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int version_; + + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + /** + * int32 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + + /** + * int32 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PGetMempool) + } + + // @@protoc_insertion_point(class_scope:P2PGetMempool) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetMempool parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetMempool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PInvOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PInv) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Inventory invs = 1; + */ + java.util.List getInvsList(); + + /** + * repeated .Inventory invs = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index); + + /** + * repeated .Inventory invs = 1; + */ + int getInvsCount(); + + /** + * repeated .Inventory invs = 1; + */ + java.util.List getInvsOrBuilderList(); + + /** + * repeated .Inventory invs = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder(int index); + } + + /** + * Protobuf type {@code P2PInv} + */ + public static final class P2PInv extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PInv) + P2PInvOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PInv.newBuilder() to construct. + private P2PInv(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PInv() { + invs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PInv(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PInv(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + invs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + invs_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + invs_ = java.util.Collections.unmodifiableList(invs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.Builder.class); + } + + public static final int INVS_FIELD_NUMBER = 1; + private java.util.List invs_; + + /** + * repeated .Inventory invs = 1; + */ + @java.lang.Override + public java.util.List getInvsList() { + return invs_; + } + + /** + * repeated .Inventory invs = 1; + */ + @java.lang.Override + public java.util.List getInvsOrBuilderList() { + return invs_; + } + + /** + * repeated .Inventory invs = 1; + */ + @java.lang.Override + public int getInvsCount() { + return invs_.size(); + } + + /** + * repeated .Inventory invs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { + return invs_.get(index); + } + + /** + * repeated .Inventory invs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder(int index) { + return invs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < invs_.size(); i++) { + output.writeMessage(1, invs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < invs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, invs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PInv)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PInv) obj; + + if (!getInvsList().equals(other.getInvsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInvsCount() > 0) { + hash = (37 * hash) + INVS_FIELD_NUMBER; + hash = (53 * hash) + getInvsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PInv prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PInv} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PInv) + cn.chain33.javasdk.model.protobuf.P2pService.P2PInvOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInvsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (invsBuilder_ == null) { + invs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + invsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PInv_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PInv( + this); + int from_bitField0_ = bitField0_; + if (invsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + invs_ = java.util.Collections.unmodifiableList(invs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.invs_ = invs_; + } else { + result.invs_ = invsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PInv) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PInv) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PInv other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance()) + return this; + if (invsBuilder_ == null) { + if (!other.invs_.isEmpty()) { + if (invs_.isEmpty()) { + invs_ = other.invs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInvsIsMutable(); + invs_.addAll(other.invs_); + } + onChanged(); + } + } else { + if (!other.invs_.isEmpty()) { + if (invsBuilder_.isEmpty()) { + invsBuilder_.dispose(); + invsBuilder_ = null; + invs_ = other.invs_; + bitField0_ = (bitField0_ & ~0x00000001); + invsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInvsFieldBuilder() : null; + } else { + invsBuilder_.addAllMessages(other.invs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PInv) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List invs_ = java.util.Collections + .emptyList(); + + private void ensureInvsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + invs_ = new java.util.ArrayList(invs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 invsBuilder_; + + /** + * repeated .Inventory invs = 1; + */ + public java.util.List getInvsList() { + if (invsBuilder_ == null) { + return java.util.Collections.unmodifiableList(invs_); + } else { + return invsBuilder_.getMessageList(); + } + } + + /** + * repeated .Inventory invs = 1; + */ + public int getInvsCount() { + if (invsBuilder_ == null) { + return invs_.size(); + } else { + return invsBuilder_.getCount(); + } + } + + /** + * repeated .Inventory invs = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { + if (invsBuilder_ == null) { + return invs_.get(index); + } else { + return invsBuilder_.getMessage(index); + } + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder setInvs(int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { + if (invsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvsIsMutable(); + invs_.set(index, value); + onChanged(); + } else { + invsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder setInvs(int index, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.set(index, builderForValue.build()); + onChanged(); + } else { + invsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder addInvs(cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { + if (invsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvsIsMutable(); + invs_.add(value); + onChanged(); + } else { + invsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder addInvs(int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { + if (invsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvsIsMutable(); + invs_.add(index, value); + onChanged(); + } else { + invsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder addInvs(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.add(builderForValue.build()); + onChanged(); + } else { + invsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder addInvs(int index, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.add(index, builderForValue.build()); + onChanged(); + } else { + invsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder addAllInvs( + java.lang.Iterable values) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invs_); + onChanged(); + } else { + invsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder clearInvs() { + if (invsBuilder_ == null) { + invs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + invsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public Builder removeInvs(int index) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.remove(index); + onChanged(); + } else { + invsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Inventory invs = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder getInvsBuilder(int index) { + return getInvsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Inventory invs = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder(int index) { + if (invsBuilder_ == null) { + return invs_.get(index); + } else { + return invsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Inventory invs = 1; + */ + public java.util.List getInvsOrBuilderList() { + if (invsBuilder_ != null) { + return invsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invs_); + } + } + + /** + * repeated .Inventory invs = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder() { + return getInvsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); + } + + /** + * repeated .Inventory invs = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder(int index) { + return getInvsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); + } + + /** + * repeated .Inventory invs = 1; + */ + public java.util.List getInvsBuilderList() { + return getInvsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getInvsFieldBuilder() { + if (invsBuilder_ == null) { + invsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + invs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + invs_ = null; + } + return invsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PInv) + } + + // @@protoc_insertion_point(class_scope:P2PInv) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PInv DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PInv(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PInv parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PInv(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InventoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:Inventory) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         *类型,数据类型,MSG_TX MSG_BLOCK
+         * 
+ * + * int32 ty = 1; + * + * @return The ty. + */ + int getTy(); + + /** + *
+         */哈希
+         * 
+ * + * bytes hash = 2; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + *
+         * 高度
+         * 
+ * + * int64 height = 3; + * + * @return The height. + */ + long getHeight(); + } + + /** + *
+     * ty=MSG_TX MSG_BLOCK
+     * 
+ * + * Protobuf type {@code Inventory} + */ + public static final class Inventory extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Inventory) + InventoryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Inventory.newBuilder() to construct. + private Inventory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Inventory() { + hash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Inventory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Inventory(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + ty_ = input.readInt32(); + break; + } + case 18: { + + hash_ = input.readBytes(); + break; + } + case 24: { + + height_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.class, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder.class); + } + + public static final int TY_FIELD_NUMBER = 1; + private int ty_; + + /** + *
+         *类型,数据类型,MSG_TX MSG_BLOCK
+         * 
+ * + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + public static final int HASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString hash_; + + /** + *
+         */哈希
+         * 
+ * + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int HEIGHT_FIELD_NUMBER = 3; + private long height_; + + /** + *
+         * 高度
+         * 
+ * + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ty_ != 0) { + output.writeInt32(1, ty_); + } + if (!hash_.isEmpty()) { + output.writeBytes(2, hash_); + } + if (height_ != 0L) { + output.writeInt64(3, height_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ty_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hash_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, height_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.Inventory)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.Inventory other = (cn.chain33.javasdk.model.protobuf.P2pService.Inventory) obj; + + if (getTy() != other.getTy()) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Inventory prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * ty=MSG_TX MSG_BLOCK
+         * 
+ * + * Protobuf type {@code Inventory} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Inventory) + cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.class, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.Inventory.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + height_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory build() { + cn.chain33.javasdk.model.protobuf.P2pService.Inventory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.Inventory result = new cn.chain33.javasdk.model.protobuf.P2pService.Inventory( + this); + result.ty_ = ty_; + result.hash_ = hash_; + result.height_ = height_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.Inventory) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Inventory) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.Inventory other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.Inventory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.Inventory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int ty_; + + /** + *
+             *类型,数据类型,MSG_TX MSG_BLOCK
+             * 
+ * + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + *
+             *类型,数据类型,MSG_TX MSG_BLOCK
+             * 
+ * + * int32 ty = 1; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + *
+             *类型,数据类型,MSG_TX MSG_BLOCK
+             * 
+ * + * int32 ty = 1; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             */哈希
+             * 
+ * + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + *
+             */哈希
+             * 
+ * + * bytes hash = 2; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + *
+             */哈希
+             * 
+ * + * bytes hash = 2; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private long height_; + + /** + *
+             * 高度
+             * 
+ * + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + *
+             * 高度
+             * 
+ * + * int64 height = 3; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + *
+             * 高度
+             * 
+ * + * int64 height = 3; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Inventory) + } + + // @@protoc_insertion_point(class_scope:Inventory) + private static final cn.chain33.javasdk.model.protobuf.P2pService.Inventory DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.Inventory(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Inventory parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Inventory(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PGetDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         */ p2p版本
+         * 
+ * + * int32 version = 1; + * + * @return The version. + */ + int getVersion(); + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + java.util.List getInvsList(); + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index); + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + int getInvsCount(); + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + java.util.List getInvsOrBuilderList(); + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder(int index); + } + + /** + *
+     **
+     * 通过invs 下载数据
+     * 
+ * + * Protobuf type {@code P2PGetData} + */ + public static final class P2PGetData extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetData) + P2PGetDataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PGetData.newBuilder() to construct. + private P2PGetData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PGetData() { + invs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PGetData(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + invs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + invs_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + invs_ = java.util.Collections.unmodifiableList(invs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + + /** + *
+         */ p2p版本
+         * 
+ * + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int INVS_FIELD_NUMBER = 2; + private java.util.List invs_; + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + @java.lang.Override + public java.util.List getInvsList() { + return invs_; + } + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + @java.lang.Override + public java.util.List getInvsOrBuilderList() { + return invs_; + } + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + @java.lang.Override + public int getInvsCount() { + return invs_.size(); + } + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { + return invs_.get(index); + } + + /** + *
+         */ invs 数组
+         * 
+ * + * repeated .Inventory invs = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder(int index) { + return invs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + for (int i = 0; i < invs_.size(); i++) { + output.writeMessage(2, invs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + for (int i = 0; i < invs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, invs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) obj; + + if (getVersion() != other.getVersion()) + return false; + if (!getInvsList().equals(other.getInvsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + if (getInvsCount() > 0) { + hash = (37 * hash) + INVS_FIELD_NUMBER; + hash = (53 * hash) + getInvsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * 通过invs 下载数据
+         * 
+ * + * Protobuf type {@code P2PGetData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetData) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInvsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + if (invsBuilder_ == null) { + invs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + invsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData( + this); + int from_bitField0_ = bitField0_; + result.version_ = version_; + if (invsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + invs_ = java.util.Collections.unmodifiableList(invs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.invs_ = invs_; + } else { + result.invs_ = invsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.getDefaultInstance()) + return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (invsBuilder_ == null) { + if (!other.invs_.isEmpty()) { + if (invs_.isEmpty()) { + invs_ = other.invs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInvsIsMutable(); + invs_.addAll(other.invs_); + } + onChanged(); + } + } else { + if (!other.invs_.isEmpty()) { + if (invsBuilder_.isEmpty()) { + invsBuilder_.dispose(); + invsBuilder_ = null; + invs_ = other.invs_; + bitField0_ = (bitField0_ & ~0x00000001); + invsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInvsFieldBuilder() : null; + } else { + invsBuilder_.addAllMessages(other.invs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int version_; + + /** + *
+             */ p2p版本
+             * 
+ * + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + /** + *
+             */ p2p版本
+             * 
+ * + * int32 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + + /** + *
+             */ p2p版本
+             * 
+ * + * int32 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private java.util.List invs_ = java.util.Collections + .emptyList(); + + private void ensureInvsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + invs_ = new java.util.ArrayList(invs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 invsBuilder_; + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public java.util.List getInvsList() { + if (invsBuilder_ == null) { + return java.util.Collections.unmodifiableList(invs_); + } else { + return invsBuilder_.getMessageList(); + } + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public int getInvsCount() { + if (invsBuilder_ == null) { + return invs_.size(); + } else { + return invsBuilder_.getCount(); + } + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { + if (invsBuilder_ == null) { + return invs_.get(index); + } else { + return invsBuilder_.getMessage(index); + } + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder setInvs(int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { + if (invsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvsIsMutable(); + invs_.set(index, value); + onChanged(); + } else { + invsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder setInvs(int index, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.set(index, builderForValue.build()); + onChanged(); + } else { + invsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder addInvs(cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { + if (invsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvsIsMutable(); + invs_.add(value); + onChanged(); + } else { + invsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder addInvs(int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { + if (invsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvsIsMutable(); + invs_.add(index, value); + onChanged(); + } else { + invsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder addInvs(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.add(builderForValue.build()); + onChanged(); + } else { + invsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder addInvs(int index, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.add(index, builderForValue.build()); + onChanged(); + } else { + invsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder addAllInvs( + java.lang.Iterable values) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invs_); + onChanged(); + } else { + invsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder clearInvs() { + if (invsBuilder_ == null) { + invs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + invsBuilder_.clear(); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public Builder removeInvs(int index) { + if (invsBuilder_ == null) { + ensureInvsIsMutable(); + invs_.remove(index); + onChanged(); + } else { + invsBuilder_.remove(index); + } + return this; + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder getInvsBuilder(int index) { + return getInvsFieldBuilder().getBuilder(index); + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder(int index) { + if (invsBuilder_ == null) { + return invs_.get(index); + } else { + return invsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public java.util.List getInvsOrBuilderList() { + if (invsBuilder_ != null) { + return invsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invs_); + } + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder() { + return getInvsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder(int index) { + return getInvsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); + } + + /** + *
+             */ invs 数组
+             * 
+ * + * repeated .Inventory invs = 2; + */ + public java.util.List getInvsBuilderList() { + return getInvsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getInvsFieldBuilder() { + if (invsBuilder_ == null) { + invsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + invs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + invs_ = null; + } + return invsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PGetData) + } + + // @@protoc_insertion_point(class_scope:P2PGetData) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetData parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PRouteOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PRoute) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 TTL = 1; + * + * @return The tTL. + */ + int getTTL(); + } + + /** + *
+     * 
+ * + * Protobuf type {@code P2PRoute} + */ + public static final class P2PRoute extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PRoute) + P2PRouteOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PRoute.newBuilder() to construct. + private P2PRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PRoute() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PRoute(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PRoute(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + tTL_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder.class); + } + + public static final int TTL_FIELD_NUMBER = 1; + private int tTL_; + + /** + * int32 TTL = 1; + * + * @return The tTL. + */ + @java.lang.Override + public int getTTL() { + return tTL_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tTL_ != 0) { + output.writeInt32(1, tTL_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (tTL_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, tTL_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute) obj; + + if (getTTL() != other.getTTL()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTTL(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PRoute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PRoute) + cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + tTL_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute( + this); + result.tTL_ = tTL_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance()) + return this; + if (other.getTTL() != 0) { + setTTL(other.getTTL()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int tTL_; + + /** + * int32 TTL = 1; + * + * @return The tTL. + */ + @java.lang.Override + public int getTTL() { + return tTL_; + } + + /** + * int32 TTL = 1; + * + * @param value + * The tTL to set. + * + * @return This builder for chaining. + */ + public Builder setTTL(int value) { + + tTL_ = value; + onChanged(); + return this; + } + + /** + * int32 TTL = 1; + * + * @return This builder for chaining. + */ + public Builder clearTTL() { + + tTL_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PRoute) + } + + // @@protoc_insertion_point(class_scope:P2PRoute) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PRoute parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PRoute(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PTx) + com.google.protobuf.MessageOrBuilder { + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + boolean hasTx(); + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); + + /** + * .Transaction tx = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + + /** + * .P2PRoute route = 2; + * + * @return Whether the route field is set. + */ + boolean hasRoute(); + + /** + * .P2PRoute route = 2; + * + * @return The route. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute(); + + /** + * .P2PRoute route = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder(); + } + + /** + *
+     **
+     * p2p 发送交易协议
+     * 
+ * + * Protobuf type {@code P2PTx} + */ + public static final class P2PTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PTx) + P2PTxOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PTx.newBuilder() to construct. + private P2PTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PTx() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PTx(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; + if (tx_ != null) { + subBuilder = tx_.toBuilder(); + } + tx_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tx_); + tx_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder subBuilder = null; + if (route_ != null) { + subBuilder = route_.toBuilder(); + } + route_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(route_); + route_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder.class); + } + + public static final int TX_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return tx_ != null; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; + } + + /** + * .Transaction tx = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + return getTx(); + } + + public static final int ROUTE_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; + + /** + * .P2PRoute route = 2; + * + * @return Whether the route field is set. + */ + @java.lang.Override + public boolean hasRoute() { + return route_ != null; + } + + /** + * .P2PRoute route = 2; + * + * @return The route. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { + return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; + } + + /** + * .P2PRoute route = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { + return getRoute(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tx_ != null) { + output.writeMessage(1, getTx()); + } + if (route_ != null) { + output.writeMessage(2, getRoute()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (tx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTx()); + } + if (route_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRoute()); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) obj; + + if (hasTx() != other.hasTx()) + return false; + if (hasTx()) { + if (!getTx().equals(other.getTx())) + return false; + } + if (hasRoute() != other.hasRoute()) + return false; + if (hasRoute()) { + if (!getRoute().equals(other.getRoute())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTx()) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + } + if (hasRoute()) { + hash = (37 * hash) + ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getRoute().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * p2p 发送交易协议
+         * 
+ * + * Protobuf type {@code P2PTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PTx) + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txBuilder_ == null) { + tx_ = null; + } else { + tx_ = null; + txBuilder_ = null; + } + if (routeBuilder_ == null) { + route_ = null; + } else { + route_ = null; + routeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTx( + this); + if (txBuilder_ == null) { + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + if (routeBuilder_ == null) { + result.route_ = route_; + } else { + result.route_ = routeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance()) + return this; + if (other.hasTx()) { + mergeTx(other.getTx()); + } + if (other.hasRoute()) { + mergeRoute(other.getRoute()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + private com.google.protobuf.SingleFieldBuilderV3 txBuilder_; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + public boolean hasTx() { + return txBuilder_ != null || tx_ != null; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + if (txBuilder_ == null) { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } else { + return txBuilder_.getMessage(); + } + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tx_ = value; + onChanged(); + } else { + txBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txBuilder_ == null) { + tx_ = builderForValue.build(); + onChanged(); + } else { + txBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (tx_ != null) { + tx_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_) + .mergeFrom(value).buildPartial(); + } else { + tx_ = value; + } + onChanged(); + } else { + txBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = null; + onChanged(); + } else { + tx_ = null; + txBuilder_ = null; + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { + + onChanged(); + return getTxFieldBuilder().getBuilder(); + } + + /** + * .Transaction tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilder(); + } else { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } + } + + /** + * .Transaction tx = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTx(), getParentForChildren(), isClean()); + tx_ = null; + } + return txBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; + private com.google.protobuf.SingleFieldBuilderV3 routeBuilder_; + + /** + * .P2PRoute route = 2; + * + * @return Whether the route field is set. + */ + public boolean hasRoute() { + return routeBuilder_ != null || route_ != null; + } + + /** + * .P2PRoute route = 2; + * + * @return The route. + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { + if (routeBuilder_ == null) { + return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() + : route_; + } else { + return routeBuilder_.getMessage(); + } + } + + /** + * .P2PRoute route = 2; + */ + public Builder setRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { + if (routeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + route_ = value; + onChanged(); + } else { + routeBuilder_.setMessage(value); + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public Builder setRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder builderForValue) { + if (routeBuilder_ == null) { + route_ = builderForValue.build(); + onChanged(); + } else { + routeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public Builder mergeRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { + if (routeBuilder_ == null) { + if (route_ != null) { + route_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.newBuilder(route_) + .mergeFrom(value).buildPartial(); + } else { + route_ = value; + } + onChanged(); + } else { + routeBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public Builder clearRoute() { + if (routeBuilder_ == null) { + route_ = null; + onChanged(); + } else { + route_ = null; + routeBuilder_ = null; + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder getRouteBuilder() { + + onChanged(); + return getRouteFieldBuilder().getBuilder(); + } + + /** + * .P2PRoute route = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { + if (routeBuilder_ != null) { + return routeBuilder_.getMessageOrBuilder(); + } else { + return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() + : route_; + } + } + + /** + * .P2PRoute route = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getRouteFieldBuilder() { + if (routeBuilder_ == null) { + routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getRoute(), getParentForChildren(), isClean()); + route_ = null; + } + return routeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PTx) + } + + // @@protoc_insertion_point(class_scope:P2PTx) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTx(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PTx(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + boolean hasBlock(); + + /** + * .Block block = 1; + * + * @return The block. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); + + /** + * .Block block = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); + } + + /** + *
+     **
+     * p2p 发送区块协议
+     * 
+ * + * Protobuf type {@code P2PBlock} + */ + public static final class P2PBlock extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PBlock) + P2PBlockOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PBlock.newBuilder() to construct. + private P2PBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PBlock() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PBlock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PBlock(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; + if (block_ != null) { + subBuilder = block_.toBuilder(); + } + block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(block_); + block_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder.class); + } + + public static final int BLOCK_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; + + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return block_ != null; + } + + /** + * .Block block = 1; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() + : block_; + } + + /** + * .Block block = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + return getBlock(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (block_ != null) { + output.writeMessage(1, getBlock()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (block_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlock()); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) obj; + + if (hasBlock() != other.hasBlock()) + return false; + if (hasBlock()) { + if (!getBlock().equals(other.getBlock())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlock()) { + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * p2p 发送区块协议
+         * 
+ * + * Protobuf type {@code P2PBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PBlock) + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (blockBuilder_ == null) { + block_ = null; + } else { + block_ = null; + blockBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock( + this); + if (blockBuilder_ == null) { + result.block_ = block_; + } else { + result.block_ = blockBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance()) + return this; + if (other.hasBlock()) { + mergeBlock(other.getBlock()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; + private com.google.protobuf.SingleFieldBuilderV3 blockBuilder_; + + /** + * .Block block = 1; + * + * @return Whether the block field is set. + */ + public boolean hasBlock() { + return blockBuilder_ != null || block_ != null; + } + + /** + * .Block block = 1; + * + * @return The block. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + if (blockBuilder_ == null) { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } else { + return blockBuilder_.getMessage(); + } + } + + /** + * .Block block = 1; + */ + public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + block_ = value; + onChanged(); + } else { + blockBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder setBlock( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (blockBuilder_ == null) { + block_ = builderForValue.build(); + onChanged(); + } else { + blockBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (block_ != null) { + block_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_) + .mergeFrom(value).buildPartial(); + } else { + block_ = value; + } + onChanged(); + } else { + blockBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Block block = 1; + */ + public Builder clearBlock() { + if (blockBuilder_ == null) { + block_ = null; + onChanged(); + } else { + block_ = null; + blockBuilder_ = null; + } + + return this; + } + + /** + * .Block block = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { + + onChanged(); + return getBlockFieldBuilder().getBuilder(); + } + + /** + * .Block block = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + if (blockBuilder_ != null) { + return blockBuilder_.getMessageOrBuilder(); + } else { + return block_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; + } + } + + /** + * .Block block = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockFieldBuilder() { + if (blockBuilder_ == null) { + blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getBlock(), getParentForChildren(), isClean()); + block_ = null; + } + return blockBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PBlock) + } + + // @@protoc_insertion_point(class_scope:P2PBlock) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PBlock parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LightBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:LightBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 size = 1; + * + * @return The size. + */ + long getSize(); + + /** + * .Header header = 2; + * + * @return Whether the header field is set. + */ + boolean hasHeader(); + + /** + * .Header header = 2; + * + * @return The header. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); + + /** + * .Header header = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + + /** + * .Transaction minerTx = 3; + * + * @return Whether the minerTx field is set. + */ + boolean hasMinerTx(); + + /** + * .Transaction minerTx = 3; + * + * @return The minerTx. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getMinerTx(); + + /** + * .Transaction minerTx = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getMinerTxOrBuilder(); + + /** + * repeated string sTxHashes = 4; + * + * @return A list containing the sTxHashes. + */ + java.util.List getSTxHashesList(); + + /** + * repeated string sTxHashes = 4; + * + * @return The count of sTxHashes. + */ + int getSTxHashesCount(); + + /** + * repeated string sTxHashes = 4; + * + * @param index + * The index of the element to return. + * + * @return The sTxHashes at the given index. + */ + java.lang.String getSTxHashes(int index); + + /** + * repeated string sTxHashes = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the sTxHashes at the given index. + */ + com.google.protobuf.ByteString getSTxHashesBytes(int index); + } + + /** + *
+     **
+     * p2p 轻量级区块, 广播交易短哈希列表
+     * 
+ * + * Protobuf type {@code LightBlock} + */ + public static final class LightBlock extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:LightBlock) + LightBlockOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LightBlock.newBuilder() to construct. + private LightBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LightBlock() { + sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LightBlock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LightBlock(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + size_ = input.readInt64(); + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; + if (minerTx_ != null) { + subBuilder = minerTx_.toBuilder(); + } + minerTx_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minerTx_); + minerTx_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sTxHashes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sTxHashes_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sTxHashes_ = sTxHashes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.class, + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder.class); + } + + public static final int SIZE_FIELD_NUMBER = 1; + private long size_; + + /** + * int64 size = 1; + * + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + public static final int HEADER_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + + /** + * .Header header = 2; + * + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + + /** + * .Header header = 2; + * + * @return The header. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + + /** + * .Header header = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int MINERTX_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction minerTx_; + + /** + * .Transaction minerTx = 3; + * + * @return Whether the minerTx field is set. + */ + @java.lang.Override + public boolean hasMinerTx() { + return minerTx_ != null; + } + + /** + * .Transaction minerTx = 3; + * + * @return The minerTx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getMinerTx() { + return minerTx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : minerTx_; + } + + /** + * .Transaction minerTx = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getMinerTxOrBuilder() { + return getMinerTx(); + } + + public static final int STXHASHES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList sTxHashes_; + + /** + * repeated string sTxHashes = 4; + * + * @return A list containing the sTxHashes. + */ + public com.google.protobuf.ProtocolStringList getSTxHashesList() { + return sTxHashes_; + } + + /** + * repeated string sTxHashes = 4; + * + * @return The count of sTxHashes. + */ + public int getSTxHashesCount() { + return sTxHashes_.size(); + } + + /** + * repeated string sTxHashes = 4; + * + * @param index + * The index of the element to return. + * + * @return The sTxHashes at the given index. + */ + public java.lang.String getSTxHashes(int index) { + return sTxHashes_.get(index); + } + + /** + * repeated string sTxHashes = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the sTxHashes at the given index. + */ + public com.google.protobuf.ByteString getSTxHashesBytes(int index) { + return sTxHashes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (size_ != 0L) { + output.writeInt64(1, size_); + } + if (header_ != null) { + output.writeMessage(2, getHeader()); + } + if (minerTx_ != null) { + output.writeMessage(3, getMinerTx()); + } + for (int i = 0; i < sTxHashes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sTxHashes_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, size_); + } + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHeader()); + } + if (minerTx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinerTx()); + } + { + int dataSize = 0; + for (int i = 0; i < sTxHashes_.size(); i++) { + dataSize += computeStringSizeNoTag(sTxHashes_.getRaw(i)); + } + size += dataSize; + size += 1 * getSTxHashesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.LightBlock)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock other = (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) obj; + + if (getSize() != other.getSize()) + return false; + if (hasHeader() != other.hasHeader()) + return false; + if (hasHeader()) { + if (!getHeader().equals(other.getHeader())) + return false; + } + if (hasMinerTx() != other.hasMinerTx()) + return false; + if (hasMinerTx()) { + if (!getMinerTx().equals(other.getMinerTx())) + return false; + } + if (!getSTxHashesList().equals(other.getSTxHashesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasMinerTx()) { + hash = (37 * hash) + MINERTX_FIELD_NUMBER; + hash = (53 * hash) + getMinerTx().hashCode(); + } + if (getSTxHashesCount() > 0) { + hash = (37 * hash) + STXHASHES_FIELD_NUMBER; + hash = (53 * hash) + getSTxHashesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * p2p 轻量级区块, 广播交易短哈希列表
+         * 
+ * + * Protobuf type {@code LightBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:LightBlock) + cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.class, + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + size_ = 0L; + + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (minerTxBuilder_ == null) { + minerTx_ = null; + } else { + minerTx_ = null; + minerTxBuilder_ = null; + } + sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock build() { + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock result = new cn.chain33.javasdk.model.protobuf.P2pService.LightBlock( + this); + int from_bitField0_ = bitField0_; + result.size_ = size_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (minerTxBuilder_ == null) { + result.minerTx_ = minerTx_; + } else { + result.minerTx_ = minerTxBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + sTxHashes_ = sTxHashes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sTxHashes_ = sTxHashes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance()) + return this; + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasMinerTx()) { + mergeMinerTx(other.getMinerTx()); + } + if (!other.sTxHashes_.isEmpty()) { + if (sTxHashes_.isEmpty()) { + sTxHashes_ = other.sTxHashes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSTxHashesIsMutable(); + sTxHashes_.addAll(other.sTxHashes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long size_; + + /** + * int64 size = 1; + * + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + /** + * int64 size = 1; + * + * @param value + * The size to set. + * + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + + /** + * int64 size = 1; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + private com.google.protobuf.SingleFieldBuilderV3 headerBuilder_; + + /** + * .Header header = 2; + * + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + + /** + * .Header header = 2; + * + * @return The header. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + if (headerBuilder_ == null) { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } else { + return headerBuilder_.getMessage(); + } + } + + /** + * .Header header = 2; + */ + public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Header header = 2; + */ + public Builder setHeader( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Header header = 2; + */ + public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_) + .mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Header header = 2; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + + /** + * .Header header = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + + /** + * .Header header = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + } + + /** + * .Header header = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeader(), getParentForChildren(), isClean()); + header_ = null; + } + return headerBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction minerTx_; + private com.google.protobuf.SingleFieldBuilderV3 minerTxBuilder_; + + /** + * .Transaction minerTx = 3; + * + * @return Whether the minerTx field is set. + */ + public boolean hasMinerTx() { + return minerTxBuilder_ != null || minerTx_ != null; + } + + /** + * .Transaction minerTx = 3; + * + * @return The minerTx. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getMinerTx() { + if (minerTxBuilder_ == null) { + return minerTx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : minerTx_; + } else { + return minerTxBuilder_.getMessage(); + } + } + + /** + * .Transaction minerTx = 3; + */ + public Builder setMinerTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (minerTxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minerTx_ = value; + onChanged(); + } else { + minerTxBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Transaction minerTx = 3; + */ + public Builder setMinerTx( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (minerTxBuilder_ == null) { + minerTx_ = builderForValue.build(); + onChanged(); + } else { + minerTxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Transaction minerTx = 3; + */ + public Builder mergeMinerTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (minerTxBuilder_ == null) { + if (minerTx_ != null) { + minerTx_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction + .newBuilder(minerTx_).mergeFrom(value).buildPartial(); + } else { + minerTx_ = value; + } + onChanged(); + } else { + minerTxBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Transaction minerTx = 3; + */ + public Builder clearMinerTx() { + if (minerTxBuilder_ == null) { + minerTx_ = null; + onChanged(); + } else { + minerTx_ = null; + minerTxBuilder_ = null; + } + + return this; + } + + /** + * .Transaction minerTx = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getMinerTxBuilder() { + + onChanged(); + return getMinerTxFieldBuilder().getBuilder(); + } + + /** + * .Transaction minerTx = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getMinerTxOrBuilder() { + if (minerTxBuilder_ != null) { + return minerTxBuilder_.getMessageOrBuilder(); + } else { + return minerTx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : minerTx_; + } + } + + /** + * .Transaction minerTx = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getMinerTxFieldBuilder() { + if (minerTxBuilder_ == null) { + minerTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getMinerTx(), getParentForChildren(), isClean()); + minerTx_ = null; + } + return minerTxBuilder_; + } + + private com.google.protobuf.LazyStringList sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSTxHashesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sTxHashes_ = new com.google.protobuf.LazyStringArrayList(sTxHashes_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string sTxHashes = 4; + * + * @return A list containing the sTxHashes. + */ + public com.google.protobuf.ProtocolStringList getSTxHashesList() { + return sTxHashes_.getUnmodifiableView(); + } + + /** + * repeated string sTxHashes = 4; + * + * @return The count of sTxHashes. + */ + public int getSTxHashesCount() { + return sTxHashes_.size(); + } + + /** + * repeated string sTxHashes = 4; + * + * @param index + * The index of the element to return. + * + * @return The sTxHashes at the given index. + */ + public java.lang.String getSTxHashes(int index) { + return sTxHashes_.get(index); + } + + /** + * repeated string sTxHashes = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the sTxHashes at the given index. + */ + public com.google.protobuf.ByteString getSTxHashesBytes(int index) { + return sTxHashes_.getByteString(index); + } + + /** + * repeated string sTxHashes = 4; + * + * @param index + * The index to set the value at. + * @param value + * The sTxHashes to set. + * + * @return This builder for chaining. + */ + public Builder setSTxHashes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSTxHashesIsMutable(); + sTxHashes_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string sTxHashes = 4; + * + * @param value + * The sTxHashes to add. + * + * @return This builder for chaining. + */ + public Builder addSTxHashes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSTxHashesIsMutable(); + sTxHashes_.add(value); + onChanged(); + return this; + } + + /** + * repeated string sTxHashes = 4; + * + * @param values + * The sTxHashes to add. + * + * @return This builder for chaining. + */ + public Builder addAllSTxHashes(java.lang.Iterable values) { + ensureSTxHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sTxHashes_); + onChanged(); + return this; + } + + /** + * repeated string sTxHashes = 4; + * + * @return This builder for chaining. + */ + public Builder clearSTxHashes() { + sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string sTxHashes = 4; + * + * @param value + * The bytes of the sTxHashes to add. + * + * @return This builder for chaining. + */ + public Builder addSTxHashesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSTxHashesIsMutable(); + sTxHashes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:LightBlock) + } + + // @@protoc_insertion_point(class_scope:LightBlock) + private static final cn.chain33.javasdk.model.protobuf.P2pService.LightBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.LightBlock(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LightBlock parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LightBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LightTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:LightTx) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + * + * @return The txHash. + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * .P2PRoute route = 2; + * + * @return Whether the route field is set. + */ + boolean hasRoute(); + + /** + * .P2PRoute route = 2; + * + * @return The route. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute(); + + /** + * .P2PRoute route = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder(); + } + + /** + *
+     * 轻量级交易广播
+     * 
+ * + * Protobuf type {@code LightTx} + */ + public static final class LightTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:LightTx) + LightTxOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LightTx.newBuilder() to construct. + private LightTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LightTx() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LightTx(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LightTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + txHash_ = input.readBytes(); + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder subBuilder = null; + if (route_ != null) { + subBuilder = route_.toBuilder(); + } + route_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(route_); + route_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.LightTx.class, + cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder.class); + } + + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + + /** + * bytes txHash = 1; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + public static final int ROUTE_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; + + /** + * .P2PRoute route = 2; + * + * @return Whether the route field is set. + */ + @java.lang.Override + public boolean hasRoute() { + return route_ != null; + } + + /** + * .P2PRoute route = 2; + * + * @return The route. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { + return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; + } + + /** + * .P2PRoute route = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { + return getRoute(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + if (route_ != null) { + output.writeMessage(2, getRoute()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + if (route_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRoute()); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.LightTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.LightTx other = (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) obj; + + if (!getTxHash().equals(other.getTxHash())) + return false; + if (hasRoute() != other.hasRoute()) + return false; + if (hasRoute()) { + if (!getRoute().equals(other.getRoute())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + if (hasRoute()) { + hash = (37 * hash) + ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getRoute().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.LightTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 LightTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:LightTx) + cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.LightTx.class, + cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.LightTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + if (routeBuilder_ == null) { + route_ = null; + } else { + route_ = null; + routeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTx build() { + cn.chain33.javasdk.model.protobuf.P2pService.LightTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTx buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.LightTx result = new cn.chain33.javasdk.model.protobuf.P2pService.LightTx( + this); + result.txHash_ = txHash_; + if (routeBuilder_ == null) { + result.route_ = route_; + } else { + result.route_ = routeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.LightTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightTx) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.LightTx other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance()) + return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.hasRoute()) { + mergeRoute(other.getRoute()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.LightTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes txHash = 1; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + /** + * bytes txHash = 1; + * + * @param value + * The txHash to set. + * + * @return This builder for chaining. + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + + /** + * bytes txHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; + private com.google.protobuf.SingleFieldBuilderV3 routeBuilder_; + + /** + * .P2PRoute route = 2; + * + * @return Whether the route field is set. + */ + public boolean hasRoute() { + return routeBuilder_ != null || route_ != null; + } + + /** + * .P2PRoute route = 2; + * + * @return The route. + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { + if (routeBuilder_ == null) { + return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() + : route_; + } else { + return routeBuilder_.getMessage(); + } + } + + /** + * .P2PRoute route = 2; + */ + public Builder setRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { + if (routeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + route_ = value; + onChanged(); + } else { + routeBuilder_.setMessage(value); + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public Builder setRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder builderForValue) { + if (routeBuilder_ == null) { + route_ = builderForValue.build(); + onChanged(); + } else { + routeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public Builder mergeRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { + if (routeBuilder_ == null) { + if (route_ != null) { + route_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.newBuilder(route_) + .mergeFrom(value).buildPartial(); + } else { + route_ = value; + } + onChanged(); + } else { + routeBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public Builder clearRoute() { + if (routeBuilder_ == null) { + route_ = null; + onChanged(); + } else { + route_ = null; + routeBuilder_ = null; + } + + return this; + } + + /** + * .P2PRoute route = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder getRouteBuilder() { + + onChanged(); + return getRouteFieldBuilder().getBuilder(); + } + + /** + * .P2PRoute route = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { + if (routeBuilder_ != null) { + return routeBuilder_.getMessageOrBuilder(); + } else { + return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() + : route_; + } + } + + /** + * .P2PRoute route = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getRouteFieldBuilder() { + if (routeBuilder_ == null) { + routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getRoute(), getParentForChildren(), isClean()); + route_ = null; + } + return routeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:LightTx) + } + + // @@protoc_insertion_point(class_scope:LightTx) + private static final cn.chain33.javasdk.model.protobuf.P2pService.LightTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.LightTx(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LightTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LightTx(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PTxReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PTxReq) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + * + * @return The txHash. + */ + com.google.protobuf.ByteString getTxHash(); + } + + /** + *
+     * 请求完整交易数据
+     * 
+ * + * Protobuf type {@code P2PTxReq} + */ + public static final class P2PTxReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PTxReq) + P2PTxReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PTxReq.newBuilder() to construct. + private P2PTxReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PTxReq() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PTxReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PTxReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + txHash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder.class); + } + + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + + /** + * bytes txHash = 1; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) obj; + + if (!getTxHash().equals(other.getTxHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PTxReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PTxReq) + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq( + this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance()) + return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes txHash = 1; + * + * @return The txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + /** + * bytes txHash = 1; + * + * @param value + * The txHash to set. + * + * @return This builder for chaining. + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + + /** + * bytes txHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PTxReq) + } + + // @@protoc_insertion_point(class_scope:P2PTxReq) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PTxReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PTxReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PBlockTxReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PBlockTxReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string blockHash = 1; + * + * @return The blockHash. + */ + java.lang.String getBlockHash(); + + /** + * string blockHash = 1; + * + * @return The bytes for blockHash. + */ + com.google.protobuf.ByteString getBlockHashBytes(); + + /** + * repeated int32 txIndices = 2; + * + * @return A list containing the txIndices. + */ + java.util.List getTxIndicesList(); + + /** + * repeated int32 txIndices = 2; + * + * @return The count of txIndices. + */ + int getTxIndicesCount(); + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index of the element to return. + * + * @return The txIndices at the given index. + */ + int getTxIndices(int index); + } + + /** + *
+     * 请求区块内交易数据
+     * 
+ * + * Protobuf type {@code P2PBlockTxReq} + */ + public static final class P2PBlockTxReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PBlockTxReq) + P2PBlockTxReqOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PBlockTxReq.newBuilder() to construct. + private P2PBlockTxReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PBlockTxReq() { + blockHash_ = ""; + txIndices_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PBlockTxReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PBlockTxReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + blockHash_ = s; + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txIndices_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + txIndices_.addInt(input.readInt32()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + txIndices_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + txIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txIndices_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder.class); + } + + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private volatile java.lang.Object blockHash_; + + /** + * string blockHash = 1; + * + * @return The blockHash. + */ + @java.lang.Override + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } + } + + /** + * string blockHash = 1; + * + * @return The bytes for blockHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TXINDICES_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.IntList txIndices_; + + /** + * repeated int32 txIndices = 2; + * + * @return A list containing the txIndices. + */ + @java.lang.Override + public java.util.List getTxIndicesList() { + return txIndices_; + } + + /** + * repeated int32 txIndices = 2; + * + * @return The count of txIndices. + */ + public int getTxIndicesCount() { + return txIndices_.size(); + } + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index of the element to return. + * + * @return The txIndices at the given index. + */ + public int getTxIndices(int index) { + return txIndices_.getInt(index); + } + + private int txIndicesMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getBlockHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, blockHash_); + } + if (getTxIndicesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(txIndicesMemoizedSerializedSize); + } + for (int i = 0; i < txIndices_.size(); i++) { + output.writeInt32NoTag(txIndices_.getInt(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getBlockHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, blockHash_); + } + { + int dataSize = 0; + for (int i = 0; i < txIndices_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(txIndices_.getInt(i)); + } + size += dataSize; + if (!getTxIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + txIndicesMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) obj; + + if (!getBlockHash().equals(other.getBlockHash())) + return false; + if (!getTxIndicesList().equals(other.getTxIndicesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + if (getTxIndicesCount() > 0) { + hash = (37 * hash) + TXINDICES_FIELD_NUMBER; + hash = (53 * hash) + getTxIndicesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PBlockTxReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PBlockTxReq) + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + blockHash_ = ""; + + txIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq( + this); + int from_bitField0_ = bitField0_; + result.blockHash_ = blockHash_; + if (((bitField0_ & 0x00000001) != 0)) { + txIndices_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txIndices_ = txIndices_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance()) + return this; + if (!other.getBlockHash().isEmpty()) { + blockHash_ = other.blockHash_; + onChanged(); + } + if (!other.txIndices_.isEmpty()) { + if (txIndices_.isEmpty()) { + txIndices_ = other.txIndices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxIndicesIsMutable(); + txIndices_.addAll(other.txIndices_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object blockHash_ = ""; + + /** + * string blockHash = 1; + * + * @return The blockHash. + */ + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string blockHash = 1; + * + * @return The bytes for blockHash. + */ + public com.google.protobuf.ByteString getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string blockHash = 1; + * + * @param value + * The blockHash to set. + * + * @return This builder for chaining. + */ + public Builder setBlockHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + + /** + * string blockHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + /** + * string blockHash = 1; + * + * @param value + * The bytes for blockHash to set. + * + * @return This builder for chaining. + */ + public Builder setBlockHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + blockHash_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList txIndices_ = emptyIntList(); + + private void ensureTxIndicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txIndices_ = mutableCopy(txIndices_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated int32 txIndices = 2; + * + * @return A list containing the txIndices. + */ + public java.util.List getTxIndicesList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(txIndices_) + : txIndices_; + } + + /** + * repeated int32 txIndices = 2; + * + * @return The count of txIndices. + */ + public int getTxIndicesCount() { + return txIndices_.size(); + } + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index of the element to return. + * + * @return The txIndices at the given index. + */ + public int getTxIndices(int index) { + return txIndices_.getInt(index); + } + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index to set the value at. + * @param value + * The txIndices to set. + * + * @return This builder for chaining. + */ + public Builder setTxIndices(int index, int value) { + ensureTxIndicesIsMutable(); + txIndices_.setInt(index, value); + onChanged(); + return this; + } + + /** + * repeated int32 txIndices = 2; + * + * @param value + * The txIndices to add. + * + * @return This builder for chaining. + */ + public Builder addTxIndices(int value) { + ensureTxIndicesIsMutable(); + txIndices_.addInt(value); + onChanged(); + return this; + } + + /** + * repeated int32 txIndices = 2; + * + * @param values + * The txIndices to add. + * + * @return This builder for chaining. + */ + public Builder addAllTxIndices(java.lang.Iterable values) { + ensureTxIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txIndices_); + onChanged(); + return this; + } + + /** + * repeated int32 txIndices = 2; + * + * @return This builder for chaining. + */ + public Builder clearTxIndices() { + txIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PBlockTxReq) + } + + // @@protoc_insertion_point(class_scope:P2PBlockTxReq) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PBlockTxReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PBlockTxReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PBlockTxReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PBlockTxReply) + com.google.protobuf.MessageOrBuilder { + + /** + * string blockHash = 1; + * + * @return The blockHash. + */ + java.lang.String getBlockHash(); + + /** + * string blockHash = 1; + * + * @return The bytes for blockHash. + */ + com.google.protobuf.ByteString getBlockHashBytes(); + + /** + * repeated int32 txIndices = 2; + * + * @return A list containing the txIndices. + */ + java.util.List getTxIndicesList(); + + /** + * repeated int32 txIndices = 2; + * + * @return The count of txIndices. + */ + int getTxIndicesCount(); + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index of the element to return. + * + * @return The txIndices at the given index. + */ + int getTxIndices(int index); + + /** + * repeated .Transaction txs = 3; + */ + java.util.List getTxsList(); + + /** + * repeated .Transaction txs = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); + + /** + * repeated .Transaction txs = 3; + */ + int getTxsCount(); + + /** + * repeated .Transaction txs = 3; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .Transaction txs = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder(int index); + } + + /** + *
+     * 区块交易数据返回
+     * 
+ * + * Protobuf type {@code P2PBlockTxReply} + */ + public static final class P2PBlockTxReply extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PBlockTxReply) + P2PBlockTxReplyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PBlockTxReply.newBuilder() to construct. + private P2PBlockTxReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PBlockTxReply() { + blockHash_ = ""; + txIndices_ = emptyIntList(); + txs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PBlockTxReply(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PBlockTxReply(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + blockHash_ = s; + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txIndices_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + txIndices_.addInt(input.readInt32()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + txIndices_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + txIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txIndices_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder.class); + } + + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private volatile java.lang.Object blockHash_; + + /** + * string blockHash = 1; + * + * @return The blockHash. + */ + @java.lang.Override + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } + } + + /** + * string blockHash = 1; + * + * @return The bytes for blockHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TXINDICES_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.IntList txIndices_; + + /** + * repeated int32 txIndices = 2; + * + * @return A list containing the txIndices. + */ + @java.lang.Override + public java.util.List getTxIndicesList() { + return txIndices_; + } + + /** + * repeated int32 txIndices = 2; + * + * @return The count of txIndices. + */ + public int getTxIndicesCount() { + return txIndices_.size(); + } + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index of the element to return. + * + * @return The txIndices at the given index. + */ + public int getTxIndices(int index) { + return txIndices_.getInt(index); + } + + private int txIndicesMemoizedSerializedSize = -1; + + public static final int TXS_FIELD_NUMBER = 3; + private java.util.List txs_; + + /** + * repeated .Transaction txs = 3; + */ + @java.lang.Override + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .Transaction txs = 3; + */ + @java.lang.Override + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .Transaction txs = 3; + */ + @java.lang.Override + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .Transaction txs = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .Transaction txs = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getBlockHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, blockHash_); + } + if (getTxIndicesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(txIndicesMemoizedSerializedSize); + } + for (int i = 0; i < txIndices_.size(); i++) { + output.writeInt32NoTag(txIndices_.getInt(i)); + } + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(3, txs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getBlockHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, blockHash_); + } + { + int dataSize = 0; + for (int i = 0; i < txIndices_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(txIndices_.getInt(i)); + } + size += dataSize; + if (!getTxIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + txIndicesMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, txs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) obj; + + if (!getBlockHash().equals(other.getBlockHash())) + return false; + if (!getTxIndicesList().equals(other.getTxIndicesList())) + return false; + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + if (getTxIndicesCount() > 0) { + hash = (37 * hash) + TXINDICES_FIELD_NUMBER; + hash = (53 * hash) + getTxIndicesList().hashCode(); + } + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 P2PBlockTxReply} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PBlockTxReply) + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + blockHash_ = ""; + + txIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + txsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply( + this); + int from_bitField0_ = bitField0_; + result.blockHash_ = blockHash_; + if (((bitField0_ & 0x00000001) != 0)) { + txIndices_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txIndices_ = txIndices_; + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance()) + return this; + if (!other.getBlockHash().isEmpty()) { + blockHash_ = other.blockHash_; + onChanged(); + } + if (!other.txIndices_.isEmpty()) { + if (txIndices_.isEmpty()) { + txIndices_ = other.txIndices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxIndicesIsMutable(); + txIndices_.addAll(other.txIndices_); + } + onChanged(); + } + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000002); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object blockHash_ = ""; + + /** + * string blockHash = 1; + * + * @return The blockHash. + */ + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string blockHash = 1; + * + * @return The bytes for blockHash. + */ + public com.google.protobuf.ByteString getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string blockHash = 1; + * + * @param value + * The blockHash to set. + * + * @return This builder for chaining. + */ + public Builder setBlockHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + + /** + * string blockHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + /** + * string blockHash = 1; + * + * @param value + * The bytes for blockHash to set. + * + * @return This builder for chaining. + */ + public Builder setBlockHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + blockHash_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList txIndices_ = emptyIntList(); + + private void ensureTxIndicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txIndices_ = mutableCopy(txIndices_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated int32 txIndices = 2; + * + * @return A list containing the txIndices. + */ + public java.util.List getTxIndicesList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(txIndices_) + : txIndices_; + } + + /** + * repeated int32 txIndices = 2; + * + * @return The count of txIndices. + */ + public int getTxIndicesCount() { + return txIndices_.size(); + } + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index of the element to return. + * + * @return The txIndices at the given index. + */ + public int getTxIndices(int index) { + return txIndices_.getInt(index); + } + + /** + * repeated int32 txIndices = 2; + * + * @param index + * The index to set the value at. + * @param value + * The txIndices to set. + * + * @return This builder for chaining. + */ + public Builder setTxIndices(int index, int value) { + ensureTxIndicesIsMutable(); + txIndices_.setInt(index, value); + onChanged(); + return this; + } + + /** + * repeated int32 txIndices = 2; + * + * @param value + * The txIndices to add. + * + * @return This builder for chaining. + */ + public Builder addTxIndices(int value) { + ensureTxIndicesIsMutable(); + txIndices_.addInt(value); + onChanged(); + return this; + } + + /** + * repeated int32 txIndices = 2; + * + * @param values + * The txIndices to add. + * + * @return This builder for chaining. + */ + public Builder addAllTxIndices(java.lang.Iterable values) { + ensureTxIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txIndices_); + onChanged(); + return this; + } + + /** + * repeated int32 txIndices = 2; + * + * @return This builder for chaining. + */ + public Builder clearTxIndices() { + txIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List txs_ = java.util.Collections + .emptyList(); + + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .Transaction txs = 3; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } + + /** + * repeated .Transaction txs = 3; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } + + /** + * repeated .Transaction txs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Transaction txs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Transaction txs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Transaction txs = 3; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } + + /** + * repeated .Transaction txs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { + return getTxsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 3; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PBlockTxReply) + } + + // @@protoc_insertion_point(class_scope:P2PBlockTxReply) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PBlockTxReply parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PBlockTxReply(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PQueryDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PQueryData) + com.google.protobuf.MessageOrBuilder { + + /** + * .P2PTxReq txReq = 1; + * + * @return Whether the txReq field is set. + */ + boolean hasTxReq(); + + /** + * .P2PTxReq txReq = 1; + * + * @return The txReq. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getTxReq(); + + /** + * .P2PTxReq txReq = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder getTxReqOrBuilder(); + + /** + * .P2PBlockTxReq blockTxReq = 2; + * + * @return Whether the blockTxReq field is set. + */ + boolean hasBlockTxReq(); + + /** + * .P2PBlockTxReq blockTxReq = 2; + * + * @return The blockTxReq. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getBlockTxReq(); + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder getBlockTxReqOrBuilder(); + + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.ValueCase getValueCase(); + } + + /** + *
+     * 节点收到区块或交易hash,
+     * 当在本地不存在时,需要请求重发完整交易或区块
+     * 采用统一结构减少消息类型
+     * 
+ * + * Protobuf type {@code P2PQueryData} + */ + public static final class P2PQueryData extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PQueryData) + P2PQueryDataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PQueryData.newBuilder() to construct. + private P2PQueryData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PQueryData() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PQueryData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PQueryData(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_) + .toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TXREQ(1), BLOCKTXREQ(2), VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return TXREQ; + case 2: + return BLOCKTXREQ; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int TXREQ_FIELD_NUMBER = 1; + + /** + * .P2PTxReq txReq = 1; + * + * @return Whether the txReq field is set. + */ + @java.lang.Override + public boolean hasTxReq() { + return valueCase_ == 1; + } + + /** + * .P2PTxReq txReq = 1; + * + * @return The txReq. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getTxReq() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); + } + + /** + * .P2PTxReq txReq = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder getTxReqOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); + } + + public static final int BLOCKTXREQ_FIELD_NUMBER = 2; + + /** + * .P2PBlockTxReq blockTxReq = 2; + * + * @return Whether the blockTxReq field is set. + */ + @java.lang.Override + public boolean hasBlockTxReq() { + return valueCase_ == 2; + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + * + * @return The blockTxReq. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getBlockTxReq() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder getBlockTxReqOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) obj; + + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getTxReq().equals(other.getTxReq())) + return false; + break; + case 2: + if (!getBlockTxReq().equals(other.getBlockTxReq())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + TXREQ_FIELD_NUMBER; + hash = (53 * hash) + getTxReq().hashCode(); + break; + case 2: + hash = (37 * hash) + BLOCKTXREQ_FIELD_NUMBER; + hash = (53 * hash) + getBlockTxReq().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 节点收到区块或交易hash,
+         * 当在本地不存在时,需要请求重发完整交易或区块
+         * 采用统一结构减少消息类型
+         * 
+ * + * Protobuf type {@code P2PQueryData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PQueryData) + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData( + this); + if (valueCase_ == 1) { + if (txReqBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = txReqBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (blockTxReqBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blockTxReqBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance()) + return this; + switch (other.getValueCase()) { + case TXREQ: { + mergeTxReq(other.getTxReq()); + break; + } + case BLOCKTXREQ: { + mergeBlockTxReq(other.getBlockTxReq()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 txReqBuilder_; + + /** + * .P2PTxReq txReq = 1; + * + * @return Whether the txReq field is set. + */ + @java.lang.Override + public boolean hasTxReq() { + return valueCase_ == 1; + } + + /** + * .P2PTxReq txReq = 1; + * + * @return The txReq. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getTxReq() { + if (txReqBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return txReqBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); + } + } + + /** + * .P2PTxReq txReq = 1; + */ + public Builder setTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq value) { + if (txReqBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + txReqBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .P2PTxReq txReq = 1; + */ + public Builder setTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder builderForValue) { + if (txReqBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + txReqBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .P2PTxReq txReq = 1; + */ + public Builder mergeTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq value) { + if (txReqBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + txReqBuilder_.mergeFrom(value); + } + txReqBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .P2PTxReq txReq = 1; + */ + public Builder clearTxReq() { + if (txReqBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + txReqBuilder_.clear(); + } + return this; + } + + /** + * .P2PTxReq txReq = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder getTxReqBuilder() { + return getTxReqFieldBuilder().getBuilder(); + } + + /** + * .P2PTxReq txReq = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder getTxReqOrBuilder() { + if ((valueCase_ == 1) && (txReqBuilder_ != null)) { + return txReqBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); + } + } + + /** + * .P2PTxReq txReq = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxReqFieldBuilder() { + if (txReqBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); + } + txReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return txReqBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 blockTxReqBuilder_; + + /** + * .P2PBlockTxReq blockTxReq = 2; + * + * @return Whether the blockTxReq field is set. + */ + @java.lang.Override + public boolean hasBlockTxReq() { + return valueCase_ == 2; + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + * + * @return The blockTxReq. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getBlockTxReq() { + if (blockTxReqBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return blockTxReqBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); + } + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + public Builder setBlockTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq value) { + if (blockTxReqBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blockTxReqBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + public Builder setBlockTxReq( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder builderForValue) { + if (blockTxReqBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blockTxReqBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + public Builder mergeBlockTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq value) { + if (blockTxReqBuilder_ == null) { + if (valueCase_ == 2 && value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + blockTxReqBuilder_.mergeFrom(value); + } + blockTxReqBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + public Builder clearBlockTxReq() { + if (blockTxReqBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + blockTxReqBuilder_.clear(); + } + return this; + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder getBlockTxReqBuilder() { + return getBlockTxReqFieldBuilder().getBuilder(); + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder getBlockTxReqOrBuilder() { + if ((valueCase_ == 2) && (blockTxReqBuilder_ != null)) { + return blockTxReqBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); + } + } + + /** + * .P2PBlockTxReq blockTxReq = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockTxReqFieldBuilder() { + if (blockTxReqBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); + } + blockTxReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return blockTxReqBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PQueryData) + } + + // @@protoc_insertion_point(class_scope:P2PQueryData) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PQueryData parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PQueryData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VersionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Versions) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 p2pversion = 1; + * + * @return The p2pversion. + */ + int getP2Pversion(); + + /** + * string softversion = 2; + * + * @return The softversion. + */ + java.lang.String getSoftversion(); + + /** + * string softversion = 2; + * + * @return The bytes for softversion. + */ + com.google.protobuf.ByteString getSoftversionBytes(); + + /** + * string peername = 3; + * + * @return The peername. + */ + java.lang.String getPeername(); + + /** + * string peername = 3; + * + * @return The bytes for peername. + */ + com.google.protobuf.ByteString getPeernameBytes(); + } + + /** + *
+     **
+     * p2p 协议和软件版本
+     * 
+ * + * Protobuf type {@code Versions} + */ + public static final class Versions extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Versions) + VersionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Versions.newBuilder() to construct. + private Versions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Versions() { + softversion_ = ""; + peername_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Versions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Versions(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + p2Pversion_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + softversion_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + peername_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.Versions.class, + cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder.class); + } + + public static final int P2PVERSION_FIELD_NUMBER = 1; + private int p2Pversion_; + + /** + * int32 p2pversion = 1; + * + * @return The p2pversion. + */ + @java.lang.Override + public int getP2Pversion() { + return p2Pversion_; + } + + public static final int SOFTVERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object softversion_; + + /** + * string softversion = 2; + * + * @return The softversion. + */ + @java.lang.Override + public java.lang.String getSoftversion() { + java.lang.Object ref = softversion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + softversion_ = s; + return s; + } + } + + /** + * string softversion = 2; + * + * @return The bytes for softversion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSoftversionBytes() { + java.lang.Object ref = softversion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + softversion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEERNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object peername_; + + /** + * string peername = 3; + * + * @return The peername. + */ + @java.lang.Override + public java.lang.String getPeername() { + java.lang.Object ref = peername_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peername_ = s; + return s; + } + } + + /** + * string peername = 3; + * + * @return The bytes for peername. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeernameBytes() { + java.lang.Object ref = peername_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peername_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (p2Pversion_ != 0) { + output.writeInt32(1, p2Pversion_); + } + if (!getSoftversionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, softversion_); + } + if (!getPeernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peername_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (p2Pversion_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, p2Pversion_); + } + if (!getSoftversionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, softversion_); + } + if (!getPeernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, peername_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.Versions)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.Versions other = (cn.chain33.javasdk.model.protobuf.P2pService.Versions) obj; + + if (getP2Pversion() != other.getP2Pversion()) + return false; + if (!getSoftversion().equals(other.getSoftversion())) + return false; + if (!getPeername().equals(other.getPeername())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + P2PVERSION_FIELD_NUMBER; + hash = (53 * hash) + getP2Pversion(); + hash = (37 * hash) + SOFTVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSoftversion().hashCode(); + hash = (37 * hash) + PEERNAME_FIELD_NUMBER; + hash = (53 * hash) + getPeername().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Versions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * p2p 协议和软件版本
+         * 
+ * + * Protobuf type {@code Versions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Versions) + cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.Versions.class, + cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.Versions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + p2Pversion_ = 0; + + softversion_ = ""; + + peername_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Versions getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Versions build() { + cn.chain33.javasdk.model.protobuf.P2pService.Versions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Versions buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.Versions result = new cn.chain33.javasdk.model.protobuf.P2pService.Versions( + this); + result.p2Pversion_ = p2Pversion_; + result.softversion_ = softversion_; + result.peername_ = peername_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.Versions) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Versions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.Versions other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance()) + return this; + if (other.getP2Pversion() != 0) { + setP2Pversion(other.getP2Pversion()); + } + if (!other.getSoftversion().isEmpty()) { + softversion_ = other.softversion_; + onChanged(); + } + if (!other.getPeername().isEmpty()) { + peername_ = other.peername_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.Versions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.Versions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int p2Pversion_; + + /** + * int32 p2pversion = 1; + * + * @return The p2pversion. + */ + @java.lang.Override + public int getP2Pversion() { + return p2Pversion_; + } + + /** + * int32 p2pversion = 1; + * + * @param value + * The p2pversion to set. + * + * @return This builder for chaining. + */ + public Builder setP2Pversion(int value) { + + p2Pversion_ = value; + onChanged(); + return this; + } + + /** + * int32 p2pversion = 1; + * + * @return This builder for chaining. + */ + public Builder clearP2Pversion() { + + p2Pversion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object softversion_ = ""; + + /** + * string softversion = 2; + * + * @return The softversion. + */ + public java.lang.String getSoftversion() { + java.lang.Object ref = softversion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + softversion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string softversion = 2; + * + * @return The bytes for softversion. + */ + public com.google.protobuf.ByteString getSoftversionBytes() { + java.lang.Object ref = softversion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + softversion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string softversion = 2; + * + * @param value + * The softversion to set. + * + * @return This builder for chaining. + */ + public Builder setSoftversion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + softversion_ = value; + onChanged(); + return this; + } + + /** + * string softversion = 2; + * + * @return This builder for chaining. + */ + public Builder clearSoftversion() { + + softversion_ = getDefaultInstance().getSoftversion(); + onChanged(); + return this; + } + + /** + * string softversion = 2; + * + * @param value + * The bytes for softversion to set. + * + * @return This builder for chaining. + */ + public Builder setSoftversionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + softversion_ = value; + onChanged(); + return this; + } + + private java.lang.Object peername_ = ""; + + /** + * string peername = 3; + * + * @return The peername. + */ + public java.lang.String getPeername() { + java.lang.Object ref = peername_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peername_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string peername = 3; + * + * @return The bytes for peername. + */ + public com.google.protobuf.ByteString getPeernameBytes() { + java.lang.Object ref = peername_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + peername_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string peername = 3; + * + * @param value + * The peername to set. + * + * @return This builder for chaining. + */ + public Builder setPeername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + peername_ = value; + onChanged(); + return this; + } + + /** + * string peername = 3; + * + * @return This builder for chaining. + */ + public Builder clearPeername() { + + peername_ = getDefaultInstance().getPeername(); + onChanged(); + return this; + } + + /** + * string peername = 3; + * + * @param value + * The bytes for peername to set. + * + * @return This builder for chaining. + */ + public Builder setPeernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + peername_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Versions) + } + + // @@protoc_insertion_point(class_scope:Versions) + private static final cn.chain33.javasdk.model.protobuf.P2pService.Versions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.Versions(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Versions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Versions parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Versions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Versions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BroadCastDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:BroadCastData) + com.google.protobuf.MessageOrBuilder { + + /** + * .P2PTx tx = 1; + * + * @return Whether the tx field is set. + */ + boolean hasTx(); + + /** + * .P2PTx tx = 1; + * + * @return The tx. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getTx(); + + /** + * .P2PTx tx = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder getTxOrBuilder(); + + /** + * .P2PBlock block = 2; + * + * @return Whether the block field is set. + */ + boolean hasBlock(); + + /** + * .P2PBlock block = 2; + * + * @return The block. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getBlock(); + + /** + * .P2PBlock block = 2; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder getBlockOrBuilder(); + + /** + * .P2PPing ping = 3; + * + * @return Whether the ping field is set. + */ + boolean hasPing(); + + /** + * .P2PPing ping = 3; + * + * @return The ping. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getPing(); + + /** + * .P2PPing ping = 3; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder getPingOrBuilder(); + + /** + * .Versions version = 4; + * + * @return Whether the version field is set. + */ + boolean hasVersion(); + + /** + * .Versions version = 4; + * + * @return The version. + */ + cn.chain33.javasdk.model.protobuf.P2pService.Versions getVersion(); + + /** + * .Versions version = 4; + */ + cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder getVersionOrBuilder(); + + /** + * .LightTx ltTx = 5; + * + * @return Whether the ltTx field is set. + */ + boolean hasLtTx(); + + /** + * .LightTx ltTx = 5; + * + * @return The ltTx. + */ + cn.chain33.javasdk.model.protobuf.P2pService.LightTx getLtTx(); + + /** + * .LightTx ltTx = 5; + */ + cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder getLtTxOrBuilder(); + + /** + * .LightBlock ltBlock = 6; + * + * @return Whether the ltBlock field is set. + */ + boolean hasLtBlock(); + + /** + * .LightBlock ltBlock = 6; + * + * @return The ltBlock. + */ + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getLtBlock(); + + /** + * .LightBlock ltBlock = 6; + */ + cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder getLtBlockOrBuilder(); + + /** + * .P2PQueryData query = 7; + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + + /** + * .P2PQueryData query = 7; + * + * @return The query. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getQuery(); + + /** + * .P2PQueryData query = 7; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder getQueryOrBuilder(); + + /** + * .P2PBlockTxReply blockRep = 8; + * + * @return Whether the blockRep field is set. + */ + boolean hasBlockRep(); + + /** + * .P2PBlockTxReply blockRep = 8; + * + * @return The blockRep. + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getBlockRep(); + + /** + * .P2PBlockTxReply blockRep = 8; + */ + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder getBlockRepOrBuilder(); + + public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.ValueCase getValueCase(); + } + + /** + *
+     **
+     * p2p 广播数据协议
+     * 
+ * + * Protobuf type {@code BroadCastData} + */ + public static final class BroadCastData extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BroadCastData) + BroadCastDataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BroadCastData.newBuilder() to construct. + private BroadCastData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BroadCastData() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BroadCastData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BroadCastData(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Versions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.LightTx.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 58: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder subBuilder = null; + if (valueCase_ == 7) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_) + .toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 7; + break; + } + case 66: { + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder subBuilder = null; + if (valueCase_ == 8) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 8; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TX(1), BLOCK(2), PING(3), VERSION(4), LTTX(5), LTBLOCK(6), QUERY(7), BLOCKREP(8), VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return TX; + case 2: + return BLOCK; + case 3: + return PING; + case 4: + return VERSION; + case 5: + return LTTX; + case 6: + return LTBLOCK; + case 7: + return QUERY; + case 8: + return BLOCKREP; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int TX_FIELD_NUMBER = 1; + + /** + * .P2PTx tx = 1; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return valueCase_ == 1; + } + + /** + * .P2PTx tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getTx() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); + } + + /** + * .P2PTx tx = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder getTxOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); + } + + public static final int BLOCK_FIELD_NUMBER = 2; + + /** + * .P2PBlock block = 2; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return valueCase_ == 2; + } + + /** + * .P2PBlock block = 2; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getBlock() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); + } + + /** + * .P2PBlock block = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder getBlockOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); + } + + public static final int PING_FIELD_NUMBER = 3; + + /** + * .P2PPing ping = 3; + * + * @return Whether the ping field is set. + */ + @java.lang.Override + public boolean hasPing() { + return valueCase_ == 3; + } + + /** + * .P2PPing ping = 3; + * + * @return The ping. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getPing() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); + } + + /** + * .P2PPing ping = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder getPingOrBuilder() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); + } + + public static final int VERSION_FIELD_NUMBER = 4; + + /** + * .Versions version = 4; + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return valueCase_ == 4; + } + + /** + * .Versions version = 4; + * + * @return The version. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Versions getVersion() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); + } + + /** + * .Versions version = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder getVersionOrBuilder() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); + } + + public static final int LTTX_FIELD_NUMBER = 5; + + /** + * .LightTx ltTx = 5; + * + * @return Whether the ltTx field is set. + */ + @java.lang.Override + public boolean hasLtTx() { + return valueCase_ == 5; + } + + /** + * .LightTx ltTx = 5; + * + * @return The ltTx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getLtTx() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); + } + + /** + * .LightTx ltTx = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder getLtTxOrBuilder() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); + } + + public static final int LTBLOCK_FIELD_NUMBER = 6; + + /** + * .LightBlock ltBlock = 6; + * + * @return Whether the ltBlock field is set. + */ + @java.lang.Override + public boolean hasLtBlock() { + return valueCase_ == 6; + } + + /** + * .LightBlock ltBlock = 6; + * + * @return The ltBlock. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getLtBlock() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); + } + + /** + * .LightBlock ltBlock = 6; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder getLtBlockOrBuilder() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); + } + + public static final int QUERY_FIELD_NUMBER = 7; + + /** + * .P2PQueryData query = 7; + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return valueCase_ == 7; + } + + /** + * .P2PQueryData query = 7; + * + * @return The query. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getQuery() { + if (valueCase_ == 7) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); + } + + /** + * .P2PQueryData query = 7; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder getQueryOrBuilder() { + if (valueCase_ == 7) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); + } + + public static final int BLOCKREP_FIELD_NUMBER = 8; + + /** + * .P2PBlockTxReply blockRep = 8; + * + * @return Whether the blockRep field is set. + */ + @java.lang.Override + public boolean hasBlockRep() { + return valueCase_ == 8; + } + + /** + * .P2PBlockTxReply blockRep = 8; + * + * @return The blockRep. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getBlockRep() { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder getBlockRepOrBuilder() { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_); + } + if (valueCase_ == 8) { + output.writeMessage(8, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, + (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, + (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, + (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, + (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, + (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_); + } + if (valueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, + (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData other = (cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData) obj; + + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getTx().equals(other.getTx())) + return false; + break; + case 2: + if (!getBlock().equals(other.getBlock())) + return false; + break; + case 3: + if (!getPing().equals(other.getPing())) + return false; + break; + case 4: + if (!getVersion().equals(other.getVersion())) + return false; + break; + case 5: + if (!getLtTx().equals(other.getLtTx())) + return false; + break; + case 6: + if (!getLtBlock().equals(other.getLtBlock())) + return false; + break; + case 7: + if (!getQuery().equals(other.getQuery())) + return false; + break; + case 8: + if (!getBlockRep().equals(other.getBlockRep())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + break; + case 2: + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + break; + case 3: + hash = (37 * hash) + PING_FIELD_NUMBER; + hash = (53 * hash) + getPing().hashCode(); + break; + case 4: + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + break; + case 5: + hash = (37 * hash) + LTTX_FIELD_NUMBER; + hash = (53 * hash) + getLtTx().hashCode(); + break; + case 6: + hash = (37 * hash) + LTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + getLtBlock().hashCode(); + break; + case 7: + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + break; + case 8: + hash = (37 * hash) + BLOCKREP_FIELD_NUMBER; + hash = (53 * hash) + getBlockRep().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * p2p 广播数据协议
+         * 
+ * + * Protobuf type {@code BroadCastData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BroadCastData) + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData build() { + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData result = new cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData( + this); + if (valueCase_ == 1) { + if (txBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = txBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (blockBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blockBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (pingBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = pingBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (versionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = versionBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (ltTxBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = ltTxBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (ltBlockBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = ltBlockBuilder_.build(); + } + } + if (valueCase_ == 7) { + if (queryBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = queryBuilder_.build(); + } + } + if (valueCase_ == 8) { + if (blockRepBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blockRepBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance()) + return this; + switch (other.getValueCase()) { + case TX: { + mergeTx(other.getTx()); + break; + } + case BLOCK: { + mergeBlock(other.getBlock()); + break; + } + case PING: { + mergePing(other.getPing()); + break; + } + case VERSION: { + mergeVersion(other.getVersion()); + break; + } + case LTTX: { + mergeLtTx(other.getLtTx()); + break; + } + case LTBLOCK: { + mergeLtBlock(other.getLtBlock()); + break; + } + case QUERY: { + mergeQuery(other.getQuery()); + break; + } + case BLOCKREP: { + mergeBlockRep(other.getBlockRep()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 txBuilder_; + + /** + * .P2PTx tx = 1; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return valueCase_ == 1; + } + + /** + * .P2PTx tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getTx() { + if (txBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return txBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); + } + } + + /** + * .P2PTx tx = 1; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + txBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .P2PTx tx = 1; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder builderForValue) { + if (txBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + txBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .P2PTx tx = 1; + */ + public Builder mergeTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx value) { + if (txBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTx + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + txBuilder_.mergeFrom(value); + } + txBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .P2PTx tx = 1; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + txBuilder_.clear(); + } + return this; + } + + /** + * .P2PTx tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder getTxBuilder() { + return getTxFieldBuilder().getBuilder(); + } + + /** + * .P2PTx tx = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder getTxOrBuilder() { + if ((valueCase_ == 1) && (txBuilder_ != null)) { + return txBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); + } + } + + /** + * .P2PTx tx = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxFieldBuilder() { + if (txBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); + } + txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return txBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 blockBuilder_; + + /** + * .P2PBlock block = 2; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return valueCase_ == 2; + } + + /** + * .P2PBlock block = 2; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getBlock() { + if (blockBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return blockBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); + } + } + + /** + * .P2PBlock block = 2; + */ + public Builder setBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock value) { + if (blockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blockBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .P2PBlock block = 2; + */ + public Builder setBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder builderForValue) { + if (blockBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blockBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .P2PBlock block = 2; + */ + public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock value) { + if (blockBuilder_ == null) { + if (valueCase_ == 2 + && value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + blockBuilder_.mergeFrom(value); + } + blockBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .P2PBlock block = 2; + */ + public Builder clearBlock() { + if (blockBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + blockBuilder_.clear(); + } + return this; + } + + /** + * .P2PBlock block = 2; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder getBlockBuilder() { + return getBlockFieldBuilder().getBuilder(); + } + + /** + * .P2PBlock block = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder getBlockOrBuilder() { + if ((valueCase_ == 2) && (blockBuilder_ != null)) { + return blockBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); + } + } + + /** + * .P2PBlock block = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockFieldBuilder() { + if (blockBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); + } + blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return blockBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 pingBuilder_; + + /** + * .P2PPing ping = 3; + * + * @return Whether the ping field is set. + */ + @java.lang.Override + public boolean hasPing() { + return valueCase_ == 3; + } + + /** + * .P2PPing ping = 3; + * + * @return The ping. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getPing() { + if (pingBuilder_ == null) { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return pingBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); + } + } + + /** + * .P2PPing ping = 3; + */ + public Builder setPing(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing value) { + if (pingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + pingBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .P2PPing ping = 3; + */ + public Builder setPing(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder builderForValue) { + if (pingBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + pingBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + + /** + * .P2PPing ping = 3; + */ + public Builder mergePing(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing value) { + if (pingBuilder_ == null) { + if (valueCase_ == 3 + && value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + pingBuilder_.mergeFrom(value); + } + pingBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .P2PPing ping = 3; + */ + public Builder clearPing() { + if (pingBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + pingBuilder_.clear(); + } + return this; + } + + /** + * .P2PPing ping = 3; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder getPingBuilder() { + return getPingFieldBuilder().getBuilder(); + } + + /** + * .P2PPing ping = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder getPingOrBuilder() { + if ((valueCase_ == 3) && (pingBuilder_ != null)) { + return pingBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); + } + } + + /** + * .P2PPing ping = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPingFieldBuilder() { + if (pingBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); + } + pingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return pingBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 versionBuilder_; + + /** + * .Versions version = 4; + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return valueCase_ == 4; + } + + /** + * .Versions version = 4; + * + * @return The version. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Versions getVersion() { + if (versionBuilder_ == null) { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return versionBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); + } + } + + /** + * .Versions version = 4; + */ + public Builder setVersion(cn.chain33.javasdk.model.protobuf.P2pService.Versions value) { + if (versionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + versionBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .Versions version = 4; + */ + public Builder setVersion(cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder builderForValue) { + if (versionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + versionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + + /** + * .Versions version = 4; + */ + public Builder mergeVersion(cn.chain33.javasdk.model.protobuf.P2pService.Versions value) { + if (versionBuilder_ == null) { + if (valueCase_ == 4 + && value_ != cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.Versions + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + versionBuilder_.mergeFrom(value); + } + versionBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .Versions version = 4; + */ + public Builder clearVersion() { + if (versionBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + versionBuilder_.clear(); + } + return this; + } + + /** + * .Versions version = 4; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder getVersionBuilder() { + return getVersionFieldBuilder().getBuilder(); + } + + /** + * .Versions version = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder getVersionOrBuilder() { + if ((valueCase_ == 4) && (versionBuilder_ != null)) { + return versionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); + } + } + + /** + * .Versions version = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getVersionFieldBuilder() { + if (versionBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); + } + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged(); + ; + return versionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 ltTxBuilder_; + + /** + * .LightTx ltTx = 5; + * + * @return Whether the ltTx field is set. + */ + @java.lang.Override + public boolean hasLtTx() { + return valueCase_ == 5; + } + + /** + * .LightTx ltTx = 5; + * + * @return The ltTx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getLtTx() { + if (ltTxBuilder_ == null) { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return ltTxBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); + } + } + + /** + * .LightTx ltTx = 5; + */ + public Builder setLtTx(cn.chain33.javasdk.model.protobuf.P2pService.LightTx value) { + if (ltTxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + ltTxBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .LightTx ltTx = 5; + */ + public Builder setLtTx(cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder builderForValue) { + if (ltTxBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + ltTxBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + + /** + * .LightTx ltTx = 5; + */ + public Builder mergeLtTx(cn.chain33.javasdk.model.protobuf.P2pService.LightTx value) { + if (ltTxBuilder_ == null) { + if (valueCase_ == 5 + && value_ != cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightTx + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + ltTxBuilder_.mergeFrom(value); + } + ltTxBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .LightTx ltTx = 5; + */ + public Builder clearLtTx() { + if (ltTxBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + ltTxBuilder_.clear(); + } + return this; + } + + /** + * .LightTx ltTx = 5; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder getLtTxBuilder() { + return getLtTxFieldBuilder().getBuilder(); + } + + /** + * .LightTx ltTx = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder getLtTxOrBuilder() { + if ((valueCase_ == 5) && (ltTxBuilder_ != null)) { + return ltTxBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); + } + } + + /** + * .LightTx ltTx = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getLtTxFieldBuilder() { + if (ltTxBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); + } + ltTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged(); + ; + return ltTxBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 ltBlockBuilder_; + + /** + * .LightBlock ltBlock = 6; + * + * @return Whether the ltBlock field is set. + */ + @java.lang.Override + public boolean hasLtBlock() { + return valueCase_ == 6; + } + + /** + * .LightBlock ltBlock = 6; + * + * @return The ltBlock. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getLtBlock() { + if (ltBlockBuilder_ == null) { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return ltBlockBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); + } + } + + /** + * .LightBlock ltBlock = 6; + */ + public Builder setLtBlock(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock value) { + if (ltBlockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + ltBlockBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .LightBlock ltBlock = 6; + */ + public Builder setLtBlock(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder builderForValue) { + if (ltBlockBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + ltBlockBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + + /** + * .LightBlock ltBlock = 6; + */ + public Builder mergeLtBlock(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock value) { + if (ltBlockBuilder_ == null) { + if (valueCase_ == 6 + && value_ != cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightBlock + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + ltBlockBuilder_.mergeFrom(value); + } + ltBlockBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .LightBlock ltBlock = 6; + */ + public Builder clearLtBlock() { + if (ltBlockBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + ltBlockBuilder_.clear(); + } + return this; + } + + /** + * .LightBlock ltBlock = 6; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder getLtBlockBuilder() { + return getLtBlockFieldBuilder().getBuilder(); + } + + /** + * .LightBlock ltBlock = 6; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder getLtBlockOrBuilder() { + if ((valueCase_ == 6) && (ltBlockBuilder_ != null)) { + return ltBlockBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); + } + } + + /** + * .LightBlock ltBlock = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getLtBlockFieldBuilder() { + if (ltBlockBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); + } + ltBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged(); + ; + return ltBlockBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 queryBuilder_; + + /** + * .P2PQueryData query = 7; + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return valueCase_ == 7; + } + + /** + * .P2PQueryData query = 7; + * + * @return The query. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getQuery() { + if (queryBuilder_ == null) { + if (valueCase_ == 7) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return queryBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); + } + } + + /** + * .P2PQueryData query = 7; + */ + public Builder setQuery(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + queryBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + + /** + * .P2PQueryData query = 7; + */ + public Builder setQuery(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder builderForValue) { + if (queryBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + + /** + * .P2PQueryData query = 7; + */ + public Builder mergeQuery(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData value) { + if (queryBuilder_ == null) { + if (valueCase_ == 7 && value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + queryBuilder_.mergeFrom(value); + } + queryBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + + /** + * .P2PQueryData query = 7; + */ + public Builder clearQuery() { + if (queryBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + queryBuilder_.clear(); + } + return this; + } + + /** + * .P2PQueryData query = 7; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder getQueryBuilder() { + return getQueryFieldBuilder().getBuilder(); + } + + /** + * .P2PQueryData query = 7; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder getQueryOrBuilder() { + if ((valueCase_ == 7) && (queryBuilder_ != null)) { + return queryBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); + } + } + + /** + * .P2PQueryData query = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3 getQueryFieldBuilder() { + if (queryBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); + } + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged(); + ; + return queryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 blockRepBuilder_; + + /** + * .P2PBlockTxReply blockRep = 8; + * + * @return Whether the blockRep field is set. + */ + @java.lang.Override + public boolean hasBlockRep() { + return valueCase_ == 8; + } + + /** + * .P2PBlockTxReply blockRep = 8; + * + * @return The blockRep. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getBlockRep() { + if (blockRepBuilder_ == null) { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); + } else { + if (valueCase_ == 8) { + return blockRepBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); + } + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + public Builder setBlockRep(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply value) { + if (blockRepBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blockRepBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + public Builder setBlockRep( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder builderForValue) { + if (blockRepBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blockRepBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 8; + return this; + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + public Builder mergeBlockRep(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply value) { + if (blockRepBuilder_ == null) { + if (valueCase_ == 8 && value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply + .newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 8) { + blockRepBuilder_.mergeFrom(value); + } + blockRepBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + public Builder clearBlockRep() { + if (blockRepBuilder_ == null) { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + } + blockRepBuilder_.clear(); + } + return this; + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder getBlockRepBuilder() { + return getBlockRepFieldBuilder().getBuilder(); + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder getBlockRepOrBuilder() { + if ((valueCase_ == 8) && (blockRepBuilder_ != null)) { + return blockRepBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; + } + return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); + } + } + + /** + * .P2PBlockTxReply blockRep = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockRepFieldBuilder() { + if (blockRepBuilder_ == null) { + if (!(valueCase_ == 8)) { + value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); + } + blockRepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 8; + onChanged(); + ; + return blockRepBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:BroadCastData) + } + + // @@protoc_insertion_point(class_scope:BroadCastData) + private static final cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BroadCastData parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BroadCastData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PGetHeadersOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetHeaders) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 version = 1; + * + * @return The version. + */ + int getVersion(); + + /** + * int64 startHeight = 2; + * + * @return The startHeight. + */ + long getStartHeight(); + + /** + * int64 endHeight = 3; + * + * @return The endHeight. + */ + long getEndHeight(); + } + + /** + *
+     **
+     * p2p 获取区块区间头部信息协议
+     * 
+ * + * Protobuf type {@code P2PGetHeaders} + */ + public static final class P2PGetHeaders extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetHeaders) + P2PGetHeadersOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PGetHeaders.newBuilder() to construct. + private P2PGetHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PGetHeaders() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetHeaders(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PGetHeaders(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + case 16: { + + startHeight_ = input.readInt64(); + break; + } + case 24: { + + endHeight_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int STARTHEIGHT_FIELD_NUMBER = 2; + private long startHeight_; + + /** + * int64 startHeight = 2; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } + + public static final int ENDHEIGHT_FIELD_NUMBER = 3; + private long endHeight_; + + /** + * int64 endHeight = 3; + * + * @return The endHeight. + */ + @java.lang.Override + public long getEndHeight() { + return endHeight_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + if (startHeight_ != 0L) { + output.writeInt64(2, startHeight_); + } + if (endHeight_ != 0L) { + output.writeInt64(3, endHeight_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + if (startHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, startHeight_); + } + if (endHeight_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, endHeight_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) obj; + + if (getVersion() != other.getVersion()) + return false; + if (getStartHeight() != other.getStartHeight()) + return false; + if (getEndHeight() != other.getEndHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartHeight()); + hash = (37 * hash) + ENDHEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * p2p 获取区块区间头部信息协议
+         * 
+ * + * Protobuf type {@code P2PGetHeaders} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetHeaders) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeadersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + startHeight_ = 0L; + + endHeight_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders( + this); + result.version_ = version_; + result.startHeight_ = startHeight_; + result.endHeight_ = endHeight_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.getDefaultInstance()) + return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (other.getStartHeight() != 0L) { + setStartHeight(other.getStartHeight()); + } + if (other.getEndHeight() != 0L) { + setEndHeight(other.getEndHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int version_; + + /** + * int32 version = 1; + * + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + /** + * int32 version = 1; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + + /** + * int32 version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private long startHeight_; + + /** + * int64 startHeight = 2; + * + * @return The startHeight. + */ + @java.lang.Override + public long getStartHeight() { + return startHeight_; + } + + /** + * int64 startHeight = 2; + * + * @param value + * The startHeight to set. + * + * @return This builder for chaining. + */ + public Builder setStartHeight(long value) { + + startHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 startHeight = 2; + * + * @return This builder for chaining. + */ + public Builder clearStartHeight() { + + startHeight_ = 0L; + onChanged(); + return this; + } + + private long endHeight_; + + /** + * int64 endHeight = 3; + * + * @return The endHeight. + */ + @java.lang.Override + public long getEndHeight() { + return endHeight_; + } + + /** + * int64 endHeight = 3; + * + * @param value + * The endHeight to set. + * + * @return This builder for chaining. + */ + public Builder setEndHeight(long value) { + + endHeight_ = value; + onChanged(); + return this; + } + + /** + * int64 endHeight = 3; + * + * @return This builder for chaining. + */ + public Builder clearEndHeight() { + + endHeight_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PGetHeaders) + } + + // @@protoc_insertion_point(class_scope:P2PGetHeaders) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetHeaders parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetHeaders(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface P2PHeadersOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PHeaders) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Header headers = 1; + */ + java.util.List getHeadersList(); + + /** + * repeated .Header headers = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeaders(int index); + + /** + * repeated .Header headers = 1; + */ + int getHeadersCount(); + + /** + * repeated .Header headers = 1; + */ + java.util.List getHeadersOrBuilderList(); + + /** + * repeated .Header headers = 1; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadersOrBuilder(int index); + } + + /** + *
+     **
+     * p2p 区块头传输协议
+     * 
+ * + * Protobuf type {@code P2PHeaders} + */ + public static final class P2PHeaders extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PHeaders) + P2PHeadersOrBuilder { + private static final long serialVersionUID = 0L; + + // Use P2PHeaders.newBuilder() to construct. + private P2PHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private P2PHeaders() { + headers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PHeaders(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private P2PHeaders(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + headers_.add( + input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = java.util.Collections.unmodifiableList(headers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.Builder.class); + } + + public static final int HEADERS_FIELD_NUMBER = 1; + private java.util.List headers_; + + /** + * repeated .Header headers = 1; + */ + @java.lang.Override + public java.util.List getHeadersList() { + return headers_; + } + + /** + * repeated .Header headers = 1; + */ + @java.lang.Override + public java.util.List getHeadersOrBuilderList() { + return headers_; + } + + /** + * repeated .Header headers = 1; + */ + @java.lang.Override + public int getHeadersCount() { + return headers_.size(); + } + + /** + * repeated .Header headers = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeaders(int index) { + return headers_.get(index); + } + + /** + * repeated .Header headers = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadersOrBuilder(int index) { + return headers_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < headers_.size(); i++) { + output.writeMessage(1, headers_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < headers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders) obj; + + if (!getHeadersList().equals(other.getHeadersList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHeadersCount() > 0) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getHeadersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * p2p 区块头传输协议
+         * 
+ * + * Protobuf type {@code P2PHeaders} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PHeaders) + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeadersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHeadersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (headersBuilder_ == null) { + headers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + headersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders( + this); + int from_bitField0_ = bitField0_; + if (headersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + headers_ = java.util.Collections.unmodifiableList(headers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.headers_ = headers_; + } else { + result.headers_ = headersBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.getDefaultInstance()) + return this; + if (headersBuilder_ == null) { + if (!other.headers_.isEmpty()) { + if (headers_.isEmpty()) { + headers_ = other.headers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHeadersIsMutable(); + headers_.addAll(other.headers_); + } + onChanged(); + } + } else { + if (!other.headers_.isEmpty()) { + if (headersBuilder_.isEmpty()) { + headersBuilder_.dispose(); + headersBuilder_ = null; + headers_ = other.headers_; + bitField0_ = (bitField0_ & ~0x00000001); + headersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHeadersFieldBuilder() : null; + } else { + headersBuilder_.addAllMessages(other.headers_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List headers_ = java.util.Collections + .emptyList(); + + private void ensureHeadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList( + headers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 headersBuilder_; + + /** + * repeated .Header headers = 1; + */ + public java.util.List getHeadersList() { + if (headersBuilder_ == null) { + return java.util.Collections.unmodifiableList(headers_); + } else { + return headersBuilder_.getMessageList(); + } + } + + /** + * repeated .Header headers = 1; + */ + public int getHeadersCount() { + if (headersBuilder_ == null) { + return headers_.size(); + } else { + return headersBuilder_.getCount(); + } + } + + /** + * repeated .Header headers = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeaders(int index) { + if (headersBuilder_ == null) { + return headers_.get(index); + } else { + return headersBuilder_.getMessage(index); + } + } + + /** + * repeated .Header headers = 1; + */ + public Builder setHeaders(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeadersIsMutable(); + headers_.set(index, value); + onChanged(); + } else { + headersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder setHeaders(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.set(index, builderForValue.build()); + onChanged(); + } else { + headersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder addHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeadersIsMutable(); + headers_.add(value); + onChanged(); + } else { + headersBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder addHeaders(int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeadersIsMutable(); + headers_.add(index, value); + onChanged(); + } else { + headersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder addHeaders( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(builderForValue.build()); + onChanged(); + } else { + headersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder addHeaders(int index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(index, builderForValue.build()); + onChanged(); + } else { + headersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder addAllHeaders( + java.lang.Iterable values) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + onChanged(); + } else { + headersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder clearHeaders() { + if (headersBuilder_ == null) { + headers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + headersBuilder_.clear(); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public Builder removeHeaders(int index) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.remove(index); + onChanged(); + } else { + headersBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Header headers = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeadersBuilder(int index) { + return getHeadersFieldBuilder().getBuilder(index); + } + + /** + * repeated .Header headers = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadersOrBuilder(int index) { + if (headersBuilder_ == null) { + return headers_.get(index); + } else { + return headersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Header headers = 1; + */ + public java.util.List getHeadersOrBuilderList() { + if (headersBuilder_ != null) { + return headersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(headers_); + } + } + + /** + * repeated .Header headers = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addHeadersBuilder() { + return getHeadersFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); + } + + /** + * repeated .Header headers = 1; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addHeadersBuilder(int index) { + return getHeadersFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); + } + + /** + * repeated .Header headers = 1; + */ + public java.util.List getHeadersBuilderList() { + return getHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getHeadersFieldBuilder() { + if (headersBuilder_ == null) { + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headers_ = null; + } + return headersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:P2PHeaders) + } + + // @@protoc_insertion_point(class_scope:P2PHeaders) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PHeaders parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PHeaders(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InvDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:InvData) + com.google.protobuf.MessageOrBuilder { + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + boolean hasTx(); + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); + + /** + * .Transaction tx = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + + /** + * .Block block = 2; + * + * @return Whether the block field is set. + */ + boolean hasBlock(); + + /** + * .Block block = 2; + * + * @return The block. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); + + /** + * .Block block = 2; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); + + /** + * int32 ty = 3; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.P2pService.InvData.ValueCase getValueCase(); + } + + /** + *
+     **
+     * inv 请求协议
+     * 
+ * + * Protobuf type {@code InvData} + */ + public static final class InvData extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:InvData) + InvDataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InvData.newBuilder() to construct. + private InvData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InvData() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InvData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InvData(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_) + .toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 24: { + + ty_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.InvData.class, + cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TX(1), BLOCK(2), VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return TX; + case 2: + return BLOCK; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int TX_FIELD_NUMBER = 1; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return valueCase_ == 1; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); + } + + /** + * .Transaction tx = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); + } + + public static final int BLOCK_FIELD_NUMBER = 2; + + /** + * .Block block = 2; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return valueCase_ == 2; + } + + /** + * .Block block = 2; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; + } + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); + } + + /** + * .Block block = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; + } + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); + } + + public static final int TY_FIELD_NUMBER = 3; + private int ty_; + + /** + * int32 ty = 3; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_); + } + if (ty_ != 0) { + output.writeInt32(3, ty_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, ty_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.InvData)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.InvData other = (cn.chain33.javasdk.model.protobuf.P2pService.InvData) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getTx().equals(other.getTx())) + return false; + break; + case 2: + if (!getBlock().equals(other.getBlock())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + break; + case 2: + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.InvData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * inv 请求协议
+         * 
+ * + * Protobuf type {@code InvData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:InvData) + cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.InvData.class, + cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.InvData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvData getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvData build() { + cn.chain33.javasdk.model.protobuf.P2pService.InvData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvData buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.InvData result = new cn.chain33.javasdk.model.protobuf.P2pService.InvData( + this); + if (valueCase_ == 1) { + if (txBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = txBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (blockBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blockBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.InvData) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.InvData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.InvData other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case TX: { + mergeTx(other.getTx()); + break; + } + case BLOCK: { + mergeBlock(other.getBlock()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.InvData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.InvData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 txBuilder_; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return valueCase_ == 1; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + if (txBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return txBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); + } + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + txBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + txBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction + .newBuilder( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + txBuilder_.mergeFrom(value); + } + txBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + txBuilder_.clear(); + } + return this; + } + + /** + * .Transaction tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { + return getTxFieldBuilder().getBuilder(); + } + + /** + * .Transaction tx = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + if ((valueCase_ == 1) && (txBuilder_ != null)) { + return txBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; + } + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); + } + } + + /** + * .Transaction tx = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxFieldBuilder() { + if (txBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction + .getDefaultInstance(); + } + txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return txBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 blockBuilder_; + + /** + * .Block block = 2; + * + * @return Whether the block field is set. + */ + @java.lang.Override + public boolean hasBlock() { + return valueCase_ == 2; + } + + /** + * .Block block = 2; + * + * @return The block. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { + if (blockBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; + } + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return blockBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); + } + } + + /** + * .Block block = 2; + */ + public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blockBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .Block block = 2; + */ + public Builder setBlock( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { + if (blockBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blockBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .Block block = 2; + */ + public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { + if (blockBuilder_ == null) { + if (valueCase_ == 2 && value_ != cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block + .newBuilder((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + blockBuilder_.mergeFrom(value); + } + blockBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .Block block = 2; + */ + public Builder clearBlock() { + if (blockBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + blockBuilder_.clear(); + } + return this; + } + + /** + * .Block block = 2; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { + return getBlockFieldBuilder().getBuilder(); + } + + /** + * .Block block = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { + if ((valueCase_ == 2) && (blockBuilder_ != null)) { + return blockBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; + } + return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); + } + } + + /** + * .Block block = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getBlockFieldBuilder() { + if (blockBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); + } + blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return blockBuilder_; + } + + private int ty_; + + /** + * int32 ty = 3; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 3; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 3; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:InvData) + } + + // @@protoc_insertion_point(class_scope:InvData) + private static final cn.chain33.javasdk.model.protobuf.P2pService.InvData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.InvData(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvData parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InvDatasOrBuilder extends + // @@protoc_insertion_point(interface_extends:InvDatas) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .InvData items = 1; + */ + java.util.List getItemsList(); + + /** + * repeated .InvData items = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.InvData getItems(int index); + + /** + * repeated .InvData items = 1; + */ + int getItemsCount(); + + /** + * repeated .InvData items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .InvData items = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder getItemsOrBuilder(int index); + } + + /** + *
+     **
+     * inv 返回数据
+     * 
+ * + * Protobuf type {@code InvDatas} + */ + public static final class InvDatas extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:InvDatas) + InvDatasOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InvDatas.newBuilder() to construct. + private InvDatas(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InvDatas() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InvDatas(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InvDatas(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.InvData.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.class, + cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; + + /** + * repeated .InvData items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated .InvData items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } + + /** + * repeated .InvData items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated .InvData items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvData getItems(int index) { + return items_.get(index); + } + + /** + * repeated .InvData items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.InvDatas)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.InvDatas other = (cn.chain33.javasdk.model.protobuf.P2pService.InvDatas) obj; + + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.InvDatas prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         **
+         * inv 返回数据
+         * 
+ * + * Protobuf type {@code InvDatas} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:InvDatas) + cn.chain33.javasdk.model.protobuf.P2pService.InvDatasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.class, + cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas build() { + cn.chain33.javasdk.model.protobuf.P2pService.InvDatas result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.InvDatas result = new cn.chain33.javasdk.model.protobuf.P2pService.InvDatas( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.InvDatas) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.InvDatas) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.InvDatas other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.InvDatas) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List items_ = java.util.Collections + .emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .InvData items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * repeated .InvData items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * repeated .InvData items = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.InvData getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * repeated .InvData items = 1; + */ + public Builder setItems(int index, cn.chain33.javasdk.model.protobuf.P2pService.InvData value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.P2pService.InvData value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder addItems(int index, cn.chain33.javasdk.model.protobuf.P2pService.InvData value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .InvData items = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } + + /** + * repeated .InvData items = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .InvData items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * repeated .InvData items = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder addItemsBuilder() { + return getItemsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance()); + } + + /** + * repeated .InvData items = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance()); + } + + /** + * repeated .InvData items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:InvDatas) + } + + // @@protoc_insertion_point(class_scope:InvDatas) + private static final cn.chain33.javasdk.model.protobuf.P2pService.InvDatas DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.InvDatas(); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvDatas parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvDatas(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PeerOrBuilder extends + // @@protoc_insertion_point(interface_extends:Peer) + com.google.protobuf.MessageOrBuilder { + + /** + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + * int32 port = 2; + * + * @return The port. + */ + int getPort(); + + /** + * string name = 3; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 3; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * bool self = 4; + * + * @return The self. + */ + boolean getSelf(); + + /** + * int32 mempoolSize = 5; + * + * @return The mempoolSize. + */ + int getMempoolSize(); + + /** + * .Header header = 6; + * + * @return Whether the header field is set. + */ + boolean hasHeader(); + + /** + * .Header header = 6; + * + * @return The header. + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); + + /** + * .Header header = 6; + */ + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + + /** + * string version = 7; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * string version = 7; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * string localDBVersion = 8; + * + * @return The localDBVersion. + */ + java.lang.String getLocalDBVersion(); + + /** + * string localDBVersion = 8; + * + * @return The bytes for localDBVersion. + */ + com.google.protobuf.ByteString getLocalDBVersionBytes(); + + /** + * string storeDBVersion = 9; + * + * @return The storeDBVersion. + */ + java.lang.String getStoreDBVersion(); + + /** + * string storeDBVersion = 9; + * + * @return The bytes for storeDBVersion. + */ + com.google.protobuf.ByteString getStoreDBVersionBytes(); + } + + /** + *
+     **
+     * peer 信息
      * 
* - * int64 height = 3; - * @return The height. + * Protobuf type {@code Peer} */ - public long getHeight() { - return height_; - } + public static final class Peer extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Peer) + PeerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Peer.newBuilder() to construct. + private Peer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Peer() { + addr_ = ""; + name_ = ""; + version_ = ""; + localDBVersion_ = ""; + storeDBVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Peer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Peer(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 16: { + + port_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 32: { + + self_ = input.readBool(); + break; + } + case 40: { + + mempoolSize_ = input.readInt32(); + break; + } + case 50: { + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + localDBVersion_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + storeDBVersion_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.Peer.class, + cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder.class); + } + + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; + + /** + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_; + + /** + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + + /** + * string name = 3; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 3; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_FIELD_NUMBER = 4; + private boolean self_; + + /** + * bool self = 4; + * + * @return The self. + */ + @java.lang.Override + public boolean getSelf() { + return self_; + } + + public static final int MEMPOOLSIZE_FIELD_NUMBER = 5; + private int mempoolSize_; + + /** + * int32 mempoolSize = 5; + * + * @return The mempoolSize. + */ + @java.lang.Override + public int getMempoolSize() { + return mempoolSize_; + } + + public static final int HEADER_FIELD_NUMBER = 6; + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + + /** + * .Header header = 6; + * + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + + /** + * .Header header = 6; + * + * @return The header. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + + /** + * .Header header = 6; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int VERSION_FIELD_NUMBER = 7; + private volatile java.lang.Object version_; + + /** + * string version = 7; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + + /** + * string version = 7; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCALDBVERSION_FIELD_NUMBER = 8; + private volatile java.lang.Object localDBVersion_; + + /** + * string localDBVersion = 8; + * + * @return The localDBVersion. + */ + @java.lang.Override + public java.lang.String getLocalDBVersion() { + java.lang.Object ref = localDBVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localDBVersion_ = s; + return s; + } + } + + /** + * string localDBVersion = 8; + * + * @return The bytes for localDBVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocalDBVersionBytes() { + java.lang.Object ref = localDBVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + localDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STOREDBVERSION_FIELD_NUMBER = 9; + private volatile java.lang.Object storeDBVersion_; + + /** + * string storeDBVersion = 9; + * + * @return The storeDBVersion. + */ + @java.lang.Override + public java.lang.String getStoreDBVersion() { + java.lang.Object ref = storeDBVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storeDBVersion_ = s; + return s; + } + } + + /** + * string storeDBVersion = 9; + * + * @return The bytes for storeDBVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStoreDBVersionBytes() { + java.lang.Object ref = storeDBVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storeDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (self_ != false) { + output.writeBool(4, self_); + } + if (mempoolSize_ != 0) { + output.writeInt32(5, mempoolSize_); + } + if (header_ != null) { + output.writeMessage(6, getHeader()); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, version_); + } + if (!getLocalDBVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, localDBVersion_); + } + if (!getStoreDBVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, storeDBVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (self_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, self_); + } + if (mempoolSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, mempoolSize_); + } + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getHeader()); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, version_); + } + if (!getLocalDBVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, localDBVersion_); + } + if (!getStoreDBVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, storeDBVersion_); + } + 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 cn.chain33.javasdk.model.protobuf.P2pService.Peer)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.Peer other = (cn.chain33.javasdk.model.protobuf.P2pService.Peer) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (getPort() != other.getPort()) + return false; + if (!getName().equals(other.getName())) + return false; + if (getSelf() != other.getSelf()) + return false; + if (getMempoolSize() != other.getMempoolSize()) + return false; + if (hasHeader() != other.hasHeader()) + return false; + if (hasHeader()) { + if (!getHeader().equals(other.getHeader())) + return false; + } + if (!getVersion().equals(other.getVersion())) + return false; + if (!getLocalDBVersion().equals(other.getLocalDBVersion())) + return false; + if (!getStoreDBVersion().equals(other.getStoreDBVersion())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SELF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSelf()); + hash = (37 * hash) + MEMPOOLSIZE_FIELD_NUMBER; + hash = (53 * hash) + getMempoolSize(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + LOCALDBVERSION_FIELD_NUMBER; + hash = (53 * hash) + getLocalDBVersion().hashCode(); + hash = (37 * hash) + STOREDBVERSION_FIELD_NUMBER; + hash = (53 * hash) + getStoreDBVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (ty_ != 0) { - output.writeInt32(1, ty_); - } - if (!hash_.isEmpty()) { - output.writeBytes(2, hash_); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Peer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ty_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hash_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.Inventory)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.Inventory other = (cn.chain33.javasdk.model.protobuf.P2pService.Inventory) obj; - - if (getTy() - != other.getTy()) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + *
+         **
+         * peer 信息
+         * 
+ * + * Protobuf type {@code Peer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Peer) + cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.Peer.class, + cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Inventory prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.Peer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * ty=MSG_TX MSG_BLOCK
-     * 
- * - * Protobuf type {@code Inventory} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Inventory) - cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.Inventory.class, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.Inventory.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Inventory_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory build() { - cn.chain33.javasdk.model.protobuf.P2pService.Inventory result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.Inventory result = new cn.chain33.javasdk.model.protobuf.P2pService.Inventory(this); - result.ty_ = ty_; - result.hash_ = hash_; - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.Inventory) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Inventory)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.Inventory other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.Inventory parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.Inventory) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int ty_ ; - /** - *
-       *类型,数据类型,MSG_TX MSG_BLOCK
-       * 
- * - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - *
-       *类型,数据类型,MSG_TX MSG_BLOCK
-       * 
- * - * int32 ty = 1; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - *
-       *类型,数据类型,MSG_TX MSG_BLOCK
-       * 
- * - * int32 ty = 1; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       */哈希
-       * 
- * - * bytes hash = 2; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - *
-       */哈希
-       * 
- * - * bytes hash = 2; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-       */哈希
-       * 
- * - * bytes hash = 2; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private long height_ ; - /** - *
-       *高度
-       * 
- * - * int64 height = 3; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - *
-       *高度
-       * 
- * - * int64 height = 3; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-       *高度
-       * 
- * - * int64 height = 3; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Inventory) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:Inventory) - private static final cn.chain33.javasdk.model.protobuf.P2pService.Inventory DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.Inventory(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.P2pService.Inventory getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Inventory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Inventory(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + port_ = 0; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + name_ = ""; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + self_ = false; - } + mempoolSize_ = 0; - public interface P2PGetDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetData) - com.google.protobuf.MessageOrBuilder { + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + version_ = ""; - /** - *
-     */ p2p版本
-     * 
- * - * int32 version = 1; - * @return The version. - */ - int getVersion(); + localDBVersion_ = ""; - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - java.util.List - getInvsList(); - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index); - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - int getInvsCount(); - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - java.util.List - getInvsOrBuilderList(); - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder( - int index); - } - /** - *
-   **
-   * 通过invs 下载数据
-   * 
- * - * Protobuf type {@code P2PGetData} - */ - public static final class P2PGetData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetData) - P2PGetDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetData.newBuilder() to construct. - private P2PGetData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetData() { - invs_ = java.util.Collections.emptyList(); - } + storeDBVersion_ = ""; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetData(); - } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - invs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - invs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Inventory.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - invs_ = java.util.Collections.unmodifiableList(invs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_descriptor; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Peer getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance(); + } - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - *
-     */ p2p版本
-     * 
- * - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Peer build() { + cn.chain33.javasdk.model.protobuf.P2pService.Peer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int INVS_FIELD_NUMBER = 2; - private java.util.List invs_; - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - public java.util.List getInvsList() { - return invs_; - } - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - public java.util.List - getInvsOrBuilderList() { - return invs_; - } - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - public int getInvsCount() { - return invs_.size(); - } - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { - return invs_.get(index); - } - /** - *
-     */ invs 数组
-     * 
- * - * repeated .Inventory invs = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder( - int index) { - return invs_.get(index); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Peer buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.Peer result = new cn.chain33.javasdk.model.protobuf.P2pService.Peer( + this); + result.addr_ = addr_; + result.port_ = port_; + result.name_ = name_; + result.self_ = self_; + result.mempoolSize_ = mempoolSize_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.version_ = version_; + result.localDBVersion_ = localDBVersion_; + result.storeDBVersion_ = storeDBVersion_; + onBuilt(); + return result; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clone() { + return super.clone(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - for (int i = 0; i < invs_.size(); i++) { - output.writeMessage(2, invs_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - for (int i = 0; i < invs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, invs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!getInvsList() - .equals(other.getInvsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - if (getInvsCount() > 0) { - hash = (37 * hash) + INVS_FIELD_NUMBER; - hash = (53 * hash) + getInvsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.Peer) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Peer) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.Peer other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getSelf() != false) { + setSelf(other.getSelf()); + } + if (other.getMempoolSize() != 0) { + setMempoolSize(other.getMempoolSize()); + } + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getLocalDBVersion().isEmpty()) { + localDBVersion_ = other.localDBVersion_; + onChanged(); + } + if (!other.getStoreDBVersion().isEmpty()) { + storeDBVersion_ = other.storeDBVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * 通过invs 下载数据
-     * 
- * - * Protobuf type {@code P2PGetData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetData) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInvsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - if (invsBuilder_ == null) { - invs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - invsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetData_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; - if (invsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - invs_ = java.util.Collections.unmodifiableList(invs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invs_ = invs_; - } else { - result.invs_ = invsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (invsBuilder_ == null) { - if (!other.invs_.isEmpty()) { - if (invs_.isEmpty()) { - invs_ = other.invs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvsIsMutable(); - invs_.addAll(other.invs_); - } - onChanged(); - } - } else { - if (!other.invs_.isEmpty()) { - if (invsBuilder_.isEmpty()) { - invsBuilder_.dispose(); - invsBuilder_ = null; - invs_ = other.invs_; - bitField0_ = (bitField0_ & ~0x00000001); - invsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInvsFieldBuilder() : null; - } else { - invsBuilder_.addAllMessages(other.invs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int version_ ; - /** - *
-       */ p2p版本
-       * 
- * - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } - /** - *
-       */ p2p版本
-       * 
- * - * int32 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-       */ p2p版本
-       * 
- * - * int32 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private java.util.List invs_ = - java.util.Collections.emptyList(); - private void ensureInvsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - invs_ = new java.util.ArrayList(invs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Inventory, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder> invsBuilder_; - - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public java.util.List getInvsList() { - if (invsBuilder_ == null) { - return java.util.Collections.unmodifiableList(invs_); - } else { - return invsBuilder_.getMessageList(); - } - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public int getInvsCount() { - if (invsBuilder_ == null) { - return invs_.size(); - } else { - return invsBuilder_.getCount(); - } - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory getInvs(int index) { - if (invsBuilder_ == null) { - return invs_.get(index); - } else { - return invsBuilder_.getMessage(index); - } - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder setInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { - if (invsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvsIsMutable(); - invs_.set(index, value); - onChanged(); - } else { - invsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder setInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.set(index, builderForValue.build()); - onChanged(); - } else { - invsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder addInvs(cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { - if (invsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvsIsMutable(); - invs_.add(value); - onChanged(); - } else { - invsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder addInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory value) { - if (invsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvsIsMutable(); - invs_.add(index, value); - onChanged(); - } else { - invsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder addInvs( - cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.add(builderForValue.build()); - onChanged(); - } else { - invsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder addInvs( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder builderForValue) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.add(index, builderForValue.build()); - onChanged(); - } else { - invsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder addAllInvs( - java.lang.Iterable values) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invs_); - onChanged(); - } else { - invsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder clearInvs() { - if (invsBuilder_ == null) { - invs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - invsBuilder_.clear(); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public Builder removeInvs(int index) { - if (invsBuilder_ == null) { - ensureInvsIsMutable(); - invs_.remove(index); - onChanged(); - } else { - invsBuilder_.remove(index); - } - return this; - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder getInvsBuilder( - int index) { - return getInvsFieldBuilder().getBuilder(index); - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder getInvsOrBuilder( - int index) { - if (invsBuilder_ == null) { - return invs_.get(index); } else { - return invsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public java.util.List - getInvsOrBuilderList() { - if (invsBuilder_ != null) { - return invsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(invs_); - } - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder() { - return getInvsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder addInvsBuilder( - int index) { - return getInvsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.getDefaultInstance()); - } - /** - *
-       */ invs 数组
-       * 
- * - * repeated .Inventory invs = 2; - */ - public java.util.List - getInvsBuilderList() { - return getInvsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Inventory, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder> - getInvsFieldBuilder() { - if (invsBuilder_ == null) { - invsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Inventory, cn.chain33.javasdk.model.protobuf.P2pService.Inventory.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InventoryOrBuilder>( - invs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - invs_ = null; - } - return invsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetData) - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - // @@protoc_insertion_point(class_scope:P2PGetData) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.Peer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.Peer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.lang.Object addr_ = ""; + + /** + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { - } + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } - public interface P2PRouteOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PRoute) - com.google.protobuf.MessageOrBuilder { + /** + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } - /** - * int32 TTL = 1; - * @return The tTL. - */ - int getTTL(); - } - /** - *
-   * 
- * - * Protobuf type {@code P2PRoute} - */ - public static final class P2PRoute extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PRoute) - P2PRouteOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PRoute.newBuilder() to construct. - private P2PRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PRoute() { - } + private int port_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PRoute(); - } + /** + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PRoute( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tTL_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_descriptor; - } + /** + * int32 port = 2; + * + * @param value + * The port to set. + * + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder.class); - } + /** + * int32 port = 2; + * + * @return This builder for chaining. + */ + public Builder clearPort() { - public static final int TTL_FIELD_NUMBER = 1; - private int tTL_; - /** - * int32 TTL = 1; - * @return The tTL. - */ - public int getTTL() { - return tTL_; - } + port_ = 0; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private java.lang.Object name_ = ""; + + /** + * string name = 3; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string name = 3; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tTL_ != 0) { - output.writeInt32(1, tTL_); - } - unknownFields.writeTo(output); - } + /** + * string name = 3; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tTL_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, tTL_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string name = 3; + * + * @return This builder for chaining. + */ + public Builder clearName() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute) obj; - - if (getTTL() - != other.getTTL()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TTL_FIELD_NUMBER; - hash = (53 * hash) + getTTL(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string name = 3; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean self_; + + /** + * bool self = 4; + * + * @return The self. + */ + @java.lang.Override + public boolean getSelf() { + return self_; + } + + /** + * bool self = 4; + * + * @param value + * The self to set. + * + * @return This builder for chaining. + */ + public Builder setSelf(boolean value) { + + self_ = value; + onChanged(); + return this; + } + + /** + * bool self = 4; + * + * @return This builder for chaining. + */ + public Builder clearSelf() { + + self_ = false; + onChanged(); + return this; + } + + private int mempoolSize_; + + /** + * int32 mempoolSize = 5; + * + * @return The mempoolSize. + */ + @java.lang.Override + public int getMempoolSize() { + return mempoolSize_; + } + + /** + * int32 mempoolSize = 5; + * + * @param value + * The mempoolSize to set. + * + * @return This builder for chaining. + */ + public Builder setMempoolSize(int value) { + + mempoolSize_ = value; + onChanged(); + return this; + } + + /** + * int32 mempoolSize = 5; + * + * @return This builder for chaining. + */ + public Builder clearMempoolSize() { + + mempoolSize_ = 0; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; + private com.google.protobuf.SingleFieldBuilderV3 headerBuilder_; + + /** + * .Header header = 6; + * + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + + /** + * .Header header = 6; + * + * @return The header. + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { + if (headerBuilder_ == null) { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } else { + return headerBuilder_.getMessage(); + } + } + + /** + * .Header header = 6; + */ + public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Header header = 6; + */ + public Builder setHeader( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Header header = 6; + */ + public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_) + .mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Header header = 6; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + + /** + * .Header header = 6; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + + /** + * .Header header = 6; + */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null + ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() + : header_; + } + } + + /** + * .Header header = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeader(), getParentForChildren(), isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.lang.Object version_ = ""; + + /** + * string version = 7; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string version = 7; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string version = 7; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + + /** + * string version = 7; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + + /** + * string version = 7; + * + * @param value + * The bytes for version to set. + * + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object localDBVersion_ = ""; + + /** + * string localDBVersion = 8; + * + * @return The localDBVersion. + */ + public java.lang.String getLocalDBVersion() { + java.lang.Object ref = localDBVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localDBVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string localDBVersion = 8; + * + * @return The bytes for localDBVersion. + */ + public com.google.protobuf.ByteString getLocalDBVersionBytes() { + java.lang.Object ref = localDBVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + localDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string localDBVersion = 8; + * + * @param value + * The localDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setLocalDBVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localDBVersion_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string localDBVersion = 8; + * + * @return This builder for chaining. + */ + public Builder clearLocalDBVersion() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + localDBVersion_ = getDefaultInstance().getLocalDBVersion(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 
- * - * Protobuf type {@code P2PRoute} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PRoute) - cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tTL_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PRoute_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute(this); - result.tTL_ = tTL_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance()) return this; - if (other.getTTL() != 0) { - setTTL(other.getTTL()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tTL_ ; - /** - * int32 TTL = 1; - * @return The tTL. - */ - public int getTTL() { - return tTL_; - } - /** - * int32 TTL = 1; - * @param value The tTL to set. - * @return This builder for chaining. - */ - public Builder setTTL(int value) { - - tTL_ = value; - onChanged(); - return this; - } - /** - * int32 TTL = 1; - * @return This builder for chaining. - */ - public Builder clearTTL() { - - tTL_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PRoute) - } + /** + * string localDBVersion = 8; + * + * @param value + * The bytes for localDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setLocalDBVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localDBVersion_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:P2PRoute) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute(); - } + private java.lang.Object storeDBVersion_ = ""; + + /** + * string storeDBVersion = 9; + * + * @return The storeDBVersion. + */ + public java.lang.String getStoreDBVersion() { + java.lang.Object ref = storeDBVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storeDBVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string storeDBVersion = 9; + * + * @return The bytes for storeDBVersion. + */ + public com.google.protobuf.ByteString getStoreDBVersionBytes() { + java.lang.Object ref = storeDBVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + storeDBVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PRoute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PRoute(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string storeDBVersion = 9; + * + * @param value + * The storeDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setStoreDBVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storeDBVersion_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string storeDBVersion = 9; + * + * @return This builder for chaining. + */ + public Builder clearStoreDBVersion() { - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + storeDBVersion_ = getDefaultInstance().getStoreDBVersion(); + onChanged(); + return this; + } - } + /** + * string storeDBVersion = 9; + * + * @param value + * The bytes for storeDBVersion to set. + * + * @return This builder for chaining. + */ + public Builder setStoreDBVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storeDBVersion_ = value; + onChanged(); + return this; + } - public interface P2PTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PTx) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - * .Transaction tx = 1; - * @return The tx. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); - /** - * .Transaction tx = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - * .P2PRoute route = 2; - * @return Whether the route field is set. - */ - boolean hasRoute(); - /** - * .P2PRoute route = 2; - * @return The route. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute(); - /** - * .P2PRoute route = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder(); - } - /** - *
-   **
-   * p2p 发送交易协议
-   * 
- * - * Protobuf type {@code P2PTx} - */ - public static final class P2PTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PTx) - P2PTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PTx.newBuilder() to construct. - private P2PTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PTx() { - } + // @@protoc_insertion_point(builder_scope:Peer) + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PTx(); - } + // @@protoc_insertion_point(class_scope:Peer) + private static final cn.chain33.javasdk.model.protobuf.P2pService.Peer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.Peer(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder subBuilder = null; - if (route_ != null) { - subBuilder = route_.toBuilder(); - } - route_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(route_); - route_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.Peer getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder.class); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Peer parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Peer(input, extensionRegistry); + } + }; - public static final int TX_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return tx_ != null; - } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - return getTx(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int ROUTE_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; - /** - * .P2PRoute route = 2; - * @return Whether the route field is set. - */ - public boolean hasRoute() { - return route_ != null; - } - /** - * .P2PRoute route = 2; - * @return The route. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { - return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; - } - /** - * .P2PRoute route = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { - return getRoute(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Peer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tx_ != null) { - output.writeMessage(1, getTx()); - } - if (route_ != null) { - output.writeMessage(2, getRoute()); - } - unknownFields.writeTo(output); - } + public interface PeerListOrBuilder extends + // @@protoc_insertion_point(interface_extends:PeerList) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTx()); - } - if (route_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRoute()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated .Peer peers = 1; + */ + java.util.List getPeersList(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) obj; - - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (hasRoute() != other.hasRoute()) return false; - if (hasRoute()) { - if (!getRoute() - .equals(other.getRoute())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated .Peer peers = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.Peer getPeers(int index); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - if (hasRoute()) { - hash = (37 * hash) + ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getRoute().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated .Peer peers = 1; + */ + int getPeersCount(); - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .Peer peers = 1; + */ + java.util.List getPeersOrBuilderList(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + /** + * repeated .Peer peers = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder getPeersOrBuilder(int index); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** *
      **
-     * p2p 发送交易协议
+     * peer 列表
      * 
* - * Protobuf type {@code P2PTx} + * Protobuf type {@code PeerList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PTx) - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - if (routeBuilder_ == null) { - route_ = null; - } else { - route_ = null; - routeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTx(this); - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - if (routeBuilder_ == null) { - result.route_ = route_; - } else { - result.route_ = routeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance()) return this; - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (other.hasRoute()) { - mergeRoute(other.getRoute()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txBuilder_; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - if (txBuilder_ == null) { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - * .Transaction tx = 1; - */ - public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder setTx( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - } - /** - * .Transaction tx = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder> routeBuilder_; - /** - * .P2PRoute route = 2; - * @return Whether the route field is set. - */ - public boolean hasRoute() { - return routeBuilder_ != null || route_ != null; - } - /** - * .P2PRoute route = 2; - * @return The route. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { - if (routeBuilder_ == null) { - return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; - } else { - return routeBuilder_.getMessage(); - } - } - /** - * .P2PRoute route = 2; - */ - public Builder setRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { - if (routeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - route_ = value; - onChanged(); - } else { - routeBuilder_.setMessage(value); - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public Builder setRoute( - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder builderForValue) { - if (routeBuilder_ == null) { - route_ = builderForValue.build(); - onChanged(); - } else { - routeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public Builder mergeRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { - if (routeBuilder_ == null) { - if (route_ != null) { - route_ = - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.newBuilder(route_).mergeFrom(value).buildPartial(); - } else { - route_ = value; - } - onChanged(); - } else { - routeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public Builder clearRoute() { - if (routeBuilder_ == null) { - route_ = null; - onChanged(); - } else { - route_ = null; - routeBuilder_ = null; - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder getRouteBuilder() { - - onChanged(); - return getRouteFieldBuilder().getBuilder(); - } - /** - * .P2PRoute route = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { - if (routeBuilder_ != null) { - return routeBuilder_.getMessageOrBuilder(); - } else { - return route_ == null ? - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; - } - } - /** - * .P2PRoute route = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder> - getRouteFieldBuilder() { - if (routeBuilder_ == null) { - routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder>( - getRoute(), - getParentForChildren(), - isClean()); - route_ = null; - } - return routeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PTx) - } + public static final class PeerList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:PeerList) + PeerListOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:P2PTx) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTx(); - } + // Use PeerList.newBuilder() to construct. + private PeerList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private PeerList() { + peers_ = java.util.Collections.emptyList(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PeerList(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private PeerList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + peers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + peers_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Peer.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + peers_ = java.util.Collections.unmodifiableList(peers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_descriptor; + } - public interface P2PBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PBlock) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, + cn.chain33.javasdk.model.protobuf.P2pService.PeerList.Builder.class); + } - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - boolean hasBlock(); - /** - * .Block block = 1; - * @return The block. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); - /** - * .Block block = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); - } - /** - *
-   **
-   * p2p 发送区块协议
-   * 
- * - * Protobuf type {@code P2PBlock} - */ - public static final class P2PBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PBlock) - P2PBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PBlock.newBuilder() to construct. - private P2PBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PBlock() { - } + public static final int PEERS_FIELD_NUMBER = 1; + private java.util.List peers_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PBlock(); - } + /** + * repeated .Peer peers = 1; + */ + @java.lang.Override + public java.util.List getPeersList() { + return peers_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; - if (block_ != null) { - subBuilder = block_.toBuilder(); - } - block_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(block_); - block_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_descriptor; - } + /** + * repeated .Peer peers = 1; + */ + @java.lang.Override + public java.util.List getPeersOrBuilderList() { + return peers_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder.class); - } + /** + * repeated .Peer peers = 1; + */ + @java.lang.Override + public int getPeersCount() { + return peers_.size(); + } - public static final int BLOCK_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return block_ != null; - } - /** - * .Block block = 1; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - return getBlock(); - } + /** + * repeated .Peer peers = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.Peer getPeers(int index) { + return peers_.get(index); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .Peer peers = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder getPeersOrBuilder(int index) { + return peers_.get(index); + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (block_ != null) { - output.writeMessage(1, getBlock()); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (block_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlock()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) obj; - - if (hasBlock() != other.hasBlock()) return false; - if (hasBlock()) { - if (!getBlock() - .equals(other.getBlock())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < peers_.size(); i++) { + output.writeMessage(1, peers_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlock()) { - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + for (int i = 0; i < peers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, peers_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeerList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.PeerList other = (cn.chain33.javasdk.model.protobuf.P2pService.PeerList) obj; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p 发送区块协议
-     * 
- * - * Protobuf type {@code P2PBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PBlock) - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blockBuilder_ == null) { - block_ = null; - } else { - block_ = null; - blockBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlock_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock(this); - if (blockBuilder_ == null) { - result.block_ = block_; - } else { - result.block_ = blockBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance()) return this; - if (other.hasBlock()) { - mergeBlock(other.getBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block block_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> blockBuilder_; - /** - * .Block block = 1; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return blockBuilder_ != null || block_ != null; - } - /** - * .Block block = 1; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - if (blockBuilder_ == null) { - return block_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } else { - return blockBuilder_.getMessage(); - } - } - /** - * .Block block = 1; - */ - public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - block_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder setBlock( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (blockBuilder_ == null) { - block_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (block_ != null) { - block_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder(block_).mergeFrom(value).buildPartial(); - } else { - block_ = value; - } - onChanged(); - } else { - blockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Block block = 1; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - block_ = null; - onChanged(); - } else { - block_ = null; - blockBuilder_ = null; - } - - return this; - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { - - onChanged(); - return getBlockFieldBuilder().getBuilder(); - } - /** - * .Block block = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - if (blockBuilder_ != null) { - return blockBuilder_.getMessageOrBuilder(); - } else { - return block_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance() : block_; - } - } - /** - * .Block block = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder>( - getBlock(), - getParentForChildren(), - isClean()); - block_ = null; - } - return blockBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PBlock) - } + if (!getPeersList().equals(other.getPeersList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - // @@protoc_insertion_point(class_scope:P2PBlock) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPeersCount() > 0) { + hash = (37 * hash) + PEERS_FIELD_NUMBER; + hash = (53 * hash) + getPeersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public interface LightBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:LightBlock) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * int64 size = 1; - * @return The size. - */ - long getSize(); + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * .Header header = 2; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - * .Header header = 2; - * @return The header. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); - /** - * .Header header = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * .Transaction minerTx = 3; - * @return Whether the minerTx field is set. - */ - boolean hasMinerTx(); - /** - * .Transaction minerTx = 3; - * @return The minerTx. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getMinerTx(); - /** - * .Transaction minerTx = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getMinerTxOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * repeated string sTxHashes = 4; - * @return A list containing the sTxHashes. - */ - java.util.List - getSTxHashesList(); - /** - * repeated string sTxHashes = 4; - * @return The count of sTxHashes. - */ - int getSTxHashesCount(); - /** - * repeated string sTxHashes = 4; - * @param index The index of the element to return. - * @return The sTxHashes at the given index. - */ - java.lang.String getSTxHashes(int index); - /** - * repeated string sTxHashes = 4; - * @param index The index of the value to return. - * @return The bytes of the sTxHashes at the given index. - */ - com.google.protobuf.ByteString - getSTxHashesBytes(int index); - } - /** - *
-   **
-   * p2p 轻量级区块, 广播交易短哈希列表
-   * 
- * - * Protobuf type {@code LightBlock} - */ - public static final class LightBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:LightBlock) - LightBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use LightBlock.newBuilder() to construct. - private LightBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LightBlock() { - sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LightBlock(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LightBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - size_ = input.readInt64(); - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; - if (minerTx_ != null) { - subBuilder = minerTx_.toBuilder(); - } - minerTx_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minerTx_); - minerTx_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sTxHashes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sTxHashes_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sTxHashes_ = sTxHashes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.class, cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder.class); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int SIZE_FIELD_NUMBER = 1; - private long size_; - /** - * int64 size = 1; - * @return The size. - */ - public long getSize() { - return size_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int HEADER_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - /** - * .Header header = 2; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .Header header = 2; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - /** - * .Header header = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.PeerList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int MINERTX_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction minerTx_; - /** - * .Transaction minerTx = 3; - * @return Whether the minerTx field is set. - */ - public boolean hasMinerTx() { - return minerTx_ != null; - } - /** - * .Transaction minerTx = 3; - * @return The minerTx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getMinerTx() { - return minerTx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : minerTx_; - } - /** - * .Transaction minerTx = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getMinerTxOrBuilder() { - return getMinerTx(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int STXHASHES_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList sTxHashes_; - /** - * repeated string sTxHashes = 4; - * @return A list containing the sTxHashes. - */ - public com.google.protobuf.ProtocolStringList - getSTxHashesList() { - return sTxHashes_; - } - /** - * repeated string sTxHashes = 4; - * @return The count of sTxHashes. - */ - public int getSTxHashesCount() { - return sTxHashes_.size(); - } - /** - * repeated string sTxHashes = 4; - * @param index The index of the element to return. - * @return The sTxHashes at the given index. - */ - public java.lang.String getSTxHashes(int index) { - return sTxHashes_.get(index); - } - /** - * repeated string sTxHashes = 4; - * @param index The index of the value to return. - * @return The bytes of the sTxHashes at the given index. - */ - public com.google.protobuf.ByteString - getSTxHashesBytes(int index) { - return sTxHashes_.getByteString(index); - } + /** + *
+         **
+         * peer 列表
+         * 
+ * + * Protobuf type {@code PeerList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:PeerList) + cn.chain33.javasdk.model.protobuf.P2pService.PeerListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, + cn.chain33.javasdk.model.protobuf.P2pService.PeerList.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.PeerList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (size_ != 0L) { - output.writeInt64(1, size_); - } - if (header_ != null) { - output.writeMessage(2, getHeader()); - } - if (minerTx_ != null) { - output.writeMessage(3, getMinerTx()); - } - for (int i = 0; i < sTxHashes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sTxHashes_.getRaw(i)); - } - unknownFields.writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, size_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHeader()); - } - if (minerTx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMinerTx()); - } - { - int dataSize = 0; - for (int i = 0; i < sTxHashes_.size(); i++) { - dataSize += computeStringSizeNoTag(sTxHashes_.getRaw(i)); - } - size += dataSize; - size += 1 * getSTxHashesList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPeersFieldBuilder(); + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.LightBlock)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock other = (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) obj; - - if (getSize() - != other.getSize()) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (hasMinerTx() != other.hasMinerTx()) return false; - if (hasMinerTx()) { - if (!getMinerTx() - .equals(other.getMinerTx())) return false; - } - if (!getSTxHashesList() - .equals(other.getSTxHashesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + if (peersBuilder_ == null) { + peers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + peersBuilder_.clear(); + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (hasMinerTx()) { - hash = (37 * hash) + MINERTX_FIELD_NUMBER; - hash = (53 * hash) + getMinerTx().hashCode(); - } - if (getSTxHashesCount() > 0) { - hash = (37 * hash) + STXHASHES_FIELD_NUMBER; - hash = (53 * hash) + getSTxHashesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeerList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeerList build() { + cn.chain33.javasdk.model.protobuf.P2pService.PeerList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p 轻量级区块, 广播交易短哈希列表
-     * 
- * - * Protobuf type {@code LightBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:LightBlock) - cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.class, cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - size_ = 0L; - - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - if (minerTxBuilder_ == null) { - minerTx_ = null; - } else { - minerTx_ = null; - minerTxBuilder_ = null; - } - sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightBlock_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock build() { - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock result = new cn.chain33.javasdk.model.protobuf.P2pService.LightBlock(this); - int from_bitField0_ = bitField0_; - result.size_ = size_; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (minerTxBuilder_ == null) { - result.minerTx_ = minerTx_; - } else { - result.minerTx_ = minerTxBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - sTxHashes_ = sTxHashes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sTxHashes_ = sTxHashes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance()) return this; - if (other.getSize() != 0L) { - setSize(other.getSize()); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.hasMinerTx()) { - mergeMinerTx(other.getMinerTx()); - } - if (!other.sTxHashes_.isEmpty()) { - if (sTxHashes_.isEmpty()) { - sTxHashes_ = other.sTxHashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSTxHashesIsMutable(); - sTxHashes_.addAll(other.sTxHashes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long size_ ; - /** - * int64 size = 1; - * @return The size. - */ - public long getSize() { - return size_; - } - /** - * int64 size = 1; - * @param value The size to set. - * @return This builder for chaining. - */ - public Builder setSize(long value) { - - size_ = value; - onChanged(); - return this; - } - /** - * int64 size = 1; - * @return This builder for chaining. - */ - public Builder clearSize() { - - size_ = 0L; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> headerBuilder_; - /** - * .Header header = 2; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .Header header = 2; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .Header header = 2; - */ - public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .Header header = 2; - */ - public Builder setHeader( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Header header = 2; - */ - public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Header header = 2; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .Header header = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .Header header = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - } - /** - * .Header header = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction minerTx_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> minerTxBuilder_; - /** - * .Transaction minerTx = 3; - * @return Whether the minerTx field is set. - */ - public boolean hasMinerTx() { - return minerTxBuilder_ != null || minerTx_ != null; - } - /** - * .Transaction minerTx = 3; - * @return The minerTx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getMinerTx() { - if (minerTxBuilder_ == null) { - return minerTx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : minerTx_; - } else { - return minerTxBuilder_.getMessage(); - } - } - /** - * .Transaction minerTx = 3; - */ - public Builder setMinerTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (minerTxBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - minerTx_ = value; - onChanged(); - } else { - minerTxBuilder_.setMessage(value); - } - - return this; - } - /** - * .Transaction minerTx = 3; - */ - public Builder setMinerTx( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (minerTxBuilder_ == null) { - minerTx_ = builderForValue.build(); - onChanged(); - } else { - minerTxBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Transaction minerTx = 3; - */ - public Builder mergeMinerTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (minerTxBuilder_ == null) { - if (minerTx_ != null) { - minerTx_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(minerTx_).mergeFrom(value).buildPartial(); - } else { - minerTx_ = value; - } - onChanged(); - } else { - minerTxBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Transaction minerTx = 3; - */ - public Builder clearMinerTx() { - if (minerTxBuilder_ == null) { - minerTx_ = null; - onChanged(); - } else { - minerTx_ = null; - minerTxBuilder_ = null; - } - - return this; - } - /** - * .Transaction minerTx = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getMinerTxBuilder() { - - onChanged(); - return getMinerTxFieldBuilder().getBuilder(); - } - /** - * .Transaction minerTx = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getMinerTxOrBuilder() { - if (minerTxBuilder_ != null) { - return minerTxBuilder_.getMessageOrBuilder(); - } else { - return minerTx_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : minerTx_; - } - } - /** - * .Transaction minerTx = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getMinerTxFieldBuilder() { - if (minerTxBuilder_ == null) { - minerTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - getMinerTx(), - getParentForChildren(), - isClean()); - minerTx_ = null; - } - return minerTxBuilder_; - } - - private com.google.protobuf.LazyStringList sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSTxHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sTxHashes_ = new com.google.protobuf.LazyStringArrayList(sTxHashes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string sTxHashes = 4; - * @return A list containing the sTxHashes. - */ - public com.google.protobuf.ProtocolStringList - getSTxHashesList() { - return sTxHashes_.getUnmodifiableView(); - } - /** - * repeated string sTxHashes = 4; - * @return The count of sTxHashes. - */ - public int getSTxHashesCount() { - return sTxHashes_.size(); - } - /** - * repeated string sTxHashes = 4; - * @param index The index of the element to return. - * @return The sTxHashes at the given index. - */ - public java.lang.String getSTxHashes(int index) { - return sTxHashes_.get(index); - } - /** - * repeated string sTxHashes = 4; - * @param index The index of the value to return. - * @return The bytes of the sTxHashes at the given index. - */ - public com.google.protobuf.ByteString - getSTxHashesBytes(int index) { - return sTxHashes_.getByteString(index); - } - /** - * repeated string sTxHashes = 4; - * @param index The index to set the value at. - * @param value The sTxHashes to set. - * @return This builder for chaining. - */ - public Builder setSTxHashes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSTxHashesIsMutable(); - sTxHashes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string sTxHashes = 4; - * @param value The sTxHashes to add. - * @return This builder for chaining. - */ - public Builder addSTxHashes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSTxHashesIsMutable(); - sTxHashes_.add(value); - onChanged(); - return this; - } - /** - * repeated string sTxHashes = 4; - * @param values The sTxHashes to add. - * @return This builder for chaining. - */ - public Builder addAllSTxHashes( - java.lang.Iterable values) { - ensureSTxHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sTxHashes_); - onChanged(); - return this; - } - /** - * repeated string sTxHashes = 4; - * @return This builder for chaining. - */ - public Builder clearSTxHashes() { - sTxHashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string sTxHashes = 4; - * @param value The bytes of the sTxHashes to add. - * @return This builder for chaining. - */ - public Builder addSTxHashesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSTxHashesIsMutable(); - sTxHashes_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:LightBlock) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeerList buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.PeerList result = new cn.chain33.javasdk.model.protobuf.P2pService.PeerList( + this); + int from_bitField0_ = bitField0_; + if (peersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + peers_ = java.util.Collections.unmodifiableList(peers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.peers_ = peers_; + } else { + result.peers_ = peersBuilder_.build(); + } + onBuilt(); + return result; + } - // @@protoc_insertion_point(class_scope:LightBlock) - private static final cn.chain33.javasdk.model.protobuf.P2pService.LightBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.LightBlock(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LightBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LightBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public interface LightTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:LightTx) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeerList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.PeerList) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * bytes txHash = 1; - * @return The txHash. - */ - com.google.protobuf.ByteString getTxHash(); + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.PeerList other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance()) + return this; + if (peersBuilder_ == null) { + if (!other.peers_.isEmpty()) { + if (peers_.isEmpty()) { + peers_ = other.peers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePeersIsMutable(); + peers_.addAll(other.peers_); + } + onChanged(); + } + } else { + if (!other.peers_.isEmpty()) { + if (peersBuilder_.isEmpty()) { + peersBuilder_.dispose(); + peersBuilder_ = null; + peers_ = other.peers_; + bitField0_ = (bitField0_ & ~0x00000001); + peersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPeersFieldBuilder() : null; + } else { + peersBuilder_.addAllMessages(other.peers_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * .P2PRoute route = 2; - * @return Whether the route field is set. - */ - boolean hasRoute(); - /** - * .P2PRoute route = 2; - * @return The route. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute(); - /** - * .P2PRoute route = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder(); - } - /** - *
-   * 轻量级交易广播
-   * 
- * - * Protobuf type {@code LightTx} - */ - public static final class LightTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:LightTx) - LightTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use LightTx.newBuilder() to construct. - private LightTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LightTx() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LightTx(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.PeerList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.PeerList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LightTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - txHash_ = input.readBytes(); - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder subBuilder = null; - if (route_ != null) { - subBuilder = route_.toBuilder(); - } - route_ = input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(route_); - route_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_descriptor; - } + private int bitField0_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.LightTx.class, cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder.class); - } + private java.util.List peers_ = java.util.Collections + .emptyList(); - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + private void ensurePeersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + peers_ = new java.util.ArrayList(peers_); + bitField0_ |= 0x00000001; + } + } - public static final int ROUTE_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; - /** - * .P2PRoute route = 2; - * @return Whether the route field is set. - */ - public boolean hasRoute() { - return route_ != null; - } - /** - * .P2PRoute route = 2; - * @return The route. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { - return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; - } - /** - * .P2PRoute route = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { - return getRoute(); - } + private com.google.protobuf.RepeatedFieldBuilderV3 peersBuilder_; + + /** + * repeated .Peer peers = 1; + */ + public java.util.List getPeersList() { + if (peersBuilder_ == null) { + return java.util.Collections.unmodifiableList(peers_); + } else { + return peersBuilder_.getMessageList(); + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .Peer peers = 1; + */ + public int getPeersCount() { + if (peersBuilder_ == null) { + return peers_.size(); + } else { + return peersBuilder_.getCount(); + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated .Peer peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Peer getPeers(int index) { + if (peersBuilder_ == null) { + return peers_.get(index); + } else { + return peersBuilder_.getMessage(index); + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - if (route_ != null) { - output.writeMessage(2, getRoute()); - } - unknownFields.writeTo(output); - } + /** + * repeated .Peer peers = 1; + */ + public Builder setPeers(int index, cn.chain33.javasdk.model.protobuf.P2pService.Peer value) { + if (peersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeersIsMutable(); + peers_.set(index, value); + onChanged(); + } else { + peersBuilder_.setMessage(index, value); + } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - if (route_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRoute()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated .Peer peers = 1; + */ + public Builder setPeers(int index, + cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder builderForValue) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.set(index, builderForValue.build()); + onChanged(); + } else { + peersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.LightTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.LightTx other = (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) obj; - - if (!getTxHash() - .equals(other.getTxHash())) return false; - if (hasRoute() != other.hasRoute()) return false; - if (hasRoute()) { - if (!getRoute() - .equals(other.getRoute())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated .Peer peers = 1; + */ + public Builder addPeers(cn.chain33.javasdk.model.protobuf.P2pService.Peer value) { + if (peersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeersIsMutable(); + peers_.add(value); + onChanged(); + } else { + peersBuilder_.addMessage(value); + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - if (hasRoute()) { - hash = (37 * hash) + ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getRoute().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated .Peer peers = 1; + */ + public Builder addPeers(int index, cn.chain33.javasdk.model.protobuf.P2pService.Peer value) { + if (peersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeersIsMutable(); + peers_.add(index, value); + onChanged(); + } else { + peersBuilder_.addMessage(index, value); + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .Peer peers = 1; + */ + public Builder addPeers(cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder builderForValue) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.add(builderForValue.build()); + onChanged(); + } else { + peersBuilder_.addMessage(builderForValue.build()); + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.LightTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated .Peer peers = 1; + */ + public Builder addPeers(int index, + cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder builderForValue) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.add(index, builderForValue.build()); + onChanged(); + } else { + peersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 轻量级交易广播
-     * 
- * - * Protobuf type {@code LightTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:LightTx) - cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.LightTx.class, cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.LightTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - if (routeBuilder_ == null) { - route_ = null; - } else { - route_ = null; - routeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_LightTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightTx build() { - cn.chain33.javasdk.model.protobuf.P2pService.LightTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightTx buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.LightTx result = new cn.chain33.javasdk.model.protobuf.P2pService.LightTx(this); - result.txHash_ = txHash_; - if (routeBuilder_ == null) { - result.route_ = route_; - } else { - result.route_ = routeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.LightTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.LightTx other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.hasRoute()) { - mergeRoute(other.getRoute()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.LightTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - * @param value The txHash to set. - * @return This builder for chaining. - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - * @return This builder for chaining. - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute route_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder> routeBuilder_; - /** - * .P2PRoute route = 2; - * @return Whether the route field is set. - */ - public boolean hasRoute() { - return routeBuilder_ != null || route_ != null; - } - /** - * .P2PRoute route = 2; - * @return The route. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute getRoute() { - if (routeBuilder_ == null) { - return route_ == null ? cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; - } else { - return routeBuilder_.getMessage(); - } - } - /** - * .P2PRoute route = 2; - */ - public Builder setRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { - if (routeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - route_ = value; - onChanged(); - } else { - routeBuilder_.setMessage(value); - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public Builder setRoute( - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder builderForValue) { - if (routeBuilder_ == null) { - route_ = builderForValue.build(); - onChanged(); - } else { - routeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public Builder mergeRoute(cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute value) { - if (routeBuilder_ == null) { - if (route_ != null) { - route_ = - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.newBuilder(route_).mergeFrom(value).buildPartial(); - } else { - route_ = value; - } - onChanged(); - } else { - routeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public Builder clearRoute() { - if (routeBuilder_ == null) { - route_ = null; - onChanged(); - } else { - route_ = null; - routeBuilder_ = null; - } - - return this; - } - /** - * .P2PRoute route = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder getRouteBuilder() { - - onChanged(); - return getRouteFieldBuilder().getBuilder(); - } - /** - * .P2PRoute route = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder getRouteOrBuilder() { - if (routeBuilder_ != null) { - return routeBuilder_.getMessageOrBuilder(); - } else { - return route_ == null ? - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.getDefaultInstance() : route_; - } - } - /** - * .P2PRoute route = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder> - getRouteFieldBuilder() { - if (routeBuilder_ == null) { - routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute, cn.chain33.javasdk.model.protobuf.P2pService.P2PRoute.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PRouteOrBuilder>( - getRoute(), - getParentForChildren(), - isClean()); - route_ = null; - } - return routeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:LightTx) - } + /** + * repeated .Peer peers = 1; + */ + public Builder addAllPeers( + java.lang.Iterable values) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peers_); + onChanged(); + } else { + peersBuilder_.addAllMessages(values); + } + return this; + } - // @@protoc_insertion_point(class_scope:LightTx) - private static final cn.chain33.javasdk.model.protobuf.P2pService.LightTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.LightTx(); - } + /** + * repeated .Peer peers = 1; + */ + public Builder clearPeers() { + if (peersBuilder_ == null) { + peers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + peersBuilder_.clear(); + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.LightTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Peer peers = 1; + */ + public Builder removePeers(int index) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.remove(index); + onChanged(); + } else { + peersBuilder_.remove(index); + } + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LightTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LightTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .Peer peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder getPeersBuilder(int index) { + return getPeersFieldBuilder().getBuilder(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .Peer peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder getPeersOrBuilder(int index) { + if (peersBuilder_ == null) { + return peers_.get(index); + } else { + return peersBuilder_.getMessageOrBuilder(index); + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Peer peers = 1; + */ + public java.util.List getPeersOrBuilderList() { + if (peersBuilder_ != null) { + return peersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(peers_); + } + } - } + /** + * repeated .Peer peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder addPeersBuilder() { + return getPeersFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance()); + } - public interface P2PTxReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PTxReq) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .Peer peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder addPeersBuilder(int index) { + return getPeersFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance()); + } - /** - * bytes txHash = 1; - * @return The txHash. - */ - com.google.protobuf.ByteString getTxHash(); - } - /** - *
-   * 请求完整交易数据
-   * 
- * - * Protobuf type {@code P2PTxReq} - */ - public static final class P2PTxReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PTxReq) - P2PTxReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PTxReq.newBuilder() to construct. - private P2PTxReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PTxReq() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * repeated .Peer peers = 1; + */ + public java.util.List getPeersBuilderList() { + return getPeersFieldBuilder().getBuilderList(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PTxReq(); - } + private com.google.protobuf.RepeatedFieldBuilderV3 getPeersFieldBuilder() { + if (peersBuilder_ == null) { + peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + peers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + peers_ = null; + } + return peersBuilder_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PTxReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - txHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_descriptor; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder.class); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + // @@protoc_insertion_point(builder_scope:PeerList) + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(class_scope:PeerList) + private static final cn.chain33.javasdk.model.protobuf.P2pService.PeerList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.PeerList(); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeerList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PeerList(input, extensionRegistry); + } + }; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) obj; - - if (!getTxHash() - .equals(other.getTxHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeerList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public interface P2PGetPeerReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetPeerReq) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string p2pType = 1; + * + * @return The p2pType. + */ + java.lang.String getP2PType(); + + /** + * string p2pType = 1; + * + * @return The bytes for p2pType. + */ + com.google.protobuf.ByteString getP2PTypeBytes(); } + /** *
-     * 请求完整交易数据
+     **
+     * p2p get peer req
      * 
* - * Protobuf type {@code P2PTxReq} + * Protobuf type {@code P2PGetPeerReq} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PTxReq) - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PTxReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - * @return The txHash. - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - * @param value The txHash to set. - * @return This builder for chaining. - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - * @return This builder for chaining. - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PTxReq) - } + public static final class P2PGetPeerReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetPeerReq) + P2PGetPeerReqOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:P2PTxReq) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq(); - } + // Use P2PGetPeerReq.newBuilder() to construct. + private P2PGetPeerReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private P2PGetPeerReq() { + p2PType_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PTxReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PTxReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetPeerReq(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private P2PGetPeerReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + p2PType_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_descriptor; + } - public interface P2PBlockTxReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PBlockTxReq) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.Builder.class); + } - /** - * string blockHash = 1; - * @return The blockHash. - */ - java.lang.String getBlockHash(); - /** - * string blockHash = 1; - * @return The bytes for blockHash. - */ - com.google.protobuf.ByteString - getBlockHashBytes(); + public static final int P2PTYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object p2PType_; - /** - * repeated int32 txIndices = 2; - * @return A list containing the txIndices. - */ - java.util.List getTxIndicesList(); - /** - * repeated int32 txIndices = 2; - * @return The count of txIndices. - */ - int getTxIndicesCount(); - /** - * repeated int32 txIndices = 2; - * @param index The index of the element to return. - * @return The txIndices at the given index. - */ - int getTxIndices(int index); - } - /** - *
-   * 请求区块内交易数据
-   * 
- * - * Protobuf type {@code P2PBlockTxReq} - */ - public static final class P2PBlockTxReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PBlockTxReq) - P2PBlockTxReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PBlockTxReq.newBuilder() to construct. - private P2PBlockTxReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PBlockTxReq() { - blockHash_ = ""; - txIndices_ = emptyIntList(); - } + /** + * string p2pType = 1; + * + * @return The p2pType. + */ + @java.lang.Override + public java.lang.String getP2PType() { + java.lang.Object ref = p2PType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + p2PType_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PBlockTxReq(); - } + /** + * string p2pType = 1; + * + * @return The bytes for p2pType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getP2PTypeBytes() { + java.lang.Object ref = p2PType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + p2PType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PBlockTxReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - blockHash_ = s; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txIndices_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - txIndices_.addInt(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - txIndices_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - txIndices_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txIndices_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_descriptor; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private volatile java.lang.Object blockHash_; - /** - * string blockHash = 1; - * @return The blockHash. - */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } - } - /** - * string blockHash = 1; - * @return The bytes for blockHash. - */ - public com.google.protobuf.ByteString - getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + memoizedIsInitialized = 1; + return true; + } - public static final int TXINDICES_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList txIndices_; - /** - * repeated int32 txIndices = 2; - * @return A list containing the txIndices. - */ - public java.util.List - getTxIndicesList() { - return txIndices_; - } - /** - * repeated int32 txIndices = 2; - * @return The count of txIndices. - */ - public int getTxIndicesCount() { - return txIndices_.size(); - } - /** - * repeated int32 txIndices = 2; - * @param index The index of the element to return. - * @return The txIndices at the given index. - */ - public int getTxIndices(int index) { - return txIndices_.getInt(index); - } - private int txIndicesMemoizedSerializedSize = -1; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getP2PTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, p2PType_); + } + unknownFields.writeTo(output); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - memoizedIsInitialized = 1; - return true; - } + size = 0; + if (!getP2PTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, p2PType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!getBlockHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, blockHash_); - } - if (getTxIndicesList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(txIndicesMemoizedSerializedSize); - } - for (int i = 0; i < txIndices_.size(); i++) { - output.writeInt32NoTag(txIndices_.getInt(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) obj; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getBlockHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, blockHash_); - } - { - int dataSize = 0; - for (int i = 0; i < txIndices_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(txIndices_.getInt(i)); - } - size += dataSize; - if (!getTxIndicesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - txIndicesMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + if (!getP2PType().equals(other.getP2PType())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) obj; - - if (!getBlockHash() - .equals(other.getBlockHash())) return false; - if (!getTxIndicesList() - .equals(other.getTxIndicesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + P2PTYPE_FIELD_NUMBER; + hash = (53 * hash) + getP2PType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - if (getTxIndicesCount() > 0) { - hash = (37 * hash) + TXINDICES_FIELD_NUMBER; - hash = (53 * hash) + getTxIndicesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 请求区块内交易数据
-     * 
- * - * Protobuf type {@code P2PBlockTxReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PBlockTxReq) - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blockHash_ = ""; - - txIndices_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq(this); - int from_bitField0_ = bitField0_; - result.blockHash_ = blockHash_; - if (((bitField0_ & 0x00000001) != 0)) { - txIndices_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txIndices_ = txIndices_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance()) return this; - if (!other.getBlockHash().isEmpty()) { - blockHash_ = other.blockHash_; - onChanged(); - } - if (!other.txIndices_.isEmpty()) { - if (txIndices_.isEmpty()) { - txIndices_ = other.txIndices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxIndicesIsMutable(); - txIndices_.addAll(other.txIndices_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object blockHash_ = ""; - /** - * string blockHash = 1; - * @return The blockHash. - */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string blockHash = 1; - * @return The bytes for blockHash. - */ - public com.google.protobuf.ByteString - getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string blockHash = 1; - * @param value The blockHash to set. - * @return This builder for chaining. - */ - public Builder setBlockHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * string blockHash = 1; - * @return This builder for chaining. - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - /** - * string blockHash = 1; - * @param value The bytes for blockHash to set. - * @return This builder for chaining. - */ - public Builder setBlockHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - blockHash_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList txIndices_ = emptyIntList(); - private void ensureTxIndicesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txIndices_ = mutableCopy(txIndices_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int32 txIndices = 2; - * @return A list containing the txIndices. - */ - public java.util.List - getTxIndicesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(txIndices_) : txIndices_; - } - /** - * repeated int32 txIndices = 2; - * @return The count of txIndices. - */ - public int getTxIndicesCount() { - return txIndices_.size(); - } - /** - * repeated int32 txIndices = 2; - * @param index The index of the element to return. - * @return The txIndices at the given index. - */ - public int getTxIndices(int index) { - return txIndices_.getInt(index); - } - /** - * repeated int32 txIndices = 2; - * @param index The index to set the value at. - * @param value The txIndices to set. - * @return This builder for chaining. - */ - public Builder setTxIndices( - int index, int value) { - ensureTxIndicesIsMutable(); - txIndices_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated int32 txIndices = 2; - * @param value The txIndices to add. - * @return This builder for chaining. - */ - public Builder addTxIndices(int value) { - ensureTxIndicesIsMutable(); - txIndices_.addInt(value); - onChanged(); - return this; - } - /** - * repeated int32 txIndices = 2; - * @param values The txIndices to add. - * @return This builder for chaining. - */ - public Builder addAllTxIndices( - java.lang.Iterable values) { - ensureTxIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txIndices_); - onChanged(); - return this; - } - /** - * repeated int32 txIndices = 2; - * @return This builder for chaining. - */ - public Builder clearTxIndices() { - txIndices_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PBlockTxReq) - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:P2PBlockTxReq) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PBlockTxReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PBlockTxReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public interface P2PBlockTxReplyOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PBlockTxReply) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * string blockHash = 1; - * @return The blockHash. - */ - java.lang.String getBlockHash(); - /** - * string blockHash = 1; - * @return The bytes for blockHash. - */ - com.google.protobuf.ByteString - getBlockHashBytes(); + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * repeated int32 txIndices = 2; - * @return A list containing the txIndices. - */ - java.util.List getTxIndicesList(); - /** - * repeated int32 txIndices = 2; - * @return The count of txIndices. - */ - int getTxIndicesCount(); - /** - * repeated int32 txIndices = 2; - * @param index The index of the element to return. - * @return The txIndices at the given index. - */ - int getTxIndices(int index); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * repeated .Transaction txs = 3; - */ - java.util.List - getTxsList(); - /** - * repeated .Transaction txs = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); - /** - * repeated .Transaction txs = 3; - */ - int getTxsCount(); - /** - * repeated .Transaction txs = 3; - */ - java.util.List - getTxsOrBuilderList(); - /** - * repeated .Transaction txs = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index); - } - /** - *
-   * 区块交易数据返回
-   * 
- * - * Protobuf type {@code P2PBlockTxReply} - */ - public static final class P2PBlockTxReply extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PBlockTxReply) - P2PBlockTxReplyOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PBlockTxReply.newBuilder() to construct. - private P2PBlockTxReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PBlockTxReply() { - blockHash_ = ""; - txIndices_ = emptyIntList(); - txs_ = java.util.Collections.emptyList(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PBlockTxReply(); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PBlockTxReply( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - blockHash_ = s; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txIndices_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - txIndices_.addInt(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - txIndices_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - txIndices_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txIndices_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_descriptor; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder.class); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private volatile java.lang.Object blockHash_; - /** - * string blockHash = 1; - * @return The blockHash. - */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } - } - /** - * string blockHash = 1; - * @return The bytes for blockHash. - */ - public com.google.protobuf.ByteString - getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + *
+         **
+         * p2p get peer req
+         * 
+ * + * Protobuf type {@code P2PGetPeerReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetPeerReq) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_descriptor; + } - public static final int TXINDICES_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList txIndices_; - /** - * repeated int32 txIndices = 2; - * @return A list containing the txIndices. - */ - public java.util.List - getTxIndicesList() { - return txIndices_; - } - /** - * repeated int32 txIndices = 2; - * @return The count of txIndices. - */ - public int getTxIndicesCount() { - return txIndices_.size(); - } - /** - * repeated int32 txIndices = 2; - * @param index The index of the element to return. - * @return The txIndices at the given index. - */ - public int getTxIndices(int index) { - return txIndices_.getInt(index); - } - private int txIndicesMemoizedSerializedSize = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.Builder.class); + } - public static final int TXS_FIELD_NUMBER = 3; - private java.util.List txs_; - /** - * repeated .Transaction txs = 3; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .Transaction txs = 3; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .Transaction txs = 3; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .Transaction txs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .Transaction txs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!getBlockHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, blockHash_); - } - if (getTxIndicesList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(txIndicesMemoizedSerializedSize); - } - for (int i = 0; i < txIndices_.size(); i++) { - output.writeInt32NoTag(txIndices_.getInt(i)); - } - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(3, txs_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clear() { + super.clear(); + p2PType_ = ""; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getBlockHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, blockHash_); - } - { - int dataSize = 0; - for (int i = 0; i < txIndices_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(txIndices_.getInt(i)); - } - size += dataSize; - if (!getTxIndicesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - txIndicesMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, txs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) obj; - - if (!getBlockHash() - .equals(other.getBlockHash())) return false; - if (!getTxIndicesList() - .equals(other.getTxIndicesList())) return false; - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - if (getTxIndicesCount() > 0) { - hash = (37 * hash) + TXINDICES_FIELD_NUMBER; - hash = (53 * hash) + getTxIndicesList().hashCode(); - } - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.getDefaultInstance(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq( + this); + result.p2PType_ = p2PType_; + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 区块交易数据返回
-     * 
- * - * Protobuf type {@code P2PBlockTxReply} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PBlockTxReply) - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blockHash_ = ""; - - txIndices_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PBlockTxReply_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply(this); - int from_bitField0_ = bitField0_; - result.blockHash_ = blockHash_; - if (((bitField0_ & 0x00000001) != 0)) { - txIndices_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txIndices_ = txIndices_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance()) return this; - if (!other.getBlockHash().isEmpty()) { - blockHash_ = other.blockHash_; - onChanged(); - } - if (!other.txIndices_.isEmpty()) { - if (txIndices_.isEmpty()) { - txIndices_ = other.txIndices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxIndicesIsMutable(); - txIndices_.addAll(other.txIndices_); - } - onChanged(); - } - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000002); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object blockHash_ = ""; - /** - * string blockHash = 1; - * @return The blockHash. - */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string blockHash = 1; - * @return The bytes for blockHash. - */ - public com.google.protobuf.ByteString - getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string blockHash = 1; - * @param value The blockHash to set. - * @return This builder for chaining. - */ - public Builder setBlockHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * string blockHash = 1; - * @return This builder for chaining. - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - /** - * string blockHash = 1; - * @param value The bytes for blockHash to set. - * @return This builder for chaining. - */ - public Builder setBlockHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - blockHash_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList txIndices_ = emptyIntList(); - private void ensureTxIndicesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txIndices_ = mutableCopy(txIndices_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int32 txIndices = 2; - * @return A list containing the txIndices. - */ - public java.util.List - getTxIndicesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(txIndices_) : txIndices_; - } - /** - * repeated int32 txIndices = 2; - * @return The count of txIndices. - */ - public int getTxIndicesCount() { - return txIndices_.size(); - } - /** - * repeated int32 txIndices = 2; - * @param index The index of the element to return. - * @return The txIndices at the given index. - */ - public int getTxIndices(int index) { - return txIndices_.getInt(index); - } - /** - * repeated int32 txIndices = 2; - * @param index The index to set the value at. - * @param value The txIndices to set. - * @return This builder for chaining. - */ - public Builder setTxIndices( - int index, int value) { - ensureTxIndicesIsMutable(); - txIndices_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated int32 txIndices = 2; - * @param value The txIndices to add. - * @return This builder for chaining. - */ - public Builder addTxIndices(int value) { - ensureTxIndicesIsMutable(); - txIndices_.addInt(value); - onChanged(); - return this; - } - /** - * repeated int32 txIndices = 2; - * @param values The txIndices to add. - * @return This builder for chaining. - */ - public Builder addAllTxIndices( - java.lang.Iterable values) { - ensureTxIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txIndices_); - onChanged(); - return this; - } - /** - * repeated int32 txIndices = 2; - * @return This builder for chaining. - */ - public Builder clearTxIndices() { - txIndices_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txsBuilder_; - - /** - * repeated .Transaction txs = 3; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .Transaction txs = 3; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .Transaction txs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .Transaction txs = 3; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Transaction txs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .Transaction txs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Transaction txs = 3; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .Transaction txs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 3; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - txs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PBlockTxReply) - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - // @@protoc_insertion_point(class_scope:P2PBlockTxReply) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PBlockTxReply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PBlockTxReply(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface P2PQueryDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PQueryData) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.getDefaultInstance()) + return this; + if (!other.getP2PType().isEmpty()) { + p2PType_ = other.p2PType_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * .P2PTxReq txReq = 1; - * @return Whether the txReq field is set. - */ - boolean hasTxReq(); - /** - * .P2PTxReq txReq = 1; - * @return The txReq. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getTxReq(); - /** - * .P2PTxReq txReq = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder getTxReqOrBuilder(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * .P2PBlockTxReq blockTxReq = 2; - * @return Whether the blockTxReq field is set. - */ - boolean hasBlockTxReq(); - /** - * .P2PBlockTxReq blockTxReq = 2; - * @return The blockTxReq. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getBlockTxReq(); - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder getBlockTxReqOrBuilder(); - - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.ValueCase getValueCase(); - } - /** - *
-   * 节点收到区块或交易hash,
-   * 当在本地不存在时,需要请求重发完整交易或区块
-   * 采用统一结构减少消息类型
-   * 
- * - * Protobuf type {@code P2PQueryData} - */ - public static final class P2PQueryData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PQueryData) - P2PQueryDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PQueryData.newBuilder() to construct. - private P2PQueryData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PQueryData() { - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PQueryData(); - } + private java.lang.Object p2PType_ = ""; + + /** + * string p2pType = 1; + * + * @return The p2pType. + */ + public java.lang.String getP2PType() { + java.lang.Object ref = p2PType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + p2PType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PQueryData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_descriptor; - } + /** + * string p2pType = 1; + * + * @return The bytes for p2pType. + */ + public com.google.protobuf.ByteString getP2PTypeBytes() { + java.lang.Object ref = p2PType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + p2PType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder.class); - } + /** + * string p2pType = 1; + * + * @param value + * The p2pType to set. + * + * @return This builder for chaining. + */ + public Builder setP2PType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + p2PType_ = value; + onChanged(); + return this; + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TXREQ(1), - BLOCKTXREQ(2), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return TXREQ; - case 2: return BLOCKTXREQ; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + /** + * string p2pType = 1; + * + * @return This builder for chaining. + */ + public Builder clearP2PType() { - public static final int TXREQ_FIELD_NUMBER = 1; - /** - * .P2PTxReq txReq = 1; - * @return Whether the txReq field is set. - */ - public boolean hasTxReq() { - return valueCase_ == 1; - } - /** - * .P2PTxReq txReq = 1; - * @return The txReq. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getTxReq() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); - } - /** - * .P2PTxReq txReq = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder getTxReqOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); - } + p2PType_ = getDefaultInstance().getP2PType(); + onChanged(); + return this; + } - public static final int BLOCKTXREQ_FIELD_NUMBER = 2; - /** - * .P2PBlockTxReq blockTxReq = 2; - * @return Whether the blockTxReq field is set. - */ - public boolean hasBlockTxReq() { - return valueCase_ == 2; - } - /** - * .P2PBlockTxReq blockTxReq = 2; - * @return The blockTxReq. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getBlockTxReq() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder getBlockTxReqOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); - } + /** + * string p2pType = 1; + * + * @param value + * The bytes for p2pType to set. + * + * @return This builder for chaining. + */ + public Builder setP2PTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + p2PType_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_); - } - unknownFields.writeTo(output); - } + // @@protoc_insertion_point(builder_scope:P2PGetPeerReq) + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // @@protoc_insertion_point(class_scope:P2PGetPeerReq) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getTxReq() - .equals(other.getTxReq())) return false; - break; - case 2: - if (!getBlockTxReq() - .equals(other.getBlockTxReq())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + TXREQ_FIELD_NUMBER; - hash = (53 * hash) + getTxReq().hashCode(); - break; - case 2: - hash = (37 * hash) + BLOCKTXREQ_FIELD_NUMBER; - hash = (53 * hash) + getBlockTxReq().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetPeerReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetPeerReq(input, extensionRegistry); + } + }; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface P2PGetNetInfoReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:P2PGetNetInfoReq) + com.google.protobuf.MessageOrBuilder { + + /** + * string p2pType = 1; + * + * @return The p2pType. + */ + java.lang.String getP2PType(); + + /** + * string p2pType = 1; + * + * @return The bytes for p2pType. + */ + com.google.protobuf.ByteString getP2PTypeBytes(); } + /** *
-     * 节点收到区块或交易hash,
-     * 当在本地不存在时,需要请求重发完整交易或区块
-     * 采用统一结构减少消息类型
+     **
+     * p2p get net info req
      * 
* - * Protobuf type {@code P2PQueryData} + * Protobuf type {@code P2PGetNetInfoReq} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PQueryData) - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PQueryData_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData(this); - if (valueCase_ == 1) { - if (txReqBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = txReqBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (blockTxReqBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blockTxReqBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case TXREQ: { - mergeTxReq(other.getTxReq()); - break; - } - case BLOCKTXREQ: { - mergeBlockTxReq(other.getBlockTxReq()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder> txReqBuilder_; - /** - * .P2PTxReq txReq = 1; - * @return Whether the txReq field is set. - */ - public boolean hasTxReq() { - return valueCase_ == 1; - } - /** - * .P2PTxReq txReq = 1; - * @return The txReq. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq getTxReq() { - if (txReqBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return txReqBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); - } - } - /** - * .P2PTxReq txReq = 1; - */ - public Builder setTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq value) { - if (txReqBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - txReqBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .P2PTxReq txReq = 1; - */ - public Builder setTxReq( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder builderForValue) { - if (txReqBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - txReqBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .P2PTxReq txReq = 1; - */ - public Builder mergeTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq value) { - if (txReqBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - txReqBuilder_.mergeFrom(value); - } - txReqBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .P2PTxReq txReq = 1; - */ - public Builder clearTxReq() { - if (txReqBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - txReqBuilder_.clear(); - } - return this; - } - /** - * .P2PTxReq txReq = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder getTxReqBuilder() { - return getTxReqFieldBuilder().getBuilder(); - } - /** - * .P2PTxReq txReq = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder getTxReqOrBuilder() { - if ((valueCase_ == 1) && (txReqBuilder_ != null)) { - return txReqBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); - } - } - /** - * .P2PTxReq txReq = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder> - getTxReqFieldBuilder() { - if (txReqBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.getDefaultInstance(); - } - txReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReqOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.P2PTxReq) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return txReqBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder> blockTxReqBuilder_; - /** - * .P2PBlockTxReq blockTxReq = 2; - * @return Whether the blockTxReq field is set. - */ - public boolean hasBlockTxReq() { - return valueCase_ == 2; - } - /** - * .P2PBlockTxReq blockTxReq = 2; - * @return The blockTxReq. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq getBlockTxReq() { - if (blockTxReqBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return blockTxReqBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); - } - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - public Builder setBlockTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq value) { - if (blockTxReqBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - blockTxReqBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - public Builder setBlockTxReq( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder builderForValue) { - if (blockTxReqBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - blockTxReqBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - public Builder mergeBlockTxReq(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq value) { - if (blockTxReqBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - blockTxReqBuilder_.mergeFrom(value); - } - blockTxReqBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - public Builder clearBlockTxReq() { - if (blockTxReqBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - blockTxReqBuilder_.clear(); - } - return this; - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder getBlockTxReqBuilder() { - return getBlockTxReqFieldBuilder().getBuilder(); - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder getBlockTxReqOrBuilder() { - if ((valueCase_ == 2) && (blockTxReqBuilder_ != null)) { - return blockTxReqBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); - } - } - /** - * .P2PBlockTxReq blockTxReq = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder> - getBlockTxReqFieldBuilder() { - if (blockTxReqBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.getDefaultInstance(); - } - blockTxReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReqOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReq) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return blockTxReqBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PQueryData) - } + public static final class P2PGetNetInfoReq extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:P2PGetNetInfoReq) + P2PGetNetInfoReqOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:P2PQueryData) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData(); - } + // Use P2PGetNetInfoReq.newBuilder() to construct. + private P2PGetNetInfoReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private P2PGetNetInfoReq() { + p2PType_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PQueryData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PQueryData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new P2PGetNetInfoReq(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private P2PGetNetInfoReq(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + p2PType_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_descriptor; + } - public interface VersionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Versions) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.Builder.class); + } - /** - * int32 p2pversion = 1; - * @return The p2pversion. - */ - int getP2Pversion(); + public static final int P2PTYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object p2PType_; - /** - * string softversion = 2; - * @return The softversion. - */ - java.lang.String getSoftversion(); - /** - * string softversion = 2; - * @return The bytes for softversion. - */ - com.google.protobuf.ByteString - getSoftversionBytes(); + /** + * string p2pType = 1; + * + * @return The p2pType. + */ + @java.lang.Override + public java.lang.String getP2PType() { + java.lang.Object ref = p2PType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + p2PType_ = s; + return s; + } + } - /** - * string peername = 3; - * @return The peername. - */ - java.lang.String getPeername(); - /** - * string peername = 3; - * @return The bytes for peername. - */ - com.google.protobuf.ByteString - getPeernameBytes(); - } - /** - *
-   **
-   * p2p 协议和软件版本
-   * 
- * - * Protobuf type {@code Versions} - */ - public static final class Versions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Versions) - VersionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Versions.newBuilder() to construct. - private Versions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Versions() { - softversion_ = ""; - peername_ = ""; - } + /** + * string p2pType = 1; + * + * @return The bytes for p2pType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getP2PTypeBytes() { + java.lang.Object ref = p2PType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + p2PType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Versions(); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Versions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - p2Pversion_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - softversion_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - peername_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.Versions.class, cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder.class); - } + memoizedIsInitialized = 1; + return true; + } - public static final int P2PVERSION_FIELD_NUMBER = 1; - private int p2Pversion_; - /** - * int32 p2pversion = 1; - * @return The p2pversion. - */ - public int getP2Pversion() { - return p2Pversion_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getP2PTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, p2PType_); + } + unknownFields.writeTo(output); + } - public static final int SOFTVERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object softversion_; - /** - * string softversion = 2; - * @return The softversion. - */ - public java.lang.String getSoftversion() { - java.lang.Object ref = softversion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - softversion_ = s; - return s; - } - } - /** - * string softversion = 2; - * @return The bytes for softversion. - */ - public com.google.protobuf.ByteString - getSoftversionBytes() { - java.lang.Object ref = softversion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - softversion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int PEERNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object peername_; - /** - * string peername = 3; - * @return The peername. - */ - public java.lang.String getPeername() { - java.lang.Object ref = peername_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peername_ = s; - return s; - } - } - /** - * string peername = 3; - * @return The bytes for peername. - */ - public com.google.protobuf.ByteString - getPeernameBytes() { - java.lang.Object ref = peername_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - peername_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + size = 0; + if (!getP2PTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, p2PType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) obj; - memoizedIsInitialized = 1; - return true; - } + if (!getP2PType().equals(other.getP2PType())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (p2Pversion_ != 0) { - output.writeInt32(1, p2Pversion_); - } - if (!getSoftversionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, softversion_); - } - if (!getPeernameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peername_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + P2PTYPE_FIELD_NUMBER; + hash = (53 * hash) + getP2PType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (p2Pversion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, p2Pversion_); - } - if (!getSoftversionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, softversion_); - } - if (!getPeernameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, peername_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.Versions)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.Versions other = (cn.chain33.javasdk.model.protobuf.P2pService.Versions) obj; - - if (getP2Pversion() - != other.getP2Pversion()) return false; - if (!getSoftversion() - .equals(other.getSoftversion())) return false; - if (!getPeername() - .equals(other.getPeername())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + P2PVERSION_FIELD_NUMBER; - hash = (53 * hash) + getP2Pversion(); - hash = (37 * hash) + SOFTVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSoftversion().hashCode(); - hash = (37 * hash) + PEERNAME_FIELD_NUMBER; - hash = (53 * hash) + getPeername().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Versions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p 协议和软件版本
-     * 
- * - * Protobuf type {@code Versions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Versions) - cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.Versions.class, cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.Versions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - p2Pversion_ = 0; - - softversion_ = ""; - - peername_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Versions_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Versions getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Versions build() { - cn.chain33.javasdk.model.protobuf.P2pService.Versions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Versions buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.Versions result = new cn.chain33.javasdk.model.protobuf.P2pService.Versions(this); - result.p2Pversion_ = p2Pversion_; - result.softversion_ = softversion_; - result.peername_ = peername_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.Versions) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Versions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.Versions other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance()) return this; - if (other.getP2Pversion() != 0) { - setP2Pversion(other.getP2Pversion()); - } - if (!other.getSoftversion().isEmpty()) { - softversion_ = other.softversion_; - onChanged(); - } - if (!other.getPeername().isEmpty()) { - peername_ = other.peername_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.Versions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.Versions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int p2Pversion_ ; - /** - * int32 p2pversion = 1; - * @return The p2pversion. - */ - public int getP2Pversion() { - return p2Pversion_; - } - /** - * int32 p2pversion = 1; - * @param value The p2pversion to set. - * @return This builder for chaining. - */ - public Builder setP2Pversion(int value) { - - p2Pversion_ = value; - onChanged(); - return this; - } - /** - * int32 p2pversion = 1; - * @return This builder for chaining. - */ - public Builder clearP2Pversion() { - - p2Pversion_ = 0; - onChanged(); - return this; - } - - private java.lang.Object softversion_ = ""; - /** - * string softversion = 2; - * @return The softversion. - */ - public java.lang.String getSoftversion() { - java.lang.Object ref = softversion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - softversion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string softversion = 2; - * @return The bytes for softversion. - */ - public com.google.protobuf.ByteString - getSoftversionBytes() { - java.lang.Object ref = softversion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - softversion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string softversion = 2; - * @param value The softversion to set. - * @return This builder for chaining. - */ - public Builder setSoftversion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - softversion_ = value; - onChanged(); - return this; - } - /** - * string softversion = 2; - * @return This builder for chaining. - */ - public Builder clearSoftversion() { - - softversion_ = getDefaultInstance().getSoftversion(); - onChanged(); - return this; - } - /** - * string softversion = 2; - * @param value The bytes for softversion to set. - * @return This builder for chaining. - */ - public Builder setSoftversionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - softversion_ = value; - onChanged(); - return this; - } - - private java.lang.Object peername_ = ""; - /** - * string peername = 3; - * @return The peername. - */ - public java.lang.String getPeername() { - java.lang.Object ref = peername_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peername_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string peername = 3; - * @return The bytes for peername. - */ - public com.google.protobuf.ByteString - getPeernameBytes() { - java.lang.Object ref = peername_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - peername_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string peername = 3; - * @param value The peername to set. - * @return This builder for chaining. - */ - public Builder setPeername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - peername_ = value; - onChanged(); - return this; - } - /** - * string peername = 3; - * @return This builder for chaining. - */ - public Builder clearPeername() { - - peername_ = getDefaultInstance().getPeername(); - onChanged(); - return this; - } - /** - * string peername = 3; - * @param value The bytes for peername to set. - * @return This builder for chaining. - */ - public Builder setPeernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - peername_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Versions) - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:Versions) - private static final cn.chain33.javasdk.model.protobuf.P2pService.Versions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.Versions(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.Versions getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Versions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Versions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Versions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface BroadCastDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:BroadCastData) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * .P2PTx tx = 1; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - * .P2PTx tx = 1; - * @return The tx. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getTx(); - /** - * .P2PTx tx = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder getTxOrBuilder(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * .P2PBlock block = 2; - * @return Whether the block field is set. - */ - boolean hasBlock(); - /** - * .P2PBlock block = 2; - * @return The block. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getBlock(); - /** - * .P2PBlock block = 2; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder getBlockOrBuilder(); + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * .P2PPing ping = 3; - * @return Whether the ping field is set. - */ - boolean hasPing(); - /** - * .P2PPing ping = 3; - * @return The ping. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getPing(); - /** - * .P2PPing ping = 3; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder getPingOrBuilder(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * .Versions version = 4; - * @return Whether the version field is set. - */ - boolean hasVersion(); - /** - * .Versions version = 4; - * @return The version. - */ - cn.chain33.javasdk.model.protobuf.P2pService.Versions getVersion(); - /** - * .Versions version = 4; - */ - cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder getVersionOrBuilder(); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * .LightTx ltTx = 5; - * @return Whether the ltTx field is set. - */ - boolean hasLtTx(); - /** - * .LightTx ltTx = 5; - * @return The ltTx. - */ - cn.chain33.javasdk.model.protobuf.P2pService.LightTx getLtTx(); - /** - * .LightTx ltTx = 5; - */ - cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder getLtTxOrBuilder(); + /** + *
+         **
+         * p2p get net info req
+         * 
+ * + * Protobuf type {@code P2PGetNetInfoReq} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:P2PGetNetInfoReq) + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReqOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_descriptor; + } - /** - * .LightBlock ltBlock = 6; - * @return Whether the ltBlock field is set. - */ - boolean hasLtBlock(); - /** - * .LightBlock ltBlock = 6; - * @return The ltBlock. - */ - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getLtBlock(); - /** - * .LightBlock ltBlock = 6; - */ - cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder getLtBlockOrBuilder(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.class, + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.Builder.class); + } - /** - * .P2PQueryData query = 7; - * @return Whether the query field is set. - */ - boolean hasQuery(); - /** - * .P2PQueryData query = 7; - * @return The query. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getQuery(); - /** - * .P2PQueryData query = 7; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder getQueryOrBuilder(); + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * .P2PBlockTxReply blockRep = 8; - * @return Whether the blockRep field is set. - */ - boolean hasBlockRep(); - /** - * .P2PBlockTxReply blockRep = 8; - * @return The blockRep. - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getBlockRep(); - /** - * .P2PBlockTxReply blockRep = 8; - */ - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder getBlockRepOrBuilder(); - - public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.ValueCase getValueCase(); - } - /** - *
-   **
-   * p2p 广播数据协议
-   * 
- * - * Protobuf type {@code BroadCastData} - */ - public static final class BroadCastData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BroadCastData) - BroadCastDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BroadCastData.newBuilder() to construct. - private BroadCastData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BroadCastData() { - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BroadCastData(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BroadCastData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Versions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.LightTx.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 58: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder subBuilder = null; - if (valueCase_ == 7) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 7; - break; - } - case 66: { - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder subBuilder = null; - if (valueCase_ == 8) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 8; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_descriptor; - } + @java.lang.Override + public Builder clear() { + super.clear(); + p2PType_ = ""; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.Builder.class); - } + return this; + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TX(1), - BLOCK(2), - PING(3), - VERSION(4), - LTTX(5), - LTBLOCK(6), - QUERY(7), - BLOCKREP(8), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return TX; - case 2: return BLOCK; - case 3: return PING; - case 4: return VERSION; - case 5: return LTTX; - case 6: return LTBLOCK; - case 7: return QUERY; - case 8: return BLOCKREP; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_descriptor; + } - public static final int TX_FIELD_NUMBER = 1; - /** - * .P2PTx tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return valueCase_ == 1; - } - /** - * .P2PTx tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getTx() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); - } - /** - * .P2PTx tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder getTxOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.getDefaultInstance(); + } - public static final int BLOCK_FIELD_NUMBER = 2; - /** - * .P2PBlock block = 2; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return valueCase_ == 2; - } - /** - * .P2PBlock block = 2; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getBlock() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); - } - /** - * .P2PBlock block = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder getBlockOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq build() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int PING_FIELD_NUMBER = 3; - /** - * .P2PPing ping = 3; - * @return Whether the ping field is set. - */ - public boolean hasPing() { - return valueCase_ == 3; - } - /** - * .P2PPing ping = 3; - * @return The ping. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getPing() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); - } - /** - * .P2PPing ping = 3; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder getPingOrBuilder() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq( + this); + result.p2PType_ = p2PType_; + onBuilt(); + return result; + } - public static final int VERSION_FIELD_NUMBER = 4; - /** - * .Versions version = 4; - * @return Whether the version field is set. - */ - public boolean hasVersion() { - return valueCase_ == 4; - } - /** - * .Versions version = 4; - * @return The version. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Versions getVersion() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); - } - /** - * .Versions version = 4; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder getVersionOrBuilder() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int LTTX_FIELD_NUMBER = 5; - /** - * .LightTx ltTx = 5; - * @return Whether the ltTx field is set. - */ - public boolean hasLtTx() { - return valueCase_ == 5; - } - /** - * .LightTx ltTx = 5; - * @return The ltTx. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getLtTx() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); - } - /** - * .LightTx ltTx = 5; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder getLtTxOrBuilder() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.getDefaultInstance()) + return this; + if (!other.getP2PType().isEmpty()) { + p2PType_ = other.p2PType_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int LTBLOCK_FIELD_NUMBER = 6; - /** - * .LightBlock ltBlock = 6; - * @return Whether the ltBlock field is set. - */ - public boolean hasLtBlock() { - return valueCase_ == 6; - } - /** - * .LightBlock ltBlock = 6; - * @return The ltBlock. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getLtBlock() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); - } - /** - * .LightBlock ltBlock = 6; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder getLtBlockOrBuilder() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int QUERY_FIELD_NUMBER = 7; - /** - * .P2PQueryData query = 7; - * @return Whether the query field is set. - */ - public boolean hasQuery() { - return valueCase_ == 7; - } - /** - * .P2PQueryData query = 7; - * @return The query. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getQuery() { - if (valueCase_ == 7) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); - } - /** - * .P2PQueryData query = 7; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder getQueryOrBuilder() { - if (valueCase_ == 7) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int BLOCKREP_FIELD_NUMBER = 8; - /** - * .P2PBlockTxReply blockRep = 8; - * @return Whether the blockRep field is set. - */ - public boolean hasBlockRep() { - return valueCase_ == 8; - } - /** - * .P2PBlockTxReply blockRep = 8; - * @return The blockRep. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getBlockRep() { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder getBlockRepOrBuilder() { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); - } + private java.lang.Object p2PType_ = ""; + + /** + * string p2pType = 1; + * + * @return The p2pType. + */ + public java.lang.String getP2PType() { + java.lang.Object ref = p2PType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + p2PType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string p2pType = 1; + * + * @return The bytes for p2pType. + */ + public com.google.protobuf.ByteString getP2PTypeBytes() { + java.lang.Object ref = p2PType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + p2PType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string p2pType = 1; + * + * @param value + * The p2pType to set. + * + * @return This builder for chaining. + */ + public Builder setP2PType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + p2PType_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string p2pType = 1; + * + * @return This builder for chaining. + */ + public Builder clearP2PType() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_); - } - if (valueCase_ == 7) { - output.writeMessage(7, (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_); - } - if (valueCase_ == 8) { - output.writeMessage(8, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_); - } - unknownFields.writeTo(output); - } + p2PType_ = getDefaultInstance().getP2PType(); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_); - } - if (valueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_); - } - if (valueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string p2pType = 1; + * + * @param value + * The bytes for p2pType to set. + * + * @return This builder for chaining. + */ + public Builder setP2PTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + p2PType_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData other = (cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getTx() - .equals(other.getTx())) return false; - break; - case 2: - if (!getBlock() - .equals(other.getBlock())) return false; - break; - case 3: - if (!getPing() - .equals(other.getPing())) return false; - break; - case 4: - if (!getVersion() - .equals(other.getVersion())) return false; - break; - case 5: - if (!getLtTx() - .equals(other.getLtTx())) return false; - break; - case 6: - if (!getLtBlock() - .equals(other.getLtBlock())) return false; - break; - case 7: - if (!getQuery() - .equals(other.getQuery())) return false; - break; - case 8: - if (!getBlockRep() - .equals(other.getBlockRep())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - break; - case 2: - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - break; - case 3: - hash = (37 * hash) + PING_FIELD_NUMBER; - hash = (53 * hash) + getPing().hashCode(); - break; - case 4: - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - break; - case 5: - hash = (37 * hash) + LTTX_FIELD_NUMBER; - hash = (53 * hash) + getLtTx().hashCode(); - break; - case 6: - hash = (37 * hash) + LTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + getLtBlock().hashCode(); - break; - case 7: - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - break; - case 8: - hash = (37 * hash) + BLOCKREP_FIELD_NUMBER; - hash = (53 * hash) + getBlockRep().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(builder_scope:P2PGetNetInfoReq) + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(class_scope:P2PGetNetInfoReq) + private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public P2PGetNetInfoReq parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new P2PGetNetInfoReq(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeNetInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:NodeNetInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string externaladdr = 1; + * + * @return The externaladdr. + */ + java.lang.String getExternaladdr(); + + /** + * string externaladdr = 1; + * + * @return The bytes for externaladdr. + */ + com.google.protobuf.ByteString getExternaladdrBytes(); + + /** + * string localaddr = 2; + * + * @return The localaddr. + */ + java.lang.String getLocaladdr(); + + /** + * string localaddr = 2; + * + * @return The bytes for localaddr. + */ + com.google.protobuf.ByteString getLocaladdrBytes(); + + /** + * bool service = 3; + * + * @return The service. + */ + boolean getService(); + + /** + * int32 outbounds = 4; + * + * @return The outbounds. + */ + int getOutbounds(); + + /** + * int32 inbounds = 5; + * + * @return The inbounds. + */ + int getInbounds(); + + /** + * int32 routingtable = 6; + * + * @return The routingtable. + */ + int getRoutingtable(); + + /** + * int32 peerstore = 7; + * + * @return The peerstore. + */ + int getPeerstore(); + + /** + * string ratein = 8; + * + * @return The ratein. + */ + java.lang.String getRatein(); + + /** + * string ratein = 8; + * + * @return The bytes for ratein. + */ + com.google.protobuf.ByteString getRateinBytes(); + + /** + * string rateout = 9; + * + * @return The rateout. + */ + java.lang.String getRateout(); + + /** + * string rateout = 9; + * + * @return The bytes for rateout. + */ + com.google.protobuf.ByteString getRateoutBytes(); + + /** + * string ratetotal = 10; + * + * @return The ratetotal. + */ + java.lang.String getRatetotal(); + + /** + * string ratetotal = 10; + * + * @return The bytes for ratetotal. + */ + com.google.protobuf.ByteString getRatetotalBytes(); } + /** *
      **
-     * p2p 广播数据协议
+     *当前节点的网络信息
      * 
* - * Protobuf type {@code BroadCastData} + * Protobuf type {@code NodeNetInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BroadCastData) - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_BroadCastData_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData build() { - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData result = new cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData(this); - if (valueCase_ == 1) { - if (txBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = txBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (blockBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blockBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (pingBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = pingBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (versionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = versionBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (ltTxBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = ltTxBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (ltBlockBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = ltBlockBuilder_.build(); - } - } - if (valueCase_ == 7) { - if (queryBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = queryBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (blockRepBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blockRepBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case TX: { - mergeTx(other.getTx()); - break; - } - case BLOCK: { - mergeBlock(other.getBlock()); - break; - } - case PING: { - mergePing(other.getPing()); - break; - } - case VERSION: { - mergeVersion(other.getVersion()); - break; - } - case LTTX: { - mergeLtTx(other.getLtTx()); - break; - } - case LTBLOCK: { - mergeLtBlock(other.getLtBlock()); - break; - } - case QUERY: { - mergeQuery(other.getQuery()); - break; - } - case BLOCKREP: { - mergeBlockRep(other.getBlockRep()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx, cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder> txBuilder_; - /** - * .P2PTx tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return valueCase_ == 1; - } - /** - * .P2PTx tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx getTx() { - if (txBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return txBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); - } - } - /** - * .P2PTx tx = 1; - */ - public Builder setTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .P2PTx tx = 1; - */ - public Builder setTx( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder builderForValue) { - if (txBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .P2PTx tx = 1; - */ - public Builder mergeTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx value) { - if (txBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - txBuilder_.mergeFrom(value); - } - txBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .P2PTx tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - txBuilder_.clear(); - } - return this; - } - /** - * .P2PTx tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder getTxBuilder() { - return getTxFieldBuilder().getBuilder(); - } - /** - * .P2PTx tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder getTxOrBuilder() { - if ((valueCase_ == 1) && (txBuilder_ != null)) { - return txBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); - } - } - /** - * .P2PTx tx = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx, cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance(); - } - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx, cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PTxOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return txBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder> blockBuilder_; - /** - * .P2PBlock block = 2; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return valueCase_ == 2; - } - /** - * .P2PBlock block = 2; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock getBlock() { - if (blockBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return blockBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); - } - } - /** - * .P2PBlock block = 2; - */ - public Builder setBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .P2PBlock block = 2; - */ - public Builder setBlock( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder builderForValue) { - if (blockBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .P2PBlock block = 2; - */ - public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock value) { - if (blockBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - blockBuilder_.mergeFrom(value); - } - blockBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .P2PBlock block = 2; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - blockBuilder_.clear(); - } - return this; - } - /** - * .P2PBlock block = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder getBlockBuilder() { - return getBlockFieldBuilder().getBuilder(); - } - /** - * .P2PBlock block = 2; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder getBlockOrBuilder() { - if ((valueCase_ == 2) && (blockBuilder_ != null)) { - return blockBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); - } - } - /** - * .P2PBlock block = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance(); - } - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return blockBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder> pingBuilder_; - /** - * .P2PPing ping = 3; - * @return Whether the ping field is set. - */ - public boolean hasPing() { - return valueCase_ == 3; - } - /** - * .P2PPing ping = 3; - * @return The ping. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing getPing() { - if (pingBuilder_ == null) { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return pingBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); - } - } - /** - * .P2PPing ping = 3; - */ - public Builder setPing(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing value) { - if (pingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - pingBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .P2PPing ping = 3; - */ - public Builder setPing( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder builderForValue) { - if (pingBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - pingBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .P2PPing ping = 3; - */ - public Builder mergePing(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing value) { - if (pingBuilder_ == null) { - if (valueCase_ == 3 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - pingBuilder_.mergeFrom(value); - } - pingBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .P2PPing ping = 3; - */ - public Builder clearPing() { - if (pingBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - pingBuilder_.clear(); - } - return this; - } - /** - * .P2PPing ping = 3; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder getPingBuilder() { - return getPingFieldBuilder().getBuilder(); - } - /** - * .P2PPing ping = 3; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder getPingOrBuilder() { - if ((valueCase_ == 3) && (pingBuilder_ != null)) { - return pingBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); - } - } - /** - * .P2PPing ping = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder> - getPingFieldBuilder() { - if (pingBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance(); - } - pingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PPingOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return pingBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Versions, cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder, cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder> versionBuilder_; - /** - * .Versions version = 4; - * @return Whether the version field is set. - */ - public boolean hasVersion() { - return valueCase_ == 4; - } - /** - * .Versions version = 4; - * @return The version. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Versions getVersion() { - if (versionBuilder_ == null) { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return versionBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); - } - } - /** - * .Versions version = 4; - */ - public Builder setVersion(cn.chain33.javasdk.model.protobuf.P2pService.Versions value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .Versions version = 4; - */ - public Builder setVersion( - cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder builderForValue) { - if (versionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .Versions version = 4; - */ - public Builder mergeVersion(cn.chain33.javasdk.model.protobuf.P2pService.Versions value) { - if (versionBuilder_ == null) { - if (valueCase_ == 4 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.Versions.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - versionBuilder_.mergeFrom(value); - } - versionBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .Versions version = 4; - */ - public Builder clearVersion() { - if (versionBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - versionBuilder_.clear(); - } - return this; - } - /** - * .Versions version = 4; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder getVersionBuilder() { - return getVersionFieldBuilder().getBuilder(); - } - /** - * .Versions version = 4; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder getVersionOrBuilder() { - if ((valueCase_ == 4) && (versionBuilder_ != null)) { - return versionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); - } - } - /** - * .Versions version = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Versions, cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder, cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.Versions.getDefaultInstance(); - } - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Versions, cn.chain33.javasdk.model.protobuf.P2pService.Versions.Builder, cn.chain33.javasdk.model.protobuf.P2pService.VersionsOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.Versions) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return versionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.LightTx, cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder, cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder> ltTxBuilder_; - /** - * .LightTx ltTx = 5; - * @return Whether the ltTx field is set. - */ - public boolean hasLtTx() { - return valueCase_ == 5; - } - /** - * .LightTx ltTx = 5; - * @return The ltTx. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightTx getLtTx() { - if (ltTxBuilder_ == null) { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return ltTxBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); - } - } - /** - * .LightTx ltTx = 5; - */ - public Builder setLtTx(cn.chain33.javasdk.model.protobuf.P2pService.LightTx value) { - if (ltTxBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - ltTxBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .LightTx ltTx = 5; - */ - public Builder setLtTx( - cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder builderForValue) { - if (ltTxBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - ltTxBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .LightTx ltTx = 5; - */ - public Builder mergeLtTx(cn.chain33.javasdk.model.protobuf.P2pService.LightTx value) { - if (ltTxBuilder_ == null) { - if (valueCase_ == 5 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightTx.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - ltTxBuilder_.mergeFrom(value); - } - ltTxBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .LightTx ltTx = 5; - */ - public Builder clearLtTx() { - if (ltTxBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - ltTxBuilder_.clear(); - } - return this; - } - /** - * .LightTx ltTx = 5; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder getLtTxBuilder() { - return getLtTxFieldBuilder().getBuilder(); - } - /** - * .LightTx ltTx = 5; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder getLtTxOrBuilder() { - if ((valueCase_ == 5) && (ltTxBuilder_ != null)) { - return ltTxBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); - } - } - /** - * .LightTx ltTx = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.LightTx, cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder, cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder> - getLtTxFieldBuilder() { - if (ltTxBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightTx.getDefaultInstance(); - } - ltTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.LightTx, cn.chain33.javasdk.model.protobuf.P2pService.LightTx.Builder, cn.chain33.javasdk.model.protobuf.P2pService.LightTxOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.LightTx) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return ltTxBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock, cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder, cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder> ltBlockBuilder_; - /** - * .LightBlock ltBlock = 6; - * @return Whether the ltBlock field is set. - */ - public boolean hasLtBlock() { - return valueCase_ == 6; - } - /** - * .LightBlock ltBlock = 6; - * @return The ltBlock. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock getLtBlock() { - if (ltBlockBuilder_ == null) { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return ltBlockBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); - } - } - /** - * .LightBlock ltBlock = 6; - */ - public Builder setLtBlock(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock value) { - if (ltBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - ltBlockBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .LightBlock ltBlock = 6; - */ - public Builder setLtBlock( - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder builderForValue) { - if (ltBlockBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - ltBlockBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .LightBlock ltBlock = 6; - */ - public Builder mergeLtBlock(cn.chain33.javasdk.model.protobuf.P2pService.LightBlock value) { - if (ltBlockBuilder_ == null) { - if (valueCase_ == 6 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - ltBlockBuilder_.mergeFrom(value); - } - ltBlockBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .LightBlock ltBlock = 6; - */ - public Builder clearLtBlock() { - if (ltBlockBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - ltBlockBuilder_.clear(); - } - return this; - } - /** - * .LightBlock ltBlock = 6; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder getLtBlockBuilder() { - return getLtBlockFieldBuilder().getBuilder(); - } - /** - * .LightBlock ltBlock = 6; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder getLtBlockOrBuilder() { - if ((valueCase_ == 6) && (ltBlockBuilder_ != null)) { - return ltBlockBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); - } - } - /** - * .LightBlock ltBlock = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock, cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder, cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder> - getLtBlockFieldBuilder() { - if (ltBlockBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.getDefaultInstance(); - } - ltBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.LightBlock, cn.chain33.javasdk.model.protobuf.P2pService.LightBlock.Builder, cn.chain33.javasdk.model.protobuf.P2pService.LightBlockOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.LightBlock) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return ltBlockBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder> queryBuilder_; - /** - * .P2PQueryData query = 7; - * @return Whether the query field is set. - */ - public boolean hasQuery() { - return valueCase_ == 7; - } - /** - * .P2PQueryData query = 7; - * @return The query. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData getQuery() { - if (queryBuilder_ == null) { - if (valueCase_ == 7) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return queryBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); - } - } - /** - * .P2PQueryData query = 7; - */ - public Builder setQuery(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - queryBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .P2PQueryData query = 7; - */ - public Builder setQuery( - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder builderForValue) { - if (queryBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - queryBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - /** - * .P2PQueryData query = 7; - */ - public Builder mergeQuery(cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData value) { - if (queryBuilder_ == null) { - if (valueCase_ == 7 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - queryBuilder_.mergeFrom(value); - } - queryBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .P2PQueryData query = 7; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - queryBuilder_.clear(); - } - return this; - } - /** - * .P2PQueryData query = 7; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder getQueryBuilder() { - return getQueryFieldBuilder().getBuilder(); - } - /** - * .P2PQueryData query = 7; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder getQueryOrBuilder() { - if ((valueCase_ == 7) && (queryBuilder_ != null)) { - return queryBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); - } - } - /** - * .P2PQueryData query = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.getDefaultInstance(); - } - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryDataOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.P2PQueryData) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged();; - return queryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder> blockRepBuilder_; - /** - * .P2PBlockTxReply blockRep = 8; - * @return Whether the blockRep field is set. - */ - public boolean hasBlockRep() { - return valueCase_ == 8; - } - /** - * .P2PBlockTxReply blockRep = 8; - * @return The blockRep. - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply getBlockRep() { - if (blockRepBuilder_ == null) { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); - } else { - if (valueCase_ == 8) { - return blockRepBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); - } - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - public Builder setBlockRep(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply value) { - if (blockRepBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - blockRepBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - public Builder setBlockRep( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder builderForValue) { - if (blockRepBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - blockRepBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 8; - return this; - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - public Builder mergeBlockRep(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply value) { - if (blockRepBuilder_ == null) { - if (valueCase_ == 8 && - value_ != cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.newBuilder((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 8) { - blockRepBuilder_.mergeFrom(value); - } - blockRepBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - public Builder clearBlockRep() { - if (blockRepBuilder_ == null) { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - } - blockRepBuilder_.clear(); - } - return this; - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder getBlockRepBuilder() { - return getBlockRepFieldBuilder().getBuilder(); - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder getBlockRepOrBuilder() { - if ((valueCase_ == 8) && (blockRepBuilder_ != null)) { - return blockRepBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_; - } - return cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); - } - } - /** - * .P2PBlockTxReply blockRep = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder> - getBlockRepFieldBuilder() { - if (blockRepBuilder_ == null) { - if (!(valueCase_ == 8)) { - value_ = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.getDefaultInstance(); - } - blockRepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply.Builder, cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReplyOrBuilder>( - (cn.chain33.javasdk.model.protobuf.P2pService.P2PBlockTxReply) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 8; - onChanged();; - return blockRepBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BroadCastData) - } + public static final class NodeNetInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:NodeNetInfo) + NodeNetInfoOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:BroadCastData) - private static final cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData(); - } + // Use NodeNetInfo.newBuilder() to construct. + private NodeNetInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private NodeNetInfo() { + externaladdr_ = ""; + localaddr_ = ""; + ratein_ = ""; + rateout_ = ""; + ratetotal_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BroadCastData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BroadCastData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeNetInfo(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private NodeNetInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + externaladdr_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + localaddr_ = s; + break; + } + case 24: { + + service_ = input.readBool(); + break; + } + case 32: { + + outbounds_ = input.readInt32(); + break; + } + case 40: { + + inbounds_ = input.readInt32(); + break; + } + case 48: { + + routingtable_ = input.readInt32(); + break; + } + case 56: { + + peerstore_ = input.readInt32(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + ratein_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + rateout_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + ratetotal_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_descriptor; + } - public interface P2PGetHeadersOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetHeaders) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.Builder.class); + } - /** - * int32 version = 1; - * @return The version. - */ - int getVersion(); + public static final int EXTERNALADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object externaladdr_; - /** - * int64 startHeight = 2; - * @return The startHeight. - */ - long getStartHeight(); + /** + * string externaladdr = 1; + * + * @return The externaladdr. + */ + @java.lang.Override + public java.lang.String getExternaladdr() { + java.lang.Object ref = externaladdr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externaladdr_ = s; + return s; + } + } - /** - * int64 endHeight = 3; - * @return The endHeight. - */ - long getEndHeight(); - } - /** - *
-   **
-   * p2p 获取区块区间头部信息协议
-   * 
- * - * Protobuf type {@code P2PGetHeaders} - */ - public static final class P2PGetHeaders extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetHeaders) - P2PGetHeadersOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetHeaders.newBuilder() to construct. - private P2PGetHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetHeaders() { - } + /** + * string externaladdr = 1; + * + * @return The bytes for externaladdr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternaladdrBytes() { + java.lang.Object ref = externaladdr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externaladdr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetHeaders(); - } + public static final int LOCALADDR_FIELD_NUMBER = 2; + private volatile java.lang.Object localaddr_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetHeaders( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { + /** + * string localaddr = 2; + * + * @return The localaddr. + */ + @java.lang.Override + public java.lang.String getLocaladdr() { + java.lang.Object ref = localaddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localaddr_ = s; + return s; + } + } - version_ = input.readInt32(); - break; + /** + * string localaddr = 2; + * + * @return The bytes for localaddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocaladdrBytes() { + java.lang.Object ref = localaddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + localaddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 16: { + } - startHeight_ = input.readInt64(); - break; + public static final int SERVICE_FIELD_NUMBER = 3; + private boolean service_; + + /** + * bool service = 3; + * + * @return The service. + */ + @java.lang.Override + public boolean getService() { + return service_; + } + + public static final int OUTBOUNDS_FIELD_NUMBER = 4; + private int outbounds_; + + /** + * int32 outbounds = 4; + * + * @return The outbounds. + */ + @java.lang.Override + public int getOutbounds() { + return outbounds_; + } + + public static final int INBOUNDS_FIELD_NUMBER = 5; + private int inbounds_; + + /** + * int32 inbounds = 5; + * + * @return The inbounds. + */ + @java.lang.Override + public int getInbounds() { + return inbounds_; + } + + public static final int ROUTINGTABLE_FIELD_NUMBER = 6; + private int routingtable_; + + /** + * int32 routingtable = 6; + * + * @return The routingtable. + */ + @java.lang.Override + public int getRoutingtable() { + return routingtable_; + } + + public static final int PEERSTORE_FIELD_NUMBER = 7; + private int peerstore_; + + /** + * int32 peerstore = 7; + * + * @return The peerstore. + */ + @java.lang.Override + public int getPeerstore() { + return peerstore_; + } + + public static final int RATEIN_FIELD_NUMBER = 8; + private volatile java.lang.Object ratein_; + + /** + * string ratein = 8; + * + * @return The ratein. + */ + @java.lang.Override + public java.lang.String getRatein() { + java.lang.Object ref = ratein_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ratein_ = s; + return s; } - case 24: { + } - endHeight_ = input.readInt64(); - break; + /** + * string ratein = 8; + * + * @return The bytes for ratein. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRateinBytes() { + java.lang.Object ref = ratein_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ratein_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + } + + public static final int RATEOUT_FIELD_NUMBER = 9; + private volatile java.lang.Object rateout_; + + /** + * string rateout = 9; + * + * @return The rateout. + */ + @java.lang.Override + public java.lang.String getRateout() { + java.lang.Object ref = rateout_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rateout_ = s; + return s; } - } } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.Builder.class); - } + /** + * string rateout = 9; + * + * @return The bytes for rateout. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRateoutBytes() { + java.lang.Object ref = rateout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rateout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } + public static final int RATETOTAL_FIELD_NUMBER = 10; + private volatile java.lang.Object ratetotal_; - public static final int STARTHEIGHT_FIELD_NUMBER = 2; - private long startHeight_; - /** - * int64 startHeight = 2; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; - } + /** + * string ratetotal = 10; + * + * @return The ratetotal. + */ + @java.lang.Override + public java.lang.String getRatetotal() { + java.lang.Object ref = ratetotal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ratetotal_ = s; + return s; + } + } - public static final int ENDHEIGHT_FIELD_NUMBER = 3; - private long endHeight_; - /** - * int64 endHeight = 3; - * @return The endHeight. - */ - public long getEndHeight() { - return endHeight_; - } + /** + * string ratetotal = 10; + * + * @return The bytes for ratetotal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRatetotalBytes() { + java.lang.Object ref = ratetotal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ratetotal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - if (startHeight_ != 0L) { - output.writeInt64(2, startHeight_); - } - if (endHeight_ != 0L) { - output.writeInt64(3, endHeight_); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - if (startHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, startHeight_); - } - if (endHeight_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, endHeight_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getExternaladdrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externaladdr_); + } + if (!getLocaladdrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localaddr_); + } + if (service_ != false) { + output.writeBool(3, service_); + } + if (outbounds_ != 0) { + output.writeInt32(4, outbounds_); + } + if (inbounds_ != 0) { + output.writeInt32(5, inbounds_); + } + if (routingtable_ != 0) { + output.writeInt32(6, routingtable_); + } + if (peerstore_ != 0) { + output.writeInt32(7, peerstore_); + } + if (!getRateinBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ratein_); + } + if (!getRateoutBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, rateout_); + } + if (!getRatetotalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ratetotal_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) obj; - - if (getVersion() - != other.getVersion()) return false; - if (getStartHeight() - != other.getStartHeight()) return false; - if (getEndHeight() - != other.getEndHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + STARTHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStartHeight()); - hash = (37 * hash) + ENDHEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEndHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (!getExternaladdrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, externaladdr_); + } + if (!getLocaladdrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localaddr_); + } + if (service_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, service_); + } + if (outbounds_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, outbounds_); + } + if (inbounds_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, inbounds_); + } + if (routingtable_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, routingtable_); + } + if (peerstore_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, peerstore_); + } + if (!getRateinBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ratein_); + } + if (!getRateoutBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, rateout_); + } + if (!getRatetotalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ratetotal_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo) obj; + + if (!getExternaladdr().equals(other.getExternaladdr())) + return false; + if (!getLocaladdr().equals(other.getLocaladdr())) + return false; + if (getService() != other.getService()) + return false; + if (getOutbounds() != other.getOutbounds()) + return false; + if (getInbounds() != other.getInbounds()) + return false; + if (getRoutingtable() != other.getRoutingtable()) + return false; + if (getPeerstore() != other.getPeerstore()) + return false; + if (!getRatein().equals(other.getRatein())) + return false; + if (!getRateout().equals(other.getRateout())) + return false; + if (!getRatetotal().equals(other.getRatetotal())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXTERNALADDR_FIELD_NUMBER; + hash = (53 * hash) + getExternaladdr().hashCode(); + hash = (37 * hash) + LOCALADDR_FIELD_NUMBER; + hash = (53 * hash) + getLocaladdr().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getService()); + hash = (37 * hash) + OUTBOUNDS_FIELD_NUMBER; + hash = (53 * hash) + getOutbounds(); + hash = (37 * hash) + INBOUNDS_FIELD_NUMBER; + hash = (53 * hash) + getInbounds(); + hash = (37 * hash) + ROUTINGTABLE_FIELD_NUMBER; + hash = (53 * hash) + getRoutingtable(); + hash = (37 * hash) + PEERSTORE_FIELD_NUMBER; + hash = (53 * hash) + getPeerstore(); + hash = (37 * hash) + RATEIN_FIELD_NUMBER; + hash = (53 * hash) + getRatein().hashCode(); + hash = (37 * hash) + RATEOUT_FIELD_NUMBER; + hash = (53 * hash) + getRateout().hashCode(); + hash = (37 * hash) + RATETOTAL_FIELD_NUMBER; + hash = (53 * hash) + getRatetotal().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p 获取区块区间头部信息协议
-     * 
- * - * Protobuf type {@code P2PGetHeaders} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetHeaders) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - startHeight_ = 0L; - - endHeight_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetHeaders_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders(this); - result.version_ = version_; - result.startHeight_ = startHeight_; - result.endHeight_ = endHeight_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.getStartHeight() != 0L) { - setStartHeight(other.getStartHeight()); - } - if (other.getEndHeight() != 0L) { - setEndHeight(other.getEndHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - * int32 version = 1; - * @return The version. - */ - public int getVersion() { - return version_; - } - /** - * int32 version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * int32 version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private long startHeight_ ; - /** - * int64 startHeight = 2; - * @return The startHeight. - */ - public long getStartHeight() { - return startHeight_; - } - /** - * int64 startHeight = 2; - * @param value The startHeight to set. - * @return This builder for chaining. - */ - public Builder setStartHeight(long value) { - - startHeight_ = value; - onChanged(); - return this; - } - /** - * int64 startHeight = 2; - * @return This builder for chaining. - */ - public Builder clearStartHeight() { - - startHeight_ = 0L; - onChanged(); - return this; - } - - private long endHeight_ ; - /** - * int64 endHeight = 3; - * @return The endHeight. - */ - public long getEndHeight() { - return endHeight_; - } - /** - * int64 endHeight = 3; - * @param value The endHeight to set. - * @return This builder for chaining. - */ - public Builder setEndHeight(long value) { - - endHeight_ = value; - onChanged(); - return this; - } - /** - * int64 endHeight = 3; - * @return This builder for chaining. - */ - public Builder clearEndHeight() { - - endHeight_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetHeaders) - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:P2PGetHeaders) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetHeaders(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface P2PHeadersOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PHeaders) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * repeated .Header headers = 1; - */ - java.util.List - getHeadersList(); - /** - * repeated .Header headers = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeaders(int index); - /** - * repeated .Header headers = 1; - */ - int getHeadersCount(); - /** - * repeated .Header headers = 1; - */ - java.util.List - getHeadersOrBuilderList(); - /** - * repeated .Header headers = 1; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadersOrBuilder( - int index); - } - /** - *
-   **
-   * p2p 区块头传输协议
-   * 
- * - * Protobuf type {@code P2PHeaders} - */ - public static final class P2PHeaders extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PHeaders) - P2PHeadersOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PHeaders.newBuilder() to construct. - private P2PHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PHeaders() { - headers_ = java.util.Collections.emptyList(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PHeaders(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PHeaders( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = java.util.Collections.unmodifiableList(headers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.Builder.class); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int HEADERS_FIELD_NUMBER = 1; - private java.util.List headers_; - /** - * repeated .Header headers = 1; - */ - public java.util.List getHeadersList() { - return headers_; - } - /** - * repeated .Header headers = 1; - */ - public java.util.List - getHeadersOrBuilderList() { - return headers_; - } - /** - * repeated .Header headers = 1; - */ - public int getHeadersCount() { - return headers_.size(); - } - /** - * repeated .Header headers = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeaders(int index) { - return headers_.get(index); - } - /** - * repeated .Header headers = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadersOrBuilder( - int index) { - return headers_.get(index); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < headers_.size(); i++) { - output.writeMessage(1, headers_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + *
+         **
+         *当前节点的网络信息
+         * 
+ * + * Protobuf type {@code NodeNetInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:NodeNetInfo) + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, headers_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders) obj; - - if (!getHeadersList() - .equals(other.getHeadersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + externaladdr_ = ""; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getHeadersCount() > 0) { - hash = (37 * hash) + HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getHeadersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + localaddr_ = ""; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + service_ = false; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + outbounds_ = 0; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p 区块头传输协议
-     * 
- * - * Protobuf type {@code P2PHeaders} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PHeaders) - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getHeadersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headersBuilder_ == null) { - headers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - headersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PHeaders_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders(this); - int from_bitField0_ = bitField0_; - if (headersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - headers_ = java.util.Collections.unmodifiableList(headers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.headers_ = headers_; - } else { - result.headers_ = headersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.getDefaultInstance()) return this; - if (headersBuilder_ == null) { - if (!other.headers_.isEmpty()) { - if (headers_.isEmpty()) { - headers_ = other.headers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHeadersIsMutable(); - headers_.addAll(other.headers_); - } - onChanged(); - } - } else { - if (!other.headers_.isEmpty()) { - if (headersBuilder_.isEmpty()) { - headersBuilder_.dispose(); - headersBuilder_ = null; - headers_ = other.headers_; - bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeadersFieldBuilder() : null; - } else { - headersBuilder_.addAllMessages(other.headers_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List headers_ = - java.util.Collections.emptyList(); - private void ensureHeadersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(headers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> headersBuilder_; - - /** - * repeated .Header headers = 1; - */ - public java.util.List getHeadersList() { - if (headersBuilder_ == null) { - return java.util.Collections.unmodifiableList(headers_); - } else { - return headersBuilder_.getMessageList(); - } - } - /** - * repeated .Header headers = 1; - */ - public int getHeadersCount() { - if (headersBuilder_ == null) { - return headers_.size(); - } else { - return headersBuilder_.getCount(); - } - } - /** - * repeated .Header headers = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeaders(int index) { - if (headersBuilder_ == null) { - return headers_.get(index); - } else { - return headersBuilder_.getMessage(index); - } - } - /** - * repeated .Header headers = 1; - */ - public Builder setHeaders( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeadersIsMutable(); - headers_.set(index, value); - onChanged(); - } else { - headersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder setHeaders( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.set(index, builderForValue.build()); - onChanged(); - } else { - headersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder addHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeadersIsMutable(); - headers_.add(value); - onChanged(); - } else { - headersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder addHeaders( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeadersIsMutable(); - headers_.add(index, value); - onChanged(); - } else { - headersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder addHeaders( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(builderForValue.build()); - onChanged(); - } else { - headersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder addHeaders( - int index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(index, builderForValue.build()); - onChanged(); - } else { - headersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder addAllHeaders( - java.lang.Iterable values) { - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); - onChanged(); - } else { - headersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder clearHeaders() { - if (headersBuilder_ == null) { - headers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - headersBuilder_.clear(); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public Builder removeHeaders(int index) { - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.remove(index); - onChanged(); - } else { - headersBuilder_.remove(index); - } - return this; - } - /** - * repeated .Header headers = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeadersBuilder( - int index) { - return getHeadersFieldBuilder().getBuilder(index); - } - /** - * repeated .Header headers = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeadersOrBuilder( - int index) { - if (headersBuilder_ == null) { - return headers_.get(index); } else { - return headersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Header headers = 1; - */ - public java.util.List - getHeadersOrBuilderList() { - if (headersBuilder_ != null) { - return headersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(headers_); - } - } - /** - * repeated .Header headers = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); - } - /** - * repeated .Header headers = 1; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder addHeadersBuilder( - int index) { - return getHeadersFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance()); - } - /** - * repeated .Header headers = 1; - */ - public java.util.List - getHeadersBuilderList() { - return getHeadersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getHeadersFieldBuilder() { - if (headersBuilder_ == null) { - headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - headers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - headers_ = null; - } - return headersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PHeaders) - } + inbounds_ = 0; - // @@protoc_insertion_point(class_scope:P2PHeaders) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders(); - } + routingtable_ = 0; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getDefaultInstance() { - return DEFAULT_INSTANCE; - } + peerstore_ = 0; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PHeaders(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + ratein_ = ""; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + rateout_ = ""; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + ratetotal_ = ""; - } + return this; + } - public interface InvDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:InvData) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_descriptor; + } - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - * .Transaction tx = 1; - * @return The tx. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); - /** - * .Transaction tx = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.getDefaultInstance(); + } - /** - * .Block block = 2; - * @return Whether the block field is set. - */ - boolean hasBlock(); - /** - * .Block block = 2; - * @return The block. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock(); - /** - * .Block block = 2; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo build() { + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * int32 ty = 3; - * @return The ty. - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.P2pService.InvData.ValueCase getValueCase(); - } - /** - *
-   **
-   * inv 请求协议
-   * 
- * - * Protobuf type {@code InvData} - */ - public static final class InvData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:InvData) - InvDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use InvData.newBuilder() to construct. - private InvData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InvData() { - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo( + this); + result.externaladdr_ = externaladdr_; + result.localaddr_ = localaddr_; + result.service_ = service_; + result.outbounds_ = outbounds_; + result.inbounds_ = inbounds_; + result.routingtable_ = routingtable_; + result.peerstore_ = peerstore_; + result.ratein_ = ratein_; + result.rateout_ = rateout_; + result.ratetotal_ = ratetotal_; + onBuilt(); + return result; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InvData(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 24: { - - ty_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_descriptor; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.InvData.class, cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder.class); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TX(1), - BLOCK(2), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return TX; - case 2: return BLOCK; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int TX_FIELD_NUMBER = 1; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return valueCase_ == 1; - } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int BLOCK_FIELD_NUMBER = 2; - /** - * .Block block = 2; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return valueCase_ == 2; - } - /** - * .Block block = 2; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; - } - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); - } - /** - * .Block block = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; - } - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int TY_FIELD_NUMBER = 3; - private int ty_; - /** - * int32 ty = 3; - * @return The ty. - */ - public int getTy() { - return ty_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.getDefaultInstance()) + return this; + if (!other.getExternaladdr().isEmpty()) { + externaladdr_ = other.externaladdr_; + onChanged(); + } + if (!other.getLocaladdr().isEmpty()) { + localaddr_ = other.localaddr_; + onChanged(); + } + if (other.getService() != false) { + setService(other.getService()); + } + if (other.getOutbounds() != 0) { + setOutbounds(other.getOutbounds()); + } + if (other.getInbounds() != 0) { + setInbounds(other.getInbounds()); + } + if (other.getRoutingtable() != 0) { + setRoutingtable(other.getRoutingtable()); + } + if (other.getPeerstore() != 0) { + setPeerstore(other.getPeerstore()); + } + if (!other.getRatein().isEmpty()) { + ratein_ = other.ratein_; + onChanged(); + } + if (!other.getRateout().isEmpty()) { + rateout_ = other.rateout_; + onChanged(); + } + if (!other.getRatetotal().isEmpty()) { + ratetotal_ = other.ratetotal_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_); - } - if (ty_ != 0) { - output.writeInt32(3, ty_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, ty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private java.lang.Object externaladdr_ = ""; + + /** + * string externaladdr = 1; + * + * @return The externaladdr. + */ + public java.lang.String getExternaladdr() { + java.lang.Object ref = externaladdr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externaladdr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.InvData)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.InvData other = (cn.chain33.javasdk.model.protobuf.P2pService.InvData) obj; - - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getTx() - .equals(other.getTx())) return false; - break; - case 2: - if (!getBlock() - .equals(other.getBlock())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string externaladdr = 1; + * + * @return The bytes for externaladdr. + */ + public com.google.protobuf.ByteString getExternaladdrBytes() { + java.lang.Object ref = externaladdr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + externaladdr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - break; - case 2: - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string externaladdr = 1; + * + * @param value + * The externaladdr to set. + * + * @return This builder for chaining. + */ + public Builder setExternaladdr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externaladdr_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string externaladdr = 1; + * + * @return This builder for chaining. + */ + public Builder clearExternaladdr() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.InvData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + externaladdr_ = getDefaultInstance().getExternaladdr(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * inv 请求协议
-     * 
- * - * Protobuf type {@code InvData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:InvData) - cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.InvData.class, cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.InvData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvData_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvData getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvData build() { - cn.chain33.javasdk.model.protobuf.P2pService.InvData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvData buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.InvData result = new cn.chain33.javasdk.model.protobuf.P2pService.InvData(this); - if (valueCase_ == 1) { - if (txBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = txBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (blockBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blockBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.InvData) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.InvData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.InvData other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case TX: { - mergeTx(other.getTx()); - break; - } - case BLOCK: { - mergeBlock(other.getBlock()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.InvData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.InvData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txBuilder_; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return valueCase_ == 1; - } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - if (txBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return txBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); - } - } - /** - * .Transaction tx = 1; - */ - public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder setTx( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - txBuilder_.mergeFrom(value); - } - txBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - txBuilder_.clear(); - } - return this; - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { - return getTxFieldBuilder().getBuilder(); - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - if ((valueCase_ == 1) && (txBuilder_ != null)) { - return txBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_; - } - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); - } - } - /** - * .Transaction tx = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); - } - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return txBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> blockBuilder_; - /** - * .Block block = 2; - * @return Whether the block field is set. - */ - public boolean hasBlock() { - return valueCase_ == 2; - } - /** - * .Block block = 2; - * @return The block. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block getBlock() { - if (blockBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; - } - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return blockBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); - } - } - /** - * .Block block = 2; - */ - public Builder setBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - blockBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .Block block = 2; - */ - public Builder setBlock( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder builderForValue) { - if (blockBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - blockBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .Block block = 2; - */ - public Builder mergeBlock(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block value) { - if (blockBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.newBuilder((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - blockBuilder_.mergeFrom(value); - } - blockBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .Block block = 2; - */ - public Builder clearBlock() { - if (blockBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - blockBuilder_.clear(); - } - return this; - } - /** - * .Block block = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder getBlockBuilder() { - return getBlockFieldBuilder().getBuilder(); - } - /** - * .Block block = 2; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder getBlockOrBuilder() { - if ((valueCase_ == 2) && (blockBuilder_ != null)) { - return blockBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_; - } - return cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); - } - } - /** - * .Block block = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder> - getBlockFieldBuilder() { - if (blockBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.getDefaultInstance(); - } - blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOrBuilder>( - (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Block) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return blockBuilder_; - } - - private int ty_ ; - /** - * int32 ty = 3; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 3; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 3; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:InvData) - } + /** + * string externaladdr = 1; + * + * @param value + * The bytes for externaladdr to set. + * + * @return This builder for chaining. + */ + public Builder setExternaladdrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externaladdr_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:InvData) - private static final cn.chain33.javasdk.model.protobuf.P2pService.InvData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.InvData(); - } + private java.lang.Object localaddr_ = ""; + + /** + * string localaddr = 2; + * + * @return The localaddr. + */ + public java.lang.String getLocaladdr() { + java.lang.Object ref = localaddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localaddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvData getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string localaddr = 2; + * + * @return The bytes for localaddr. + */ + public com.google.protobuf.ByteString getLocaladdrBytes() { + java.lang.Object ref = localaddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + localaddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InvData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string localaddr = 2; + * + * @param value + * The localaddr to set. + * + * @return This builder for chaining. + */ + public Builder setLocaladdr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localaddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string localaddr = 2; + * + * @return This builder for chaining. + */ + public Builder clearLocaladdr() { - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + localaddr_ = getDefaultInstance().getLocaladdr(); + onChanged(); + return this; + } - } + /** + * string localaddr = 2; + * + * @param value + * The bytes for localaddr to set. + * + * @return This builder for chaining. + */ + public Builder setLocaladdrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localaddr_ = value; + onChanged(); + return this; + } - public interface InvDatasOrBuilder extends - // @@protoc_insertion_point(interface_extends:InvDatas) - com.google.protobuf.MessageOrBuilder { + private boolean service_; - /** - * repeated .InvData items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .InvData items = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.InvData getItems(int index); - /** - * repeated .InvData items = 1; - */ - int getItemsCount(); - /** - * repeated .InvData items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .InvData items = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder getItemsOrBuilder( - int index); - } - /** - *
-   **
-   * inv 返回数据
-   * 
- * - * Protobuf type {@code InvDatas} - */ - public static final class InvDatas extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:InvDatas) - InvDatasOrBuilder { - private static final long serialVersionUID = 0L; - // Use InvDatas.newBuilder() to construct. - private InvDatas(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InvDatas() { - items_ = java.util.Collections.emptyList(); - } + /** + * bool service = 3; + * + * @return The service. + */ + @java.lang.Override + public boolean getService() { + return service_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InvDatas(); - } + /** + * bool service = 3; + * + * @param value + * The service to set. + * + * @return This builder for chaining. + */ + public Builder setService(boolean value) { + + service_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InvDatas( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.InvData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_descriptor; - } + /** + * bool service = 3; + * + * @return This builder for chaining. + */ + public Builder clearService() { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.class, cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.Builder.class); - } + service_ = false; + onChanged(); + return this; + } - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .InvData items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .InvData items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .InvData items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .InvData items = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InvData getItems(int index) { - return items_.get(index); - } - /** - * repeated .InvData items = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + private int outbounds_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * int32 outbounds = 4; + * + * @return The outbounds. + */ + @java.lang.Override + public int getOutbounds() { + return outbounds_; + } - memoizedIsInitialized = 1; - return true; - } + /** + * int32 outbounds = 4; + * + * @param value + * The outbounds to set. + * + * @return This builder for chaining. + */ + public Builder setOutbounds(int value) { + + outbounds_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * int32 outbounds = 4; + * + * @return This builder for chaining. + */ + public Builder clearOutbounds() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + outbounds_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.InvDatas)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas other = (cn.chain33.javasdk.model.protobuf.P2pService.InvDatas) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private int inbounds_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int32 inbounds = 5; + * + * @return The inbounds. + */ + @java.lang.Override + public int getInbounds() { + return inbounds_; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int32 inbounds = 5; + * + * @param value + * The inbounds to set. + * + * @return This builder for chaining. + */ + public Builder setInbounds(int value) { + + inbounds_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.InvDatas prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * int32 inbounds = 5; + * + * @return This builder for chaining. + */ + public Builder clearInbounds() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * inv 返回数据
-     * 
- * - * Protobuf type {@code InvDatas} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:InvDatas) - cn.chain33.javasdk.model.protobuf.P2pService.InvDatasOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.class, cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_InvDatas_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas build() { - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas result = new cn.chain33.javasdk.model.protobuf.P2pService.InvDatas(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.InvDatas) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.InvDatas)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.InvDatas other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.InvDatas) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.InvData, cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder> itemsBuilder_; - - /** - * repeated .InvData items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .InvData items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .InvData items = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InvData getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .InvData items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.P2pService.InvData value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.P2pService.InvData value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.P2pService.InvData value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .InvData items = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .InvData items = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .InvData items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .InvData items = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance()); - } - /** - * repeated .InvData items = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.P2pService.InvData.getDefaultInstance()); - } - /** - * repeated .InvData items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.InvData, cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.InvData, cn.chain33.javasdk.model.protobuf.P2pService.InvData.Builder, cn.chain33.javasdk.model.protobuf.P2pService.InvDataOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:InvDatas) - } + inbounds_ = 0; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:InvDatas) - private static final cn.chain33.javasdk.model.protobuf.P2pService.InvDatas DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.InvDatas(); - } + private int routingtable_; - public static cn.chain33.javasdk.model.protobuf.P2pService.InvDatas getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * int32 routingtable = 6; + * + * @return The routingtable. + */ + @java.lang.Override + public int getRoutingtable() { + return routingtable_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InvDatas parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvDatas(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * int32 routingtable = 6; + * + * @param value + * The routingtable to set. + * + * @return This builder for chaining. + */ + public Builder setRoutingtable(int value) { + + routingtable_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * int32 routingtable = 6; + * + * @return This builder for chaining. + */ + public Builder clearRoutingtable() { - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.InvDatas getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + routingtable_ = 0; + onChanged(); + return this; + } - } + private int peerstore_; - public interface PeerOrBuilder extends - // @@protoc_insertion_point(interface_extends:Peer) - com.google.protobuf.MessageOrBuilder { + /** + * int32 peerstore = 7; + * + * @return The peerstore. + */ + @java.lang.Override + public int getPeerstore() { + return peerstore_; + } - /** - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + /** + * int32 peerstore = 7; + * + * @param value + * The peerstore to set. + * + * @return This builder for chaining. + */ + public Builder setPeerstore(int value) { + + peerstore_ = value; + onChanged(); + return this; + } - /** - * int32 port = 2; - * @return The port. - */ - int getPort(); + /** + * int32 peerstore = 7; + * + * @return This builder for chaining. + */ + public Builder clearPeerstore() { - /** - * string name = 3; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 3; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + peerstore_ = 0; + onChanged(); + return this; + } - /** - * bool self = 4; - * @return The self. - */ - boolean getSelf(); + private java.lang.Object ratein_ = ""; + + /** + * string ratein = 8; + * + * @return The ratein. + */ + public java.lang.String getRatein() { + java.lang.Object ref = ratein_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ratein_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * int32 mempoolSize = 5; - * @return The mempoolSize. - */ - int getMempoolSize(); + /** + * string ratein = 8; + * + * @return The bytes for ratein. + */ + public com.google.protobuf.ByteString getRateinBytes() { + java.lang.Object ref = ratein_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ratein_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * .Header header = 6; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - * .Header header = 6; - * @return The header. - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader(); - /** - * .Header header = 6; - */ - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder(); + /** + * string ratein = 8; + * + * @param value + * The ratein to set. + * + * @return This builder for chaining. + */ + public Builder setRatein(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ratein_ = value; + onChanged(); + return this; + } - /** - * string version = 7; - * @return The version. - */ - java.lang.String getVersion(); - /** - * string version = 7; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); + /** + * string ratein = 8; + * + * @return This builder for chaining. + */ + public Builder clearRatein() { - /** - * string localDBVersion = 8; - * @return The localDBVersion. - */ - java.lang.String getLocalDBVersion(); - /** - * string localDBVersion = 8; - * @return The bytes for localDBVersion. - */ - com.google.protobuf.ByteString - getLocalDBVersionBytes(); + ratein_ = getDefaultInstance().getRatein(); + onChanged(); + return this; + } - /** - * string storeDBVersion = 9; - * @return The storeDBVersion. - */ - java.lang.String getStoreDBVersion(); - /** - * string storeDBVersion = 9; - * @return The bytes for storeDBVersion. - */ - com.google.protobuf.ByteString - getStoreDBVersionBytes(); - } - /** - *
-   **
-   * peer 信息
-   * 
- * - * Protobuf type {@code Peer} - */ - public static final class Peer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Peer) - PeerOrBuilder { - private static final long serialVersionUID = 0L; - // Use Peer.newBuilder() to construct. - private Peer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Peer() { - addr_ = ""; - name_ = ""; - version_ = ""; - localDBVersion_ = ""; - storeDBVersion_ = ""; - } + /** + * string ratein = 8; + * + * @param value + * The bytes for ratein to set. + * + * @return This builder for chaining. + */ + public Builder setRateinBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ratein_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Peer(); - } + private java.lang.Object rateout_ = ""; + + /** + * string rateout = 9; + * + * @return The rateout. + */ + public java.lang.String getRateout() { + java.lang.Object ref = rateout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rateout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Peer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + /** + * string rateout = 9; + * + * @return The bytes for rateout. + */ + public com.google.protobuf.ByteString getRateoutBytes() { + java.lang.Object ref = rateout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + rateout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - addr_ = s; - break; + /** + * string rateout = 9; + * + * @param value + * The rateout to set. + * + * @return This builder for chaining. + */ + public Builder setRateout(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rateout_ = value; + onChanged(); + return this; } - case 16: { - port_ = input.readInt32(); - break; + /** + * string rateout = 9; + * + * @return This builder for chaining. + */ + public Builder clearRateout() { + + rateout_ = getDefaultInstance().getRateout(); + onChanged(); + return this; } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + /** + * string rateout = 9; + * + * @param value + * The bytes for rateout to set. + * + * @return This builder for chaining. + */ + public Builder setRateoutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rateout_ = value; + onChanged(); + return this; } - case 32: { - self_ = input.readBool(); - break; + private java.lang.Object ratetotal_ = ""; + + /** + * string ratetotal = 10; + * + * @return The ratetotal. + */ + public java.lang.String getRatetotal() { + java.lang.Object ref = ratetotal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ratetotal_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - case 40: { - mempoolSize_ = input.readInt32(); - break; + /** + * string ratetotal = 10; + * + * @return The bytes for ratetotal. + */ + public com.google.protobuf.ByteString getRatetotalBytes() { + java.lang.Object ref = ratetotal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ratetotal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - case 50: { - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - break; + /** + * string ratetotal = 10; + * + * @param value + * The ratetotal to set. + * + * @return This builder for chaining. + */ + public Builder setRatetotal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ratetotal_ = value; + onChanged(); + return this; } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; + /** + * string ratetotal = 10; + * + * @return This builder for chaining. + */ + public Builder clearRatetotal() { + + ratetotal_ = getDefaultInstance().getRatetotal(); + onChanged(); + return this; } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - localDBVersion_ = s; - break; + /** + * string ratetotal = 10; + * + * @param value + * The bytes for ratetotal to set. + * + * @return This builder for chaining. + */ + public Builder setRatetotalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ratetotal_ = value; + onChanged(); + return this; } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - storeDBVersion_ = s; - break; + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } + + // @@protoc_insertion_point(builder_scope:NodeNetInfo) } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.Peer.class, cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder.class); - } + // @@protoc_insertion_point(class_scope:NodeNetInfo) + private static final cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo(); + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int PORT_FIELD_NUMBER = 2; - private int port_; - /** - * int32 port = 2; - * @return The port. - */ - public int getPort() { - return port_; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeNetInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeNetInfo(input, extensionRegistry); + } + }; - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * string name = 3; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 3; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int SELF_FIELD_NUMBER = 4; - private boolean self_; - /** - * bool self = 4; - * @return The self. - */ - public boolean getSelf() { - return self_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int MEMPOOLSIZE_FIELD_NUMBER = 5; - private int mempoolSize_; - /** - * int32 mempoolSize = 5; - * @return The mempoolSize. - */ - public int getMempoolSize() { - return mempoolSize_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int HEADER_FIELD_NUMBER = 6; - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - /** - * .Header header = 6; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return header_ != null; - } - /** - * .Header header = 6; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - /** - * .Header header = 6; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); } - public static final int VERSION_FIELD_NUMBER = 7; - private volatile java.lang.Object version_; - /** - * string version = 7; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 7; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public interface PeersReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:PeersReply) + com.google.protobuf.MessageOrBuilder { - public static final int LOCALDBVERSION_FIELD_NUMBER = 8; - private volatile java.lang.Object localDBVersion_; - /** - * string localDBVersion = 8; - * @return The localDBVersion. - */ - public java.lang.String getLocalDBVersion() { - java.lang.Object ref = localDBVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localDBVersion_ = s; - return s; - } - } - /** - * string localDBVersion = 8; - * @return The bytes for localDBVersion. - */ - public com.google.protobuf.ByteString - getLocalDBVersionBytes() { - java.lang.Object ref = localDBVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .PeersInfo peers = 1; + */ + java.util.List getPeersList(); - public static final int STOREDBVERSION_FIELD_NUMBER = 9; - private volatile java.lang.Object storeDBVersion_; - /** - * string storeDBVersion = 9; - * @return The storeDBVersion. - */ - public java.lang.String getStoreDBVersion() { - java.lang.Object ref = storeDBVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storeDBVersion_ = s; - return s; - } + /** + * repeated .PeersInfo peers = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getPeers(int index); + + /** + * repeated .PeersInfo peers = 1; + */ + int getPeersCount(); + + /** + * repeated .PeersInfo peers = 1; + */ + java.util.List getPeersOrBuilderList(); + + /** + * repeated .PeersInfo peers = 1; + */ + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder getPeersOrBuilder(int index); } + /** - * string storeDBVersion = 9; - * @return The bytes for storeDBVersion. + * Protobuf type {@code PeersReply} */ - public com.google.protobuf.ByteString - getStoreDBVersionBytes() { - java.lang.Object ref = storeDBVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storeDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class PeersReply extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:PeersReply) + PeersReplyOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use PeersReply.newBuilder() to construct. + private PeersReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private PeersReply() { + peers_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (port_ != 0) { - output.writeInt32(2, port_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (self_ != false) { - output.writeBool(4, self_); - } - if (mempoolSize_ != 0) { - output.writeInt32(5, mempoolSize_); - } - if (header_ != null) { - output.writeMessage(6, getHeader()); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, version_); - } - if (!getLocalDBVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, localDBVersion_); - } - if (!getStoreDBVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, storeDBVersion_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PeersReply(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (self_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, self_); - } - if (mempoolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, mempoolSize_); - } - if (header_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getHeader()); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, version_); - } - if (!getLocalDBVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, localDBVersion_); - } - if (!getStoreDBVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, storeDBVersion_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.Peer)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.Peer other = (cn.chain33.javasdk.model.protobuf.P2pService.Peer) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (getPort() - != other.getPort()) return false; - if (!getName() - .equals(other.getName())) return false; - if (getSelf() - != other.getSelf()) return false; - if (getMempoolSize() - != other.getMempoolSize()) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getLocalDBVersion() - .equals(other.getLocalDBVersion())) return false; - if (!getStoreDBVersion() - .equals(other.getStoreDBVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private PeersReply(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + peers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + peers_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + peers_ = java.util.Collections.unmodifiableList(peers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SELF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSelf()); - hash = (37 * hash) + MEMPOOLSIZE_FIELD_NUMBER; - hash = (53 * hash) + getMempoolSize(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + LOCALDBVERSION_FIELD_NUMBER; - hash = (53 * hash) + getLocalDBVersion().hashCode(); - hash = (37 * hash) + STOREDBVERSION_FIELD_NUMBER; - hash = (53 * hash) + getStoreDBVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.class, + cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.Peer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int PEERS_FIELD_NUMBER = 1; + private java.util.List peers_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * peer 信息
-     * 
- * - * Protobuf type {@code Peer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Peer) - cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.Peer.class, cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.Peer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - port_ = 0; - - name_ = ""; - - self_ = false; - - mempoolSize_ = 0; - - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - version_ = ""; - - localDBVersion_ = ""; - - storeDBVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_Peer_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Peer getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Peer build() { - cn.chain33.javasdk.model.protobuf.P2pService.Peer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Peer buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.Peer result = new cn.chain33.javasdk.model.protobuf.P2pService.Peer(this); - result.addr_ = addr_; - result.port_ = port_; - result.name_ = name_; - result.self_ = self_; - result.mempoolSize_ = mempoolSize_; - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - result.version_ = version_; - result.localDBVersion_ = localDBVersion_; - result.storeDBVersion_ = storeDBVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.Peer) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.Peer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.Peer other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getSelf() != false) { - setSelf(other.getSelf()); - } - if (other.getMempoolSize() != 0) { - setMempoolSize(other.getMempoolSize()); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getLocalDBVersion().isEmpty()) { - localDBVersion_ = other.localDBVersion_; - onChanged(); - } - if (!other.getStoreDBVersion().isEmpty()) { - storeDBVersion_ = other.storeDBVersion_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.Peer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.Peer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private int port_ ; - /** - * int32 port = 2; - * @return The port. - */ - public int getPort() { - return port_; - } - /** - * int32 port = 2; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - * int32 port = 2; - * @return This builder for chaining. - */ - public Builder clearPort() { - - port_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 3; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 3; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 3; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 3; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 3; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private boolean self_ ; - /** - * bool self = 4; - * @return The self. - */ - public boolean getSelf() { - return self_; - } - /** - * bool self = 4; - * @param value The self to set. - * @return This builder for chaining. - */ - public Builder setSelf(boolean value) { - - self_ = value; - onChanged(); - return this; - } - /** - * bool self = 4; - * @return This builder for chaining. - */ - public Builder clearSelf() { - - self_ = false; - onChanged(); - return this; - } - - private int mempoolSize_ ; - /** - * int32 mempoolSize = 5; - * @return The mempoolSize. - */ - public int getMempoolSize() { - return mempoolSize_; - } - /** - * int32 mempoolSize = 5; - * @param value The mempoolSize to set. - * @return This builder for chaining. - */ - public Builder setMempoolSize(int value) { - - mempoolSize_ = value; - onChanged(); - return this; - } - /** - * int32 mempoolSize = 5; - * @return This builder for chaining. - */ - public Builder clearMempoolSize() { - - mempoolSize_ = 0; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> headerBuilder_; - /** - * .Header header = 6; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .Header header = 6; - * @return The header. - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .Header header = 6; - */ - public Builder setHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .Header header = 6; - */ - public Builder setHeader( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Header header = 6; - */ - public Builder mergeHeader(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Header header = 6; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .Header header = 6; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .Header header = 6; - */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance() : header_; - } - } - /** - * .Header header = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.Builder, cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private java.lang.Object version_ = ""; - /** - * string version = 7; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 7; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 7; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 7; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 7; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object localDBVersion_ = ""; - /** - * string localDBVersion = 8; - * @return The localDBVersion. - */ - public java.lang.String getLocalDBVersion() { - java.lang.Object ref = localDBVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localDBVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string localDBVersion = 8; - * @return The bytes for localDBVersion. - */ - public com.google.protobuf.ByteString - getLocalDBVersionBytes() { - java.lang.Object ref = localDBVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string localDBVersion = 8; - * @param value The localDBVersion to set. - * @return This builder for chaining. - */ - public Builder setLocalDBVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - localDBVersion_ = value; - onChanged(); - return this; - } - /** - * string localDBVersion = 8; - * @return This builder for chaining. - */ - public Builder clearLocalDBVersion() { - - localDBVersion_ = getDefaultInstance().getLocalDBVersion(); - onChanged(); - return this; - } - /** - * string localDBVersion = 8; - * @param value The bytes for localDBVersion to set. - * @return This builder for chaining. - */ - public Builder setLocalDBVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - localDBVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object storeDBVersion_ = ""; - /** - * string storeDBVersion = 9; - * @return The storeDBVersion. - */ - public java.lang.String getStoreDBVersion() { - java.lang.Object ref = storeDBVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storeDBVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string storeDBVersion = 9; - * @return The bytes for storeDBVersion. - */ - public com.google.protobuf.ByteString - getStoreDBVersionBytes() { - java.lang.Object ref = storeDBVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storeDBVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string storeDBVersion = 9; - * @param value The storeDBVersion to set. - * @return This builder for chaining. - */ - public Builder setStoreDBVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storeDBVersion_ = value; - onChanged(); - return this; - } - /** - * string storeDBVersion = 9; - * @return This builder for chaining. - */ - public Builder clearStoreDBVersion() { - - storeDBVersion_ = getDefaultInstance().getStoreDBVersion(); - onChanged(); - return this; - } - /** - * string storeDBVersion = 9; - * @param value The bytes for storeDBVersion to set. - * @return This builder for chaining. - */ - public Builder setStoreDBVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storeDBVersion_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Peer) - } + /** + * repeated .PeersInfo peers = 1; + */ + @java.lang.Override + public java.util.List getPeersList() { + return peers_; + } - // @@protoc_insertion_point(class_scope:Peer) - private static final cn.chain33.javasdk.model.protobuf.P2pService.Peer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.Peer(); - } + /** + * repeated .PeersInfo peers = 1; + */ + @java.lang.Override + public java.util.List getPeersOrBuilderList() { + return peers_; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.Peer getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .PeersInfo peers = 1; + */ + @java.lang.Override + public int getPeersCount() { + return peers_.size(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Peer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Peer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .PeersInfo peers = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getPeers(int index) { + return peers_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .PeersInfo peers = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder getPeersOrBuilder(int index) { + return peers_.get(index); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.Peer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface PeerListOrBuilder extends - // @@protoc_insertion_point(interface_extends:PeerList) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - * repeated .Peer peers = 1; - */ - java.util.List - getPeersList(); - /** - * repeated .Peer peers = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.Peer getPeers(int index); - /** - * repeated .Peer peers = 1; - */ - int getPeersCount(); - /** - * repeated .Peer peers = 1; - */ - java.util.List - getPeersOrBuilderList(); - /** - * repeated .Peer peers = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder getPeersOrBuilder( - int index); - } - /** - *
-   **
-   * peer 列表
-   * 
- * - * Protobuf type {@code PeerList} - */ - public static final class PeerList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PeerList) - PeerListOrBuilder { - private static final long serialVersionUID = 0L; - // Use PeerList.newBuilder() to construct. - private PeerList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PeerList() { - peers_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < peers_.size(); i++) { + output.writeMessage(1, peers_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PeerList(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PeerList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - peers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - peers_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.Peer.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - peers_ = java.util.Collections.unmodifiableList(peers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_descriptor; - } + size = 0; + for (int i = 0; i < peers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, peers_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, cn.chain33.javasdk.model.protobuf.P2pService.PeerList.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersReply)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.PeersReply other = (cn.chain33.javasdk.model.protobuf.P2pService.PeersReply) obj; - public static final int PEERS_FIELD_NUMBER = 1; - private java.util.List peers_; - /** - * repeated .Peer peers = 1; - */ - public java.util.List getPeersList() { - return peers_; - } - /** - * repeated .Peer peers = 1; - */ - public java.util.List - getPeersOrBuilderList() { - return peers_; - } - /** - * repeated .Peer peers = 1; - */ - public int getPeersCount() { - return peers_.size(); - } - /** - * repeated .Peer peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Peer getPeers(int index) { - return peers_.get(index); - } - /** - * repeated .Peer peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder getPeersOrBuilder( - int index) { - return peers_.get(index); - } + if (!getPeersList().equals(other.getPeersList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPeersCount() > 0) { + hash = (37 * hash) + PEERS_FIELD_NUMBER; + hash = (53 * hash) + getPeersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < peers_.size(); i++) { - output.writeMessage(1, peers_.get(i)); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < peers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, peers_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeerList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.PeerList other = (cn.chain33.javasdk.model.protobuf.P2pService.PeerList) obj; - - if (!getPeersList() - .equals(other.getPeersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPeersCount() > 0) { - hash = (37 * hash) + PEERS_FIELD_NUMBER; - hash = (53 * hash) + getPeersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.PeerList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * peer 列表
-     * 
- * - * Protobuf type {@code PeerList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PeerList) - cn.chain33.javasdk.model.protobuf.P2pService.PeerListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, cn.chain33.javasdk.model.protobuf.P2pService.PeerList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.PeerList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPeersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (peersBuilder_ == null) { - peers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - peersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeerList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeerList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeerList build() { - cn.chain33.javasdk.model.protobuf.P2pService.PeerList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeerList buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.PeerList result = new cn.chain33.javasdk.model.protobuf.P2pService.PeerList(this); - int from_bitField0_ = bitField0_; - if (peersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - peers_ = java.util.Collections.unmodifiableList(peers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.peers_ = peers_; - } else { - result.peers_ = peersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeerList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.PeerList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.PeerList other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance()) return this; - if (peersBuilder_ == null) { - if (!other.peers_.isEmpty()) { - if (peers_.isEmpty()) { - peers_ = other.peers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePeersIsMutable(); - peers_.addAll(other.peers_); - } - onChanged(); - } - } else { - if (!other.peers_.isEmpty()) { - if (peersBuilder_.isEmpty()) { - peersBuilder_.dispose(); - peersBuilder_ = null; - peers_ = other.peers_; - bitField0_ = (bitField0_ & ~0x00000001); - peersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPeersFieldBuilder() : null; - } else { - peersBuilder_.addAllMessages(other.peers_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.PeerList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.PeerList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List peers_ = - java.util.Collections.emptyList(); - private void ensurePeersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - peers_ = new java.util.ArrayList(peers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Peer, cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder, cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder> peersBuilder_; - - /** - * repeated .Peer peers = 1; - */ - public java.util.List getPeersList() { - if (peersBuilder_ == null) { - return java.util.Collections.unmodifiableList(peers_); - } else { - return peersBuilder_.getMessageList(); - } - } - /** - * repeated .Peer peers = 1; - */ - public int getPeersCount() { - if (peersBuilder_ == null) { - return peers_.size(); - } else { - return peersBuilder_.getCount(); - } - } - /** - * repeated .Peer peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Peer getPeers(int index) { - if (peersBuilder_ == null) { - return peers_.get(index); - } else { - return peersBuilder_.getMessage(index); - } - } - /** - * repeated .Peer peers = 1; - */ - public Builder setPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Peer value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.set(index, value); - onChanged(); - } else { - peersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder setPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.set(index, builderForValue.build()); - onChanged(); - } else { - peersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder addPeers(cn.chain33.javasdk.model.protobuf.P2pService.Peer value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.add(value); - onChanged(); - } else { - peersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder addPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Peer value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.add(index, value); - onChanged(); - } else { - peersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder addPeers( - cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.add(builderForValue.build()); - onChanged(); - } else { - peersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder addPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.add(index, builderForValue.build()); - onChanged(); - } else { - peersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder addAllPeers( - java.lang.Iterable values) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, peers_); - onChanged(); - } else { - peersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder clearPeers() { - if (peersBuilder_ == null) { - peers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - peersBuilder_.clear(); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public Builder removePeers(int index) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.remove(index); - onChanged(); - } else { - peersBuilder_.remove(index); - } - return this; - } - /** - * repeated .Peer peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder getPeersBuilder( - int index) { - return getPeersFieldBuilder().getBuilder(index); - } - /** - * repeated .Peer peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder getPeersOrBuilder( - int index) { - if (peersBuilder_ == null) { - return peers_.get(index); } else { - return peersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Peer peers = 1; - */ - public java.util.List - getPeersOrBuilderList() { - if (peersBuilder_ != null) { - return peersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(peers_); - } - } - /** - * repeated .Peer peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder addPeersBuilder() { - return getPeersFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance()); - } - /** - * repeated .Peer peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder addPeersBuilder( - int index) { - return getPeersFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.P2pService.Peer.getDefaultInstance()); - } - /** - * repeated .Peer peers = 1; - */ - public java.util.List - getPeersBuilderList() { - return getPeersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Peer, cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder, cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder> - getPeersFieldBuilder() { - if (peersBuilder_ == null) { - peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.Peer, cn.chain33.javasdk.model.protobuf.P2pService.Peer.Builder, cn.chain33.javasdk.model.protobuf.P2pService.PeerOrBuilder>( - peers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - peers_ = null; - } - return peersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PeerList) - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:PeerList) - private static final cn.chain33.javasdk.model.protobuf.P2pService.PeerList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.PeerList(); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeerList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeerList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PeerList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeerList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public interface P2PGetPeerReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetPeerReq) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.PeersReply prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * string p2pType = 1; - * @return The p2pType. - */ - java.lang.String getP2PType(); - /** - * string p2pType = 1; - * @return The bytes for p2pType. - */ - com.google.protobuf.ByteString - getP2PTypeBytes(); - } - /** - *
-   **
-   * p2p get peer req
-   * 
- * - * Protobuf type {@code P2PGetPeerReq} - */ - public static final class P2PGetPeerReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetPeerReq) - P2PGetPeerReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetPeerReq.newBuilder() to construct. - private P2PGetPeerReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetPeerReq() { - p2PType_ = ""; - } + @java.lang.Override + 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 PeersReply} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:PeersReply) + cn.chain33.javasdk.model.protobuf.P2pService.PeersReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.class, + cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPeersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (peersBuilder_ == null) { + peers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + peersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply build() { + cn.chain33.javasdk.model.protobuf.P2pService.PeersReply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.PeersReply result = new cn.chain33.javasdk.model.protobuf.P2pService.PeersReply( + this); + int from_bitField0_ = bitField0_; + if (peersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + peers_ = java.util.Collections.unmodifiableList(peers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.peers_ = peers_; + } else { + result.peers_ = peersBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetPeerReq(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetPeerReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - p2PType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_descriptor; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.Builder.class); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int P2PTYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object p2PType_; - /** - * string p2pType = 1; - * @return The p2pType. - */ - public java.lang.String getP2PType() { - java.lang.Object ref = p2PType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - p2PType_ = s; - return s; - } - } - /** - * string p2pType = 1; - * @return The bytes for p2pType. - */ - public com.google.protobuf.ByteString - getP2PTypeBytes() { - java.lang.Object ref = p2PType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - p2PType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersReply) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.PeersReply) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getP2PTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, p2PType_); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.PeersReply other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.getDefaultInstance()) + return this; + if (peersBuilder_ == null) { + if (!other.peers_.isEmpty()) { + if (peers_.isEmpty()) { + peers_ = other.peers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePeersIsMutable(); + peers_.addAll(other.peers_); + } + onChanged(); + } + } else { + if (!other.peers_.isEmpty()) { + if (peersBuilder_.isEmpty()) { + peersBuilder_.dispose(); + peersBuilder_ = null; + peers_ = other.peers_; + bitField0_ = (bitField0_ & ~0x00000001); + peersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPeersFieldBuilder() : null; + } else { + peersBuilder_.addAllMessages(other.peers_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getP2PTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, p2PType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) obj; - - if (!getP2PType() - .equals(other.getP2PType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.PeersReply) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + P2PTYPE_FIELD_NUMBER; - hash = (53 * hash) + getP2PType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private int bitField0_; - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private java.util.List peers_ = java.util.Collections + .emptyList(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void ensurePeersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + peers_ = new java.util.ArrayList(peers_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p get peer req
-     * 
- * - * Protobuf type {@code P2PGetPeerReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetPeerReq) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - p2PType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetPeerReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq(this); - result.p2PType_ = p2PType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.getDefaultInstance()) return this; - if (!other.getP2PType().isEmpty()) { - p2PType_ = other.p2PType_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object p2PType_ = ""; - /** - * string p2pType = 1; - * @return The p2pType. - */ - public java.lang.String getP2PType() { - java.lang.Object ref = p2PType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - p2PType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string p2pType = 1; - * @return The bytes for p2pType. - */ - public com.google.protobuf.ByteString - getP2PTypeBytes() { - java.lang.Object ref = p2PType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - p2PType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string p2pType = 1; - * @param value The p2pType to set. - * @return This builder for chaining. - */ - public Builder setP2PType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - p2PType_ = value; - onChanged(); - return this; - } - /** - * string p2pType = 1; - * @return This builder for chaining. - */ - public Builder clearP2PType() { - - p2PType_ = getDefaultInstance().getP2PType(); - onChanged(); - return this; - } - /** - * string p2pType = 1; - * @param value The bytes for p2pType to set. - * @return This builder for chaining. - */ - public Builder setP2PTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - p2PType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetPeerReq) - } + private com.google.protobuf.RepeatedFieldBuilderV3 peersBuilder_; + + /** + * repeated .PeersInfo peers = 1; + */ + public java.util.List getPeersList() { + if (peersBuilder_ == null) { + return java.util.Collections.unmodifiableList(peers_); + } else { + return peersBuilder_.getMessageList(); + } + } - // @@protoc_insertion_point(class_scope:P2PGetPeerReq) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq(); - } + /** + * repeated .PeersInfo peers = 1; + */ + public int getPeersCount() { + if (peersBuilder_ == null) { + return peers_.size(); + } else { + return peersBuilder_.getCount(); + } + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .PeersInfo peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getPeers(int index) { + if (peersBuilder_ == null) { + return peers_.get(index); + } else { + return peersBuilder_.getMessage(index); + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetPeerReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetPeerReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder setPeers(int index, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo value) { + if (peersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeersIsMutable(); + peers_.set(index, value); + onChanged(); + } else { + peersBuilder_.setMessage(index, value); + } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder setPeers(int index, + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder builderForValue) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.set(index, builderForValue.build()); + onChanged(); + } else { + peersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder addPeers(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo value) { + if (peersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeersIsMutable(); + peers_.add(value); + onChanged(); + } else { + peersBuilder_.addMessage(value); + } + return this; + } - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder addPeers(int index, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo value) { + if (peersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeersIsMutable(); + peers_.add(index, value); + onChanged(); + } else { + peersBuilder_.addMessage(index, value); + } + return this; + } - public interface P2PGetNetInfoReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:P2PGetNetInfoReq) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .PeersInfo peers = 1; + */ + public Builder addPeers(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder builderForValue) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.add(builderForValue.build()); + onChanged(); + } else { + peersBuilder_.addMessage(builderForValue.build()); + } + return this; + } - /** - * string p2pType = 1; - * @return The p2pType. - */ - java.lang.String getP2PType(); - /** - * string p2pType = 1; - * @return The bytes for p2pType. - */ - com.google.protobuf.ByteString - getP2PTypeBytes(); - } - /** - *
-   **
-   * p2p get net info req
-   * 
- * - * Protobuf type {@code P2PGetNetInfoReq} - */ - public static final class P2PGetNetInfoReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:P2PGetNetInfoReq) - P2PGetNetInfoReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use P2PGetNetInfoReq.newBuilder() to construct. - private P2PGetNetInfoReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private P2PGetNetInfoReq() { - p2PType_ = ""; - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder addPeers(int index, + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder builderForValue) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.add(index, builderForValue.build()); + onChanged(); + } else { + peersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new P2PGetNetInfoReq(); - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder addAllPeers( + java.lang.Iterable values) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peers_); + onChanged(); + } else { + peersBuilder_.addAllMessages(values); + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private P2PGetNetInfoReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - p2PType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_descriptor; - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder clearPeers() { + if (peersBuilder_ == null) { + peers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + peersBuilder_.clear(); + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.Builder.class); - } + /** + * repeated .PeersInfo peers = 1; + */ + public Builder removePeers(int index) { + if (peersBuilder_ == null) { + ensurePeersIsMutable(); + peers_.remove(index); + onChanged(); + } else { + peersBuilder_.remove(index); + } + return this; + } - public static final int P2PTYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object p2PType_; - /** - * string p2pType = 1; - * @return The p2pType. - */ - public java.lang.String getP2PType() { - java.lang.Object ref = p2PType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - p2PType_ = s; - return s; - } - } - /** - * string p2pType = 1; - * @return The bytes for p2pType. - */ - public com.google.protobuf.ByteString - getP2PTypeBytes() { - java.lang.Object ref = p2PType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - p2PType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .PeersInfo peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder getPeersBuilder(int index) { + return getPeersFieldBuilder().getBuilder(index); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated .PeersInfo peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder getPeersOrBuilder(int index) { + if (peersBuilder_ == null) { + return peers_.get(index); + } else { + return peersBuilder_.getMessageOrBuilder(index); + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated .PeersInfo peers = 1; + */ + public java.util.List getPeersOrBuilderList() { + if (peersBuilder_ != null) { + return peersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(peers_); + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getP2PTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, p2PType_); - } - unknownFields.writeTo(output); - } + /** + * repeated .PeersInfo peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder addPeersBuilder() { + return getPeersFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance()); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getP2PTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, p2PType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated .PeersInfo peers = 1; + */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder addPeersBuilder(int index) { + return getPeersFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance()); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq other = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) obj; - - if (!getP2PType() - .equals(other.getP2PType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated .PeersInfo peers = 1; + */ + public java.util.List getPeersBuilderList() { + return getPeersFieldBuilder().getBuilderList(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + P2PTYPE_FIELD_NUMBER; - hash = (53 * hash) + getP2PType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private com.google.protobuf.RepeatedFieldBuilderV3 getPeersFieldBuilder() { + if (peersBuilder_ == null) { + peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + peers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + peers_ = null; + } + return peersBuilder_; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     * p2p get net info req
-     * 
- * - * Protobuf type {@code P2PGetNetInfoReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:P2PGetNetInfoReq) - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.class, cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - p2PType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_P2PGetNetInfoReq_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq build() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq result = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq(this); - result.p2PType_ = p2PType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.getDefaultInstance()) return this; - if (!other.getP2PType().isEmpty()) { - p2PType_ = other.p2PType_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object p2PType_ = ""; - /** - * string p2pType = 1; - * @return The p2pType. - */ - public java.lang.String getP2PType() { - java.lang.Object ref = p2PType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - p2PType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string p2pType = 1; - * @return The bytes for p2pType. - */ - public com.google.protobuf.ByteString - getP2PTypeBytes() { - java.lang.Object ref = p2PType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - p2PType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string p2pType = 1; - * @param value The p2pType to set. - * @return This builder for chaining. - */ - public Builder setP2PType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - p2PType_ = value; - onChanged(); - return this; - } - /** - * string p2pType = 1; - * @return This builder for chaining. - */ - public Builder clearP2PType() { - - p2PType_ = getDefaultInstance().getP2PType(); - onChanged(); - return this; - } - /** - * string p2pType = 1; - * @param value The bytes for p2pType to set. - * @return This builder for chaining. - */ - public Builder setP2PTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - p2PType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:P2PGetNetInfoReq) - } + // @@protoc_insertion_point(builder_scope:PeersReply) + } - // @@protoc_insertion_point(class_scope:P2PGetNetInfoReq) - private static final cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq(); - } + // @@protoc_insertion_point(class_scope:PeersReply) + private static final cn.chain33.javasdk.model.protobuf.P2pService.PeersReply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.PeersReply(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public P2PGetNetInfoReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new P2PGetNetInfoReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeersReply parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PeersReply(input, extensionRegistry); + } + }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - } + public interface PeersInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:PeersInfo) + com.google.protobuf.MessageOrBuilder { - public interface NodeNetInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:NodeNetInfo) - com.google.protobuf.MessageOrBuilder { + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); - /** - * string externaladdr = 1; - * @return The externaladdr. - */ - java.lang.String getExternaladdr(); - /** - * string externaladdr = 1; - * @return The bytes for externaladdr. - */ - com.google.protobuf.ByteString - getExternaladdrBytes(); + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); - /** - * string localaddr = 2; - * @return The localaddr. - */ - java.lang.String getLocaladdr(); - /** - * string localaddr = 2; - * @return The bytes for localaddr. - */ - com.google.protobuf.ByteString - getLocaladdrBytes(); + /** + * string ip = 2; + * + * @return The ip. + */ + java.lang.String getIp(); - /** - * bool service = 3; - * @return The service. - */ - boolean getService(); + /** + * string ip = 2; + * + * @return The bytes for ip. + */ + com.google.protobuf.ByteString getIpBytes(); - /** - * int32 outbounds = 4; - * @return The outbounds. - */ - int getOutbounds(); + /** + * int32 port = 3; + * + * @return The port. + */ + int getPort(); - /** - * int32 inbounds = 5; - * @return The inbounds. - */ - int getInbounds(); + /** + * string softversion = 4; + * + * @return The softversion. + */ + java.lang.String getSoftversion(); - /** - * int32 routingtable = 6; - * @return The routingtable. - */ - int getRoutingtable(); + /** + * string softversion = 4; + * + * @return The bytes for softversion. + */ + com.google.protobuf.ByteString getSoftversionBytes(); - /** - * int32 peerstore = 7; - * @return The peerstore. - */ - int getPeerstore(); + /** + * int32 p2pversion = 5; + * + * @return The p2pversion. + */ + int getP2Pversion(); + } /** - * string ratein = 8; - * @return The ratein. - */ - java.lang.String getRatein(); - /** - * string ratein = 8; - * @return The bytes for ratein. + * Protobuf type {@code PeersInfo} */ - com.google.protobuf.ByteString - getRateinBytes(); + public static final class PeersInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:PeersInfo) + PeersInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * string rateout = 9; - * @return The rateout. - */ - java.lang.String getRateout(); - /** - * string rateout = 9; - * @return The bytes for rateout. - */ - com.google.protobuf.ByteString - getRateoutBytes(); + // Use PeersInfo.newBuilder() to construct. + private PeersInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * string ratetotal = 10; - * @return The ratetotal. - */ - java.lang.String getRatetotal(); - /** - * string ratetotal = 10; - * @return The bytes for ratetotal. - */ - com.google.protobuf.ByteString - getRatetotalBytes(); - } - /** - *
-   **
-   *当前节点的网络信息
-   * 
- * - * Protobuf type {@code NodeNetInfo} - */ - public static final class NodeNetInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:NodeNetInfo) - NodeNetInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeNetInfo.newBuilder() to construct. - private NodeNetInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeNetInfo() { - externaladdr_ = ""; - localaddr_ = ""; - ratein_ = ""; - rateout_ = ""; - ratetotal_ = ""; - } + private PeersInfo() { + name_ = ""; + ip_ = ""; + softversion_ = ""; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeNetInfo(); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PeersInfo(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeNetInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - externaladdr_ = s; - break; + private PeersInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - localaddr_ = s; - break; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ip_ = s; + break; + } + case 24: { + + port_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + softversion_ = s; + break; + } + case 40: { + + p2Pversion_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - case 24: { + } - service_ = input.readBool(); - break; - } - case 32: { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_descriptor; + } - outbounds_ = input.readInt32(); - break; - } - case 40: { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder.class); + } - inbounds_ = input.readInt32(); - break; - } - case 48: { + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; - routingtable_ = input.readInt32(); - break; + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; } - case 56: { + } - peerstore_ = input.readInt32(); - break; + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + } - ratein_ = s; - break; + public static final int IP_FIELD_NUMBER = 2; + private volatile java.lang.Object ip_; + + /** + * string ip = 2; + * + * @return The ip. + */ + @java.lang.Override + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); + } - rateout_ = s; - break; + /** + * string ip = 2; + * + * @return The bytes for ip. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + } - ratetotal_ = s; - break; + public static final int PORT_FIELD_NUMBER = 3; + private int port_; + + /** + * int32 port = 3; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int SOFTVERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object softversion_; + + /** + * string softversion = 4; + * + * @return The softversion. + */ + @java.lang.Override + public java.lang.String getSoftversion() { + java.lang.Object ref = softversion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + softversion_ = s; + return s; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + } + + /** + * string softversion = 4; + * + * @return The bytes for softversion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSoftversionBytes() { + java.lang.Object ref = softversion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + softversion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - } } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.Builder.class); - } + public static final int P2PVERSION_FIELD_NUMBER = 5; + private int p2Pversion_; - public static final int EXTERNALADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object externaladdr_; - /** - * string externaladdr = 1; - * @return The externaladdr. - */ - public java.lang.String getExternaladdr() { - java.lang.Object ref = externaladdr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externaladdr_ = s; - return s; - } - } - /** - * string externaladdr = 1; - * @return The bytes for externaladdr. - */ - public com.google.protobuf.ByteString - getExternaladdrBytes() { - java.lang.Object ref = externaladdr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externaladdr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int32 p2pversion = 5; + * + * @return The p2pversion. + */ + @java.lang.Override + public int getP2Pversion() { + return p2Pversion_; + } - public static final int LOCALADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object localaddr_; - /** - * string localaddr = 2; - * @return The localaddr. - */ - public java.lang.String getLocaladdr() { - java.lang.Object ref = localaddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localaddr_ = s; - return s; - } - } - /** - * string localaddr = 2; - * @return The bytes for localaddr. - */ - public com.google.protobuf.ByteString - getLocaladdrBytes() { - java.lang.Object ref = localaddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localaddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private byte memoizedIsInitialized = -1; - public static final int SERVICE_FIELD_NUMBER = 3; - private boolean service_; - /** - * bool service = 3; - * @return The service. - */ - public boolean getService() { - return service_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static final int OUTBOUNDS_FIELD_NUMBER = 4; - private int outbounds_; - /** - * int32 outbounds = 4; - * @return The outbounds. - */ - public int getOutbounds() { - return outbounds_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int INBOUNDS_FIELD_NUMBER = 5; - private int inbounds_; - /** - * int32 inbounds = 5; - * @return The inbounds. - */ - public int getInbounds() { - return inbounds_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); + } + if (port_ != 0) { + output.writeInt32(3, port_); + } + if (!getSoftversionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, softversion_); + } + if (p2Pversion_ != 0) { + output.writeInt32(5, p2Pversion_); + } + unknownFields.writeTo(output); + } - public static final int ROUTINGTABLE_FIELD_NUMBER = 6; - private int routingtable_; - /** - * int32 routingtable = 6; - * @return The routingtable. - */ - public int getRoutingtable() { - return routingtable_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int PEERSTORE_FIELD_NUMBER = 7; - private int peerstore_; - /** - * int32 peerstore = 7; - * @return The peerstore. - */ - public int getPeerstore() { - return peerstore_; - } + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); + } + if (!getSoftversionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, softversion_); + } + if (p2Pversion_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, p2Pversion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int RATEIN_FIELD_NUMBER = 8; - private volatile java.lang.Object ratein_; - /** - * string ratein = 8; - * @return The ratein. - */ - public java.lang.String getRatein() { - java.lang.Object ref = ratein_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ratein_ = s; - return s; - } - } - /** - * string ratein = 8; - * @return The bytes for ratein. - */ - public com.google.protobuf.ByteString - getRateinBytes() { - java.lang.Object ref = ratein_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ratein_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getIp().equals(other.getIp())) + return false; + if (getPort() != other.getPort()) + return false; + if (!getSoftversion().equals(other.getSoftversion())) + return false; + if (getP2Pversion() != other.getP2Pversion()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + SOFTVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSoftversion().hashCode(); + hash = (37 * hash) + P2PVERSION_FIELD_NUMBER; + hash = (53 * hash) + getP2Pversion(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int RATEOUT_FIELD_NUMBER = 9; - private volatile java.lang.Object rateout_; - /** - * string rateout = 9; - * @return The rateout. - */ - public java.lang.String getRateout() { - java.lang.Object ref = rateout_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rateout_ = s; - return s; - } - } - /** - * string rateout = 9; - * @return The bytes for rateout. - */ - public com.google.protobuf.ByteString - getRateoutBytes() { - java.lang.Object ref = rateout_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rateout_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int RATETOTAL_FIELD_NUMBER = 10; - private volatile java.lang.Object ratetotal_; - /** - * string ratetotal = 10; - * @return The ratetotal. - */ - public java.lang.String getRatetotal() { - java.lang.Object ref = ratetotal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ratetotal_ = s; - return s; - } - } - /** - * string ratetotal = 10; - * @return The bytes for ratetotal. - */ - public com.google.protobuf.ByteString - getRatetotalBytes() { - java.lang.Object ref = ratetotal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ratetotal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getExternaladdrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externaladdr_); - } - if (!getLocaladdrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localaddr_); - } - if (service_ != false) { - output.writeBool(3, service_); - } - if (outbounds_ != 0) { - output.writeInt32(4, outbounds_); - } - if (inbounds_ != 0) { - output.writeInt32(5, inbounds_); - } - if (routingtable_ != 0) { - output.writeInt32(6, routingtable_); - } - if (peerstore_ != 0) { - output.writeInt32(7, peerstore_); - } - if (!getRateinBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ratein_); - } - if (!getRateoutBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, rateout_); - } - if (!getRatetotalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ratetotal_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExternaladdrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, externaladdr_); - } - if (!getLocaladdrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localaddr_); - } - if (service_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, service_); - } - if (outbounds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, outbounds_); - } - if (inbounds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, inbounds_); - } - if (routingtable_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, routingtable_); - } - if (peerstore_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, peerstore_); - } - if (!getRateinBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ratein_); - } - if (!getRateoutBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, rateout_); - } - if (!getRatetotalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ratetotal_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo) obj; - - if (!getExternaladdr() - .equals(other.getExternaladdr())) return false; - if (!getLocaladdr() - .equals(other.getLocaladdr())) return false; - if (getService() - != other.getService()) return false; - if (getOutbounds() - != other.getOutbounds()) return false; - if (getInbounds() - != other.getInbounds()) return false; - if (getRoutingtable() - != other.getRoutingtable()) return false; - if (getPeerstore() - != other.getPeerstore()) return false; - if (!getRatein() - .equals(other.getRatein())) return false; - if (!getRateout() - .equals(other.getRateout())) return false; - if (!getRatetotal() - .equals(other.getRatetotal())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXTERNALADDR_FIELD_NUMBER; - hash = (53 * hash) + getExternaladdr().hashCode(); - hash = (37 * hash) + LOCALADDR_FIELD_NUMBER; - hash = (53 * hash) + getLocaladdr().hashCode(); - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getService()); - hash = (37 * hash) + OUTBOUNDS_FIELD_NUMBER; - hash = (53 * hash) + getOutbounds(); - hash = (37 * hash) + INBOUNDS_FIELD_NUMBER; - hash = (53 * hash) + getInbounds(); - hash = (37 * hash) + ROUTINGTABLE_FIELD_NUMBER; - hash = (53 * hash) + getRoutingtable(); - hash = (37 * hash) + PEERSTORE_FIELD_NUMBER; - hash = (53 * hash) + getPeerstore(); - hash = (37 * hash) + RATEIN_FIELD_NUMBER; - hash = (53 * hash) + getRatein().hashCode(); - hash = (37 * hash) + RATEOUT_FIELD_NUMBER; - hash = (53 * hash) + getRateout().hashCode(); - hash = (37 * hash) + RATETOTAL_FIELD_NUMBER; - hash = (53 * hash) + getRatetotal().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     *当前节点的网络信息
-     * 
- * - * Protobuf type {@code NodeNetInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:NodeNetInfo) - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - externaladdr_ = ""; - - localaddr_ = ""; - - service_ = false; - - outbounds_ = 0; - - inbounds_ = 0; - - routingtable_ = 0; - - peerstore_ = 0; - - ratein_ = ""; - - rateout_ = ""; - - ratetotal_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_NodeNetInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo build() { - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo(this); - result.externaladdr_ = externaladdr_; - result.localaddr_ = localaddr_; - result.service_ = service_; - result.outbounds_ = outbounds_; - result.inbounds_ = inbounds_; - result.routingtable_ = routingtable_; - result.peerstore_ = peerstore_; - result.ratein_ = ratein_; - result.rateout_ = rateout_; - result.ratetotal_ = ratetotal_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.getDefaultInstance()) return this; - if (!other.getExternaladdr().isEmpty()) { - externaladdr_ = other.externaladdr_; - onChanged(); - } - if (!other.getLocaladdr().isEmpty()) { - localaddr_ = other.localaddr_; - onChanged(); - } - if (other.getService() != false) { - setService(other.getService()); - } - if (other.getOutbounds() != 0) { - setOutbounds(other.getOutbounds()); - } - if (other.getInbounds() != 0) { - setInbounds(other.getInbounds()); - } - if (other.getRoutingtable() != 0) { - setRoutingtable(other.getRoutingtable()); - } - if (other.getPeerstore() != 0) { - setPeerstore(other.getPeerstore()); - } - if (!other.getRatein().isEmpty()) { - ratein_ = other.ratein_; - onChanged(); - } - if (!other.getRateout().isEmpty()) { - rateout_ = other.rateout_; - onChanged(); - } - if (!other.getRatetotal().isEmpty()) { - ratetotal_ = other.ratetotal_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object externaladdr_ = ""; - /** - * string externaladdr = 1; - * @return The externaladdr. - */ - public java.lang.String getExternaladdr() { - java.lang.Object ref = externaladdr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externaladdr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string externaladdr = 1; - * @return The bytes for externaladdr. - */ - public com.google.protobuf.ByteString - getExternaladdrBytes() { - java.lang.Object ref = externaladdr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externaladdr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string externaladdr = 1; - * @param value The externaladdr to set. - * @return This builder for chaining. - */ - public Builder setExternaladdr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - externaladdr_ = value; - onChanged(); - return this; - } - /** - * string externaladdr = 1; - * @return This builder for chaining. - */ - public Builder clearExternaladdr() { - - externaladdr_ = getDefaultInstance().getExternaladdr(); - onChanged(); - return this; - } - /** - * string externaladdr = 1; - * @param value The bytes for externaladdr to set. - * @return This builder for chaining. - */ - public Builder setExternaladdrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - externaladdr_ = value; - onChanged(); - return this; - } - - private java.lang.Object localaddr_ = ""; - /** - * string localaddr = 2; - * @return The localaddr. - */ - public java.lang.String getLocaladdr() { - java.lang.Object ref = localaddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localaddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string localaddr = 2; - * @return The bytes for localaddr. - */ - public com.google.protobuf.ByteString - getLocaladdrBytes() { - java.lang.Object ref = localaddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - localaddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string localaddr = 2; - * @param value The localaddr to set. - * @return This builder for chaining. - */ - public Builder setLocaladdr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - localaddr_ = value; - onChanged(); - return this; - } - /** - * string localaddr = 2; - * @return This builder for chaining. - */ - public Builder clearLocaladdr() { - - localaddr_ = getDefaultInstance().getLocaladdr(); - onChanged(); - return this; - } - /** - * string localaddr = 2; - * @param value The bytes for localaddr to set. - * @return This builder for chaining. - */ - public Builder setLocaladdrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - localaddr_ = value; - onChanged(); - return this; - } - - private boolean service_ ; - /** - * bool service = 3; - * @return The service. - */ - public boolean getService() { - return service_; - } - /** - * bool service = 3; - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(boolean value) { - - service_ = value; - onChanged(); - return this; - } - /** - * bool service = 3; - * @return This builder for chaining. - */ - public Builder clearService() { - - service_ = false; - onChanged(); - return this; - } - - private int outbounds_ ; - /** - * int32 outbounds = 4; - * @return The outbounds. - */ - public int getOutbounds() { - return outbounds_; - } - /** - * int32 outbounds = 4; - * @param value The outbounds to set. - * @return This builder for chaining. - */ - public Builder setOutbounds(int value) { - - outbounds_ = value; - onChanged(); - return this; - } - /** - * int32 outbounds = 4; - * @return This builder for chaining. - */ - public Builder clearOutbounds() { - - outbounds_ = 0; - onChanged(); - return this; - } - - private int inbounds_ ; - /** - * int32 inbounds = 5; - * @return The inbounds. - */ - public int getInbounds() { - return inbounds_; - } - /** - * int32 inbounds = 5; - * @param value The inbounds to set. - * @return This builder for chaining. - */ - public Builder setInbounds(int value) { - - inbounds_ = value; - onChanged(); - return this; - } - /** - * int32 inbounds = 5; - * @return This builder for chaining. - */ - public Builder clearInbounds() { - - inbounds_ = 0; - onChanged(); - return this; - } - - private int routingtable_ ; - /** - * int32 routingtable = 6; - * @return The routingtable. - */ - public int getRoutingtable() { - return routingtable_; - } - /** - * int32 routingtable = 6; - * @param value The routingtable to set. - * @return This builder for chaining. - */ - public Builder setRoutingtable(int value) { - - routingtable_ = value; - onChanged(); - return this; - } - /** - * int32 routingtable = 6; - * @return This builder for chaining. - */ - public Builder clearRoutingtable() { - - routingtable_ = 0; - onChanged(); - return this; - } - - private int peerstore_ ; - /** - * int32 peerstore = 7; - * @return The peerstore. - */ - public int getPeerstore() { - return peerstore_; - } - /** - * int32 peerstore = 7; - * @param value The peerstore to set. - * @return This builder for chaining. - */ - public Builder setPeerstore(int value) { - - peerstore_ = value; - onChanged(); - return this; - } - /** - * int32 peerstore = 7; - * @return This builder for chaining. - */ - public Builder clearPeerstore() { - - peerstore_ = 0; - onChanged(); - return this; - } - - private java.lang.Object ratein_ = ""; - /** - * string ratein = 8; - * @return The ratein. - */ - public java.lang.String getRatein() { - java.lang.Object ref = ratein_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ratein_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ratein = 8; - * @return The bytes for ratein. - */ - public com.google.protobuf.ByteString - getRateinBytes() { - java.lang.Object ref = ratein_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ratein_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ratein = 8; - * @param value The ratein to set. - * @return This builder for chaining. - */ - public Builder setRatein( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ratein_ = value; - onChanged(); - return this; - } - /** - * string ratein = 8; - * @return This builder for chaining. - */ - public Builder clearRatein() { - - ratein_ = getDefaultInstance().getRatein(); - onChanged(); - return this; - } - /** - * string ratein = 8; - * @param value The bytes for ratein to set. - * @return This builder for chaining. - */ - public Builder setRateinBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ratein_ = value; - onChanged(); - return this; - } - - private java.lang.Object rateout_ = ""; - /** - * string rateout = 9; - * @return The rateout. - */ - public java.lang.String getRateout() { - java.lang.Object ref = rateout_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rateout_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string rateout = 9; - * @return The bytes for rateout. - */ - public com.google.protobuf.ByteString - getRateoutBytes() { - java.lang.Object ref = rateout_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rateout_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string rateout = 9; - * @param value The rateout to set. - * @return This builder for chaining. - */ - public Builder setRateout( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rateout_ = value; - onChanged(); - return this; - } - /** - * string rateout = 9; - * @return This builder for chaining. - */ - public Builder clearRateout() { - - rateout_ = getDefaultInstance().getRateout(); - onChanged(); - return this; - } - /** - * string rateout = 9; - * @param value The bytes for rateout to set. - * @return This builder for chaining. - */ - public Builder setRateoutBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rateout_ = value; - onChanged(); - return this; - } - - private java.lang.Object ratetotal_ = ""; - /** - * string ratetotal = 10; - * @return The ratetotal. - */ - public java.lang.String getRatetotal() { - java.lang.Object ref = ratetotal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ratetotal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ratetotal = 10; - * @return The bytes for ratetotal. - */ - public com.google.protobuf.ByteString - getRatetotalBytes() { - java.lang.Object ref = ratetotal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ratetotal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ratetotal = 10; - * @param value The ratetotal to set. - * @return This builder for chaining. - */ - public Builder setRatetotal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ratetotal_ = value; - onChanged(); - return this; - } - /** - * string ratetotal = 10; - * @return This builder for chaining. - */ - public Builder clearRatetotal() { - - ratetotal_ = getDefaultInstance().getRatetotal(); - onChanged(); - return this; - } - /** - * string ratetotal = 10; - * @param value The bytes for ratetotal to set. - * @return This builder for chaining. - */ - public Builder setRatetotalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ratetotal_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:NodeNetInfo) - } + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:NodeNetInfo) - private static final cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeNetInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeNetInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - } + /** + * Protobuf type {@code PeersInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:PeersInfo) + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_descriptor; + } - public interface PeersReplyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PeersReply) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.class, + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder.class); + } - /** - * repeated .PeersInfo peers = 1; - */ - java.util.List - getPeersList(); - /** - * repeated .PeersInfo peers = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getPeers(int index); - /** - * repeated .PeersInfo peers = 1; - */ - int getPeersCount(); - /** - * repeated .PeersInfo peers = 1; - */ - java.util.List - getPeersOrBuilderList(); - /** - * repeated .PeersInfo peers = 1; - */ - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder getPeersOrBuilder( - int index); - } - /** - * Protobuf type {@code PeersReply} - */ - public static final class PeersReply extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PeersReply) - PeersReplyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PeersReply.newBuilder() to construct. - private PeersReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PeersReply() { - peers_ = java.util.Collections.emptyList(); - } + // Construct using cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PeersReply(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PeersReply( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - peers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - peers_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - peers_ = java.util.Collections.unmodifiableList(peers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_descriptor; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.class, cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.Builder.class); - } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; - public static final int PEERS_FIELD_NUMBER = 1; - private java.util.List peers_; - /** - * repeated .PeersInfo peers = 1; - */ - public java.util.List getPeersList() { - return peers_; - } - /** - * repeated .PeersInfo peers = 1; - */ - public java.util.List - getPeersOrBuilderList() { - return peers_; - } - /** - * repeated .PeersInfo peers = 1; - */ - public int getPeersCount() { - return peers_.size(); - } - /** - * repeated .PeersInfo peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getPeers(int index) { - return peers_.get(index); - } - /** - * repeated .PeersInfo peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder getPeersOrBuilder( - int index) { - return peers_.get(index); - } + ip_ = ""; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + port_ = 0; - memoizedIsInitialized = 1; - return true; - } + softversion_ = ""; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < peers_.size(); i++) { - output.writeMessage(1, peers_.get(i)); - } - unknownFields.writeTo(output); - } + p2Pversion_ = 0; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < peers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, peers_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersReply)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply other = (cn.chain33.javasdk.model.protobuf.P2pService.PeersReply) obj; - - if (!getPeersList() - .equals(other.getPeersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPeersCount() > 0) { - hash = (37 * hash) + PEERS_FIELD_NUMBER; - hash = (53 * hash) + getPeersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance(); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo build() { + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.PeersReply prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo( + this); + result.name_ = name_; + result.ip_ = ip_; + result.port_ = port_; + result.softversion_ = softversion_; + result.p2Pversion_ = p2Pversion_; + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PeersReply} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PeersReply) - cn.chain33.javasdk.model.protobuf.P2pService.PeersReplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.class, cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPeersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (peersBuilder_ == null) { - peers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - peersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersReply_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply build() { - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply result = new cn.chain33.javasdk.model.protobuf.P2pService.PeersReply(this); - int from_bitField0_ = bitField0_; - if (peersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - peers_ = java.util.Collections.unmodifiableList(peers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.peers_ = peers_; - } else { - result.peers_ = peersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersReply) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.PeersReply)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.PeersReply other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.getDefaultInstance()) return this; - if (peersBuilder_ == null) { - if (!other.peers_.isEmpty()) { - if (peers_.isEmpty()) { - peers_ = other.peers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePeersIsMutable(); - peers_.addAll(other.peers_); - } - onChanged(); - } - } else { - if (!other.peers_.isEmpty()) { - if (peersBuilder_.isEmpty()) { - peersBuilder_.dispose(); - peersBuilder_ = null; - peers_ = other.peers_; - bitField0_ = (bitField0_ & ~0x00000001); - peersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPeersFieldBuilder() : null; - } else { - peersBuilder_.addAllMessages(other.peers_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.PeersReply) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List peers_ = - java.util.Collections.emptyList(); - private void ensurePeersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - peers_ = new java.util.ArrayList(peers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder> peersBuilder_; - - /** - * repeated .PeersInfo peers = 1; - */ - public java.util.List getPeersList() { - if (peersBuilder_ == null) { - return java.util.Collections.unmodifiableList(peers_); - } else { - return peersBuilder_.getMessageList(); - } - } - /** - * repeated .PeersInfo peers = 1; - */ - public int getPeersCount() { - if (peersBuilder_ == null) { - return peers_.size(); - } else { - return peersBuilder_.getCount(); - } - } - /** - * repeated .PeersInfo peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getPeers(int index) { - if (peersBuilder_ == null) { - return peers_.get(index); - } else { - return peersBuilder_.getMessage(index); - } - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder setPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.set(index, value); - onChanged(); - } else { - peersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder setPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.set(index, builderForValue.build()); - onChanged(); - } else { - peersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder addPeers(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.add(value); - onChanged(); - } else { - peersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder addPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.add(index, value); - onChanged(); - } else { - peersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder addPeers( - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.add(builderForValue.build()); - onChanged(); - } else { - peersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder addPeers( - int index, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.add(index, builderForValue.build()); - onChanged(); - } else { - peersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder addAllPeers( - java.lang.Iterable values) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, peers_); - onChanged(); - } else { - peersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder clearPeers() { - if (peersBuilder_ == null) { - peers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - peersBuilder_.clear(); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public Builder removePeers(int index) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.remove(index); - onChanged(); - } else { - peersBuilder_.remove(index); - } - return this; - } - /** - * repeated .PeersInfo peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder getPeersBuilder( - int index) { - return getPeersFieldBuilder().getBuilder(index); - } - /** - * repeated .PeersInfo peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder getPeersOrBuilder( - int index) { - if (peersBuilder_ == null) { - return peers_.get(index); } else { - return peersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .PeersInfo peers = 1; - */ - public java.util.List - getPeersOrBuilderList() { - if (peersBuilder_ != null) { - return peersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(peers_); - } - } - /** - * repeated .PeersInfo peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder addPeersBuilder() { - return getPeersFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance()); - } - /** - * repeated .PeersInfo peers = 1; - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder addPeersBuilder( - int index) { - return getPeersFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance()); - } - /** - * repeated .PeersInfo peers = 1; - */ - public java.util.List - getPeersBuilderList() { - return getPeersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder> - getPeersFieldBuilder() { - if (peersBuilder_ == null) { - peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder>( - peers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - peers_ = null; - } - return peersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PeersReply) - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - // @@protoc_insertion_point(class_scope:PeersReply) - private static final cn.chain33.javasdk.model.protobuf.P2pService.PeersReply DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.PeersReply(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersReply getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeersReply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PeersReply(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface PeersInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:PeersInfo) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getSoftversion().isEmpty()) { + softversion_ = other.softversion_; + onChanged(); + } + if (other.getP2Pversion() != 0) { + setP2Pversion(other.getP2Pversion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * string ip = 2; - * @return The ip. - */ - java.lang.String getIp(); - /** - * string ip = 2; - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - * int32 port = 3; - * @return The port. - */ - int getPort(); + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * string softversion = 4; - * @return The softversion. - */ - java.lang.String getSoftversion(); - /** - * string softversion = 4; - * @return The bytes for softversion. - */ - com.google.protobuf.ByteString - getSoftversionBytes(); + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int32 p2pversion = 5; - * @return The p2pversion. - */ - int getP2Pversion(); - } - /** - * Protobuf type {@code PeersInfo} - */ - public static final class PeersInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PeersInfo) - PeersInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PeersInfo.newBuilder() to construct. - private PeersInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PeersInfo() { - name_ = ""; - ip_ = ""; - softversion_ = ""; - } + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PeersInfo(); - } + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PeersInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } - name_ = s; - break; + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ip_ = s; - break; + private java.lang.Object ip_ = ""; + + /** + * string ip = 2; + * + * @return The ip. + */ + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - case 24: { - port_ = input.readInt32(); - break; + /** + * string ip = 2; + * + * @return The bytes for ip. + */ + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - softversion_ = s; - break; + /** + * string ip = 2; + * + * @param value + * The ip to set. + * + * @return This builder for chaining. + */ + public Builder setIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ip_ = value; + onChanged(); + return this; } - case 40: { - p2Pversion_ = input.readInt32(); - break; + /** + * string ip = 2; + * + * @return This builder for chaining. + */ + public Builder clearIp() { + + ip_ = getDefaultInstance().getIp(); + onChanged(); + return this; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + /** + * string ip = 2; + * + * @param value + * The bytes for ip to set. + * + * @return This builder for chaining. + */ + public Builder setIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ip_ = value; + onChanged(); + return this; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder.class); - } + private int port_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int32 port = 3; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } - public static final int IP_FIELD_NUMBER = 2; - private volatile java.lang.Object ip_; - /** - * string ip = 2; - * @return The ip. - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } - } - /** - * string ip = 2; - * @return The bytes for ip. - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int32 port = 3; + * + * @param value + * The port to set. + * + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } - public static final int PORT_FIELD_NUMBER = 3; - private int port_; - /** - * int32 port = 3; - * @return The port. - */ - public int getPort() { - return port_; - } + /** + * int32 port = 3; + * + * @return This builder for chaining. + */ + public Builder clearPort() { - public static final int SOFTVERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object softversion_; - /** - * string softversion = 4; - * @return The softversion. - */ - public java.lang.String getSoftversion() { - java.lang.Object ref = softversion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - softversion_ = s; - return s; - } - } - /** - * string softversion = 4; - * @return The bytes for softversion. - */ - public com.google.protobuf.ByteString - getSoftversionBytes() { - java.lang.Object ref = softversion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - softversion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + port_ = 0; + onChanged(); + return this; + } - public static final int P2PVERSION_FIELD_NUMBER = 5; - private int p2Pversion_; - /** - * int32 p2pversion = 5; - * @return The p2pversion. - */ - public int getP2Pversion() { - return p2Pversion_; - } + private java.lang.Object softversion_ = ""; + + /** + * string softversion = 4; + * + * @return The softversion. + */ + public java.lang.String getSoftversion() { + java.lang.Object ref = softversion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + softversion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string softversion = 4; + * + * @return The bytes for softversion. + */ + public com.google.protobuf.ByteString getSoftversionBytes() { + java.lang.Object ref = softversion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + softversion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string softversion = 4; + * + * @param value + * The softversion to set. + * + * @return This builder for chaining. + */ + public Builder setSoftversion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + softversion_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getIpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); - } - if (port_ != 0) { - output.writeInt32(3, port_); - } - if (!getSoftversionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, softversion_); - } - if (p2Pversion_ != 0) { - output.writeInt32(5, p2Pversion_); - } - unknownFields.writeTo(output); - } + /** + * string softversion = 4; + * + * @return This builder for chaining. + */ + public Builder clearSoftversion() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getIpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, port_); - } - if (!getSoftversionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, softversion_); - } - if (p2Pversion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, p2Pversion_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + softversion_ = getDefaultInstance().getSoftversion(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo other = (cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getIp() - .equals(other.getIp())) return false; - if (getPort() - != other.getPort()) return false; - if (!getSoftversion() - .equals(other.getSoftversion())) return false; - if (getP2Pversion() - != other.getP2Pversion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string softversion = 4; + * + * @param value + * The bytes for softversion to set. + * + * @return This builder for chaining. + */ + public Builder setSoftversionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + softversion_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (37 * hash) + SOFTVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSoftversion().hashCode(); - hash = (37 * hash) + P2PVERSION_FIELD_NUMBER; - hash = (53 * hash) + getP2Pversion(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private int p2Pversion_; - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int32 p2pversion = 5; + * + * @return The p2pversion. + */ + @java.lang.Override + public int getP2Pversion() { + return p2Pversion_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * int32 p2pversion = 5; + * + * @param value + * The p2pversion to set. + * + * @return This builder for chaining. + */ + public Builder setP2Pversion(int value) { + + p2Pversion_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PeersInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PeersInfo) - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.class, cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - ip_ = ""; - - port_ = 0; - - softversion_ = ""; - - p2Pversion_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.internal_static_PeersInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo build() { - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo result = new cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo(this); - result.name_ = name_; - result.ip_ = ip_; - result.port_ = port_; - result.softversion_ = softversion_; - result.p2Pversion_ = p2Pversion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - if (!other.getSoftversion().isEmpty()) { - softversion_ = other.softversion_; - onChanged(); - } - if (other.getP2Pversion() != 0) { - setP2Pversion(other.getP2Pversion()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object ip_ = ""; - /** - * string ip = 2; - * @return The ip. - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ip = 2; - * @return The bytes for ip. - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ip = 2; - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ip_ = value; - onChanged(); - return this; - } - /** - * string ip = 2; - * @return This builder for chaining. - */ - public Builder clearIp() { - - ip_ = getDefaultInstance().getIp(); - onChanged(); - return this; - } - /** - * string ip = 2; - * @param value The bytes for ip to set. - * @return This builder for chaining. - */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ip_ = value; - onChanged(); - return this; - } - - private int port_ ; - /** - * int32 port = 3; - * @return The port. - */ - public int getPort() { - return port_; - } - /** - * int32 port = 3; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - * int32 port = 3; - * @return This builder for chaining. - */ - public Builder clearPort() { - - port_ = 0; - onChanged(); - return this; - } - - private java.lang.Object softversion_ = ""; - /** - * string softversion = 4; - * @return The softversion. - */ - public java.lang.String getSoftversion() { - java.lang.Object ref = softversion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - softversion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string softversion = 4; - * @return The bytes for softversion. - */ - public com.google.protobuf.ByteString - getSoftversionBytes() { - java.lang.Object ref = softversion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - softversion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string softversion = 4; - * @param value The softversion to set. - * @return This builder for chaining. - */ - public Builder setSoftversion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - softversion_ = value; - onChanged(); - return this; - } - /** - * string softversion = 4; - * @return This builder for chaining. - */ - public Builder clearSoftversion() { - - softversion_ = getDefaultInstance().getSoftversion(); - onChanged(); - return this; - } - /** - * string softversion = 4; - * @param value The bytes for softversion to set. - * @return This builder for chaining. - */ - public Builder setSoftversionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - softversion_ = value; - onChanged(); - return this; - } - - private int p2Pversion_ ; - /** - * int32 p2pversion = 5; - * @return The p2pversion. - */ - public int getP2Pversion() { - return p2Pversion_; - } - /** - * int32 p2pversion = 5; - * @param value The p2pversion to set. - * @return This builder for chaining. - */ - public Builder setP2Pversion(int value) { - - p2Pversion_ = value; - onChanged(); - return this; - } - /** - * int32 p2pversion = 5; - * @return This builder for chaining. - */ - public Builder clearP2Pversion() { - - p2Pversion_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PeersInfo) - } + /** + * int32 p2pversion = 5; + * + * @return This builder for chaining. + */ + public Builder clearP2Pversion() { - // @@protoc_insertion_point(class_scope:PeersInfo) - private static final cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo(); - } + p2Pversion_ = 0; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeersInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PeersInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:PeersInfo) + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:PeersInfo) + private static final cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo(); + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetPeerInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetPeerInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PPeerInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PPeerInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PVersion_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PVersion_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PVerAck_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PVerAck_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PPing_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PPing_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PPong_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PPong_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetAddr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetAddr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PAddr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PAddr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PAddrList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PAddrList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PExternalInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PExternalInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetBlocks_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetBlocks_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetMempool_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetMempool_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PInv_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PInv_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Inventory_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Inventory_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PRoute_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PRoute_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_LightBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_LightBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_LightTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_LightTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PTxReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PTxReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PBlockTxReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PBlockTxReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PBlockTxReply_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PBlockTxReply_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PQueryData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PQueryData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Versions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Versions_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BroadCastData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BroadCastData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetHeaders_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetHeaders_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PHeaders_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PHeaders_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_InvData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_InvData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_InvDatas_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_InvDatas_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Peer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Peer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PeerList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PeerList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetPeerReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetPeerReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_P2PGetNetInfoReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_P2PGetNetInfoReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_NodeNetInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_NodeNetInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PeersReply_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PeersReply_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PeersInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PeersInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\tp2p.proto\032\021transaction.proto\032\014common.p" + - "roto\032\020blockchain.proto\"!\n\016P2PGetPeerInfo" + - "\022\017\n\007version\030\001 \001(\005\"\246\001\n\013P2PPeerInfo\022\014\n\004add" + - "r\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\023\n\013m" + - "empoolSize\030\004 \001(\005\022\027\n\006header\030\005 \001(\0132\007.Heade" + - "r\022\017\n\007version\030\006 \001(\t\022\026\n\016localDBVersion\030\007 \001" + - "(\t\022\026\n\016storeDBVersion\030\010 \001(\t\"\234\001\n\nP2PVersio" + - "n\022\017\n\007version\030\001 \001(\005\022\017\n\007service\030\002 \001(\003\022\021\n\tt" + - "imestamp\030\003 \001(\003\022\020\n\010addrRecv\030\004 \001(\t\022\020\n\010addr" + - "From\030\005 \001(\t\022\r\n\005nonce\030\006 \001(\003\022\021\n\tuserAgent\030\007" + - " \001(\t\022\023\n\013startHeight\030\010 \001(\003\"<\n\tP2PVerAck\022\017" + - "\n\007version\030\001 \001(\005\022\017\n\007service\030\002 \001(\003\022\r\n\005nonc" + - "e\030\003 \001(\003\"N\n\007P2PPing\022\r\n\005nonce\030\001 \001(\003\022\014\n\004add" + - "r\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\030\n\004sign\030\004 \001(\0132\n.Si" + - "gnature\"\030\n\007P2PPong\022\r\n\005nonce\030\001 \001(\003\"\033\n\nP2P" + - "GetAddr\022\r\n\005nonce\030\001 \001(\003\"*\n\007P2PAddr\022\r\n\005non" + - "ce\030\001 \001(\003\022\020\n\010addrlist\030\002 \003(\t\"<\n\013P2PAddrLis" + - "t\022\r\n\005nonce\030\001 \001(\003\022\036\n\010peerinfo\030\002 \003(\0132\014.P2P" + - "PeerInfo\"2\n\017P2PExternalInfo\022\014\n\004addr\030\001 \001(" + - "\t\022\021\n\tisoutside\030\002 \001(\010\"G\n\014P2PGetBlocks\022\017\n\007" + - "version\030\001 \001(\005\022\023\n\013startHeight\030\002 \001(\003\022\021\n\ten" + - "dHeight\030\003 \001(\003\" \n\rP2PGetMempool\022\017\n\007versio" + - "n\030\001 \001(\005\"\"\n\006P2PInv\022\030\n\004invs\030\001 \003(\0132\n.Invent" + - "ory\"5\n\tInventory\022\n\n\002ty\030\001 \001(\005\022\014\n\004hash\030\002 \001" + - "(\014\022\016\n\006height\030\003 \001(\003\"7\n\nP2PGetData\022\017\n\007vers" + - "ion\030\001 \001(\005\022\030\n\004invs\030\002 \003(\0132\n.Inventory\"\027\n\010P" + - "2PRoute\022\013\n\003TTL\030\001 \001(\005\";\n\005P2PTx\022\030\n\002tx\030\001 \001(" + - "\0132\014.Transaction\022\030\n\005route\030\002 \001(\0132\t.P2PRout" + - "e\"!\n\010P2PBlock\022\025\n\005block\030\001 \001(\0132\006.Block\"e\n\n" + - "LightBlock\022\014\n\004size\030\001 \001(\003\022\027\n\006header\030\002 \001(\013" + - "2\007.Header\022\035\n\007minerTx\030\003 \001(\0132\014.Transaction" + - "\022\021\n\tsTxHashes\030\004 \003(\t\"3\n\007LightTx\022\016\n\006txHash" + - "\030\001 \001(\014\022\030\n\005route\030\002 \001(\0132\t.P2PRoute\"\032\n\010P2PT" + - "xReq\022\016\n\006txHash\030\001 \001(\014\"5\n\rP2PBlockTxReq\022\021\n" + - "\tblockHash\030\001 \001(\t\022\021\n\ttxIndices\030\002 \003(\005\"R\n\017P" + - "2PBlockTxReply\022\021\n\tblockHash\030\001 \001(\t\022\021\n\ttxI" + - "ndices\030\002 \003(\005\022\031\n\003txs\030\003 \003(\0132\014.Transaction\"" + - "Y\n\014P2PQueryData\022\032\n\005txReq\030\001 \001(\0132\t.P2PTxRe" + - "qH\000\022$\n\nblockTxReq\030\002 \001(\0132\016.P2PBlockTxReqH" + - "\000B\007\n\005value\"E\n\010Versions\022\022\n\np2pversion\030\001 \001" + - "(\005\022\023\n\013softversion\030\002 \001(\t\022\020\n\010peername\030\003 \001(" + - "\t\"\202\002\n\rBroadCastData\022\024\n\002tx\030\001 \001(\0132\006.P2PTxH" + - "\000\022\032\n\005block\030\002 \001(\0132\t.P2PBlockH\000\022\030\n\004ping\030\003 " + - "\001(\0132\010.P2PPingH\000\022\034\n\007version\030\004 \001(\0132\t.Versi" + - "onsH\000\022\030\n\004ltTx\030\005 \001(\0132\010.LightTxH\000\022\036\n\007ltBlo" + - "ck\030\006 \001(\0132\013.LightBlockH\000\022\036\n\005query\030\007 \001(\0132\r" + - ".P2PQueryDataH\000\022$\n\010blockRep\030\010 \001(\0132\020.P2PB" + - "lockTxReplyH\000B\007\n\005value\"H\n\rP2PGetHeaders\022" + - "\017\n\007version\030\001 \001(\005\022\023\n\013startHeight\030\002 \001(\003\022\021\n" + - "\tendHeight\030\003 \001(\003\"&\n\nP2PHeaders\022\030\n\007header" + - "s\030\001 \003(\0132\007.Header\"S\n\007InvData\022\032\n\002tx\030\001 \001(\0132" + - "\014.TransactionH\000\022\027\n\005block\030\002 \001(\0132\006.BlockH\000" + - "\022\n\n\002ty\030\003 \001(\005B\007\n\005value\"#\n\010InvDatas\022\027\n\005ite" + - "ms\030\001 \003(\0132\010.InvData\"\255\001\n\004Peer\022\014\n\004addr\030\001 \001(" + - "\t\022\014\n\004port\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\014\n\004self\030\004 " + - "\001(\010\022\023\n\013mempoolSize\030\005 \001(\005\022\027\n\006header\030\006 \001(\013" + - "2\007.Header\022\017\n\007version\030\007 \001(\t\022\026\n\016localDBVer" + - "sion\030\010 \001(\t\022\026\n\016storeDBVersion\030\t \001(\t\" \n\010Pe" + - "erList\022\024\n\005peers\030\001 \003(\0132\005.Peer\" \n\rP2PGetPe" + - "erReq\022\017\n\007p2pType\030\001 \001(\t\"#\n\020P2PGetNetInfoR" + - "eq\022\017\n\007p2pType\030\001 \001(\t\"\311\001\n\013NodeNetInfo\022\024\n\014e" + - "xternaladdr\030\001 \001(\t\022\021\n\tlocaladdr\030\002 \001(\t\022\017\n\007" + - "service\030\003 \001(\010\022\021\n\toutbounds\030\004 \001(\005\022\020\n\010inbo" + - "unds\030\005 \001(\005\022\024\n\014routingtable\030\006 \001(\005\022\021\n\tpeer" + - "store\030\007 \001(\005\022\016\n\006ratein\030\010 \001(\t\022\017\n\007rateout\030\t" + - " \001(\t\022\021\n\tratetotal\030\n \001(\t\"\'\n\nPeersReply\022\031\n" + - "\005peers\030\001 \003(\0132\n.PeersInfo\"\\\n\tPeersInfo\022\014\n" + - "\004name\030\001 \001(\t\022\n\n\002ip\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\023\n" + - "\013softversion\030\004 \001(\t\022\022\n\np2pversion\030\005 \001(\0052\300" + - "\005\n\013p2pgservice\022\037\n\013BroadCastTx\022\006.P2PTx\032\006." + - "Reply\"\000\022%\n\016BroadCastBlock\022\t.P2PBlock\032\006.R" + - "eply\"\000\022\034\n\004Ping\022\010.P2PPing\032\010.P2PPong\"\000\022\"\n\007" + - "GetAddr\022\013.P2PGetAddr\032\010.P2PAddr\"\000\022*\n\013GetA" + - "ddrList\022\013.P2PGetAddr\032\014.P2PAddrList\"\000\022$\n\007" + - "Version\022\013.P2PVersion\032\n.P2PVerAck\"\000\022&\n\010Ve" + - "rsion2\022\013.P2PVersion\032\013.P2PVersion\"\000\022!\n\013So" + - "ftVersion\022\010.P2PPing\032\006.Reply\"\000\022%\n\tGetBloc" + - "ks\022\r.P2PGetBlocks\032\007.P2PInv\"\000\022\'\n\nGetMemPo" + - "ol\022\016.P2PGetMempool\032\007.P2PInv\"\000\022%\n\007GetData" + - "\022\013.P2PGetData\032\t.InvDatas\"\0000\001\022+\n\nGetHeade" + - "rs\022\016.P2PGetHeaders\032\013.P2PHeaders\"\000\022.\n\013Get" + - "PeerInfo\022\017.P2PGetPeerInfo\032\014.P2PPeerInfo\"" + - "\000\022/\n\020ServerStreamRead\022\016.BroadCastData\032\007." + - "ReqNil\"\000(\001\0220\n\020ServerStreamSend\022\010.P2PPing" + - "\032\016.BroadCastData\"\0000\001\022\'\n\016CollectInPeers\022\010" + - ".P2PPing\032\t.PeerList\"\000\022*\n\017CollectInPeers2" + - "\022\010.P2PPing\032\013.PeersReply\"\000B/\n!cn.chain33." + - "javasdk.model.protobufB\nP2pServiceb\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(), - }); - internal_static_P2PGetPeerInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_P2PGetPeerInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetPeerInfo_descriptor, - new java.lang.String[] { "Version", }); - internal_static_P2PPeerInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_P2PPeerInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PPeerInfo_descriptor, - new java.lang.String[] { "Addr", "Port", "Name", "MempoolSize", "Header", "Version", "LocalDBVersion", "StoreDBVersion", }); - internal_static_P2PVersion_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_P2PVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PVersion_descriptor, - new java.lang.String[] { "Version", "Service", "Timestamp", "AddrRecv", "AddrFrom", "Nonce", "UserAgent", "StartHeight", }); - internal_static_P2PVerAck_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_P2PVerAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PVerAck_descriptor, - new java.lang.String[] { "Version", "Service", "Nonce", }); - internal_static_P2PPing_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_P2PPing_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PPing_descriptor, - new java.lang.String[] { "Nonce", "Addr", "Port", "Sign", }); - internal_static_P2PPong_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_P2PPong_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PPong_descriptor, - new java.lang.String[] { "Nonce", }); - internal_static_P2PGetAddr_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_P2PGetAddr_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetAddr_descriptor, - new java.lang.String[] { "Nonce", }); - internal_static_P2PAddr_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_P2PAddr_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PAddr_descriptor, - new java.lang.String[] { "Nonce", "Addrlist", }); - internal_static_P2PAddrList_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_P2PAddrList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PAddrList_descriptor, - new java.lang.String[] { "Nonce", "Peerinfo", }); - internal_static_P2PExternalInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_P2PExternalInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PExternalInfo_descriptor, - new java.lang.String[] { "Addr", "Isoutside", }); - internal_static_P2PGetBlocks_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_P2PGetBlocks_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetBlocks_descriptor, - new java.lang.String[] { "Version", "StartHeight", "EndHeight", }); - internal_static_P2PGetMempool_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_P2PGetMempool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetMempool_descriptor, - new java.lang.String[] { "Version", }); - internal_static_P2PInv_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_P2PInv_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PInv_descriptor, - new java.lang.String[] { "Invs", }); - internal_static_Inventory_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_Inventory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Inventory_descriptor, - new java.lang.String[] { "Ty", "Hash", "Height", }); - internal_static_P2PGetData_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_P2PGetData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetData_descriptor, - new java.lang.String[] { "Version", "Invs", }); - internal_static_P2PRoute_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_P2PRoute_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PRoute_descriptor, - new java.lang.String[] { "TTL", }); - internal_static_P2PTx_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_P2PTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PTx_descriptor, - new java.lang.String[] { "Tx", "Route", }); - internal_static_P2PBlock_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_P2PBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PBlock_descriptor, - new java.lang.String[] { "Block", }); - internal_static_LightBlock_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_LightBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_LightBlock_descriptor, - new java.lang.String[] { "Size", "Header", "MinerTx", "STxHashes", }); - internal_static_LightTx_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_LightTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_LightTx_descriptor, - new java.lang.String[] { "TxHash", "Route", }); - internal_static_P2PTxReq_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_P2PTxReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PTxReq_descriptor, - new java.lang.String[] { "TxHash", }); - internal_static_P2PBlockTxReq_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_P2PBlockTxReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PBlockTxReq_descriptor, - new java.lang.String[] { "BlockHash", "TxIndices", }); - internal_static_P2PBlockTxReply_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_P2PBlockTxReply_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PBlockTxReply_descriptor, - new java.lang.String[] { "BlockHash", "TxIndices", "Txs", }); - internal_static_P2PQueryData_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_P2PQueryData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PQueryData_descriptor, - new java.lang.String[] { "TxReq", "BlockTxReq", "Value", }); - internal_static_Versions_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_Versions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Versions_descriptor, - new java.lang.String[] { "P2Pversion", "Softversion", "Peername", }); - internal_static_BroadCastData_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_BroadCastData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BroadCastData_descriptor, - new java.lang.String[] { "Tx", "Block", "Ping", "Version", "LtTx", "LtBlock", "Query", "BlockRep", "Value", }); - internal_static_P2PGetHeaders_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_P2PGetHeaders_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetHeaders_descriptor, - new java.lang.String[] { "Version", "StartHeight", "EndHeight", }); - internal_static_P2PHeaders_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_P2PHeaders_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PHeaders_descriptor, - new java.lang.String[] { "Headers", }); - internal_static_InvData_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_InvData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_InvData_descriptor, - new java.lang.String[] { "Tx", "Block", "Ty", "Value", }); - internal_static_InvDatas_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_InvDatas_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_InvDatas_descriptor, - new java.lang.String[] { "Items", }); - internal_static_Peer_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_Peer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Peer_descriptor, - new java.lang.String[] { "Addr", "Port", "Name", "Self", "MempoolSize", "Header", "Version", "LocalDBVersion", "StoreDBVersion", }); - internal_static_PeerList_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_PeerList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PeerList_descriptor, - new java.lang.String[] { "Peers", }); - internal_static_P2PGetPeerReq_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_P2PGetPeerReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetPeerReq_descriptor, - new java.lang.String[] { "P2PType", }); - internal_static_P2PGetNetInfoReq_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_P2PGetNetInfoReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_P2PGetNetInfoReq_descriptor, - new java.lang.String[] { "P2PType", }); - internal_static_NodeNetInfo_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_NodeNetInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_NodeNetInfo_descriptor, - new java.lang.String[] { "Externaladdr", "Localaddr", "Service", "Outbounds", "Inbounds", "Routingtable", "Peerstore", "Ratein", "Rateout", "Ratetotal", }); - internal_static_PeersReply_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_PeersReply_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PeersReply_descriptor, - new java.lang.String[] { "Peers", }); - internal_static_PeersInfo_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_PeersInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PeersInfo_descriptor, - new java.lang.String[] { "Name", "Ip", "Port", "Softversion", "P2Pversion", }); - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) + public static cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeersInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PeersInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.P2pService.PeersInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetPeerInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetPeerInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PPeerInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PPeerInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PVersion_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PVerAck_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PVerAck_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PPing_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PPing_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PPong_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PPong_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetAddr_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetAddr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PAddr_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PAddr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PAddrList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PAddrList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PExternalInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PExternalInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetBlocks_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetBlocks_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetMempool_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetMempool_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PInv_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PInv_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Inventory_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Inventory_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetData_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PRoute_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PRoute_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PBlock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_LightBlock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_LightBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_LightTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_LightTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PTxReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PTxReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PBlockTxReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PBlockTxReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PBlockTxReply_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PBlockTxReply_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PQueryData_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PQueryData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Versions_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Versions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BroadCastData_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BroadCastData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetHeaders_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetHeaders_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PHeaders_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PHeaders_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_InvData_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_InvData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_InvDatas_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_InvDatas_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Peer_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Peer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_PeerList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PeerList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetPeerReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetPeerReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_P2PGetNetInfoReq_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_P2PGetNetInfoReq_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_NodeNetInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_NodeNetInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_PeersReply_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PeersReply_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_PeersInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PeersInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\tp2p.proto\032\021transaction.proto\032\014common.p" + + "roto\032\020blockchain.proto\"!\n\016P2PGetPeerInfo" + + "\022\017\n\007version\030\001 \001(\005\"\246\001\n\013P2PPeerInfo\022\014\n\004add" + + "r\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\023\n\013m" + + "empoolSize\030\004 \001(\005\022\027\n\006header\030\005 \001(\0132\007.Heade" + + "r\022\017\n\007version\030\006 \001(\t\022\026\n\016localDBVersion\030\007 \001" + + "(\t\022\026\n\016storeDBVersion\030\010 \001(\t\"\234\001\n\nP2PVersio" + + "n\022\017\n\007version\030\001 \001(\005\022\017\n\007service\030\002 \001(\003\022\021\n\tt" + + "imestamp\030\003 \001(\003\022\020\n\010addrRecv\030\004 \001(\t\022\020\n\010addr" + + "From\030\005 \001(\t\022\r\n\005nonce\030\006 \001(\003\022\021\n\tuserAgent\030\007" + + " \001(\t\022\023\n\013startHeight\030\010 \001(\003\"<\n\tP2PVerAck\022\017" + + "\n\007version\030\001 \001(\005\022\017\n\007service\030\002 \001(\003\022\r\n\005nonc" + + "e\030\003 \001(\003\"N\n\007P2PPing\022\r\n\005nonce\030\001 \001(\003\022\014\n\004add" + + "r\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\030\n\004sign\030\004 \001(\0132\n.Si" + + "gnature\"\030\n\007P2PPong\022\r\n\005nonce\030\001 \001(\003\"\033\n\nP2P" + + "GetAddr\022\r\n\005nonce\030\001 \001(\003\"*\n\007P2PAddr\022\r\n\005non" + + "ce\030\001 \001(\003\022\020\n\010addrlist\030\002 \003(\t\"<\n\013P2PAddrLis" + + "t\022\r\n\005nonce\030\001 \001(\003\022\036\n\010peerinfo\030\002 \003(\0132\014.P2P" + + "PeerInfo\"2\n\017P2PExternalInfo\022\014\n\004addr\030\001 \001(" + + "\t\022\021\n\tisoutside\030\002 \001(\010\"G\n\014P2PGetBlocks\022\017\n\007" + + "version\030\001 \001(\005\022\023\n\013startHeight\030\002 \001(\003\022\021\n\ten" + + "dHeight\030\003 \001(\003\" \n\rP2PGetMempool\022\017\n\007versio" + + "n\030\001 \001(\005\"\"\n\006P2PInv\022\030\n\004invs\030\001 \003(\0132\n.Invent" + + "ory\"5\n\tInventory\022\n\n\002ty\030\001 \001(\005\022\014\n\004hash\030\002 \001" + + "(\014\022\016\n\006height\030\003 \001(\003\"7\n\nP2PGetData\022\017\n\007vers" + + "ion\030\001 \001(\005\022\030\n\004invs\030\002 \003(\0132\n.Inventory\"\027\n\010P" + + "2PRoute\022\013\n\003TTL\030\001 \001(\005\";\n\005P2PTx\022\030\n\002tx\030\001 \001(" + + "\0132\014.Transaction\022\030\n\005route\030\002 \001(\0132\t.P2PRout" + + "e\"!\n\010P2PBlock\022\025\n\005block\030\001 \001(\0132\006.Block\"e\n\n" + + "LightBlock\022\014\n\004size\030\001 \001(\003\022\027\n\006header\030\002 \001(\013" + + "2\007.Header\022\035\n\007minerTx\030\003 \001(\0132\014.Transaction" + + "\022\021\n\tsTxHashes\030\004 \003(\t\"3\n\007LightTx\022\016\n\006txHash" + + "\030\001 \001(\014\022\030\n\005route\030\002 \001(\0132\t.P2PRoute\"\032\n\010P2PT" + + "xReq\022\016\n\006txHash\030\001 \001(\014\"5\n\rP2PBlockTxReq\022\021\n" + + "\tblockHash\030\001 \001(\t\022\021\n\ttxIndices\030\002 \003(\005\"R\n\017P" + + "2PBlockTxReply\022\021\n\tblockHash\030\001 \001(\t\022\021\n\ttxI" + + "ndices\030\002 \003(\005\022\031\n\003txs\030\003 \003(\0132\014.Transaction\"" + + "Y\n\014P2PQueryData\022\032\n\005txReq\030\001 \001(\0132\t.P2PTxRe" + + "qH\000\022$\n\nblockTxReq\030\002 \001(\0132\016.P2PBlockTxReqH" + + "\000B\007\n\005value\"E\n\010Versions\022\022\n\np2pversion\030\001 \001" + + "(\005\022\023\n\013softversion\030\002 \001(\t\022\020\n\010peername\030\003 \001(" + + "\t\"\202\002\n\rBroadCastData\022\024\n\002tx\030\001 \001(\0132\006.P2PTxH" + + "\000\022\032\n\005block\030\002 \001(\0132\t.P2PBlockH\000\022\030\n\004ping\030\003 " + + "\001(\0132\010.P2PPingH\000\022\034\n\007version\030\004 \001(\0132\t.Versi" + + "onsH\000\022\030\n\004ltTx\030\005 \001(\0132\010.LightTxH\000\022\036\n\007ltBlo" + + "ck\030\006 \001(\0132\013.LightBlockH\000\022\036\n\005query\030\007 \001(\0132\r" + + ".P2PQueryDataH\000\022$\n\010blockRep\030\010 \001(\0132\020.P2PB" + + "lockTxReplyH\000B\007\n\005value\"H\n\rP2PGetHeaders\022" + + "\017\n\007version\030\001 \001(\005\022\023\n\013startHeight\030\002 \001(\003\022\021\n" + + "\tendHeight\030\003 \001(\003\"&\n\nP2PHeaders\022\030\n\007header" + + "s\030\001 \003(\0132\007.Header\"S\n\007InvData\022\032\n\002tx\030\001 \001(\0132" + + "\014.TransactionH\000\022\027\n\005block\030\002 \001(\0132\006.BlockH\000" + + "\022\n\n\002ty\030\003 \001(\005B\007\n\005value\"#\n\010InvDatas\022\027\n\005ite" + + "ms\030\001 \003(\0132\010.InvData\"\255\001\n\004Peer\022\014\n\004addr\030\001 \001(" + + "\t\022\014\n\004port\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\014\n\004self\030\004 " + + "\001(\010\022\023\n\013mempoolSize\030\005 \001(\005\022\027\n\006header\030\006 \001(\013" + + "2\007.Header\022\017\n\007version\030\007 \001(\t\022\026\n\016localDBVer" + + "sion\030\010 \001(\t\022\026\n\016storeDBVersion\030\t \001(\t\" \n\010Pe" + + "erList\022\024\n\005peers\030\001 \003(\0132\005.Peer\" \n\rP2PGetPe" + + "erReq\022\017\n\007p2pType\030\001 \001(\t\"#\n\020P2PGetNetInfoR" + + "eq\022\017\n\007p2pType\030\001 \001(\t\"\311\001\n\013NodeNetInfo\022\024\n\014e" + + "xternaladdr\030\001 \001(\t\022\021\n\tlocaladdr\030\002 \001(\t\022\017\n\007" + + "service\030\003 \001(\010\022\021\n\toutbounds\030\004 \001(\005\022\020\n\010inbo" + + "unds\030\005 \001(\005\022\024\n\014routingtable\030\006 \001(\005\022\021\n\tpeer" + + "store\030\007 \001(\005\022\016\n\006ratein\030\010 \001(\t\022\017\n\007rateout\030\t" + + " \001(\t\022\021\n\tratetotal\030\n \001(\t\"\'\n\nPeersReply\022\031\n" + + "\005peers\030\001 \003(\0132\n.PeersInfo\"\\\n\tPeersInfo\022\014\n" + + "\004name\030\001 \001(\t\022\n\n\002ip\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\023\n" + + "\013softversion\030\004 \001(\t\022\022\n\np2pversion\030\005 \001(\0052\300" + + "\005\n\013p2pgservice\022\037\n\013BroadCastTx\022\006.P2PTx\032\006." + + "Reply\"\000\022%\n\016BroadCastBlock\022\t.P2PBlock\032\006.R" + + "eply\"\000\022\034\n\004Ping\022\010.P2PPing\032\010.P2PPong\"\000\022\"\n\007" + + "GetAddr\022\013.P2PGetAddr\032\010.P2PAddr\"\000\022*\n\013GetA" + + "ddrList\022\013.P2PGetAddr\032\014.P2PAddrList\"\000\022$\n\007" + + "Version\022\013.P2PVersion\032\n.P2PVerAck\"\000\022&\n\010Ve" + + "rsion2\022\013.P2PVersion\032\013.P2PVersion\"\000\022!\n\013So" + + "ftVersion\022\010.P2PPing\032\006.Reply\"\000\022%\n\tGetBloc" + + "ks\022\r.P2PGetBlocks\032\007.P2PInv\"\000\022\'\n\nGetMemPo" + + "ol\022\016.P2PGetMempool\032\007.P2PInv\"\000\022%\n\007GetData" + + "\022\013.P2PGetData\032\t.InvDatas\"\0000\001\022+\n\nGetHeade" + + "rs\022\016.P2PGetHeaders\032\013.P2PHeaders\"\000\022.\n\013Get" + + "PeerInfo\022\017.P2PGetPeerInfo\032\014.P2PPeerInfo\"" + + "\000\022/\n\020ServerStreamRead\022\016.BroadCastData\032\007." + + "ReqNil\"\000(\001\0220\n\020ServerStreamSend\022\010.P2PPing" + + "\032\016.BroadCastData\"\0000\001\022\'\n\016CollectInPeers\022\010" + + ".P2PPing\032\t.PeerList\"\000\022*\n\017CollectInPeers2" + + "\022\010.P2PPing\032\013.PeersReply\"\000B/\n!cn.chain33." + + "javasdk.model.protobufB\nP2pServiceb\006prot" + "o3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(), }); + internal_static_P2PGetPeerInfo_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_P2PGetPeerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetPeerInfo_descriptor, new java.lang.String[] { "Version", }); + internal_static_P2PPeerInfo_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_P2PPeerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PPeerInfo_descriptor, new java.lang.String[] { "Addr", "Port", "Name", "MempoolSize", + "Header", "Version", "LocalDBVersion", "StoreDBVersion", }); + internal_static_P2PVersion_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_P2PVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PVersion_descriptor, new java.lang.String[] { "Version", "Service", "Timestamp", + "AddrRecv", "AddrFrom", "Nonce", "UserAgent", "StartHeight", }); + internal_static_P2PVerAck_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_P2PVerAck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PVerAck_descriptor, new java.lang.String[] { "Version", "Service", "Nonce", }); + internal_static_P2PPing_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_P2PPing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PPing_descriptor, new java.lang.String[] { "Nonce", "Addr", "Port", "Sign", }); + internal_static_P2PPong_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_P2PPong_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PPong_descriptor, new java.lang.String[] { "Nonce", }); + internal_static_P2PGetAddr_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_P2PGetAddr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetAddr_descriptor, new java.lang.String[] { "Nonce", }); + internal_static_P2PAddr_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_P2PAddr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PAddr_descriptor, new java.lang.String[] { "Nonce", "Addrlist", }); + internal_static_P2PAddrList_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_P2PAddrList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PAddrList_descriptor, new java.lang.String[] { "Nonce", "Peerinfo", }); + internal_static_P2PExternalInfo_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_P2PExternalInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PExternalInfo_descriptor, new java.lang.String[] { "Addr", "Isoutside", }); + internal_static_P2PGetBlocks_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_P2PGetBlocks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetBlocks_descriptor, + new java.lang.String[] { "Version", "StartHeight", "EndHeight", }); + internal_static_P2PGetMempool_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_P2PGetMempool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetMempool_descriptor, new java.lang.String[] { "Version", }); + internal_static_P2PInv_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_P2PInv_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PInv_descriptor, new java.lang.String[] { "Invs", }); + internal_static_Inventory_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_Inventory_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Inventory_descriptor, new java.lang.String[] { "Ty", "Hash", "Height", }); + internal_static_P2PGetData_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_P2PGetData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetData_descriptor, new java.lang.String[] { "Version", "Invs", }); + internal_static_P2PRoute_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_P2PRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PRoute_descriptor, new java.lang.String[] { "TTL", }); + internal_static_P2PTx_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_P2PTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PTx_descriptor, new java.lang.String[] { "Tx", "Route", }); + internal_static_P2PBlock_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_P2PBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PBlock_descriptor, new java.lang.String[] { "Block", }); + internal_static_LightBlock_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_LightBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_LightBlock_descriptor, + new java.lang.String[] { "Size", "Header", "MinerTx", "STxHashes", }); + internal_static_LightTx_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_LightTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_LightTx_descriptor, new java.lang.String[] { "TxHash", "Route", }); + internal_static_P2PTxReq_descriptor = getDescriptor().getMessageTypes().get(20); + internal_static_P2PTxReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PTxReq_descriptor, new java.lang.String[] { "TxHash", }); + internal_static_P2PBlockTxReq_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_P2PBlockTxReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PBlockTxReq_descriptor, new java.lang.String[] { "BlockHash", "TxIndices", }); + internal_static_P2PBlockTxReply_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_P2PBlockTxReply_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PBlockTxReply_descriptor, + new java.lang.String[] { "BlockHash", "TxIndices", "Txs", }); + internal_static_P2PQueryData_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_P2PQueryData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PQueryData_descriptor, new java.lang.String[] { "TxReq", "BlockTxReq", "Value", }); + internal_static_Versions_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_Versions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Versions_descriptor, + new java.lang.String[] { "P2Pversion", "Softversion", "Peername", }); + internal_static_BroadCastData_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_BroadCastData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BroadCastData_descriptor, new java.lang.String[] { "Tx", "Block", "Ping", "Version", + "LtTx", "LtBlock", "Query", "BlockRep", "Value", }); + internal_static_P2PGetHeaders_descriptor = getDescriptor().getMessageTypes().get(26); + internal_static_P2PGetHeaders_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetHeaders_descriptor, + new java.lang.String[] { "Version", "StartHeight", "EndHeight", }); + internal_static_P2PHeaders_descriptor = getDescriptor().getMessageTypes().get(27); + internal_static_P2PHeaders_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PHeaders_descriptor, new java.lang.String[] { "Headers", }); + internal_static_InvData_descriptor = getDescriptor().getMessageTypes().get(28); + internal_static_InvData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_InvData_descriptor, new java.lang.String[] { "Tx", "Block", "Ty", "Value", }); + internal_static_InvDatas_descriptor = getDescriptor().getMessageTypes().get(29); + internal_static_InvDatas_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_InvDatas_descriptor, new java.lang.String[] { "Items", }); + internal_static_Peer_descriptor = getDescriptor().getMessageTypes().get(30); + internal_static_Peer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Peer_descriptor, new java.lang.String[] { "Addr", "Port", "Name", "Self", "MempoolSize", + "Header", "Version", "LocalDBVersion", "StoreDBVersion", }); + internal_static_PeerList_descriptor = getDescriptor().getMessageTypes().get(31); + internal_static_PeerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_PeerList_descriptor, new java.lang.String[] { "Peers", }); + internal_static_P2PGetPeerReq_descriptor = getDescriptor().getMessageTypes().get(32); + internal_static_P2PGetPeerReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetPeerReq_descriptor, new java.lang.String[] { "P2PType", }); + internal_static_P2PGetNetInfoReq_descriptor = getDescriptor().getMessageTypes().get(33); + internal_static_P2PGetNetInfoReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_P2PGetNetInfoReq_descriptor, new java.lang.String[] { "P2PType", }); + internal_static_NodeNetInfo_descriptor = getDescriptor().getMessageTypes().get(34); + internal_static_NodeNetInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_NodeNetInfo_descriptor, new java.lang.String[] { "Externaladdr", "Localaddr", "Service", + "Outbounds", "Inbounds", "Routingtable", "Peerstore", "Ratein", "Rateout", "Ratetotal", }); + internal_static_PeersReply_descriptor = getDescriptor().getMessageTypes().get(35); + internal_static_PeersReply_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_PeersReply_descriptor, new java.lang.String[] { "Peers", }); + internal_static_PeersInfo_descriptor = getDescriptor().getMessageTypes().get(36); + internal_static_PeersInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_PeersInfo_descriptor, + new java.lang.String[] { "Name", "Ip", "Port", "Softversion", "P2Pversion", }); + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/RawTransactionProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/RawTransactionProtobuf.java index 16c9265..0d06ae9 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/RawTransactionProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/RawTransactionProtobuf.java @@ -4,2791 +4,2804 @@ package cn.chain33.javasdk.model.protobuf; public final class RawTransactionProtobuf { - private RawTransactionProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:Signature) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 ty = 1; - */ - int getTy(); - - /** - * bytes pubkey = 2; - */ - com.google.protobuf.ByteString getPubkey(); - - /** - * bytes signature = 3; - */ - com.google.protobuf.ByteString getSignature(); - } - /** - * Protobuf type {@code Signature} - */ - public static final class Signature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Signature) - SignatureOrBuilder { - private static final long serialVersionUID = 0L; - // Use Signature.newBuilder() to construct. - private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Signature() { - ty_ = 0; - pubkey_ = com.google.protobuf.ByteString.EMPTY; - signature_ = com.google.protobuf.ByteString.EMPTY; + private RawTransactionProtobuf() { } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Signature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - ty_ = input.readInt32(); - break; - } - case 18: { - - pubkey_ = input.readBytes(); - break; - } - case 26: { - - signature_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_descriptor; + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.class, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder.class); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public static final int TY_FIELD_NUMBER = 1; - private int ty_; - /** - * int32 ty = 1; - */ - public int getTy() { - return ty_; - } + public interface SignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:Signature) + com.google.protobuf.MessageOrBuilder { - public static final int PUBKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString pubkey_; - /** - * bytes pubkey = 2; - */ - public com.google.protobuf.ByteString getPubkey() { - return pubkey_; + /** + * int32 ty = 1; + */ + int getTy(); + + /** + * bytes pubkey = 2; + */ + com.google.protobuf.ByteString getPubkey(); + + /** + * bytes signature = 3; + */ + com.google.protobuf.ByteString getSignature(); } - public static final int SIGNATURE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString signature_; /** - * bytes signature = 3; + * Protobuf type {@code Signature} */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } + public static final class Signature extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Signature) + SignatureOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Signature.newBuilder() to construct. + private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Signature() { + ty_ = 0; + pubkey_ = com.google.protobuf.ByteString.EMPTY; + signature_ = com.google.protobuf.ByteString.EMPTY; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (ty_ != 0) { - output.writeInt32(1, ty_); - } - if (!pubkey_.isEmpty()) { - output.writeBytes(2, pubkey_); - } - if (!signature_.isEmpty()) { - output.writeBytes(3, signature_); - } - unknownFields.writeTo(output); - } + private Signature(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + ty_ = input.readInt32(); + break; + } + case 18: { + + pubkey_ = input.readBytes(); + break; + } + case 26: { + + signature_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ty_); - } - if (!pubkey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, pubkey_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, signature_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature other = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature) obj; - - boolean result = true; - result = result && (getTy() - == other.getTy()); - result = result && getPubkey() - .equals(other.getPubkey()); - result = result && getSignature() - .equals(other.getSignature()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.class, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - hash = (37 * hash) + PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getPubkey().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int TY_FIELD_NUMBER = 1; + private int ty_; - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int32 ty = 1; + */ + public int getTy() { + return ty_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int PUBKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString pubkey_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Signature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Signature) - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.class, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - pubkey_ = com.google.protobuf.ByteString.EMPTY; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature build() { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature buildPartial() { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature result = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature(this); - result.ty_ = ty_; - result.pubkey_ = pubkey_; - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature other) { - if (other == cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - if (other.getPubkey() != com.google.protobuf.ByteString.EMPTY) { - setPubkey(other.getPubkey()); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int ty_ ; - /** - * int32 ty = 1; - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 1; - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 1; - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString pubkey_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes pubkey = 2; - */ - public com.google.protobuf.ByteString getPubkey() { - return pubkey_; - } - /** - * bytes pubkey = 2; - */ - public Builder setPubkey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - pubkey_ = value; - onChanged(); - return this; - } - /** - * bytes pubkey = 2; - */ - public Builder clearPubkey() { - - pubkey_ = getDefaultInstance().getPubkey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes signature = 3; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * bytes signature = 3; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * bytes signature = 3; - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Signature) - } + /** + * bytes pubkey = 2; + */ + public com.google.protobuf.ByteString getPubkey() { + return pubkey_; + } - // @@protoc_insertion_point(class_scope:Signature) - private static final cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature(); - } + public static final int SIGNATURE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString signature_; - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * bytes signature = 3; + */ + public com.google.protobuf.ByteString getSignature() { + return signature_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Signature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Signature(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ty_ != 0) { + output.writeInt32(1, ty_); + } + if (!pubkey_.isEmpty()) { + output.writeBytes(2, pubkey_); + } + if (!signature_.isEmpty()) { + output.writeBytes(3, signature_); + } + unknownFields.writeTo(output); + } - public interface TransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:Transaction) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * bytes execer = 1; - */ - com.google.protobuf.ByteString getExecer(); + size = 0; + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ty_); + } + if (!pubkey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, pubkey_); + } + if (!signature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, signature_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * bytes payload = 2; - */ - com.google.protobuf.ByteString getPayload(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature other = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature) obj; + + boolean result = true; + result = result && (getTy() == other.getTy()); + result = result && getPubkey().equals(other.getPubkey()); + result = result && getSignature().equals(other.getSignature()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - /** - * .Signature signature = 3; - */ - boolean hasSignature(); - /** - * .Signature signature = 3; - */ - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getSignature(); - /** - * .Signature signature = 3; - */ - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder getSignatureOrBuilder(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + hash = (37 * hash) + PUBKEY_FIELD_NUMBER; + hash = (53 * hash) + getPubkey().hashCode(); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * int64 fee = 4; - */ - long getFee(); + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * int64 expire = 5; - */ - long getExpire(); + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - *
-     *随机ID,可以防止payload 相同的时候,交易重复
-     * 
- * - * int64 nonce = 6; - */ - long getNonce(); + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - */ - java.lang.String getTo(); - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - */ - com.google.protobuf.ByteString - getToBytes(); + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * int32 groupCount = 8; - */ - int getGroupCount(); + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * bytes header = 9; - */ - com.google.protobuf.ByteString getHeader(); + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * bytes next = 10; - */ - com.google.protobuf.ByteString getNext(); - } - /** - * Protobuf type {@code Transaction} - */ - public static final class Transaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Transaction) - TransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Transaction.newBuilder() to construct. - private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Transaction() { - execer_ = com.google.protobuf.ByteString.EMPTY; - payload_ = com.google.protobuf.ByteString.EMPTY; - fee_ = 0L; - expire_ = 0L; - nonce_ = 0L; - to_ = ""; - groupCount_ = 0; - header_ = com.google.protobuf.ByteString.EMPTY; - next_ = com.google.protobuf.ByteString.EMPTY; - } + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Transaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - execer_ = input.readBytes(); - break; - } - case 18: { - - payload_ = input.readBytes(); - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder subBuilder = null; - if (signature_ != null) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - fee_ = input.readInt64(); - break; - } - case 40: { - - expire_ = input.readInt64(); - break; - } - case 48: { - - nonce_ = input.readInt64(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 64: { - - groupCount_ = input.readInt32(); - break; - } - case 74: { - - header_ = input.readBytes(); - break; - } - case 82: { - - next_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.class, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int EXECER_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString execer_; - /** - * bytes execer = 1; - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int PAYLOAD_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString payload_; - /** - * bytes payload = 2; - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int SIGNATURE_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature signature_; - /** - * .Signature signature = 3; - */ - public boolean hasSignature() { - return signature_ != null; - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getSignature() { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance() : signature_; - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - return getSignature(); - } + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int FEE_FIELD_NUMBER = 4; - private long fee_; - /** - * int64 fee = 4; - */ - public long getFee() { - return fee_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int EXPIRE_FIELD_NUMBER = 5; - private long expire_; - /** - * int64 expire = 5; - */ - public long getExpire() { - return expire_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int NONCE_FIELD_NUMBER = 6; - private long nonce_; - /** - *
-     *随机ID,可以防止payload 相同的时候,交易重复
-     * 
- * - * int64 nonce = 6; - */ - public long getNonce() { - return nonce_; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int TO_FIELD_NUMBER = 7; - private volatile java.lang.Object to_; - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int GROUPCOUNT_FIELD_NUMBER = 8; - private int groupCount_; - /** - * int32 groupCount = 8; - */ - public int getGroupCount() { - return groupCount_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int HEADER_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString header_; - /** - * bytes header = 9; - */ - public com.google.protobuf.ByteString getHeader() { - return header_; - } + /** + * Protobuf type {@code Signature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Signature) + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_descriptor; + } - public static final int NEXT_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString next_; - /** - * bytes next = 10; - */ - public com.google.protobuf.ByteString getNext() { - return next_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.class, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder.class); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!execer_.isEmpty()) { - output.writeBytes(1, execer_); - } - if (!payload_.isEmpty()) { - output.writeBytes(2, payload_); - } - if (signature_ != null) { - output.writeMessage(3, getSignature()); - } - if (fee_ != 0L) { - output.writeInt64(4, fee_); - } - if (expire_ != 0L) { - output.writeInt64(5, expire_); - } - if (nonce_ != 0L) { - output.writeInt64(6, nonce_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, to_); - } - if (groupCount_ != 0) { - output.writeInt32(8, groupCount_); - } - if (!header_.isEmpty()) { - output.writeBytes(9, header_); - } - if (!next_.isEmpty()) { - output.writeBytes(10, next_); - } - unknownFields.writeTo(output); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!execer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, execer_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, payload_); - } - if (signature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSignature()); - } - if (fee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, fee_); - } - if (expire_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, expire_); - } - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, nonce_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, to_); - } - if (groupCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, groupCount_); - } - if (!header_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, header_); - } - if (!next_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, next_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction other = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction) obj; - - boolean result = true; - result = result && getExecer() - .equals(other.getExecer()); - result = result && getPayload() - .equals(other.getPayload()); - result = result && (hasSignature() == other.hasSignature()); - if (hasSignature()) { - result = result && getSignature() - .equals(other.getSignature()); - } - result = result && (getFee() - == other.getFee()); - result = result && (getExpire() - == other.getExpire()); - result = result && (getNonce() - == other.getNonce()); - result = result && getTo() - .equals(other.getTo()); - result = result && (getGroupCount() - == other.getGroupCount()); - result = result && getHeader() - .equals(other.getHeader()); - result = result && getNext() - .equals(other.getNext()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + pubkey_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - if (hasSignature()) { - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - } - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFee()); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExpire()); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + GROUPCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getGroupCount(); - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - hash = (37 * hash) + NEXT_FIELD_NUMBER; - hash = (53 * hash) + getNext().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + signature_ = com.google.protobuf.ByteString.EMPTY; - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Signature_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Transaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Transaction) - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.class, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - execer_ = com.google.protobuf.ByteString.EMPTY; - - payload_ = com.google.protobuf.ByteString.EMPTY; - - if (signatureBuilder_ == null) { - signature_ = null; - } else { - signature_ = null; - signatureBuilder_ = null; - } - fee_ = 0L; - - expire_ = 0L; - - nonce_ = 0L; - - to_ = ""; - - groupCount_ = 0; - - header_ = com.google.protobuf.ByteString.EMPTY; - - next_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction build() { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction buildPartial() { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction result = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction(this); - result.execer_ = execer_; - result.payload_ = payload_; - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - result.fee_ = fee_; - result.expire_ = expire_; - result.nonce_ = nonce_; - result.to_ = to_; - result.groupCount_ = groupCount_; - result.header_ = header_; - result.next_ = next_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction other) { - if (other == cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance()) return this; - if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { - setExecer(other.getExecer()); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - if (other.hasSignature()) { - mergeSignature(other.getSignature()); - } - if (other.getFee() != 0L) { - setFee(other.getFee()); - } - if (other.getExpire() != 0L) { - setExpire(other.getExpire()); - } - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (other.getGroupCount() != 0) { - setGroupCount(other.getGroupCount()); - } - if (other.getHeader() != com.google.protobuf.ByteString.EMPTY) { - setHeader(other.getHeader()); - } - if (other.getNext() != com.google.protobuf.ByteString.EMPTY) { - setNext(other.getNext()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes execer = 1; - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } - /** - * bytes execer = 1; - */ - public Builder setExecer(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - * bytes execer = 1; - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 2; - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 2; - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * bytes payload = 2; - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature signature_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder> signatureBuilder_; - /** - * .Signature signature = 3; - */ - public boolean hasSignature() { - return signatureBuilder_ != null || signature_ != null; - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getSignature() { - if (signatureBuilder_ == null) { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance() : signature_; - } else { - return signatureBuilder_.getMessage(); - } - } - /** - * .Signature signature = 3; - */ - public Builder setSignature(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - onChanged(); - } else { - signatureBuilder_.setMessage(value); - } - - return this; - } - /** - * .Signature signature = 3; - */ - public Builder setSignature( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder builderForValue) { - if (signatureBuilder_ == null) { - signature_ = builderForValue.build(); - onChanged(); - } else { - signatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Signature signature = 3; - */ - public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (signature_ != null) { - signature_ = - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); - } else { - signature_ = value; - } - onChanged(); - } else { - signatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Signature signature = 3; - */ - public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = null; - onChanged(); - } else { - signature_ = null; - signatureBuilder_ = null; - } - - return this; - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder getSignatureBuilder() { - - onChanged(); - return getSignatureFieldBuilder().getBuilder(); - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - if (signatureBuilder_ != null) { - return signatureBuilder_.getMessageOrBuilder(); - } else { - return signature_ == null ? - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance() : signature_; - } - } - /** - * .Signature signature = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder> - getSignatureFieldBuilder() { - if (signatureBuilder_ == null) { - signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder>( - getSignature(), - getParentForChildren(), - isClean()); - signature_ = null; - } - return signatureBuilder_; - } - - private long fee_ ; - /** - * int64 fee = 4; - */ - public long getFee() { - return fee_; - } - /** - * int64 fee = 4; - */ - public Builder setFee(long value) { - - fee_ = value; - onChanged(); - return this; - } - /** - * int64 fee = 4; - */ - public Builder clearFee() { - - fee_ = 0L; - onChanged(); - return this; - } - - private long expire_ ; - /** - * int64 expire = 5; - */ - public long getExpire() { - return expire_; - } - /** - * int64 expire = 5; - */ - public Builder setExpire(long value) { - - expire_ = value; - onChanged(); - return this; - } - /** - * int64 expire = 5; - */ - public Builder clearExpire() { - - expire_ = 0L; - onChanged(); - return this; - } - - private long nonce_ ; - /** - *
-       *随机ID,可以防止payload 相同的时候,交易重复
-       * 
- * - * int64 nonce = 6; - */ - public long getNonce() { - return nonce_; - } - /** - *
-       *随机ID,可以防止payload 相同的时候,交易重复
-       * 
- * - * int64 nonce = 6; - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - *
-       *随机ID,可以防止payload 相同的时候,交易重复
-       * 
- * - * int64 nonce = 6; - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - - private int groupCount_ ; - /** - * int32 groupCount = 8; - */ - public int getGroupCount() { - return groupCount_; - } - /** - * int32 groupCount = 8; - */ - public Builder setGroupCount(int value) { - - groupCount_ = value; - onChanged(); - return this; - } - /** - * int32 groupCount = 8; - */ - public Builder clearGroupCount() { - - groupCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString header_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes header = 9; - */ - public com.google.protobuf.ByteString getHeader() { - return header_; - } - /** - * bytes header = 9; - */ - public Builder setHeader(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - header_ = value; - onChanged(); - return this; - } - /** - * bytes header = 9; - */ - public Builder clearHeader() { - - header_ = getDefaultInstance().getHeader(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString next_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes next = 10; - */ - public com.google.protobuf.ByteString getNext() { - return next_; - } - /** - * bytes next = 10; - */ - public Builder setNext(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - next_ = value; - onChanged(); - return this; - } - /** - * bytes next = 10; - */ - public Builder clearNext() { - - next_ = getDefaultInstance().getNext(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Transaction) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:Transaction) - private static final cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature build() { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature buildPartial() { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature result = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature( + this); + result.ty_ = ty_; + result.pubkey_ = pubkey_; + result.signature_ = signature_; + onBuilt(); + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Transaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Transaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public interface TransactionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Transactions) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getTxs(int index); - /** - * repeated .Transaction txs = 1; - */ - int getTxsCount(); - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsOrBuilderList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index); - } - /** - * Protobuf type {@code Transactions} - */ - public static final class Transactions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Transactions) - TransactionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Transactions.newBuilder() to construct. - private Transactions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Transactions() { - txs_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Transactions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.class, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.Builder.class); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature other) { + if (other == cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + if (other.getPubkey() != com.google.protobuf.ByteString.EMPTY) { + setPubkey(other.getPubkey()); + } + if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { + setSignature(other.getSignature()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int TXS_FIELD_NUMBER = 1; - private java.util.List txs_; - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + private int ty_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(1, txs_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * int32 ty = 1; + */ + public int getTy() { + return ty_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int32 ty = 1; + */ + public Builder setTy(int value) { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions other = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions) obj; - - boolean result = true; - result = result && getTxsList() - .equals(other.getTxsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + ty_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int32 ty = 1; + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString pubkey_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes pubkey = 2; + */ + public com.google.protobuf.ByteString getPubkey() { + return pubkey_; + } + + /** + * bytes pubkey = 2; + */ + public Builder setPubkey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + pubkey_ = value; + onChanged(); + return this; + } + + /** + * bytes pubkey = 2; + */ + public Builder clearPubkey() { + + pubkey_ = getDefaultInstance().getPubkey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes signature = 3; + */ + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + + /** + * bytes signature = 3; + */ + public Builder setSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + signature_ = value; + onChanged(); + return this; + } + + /** + * bytes signature = 3; + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Signature) + } + + // @@protoc_insertion_point(class_scope:Signature) + private static final cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature(); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Signature parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Signature(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public interface TransactionOrBuilder extends + // @@protoc_insertion_point(interface_extends:Transaction) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes execer = 1; + */ + com.google.protobuf.ByteString getExecer(); + + /** + * bytes payload = 2; + */ + com.google.protobuf.ByteString getPayload(); + + /** + * .Signature signature = 3; + */ + boolean hasSignature(); + + /** + * .Signature signature = 3; + */ + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getSignature(); + + /** + * .Signature signature = 3; + */ + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder getSignatureOrBuilder(); + + /** + * int64 fee = 4; + */ + long getFee(); + + /** + * int64 expire = 5; + */ + long getExpire(); + + /** + *
+         *随机ID,可以防止payload 相同的时候,交易重复
+         * 
+ * + * int64 nonce = 6; + */ + long getNonce(); + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + */ + java.lang.String getTo(); + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + */ + com.google.protobuf.ByteString getToBytes(); + + /** + * int32 groupCount = 8; + */ + int getGroupCount(); + + /** + * bytes header = 9; + */ + com.google.protobuf.ByteString getHeader(); + + /** + * bytes next = 10; + */ + com.google.protobuf.ByteString getNext(); } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + /** + * Protobuf type {@code Transaction} + */ + public static final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Transaction) + TransactionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Transaction.newBuilder() to construct. + private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Transaction() { + execer_ = com.google.protobuf.ByteString.EMPTY; + payload_ = com.google.protobuf.ByteString.EMPTY; + fee_ = 0L; + expire_ = 0L; + nonce_ = 0L; + to_ = ""; + groupCount_ = 0; + header_ = com.google.protobuf.ByteString.EMPTY; + next_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Transaction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + execer_ = input.readBytes(); + break; + } + case 18: { + + payload_ = input.readBytes(); + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder subBuilder = null; + if (signature_ != null) { + subBuilder = signature_.toBuilder(); + } + signature_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signature_); + signature_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + fee_ = input.readInt64(); + break; + } + case 40: { + + expire_ = input.readInt64(); + break; + } + case 48: { + + nonce_ = input.readInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 64: { + + groupCount_ = input.readInt32(); + break; + } + case 74: { + + header_ = input.readBytes(); + break; + } + case 82: { + + next_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.class, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder.class); + } + + public static final int EXECER_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString execer_; + + /** + * bytes execer = 1; + */ + public com.google.protobuf.ByteString getExecer() { + return execer_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString payload_; + + /** + * bytes payload = 2; + */ + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + public static final int SIGNATURE_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature signature_; + + /** + * .Signature signature = 3; + */ + public boolean hasSignature() { + return signature_ != null; + } + + /** + * .Signature signature = 3; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getSignature() { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance() + : signature_; + } + + /** + * .Signature signature = 3; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + return getSignature(); + } + + public static final int FEE_FIELD_NUMBER = 4; + private long fee_; + + /** + * int64 fee = 4; + */ + public long getFee() { + return fee_; + } + + public static final int EXPIRE_FIELD_NUMBER = 5; + private long expire_; + + /** + * int64 expire = 5; + */ + public long getExpire() { + return expire_; + } + + public static final int NONCE_FIELD_NUMBER = 6; + private long nonce_; + + /** + *
+         *随机ID,可以防止payload 相同的时候,交易重复
+         * 
+ * + * int64 nonce = 6; + */ + public long getNonce() { + return nonce_; + } + + public static final int TO_FIELD_NUMBER = 7; + private volatile java.lang.Object to_; + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUPCOUNT_FIELD_NUMBER = 8; + private int groupCount_; + + /** + * int32 groupCount = 8; + */ + public int getGroupCount() { + return groupCount_; + } + + public static final int HEADER_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString header_; + + /** + * bytes header = 9; + */ + public com.google.protobuf.ByteString getHeader() { + return header_; + } + + public static final int NEXT_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString next_; + + /** + * bytes next = 10; + */ + public com.google.protobuf.ByteString getNext() { + return next_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!execer_.isEmpty()) { + output.writeBytes(1, execer_); + } + if (!payload_.isEmpty()) { + output.writeBytes(2, payload_); + } + if (signature_ != null) { + output.writeMessage(3, getSignature()); + } + if (fee_ != 0L) { + output.writeInt64(4, fee_); + } + if (expire_ != 0L) { + output.writeInt64(5, expire_); + } + if (nonce_ != 0L) { + output.writeInt64(6, nonce_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, to_); + } + if (groupCount_ != 0) { + output.writeInt32(8, groupCount_); + } + if (!header_.isEmpty()) { + output.writeBytes(9, header_); + } + if (!next_.isEmpty()) { + output.writeBytes(10, next_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!execer_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, execer_); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, payload_); + } + if (signature_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSignature()); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, fee_); + } + if (expire_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, expire_); + } + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, nonce_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, to_); + } + if (groupCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, groupCount_); + } + if (!header_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, header_); + } + if (!next_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, next_); + } + 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 cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction other = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction) obj; + + boolean result = true; + result = result && getExecer().equals(other.getExecer()); + result = result && getPayload().equals(other.getPayload()); + result = result && (hasSignature() == other.hasSignature()); + if (hasSignature()) { + result = result && getSignature().equals(other.getSignature()); + } + result = result && (getFee() == other.getFee()); + result = result && (getExpire() == other.getExpire()); + result = result && (getNonce() == other.getNonce()); + result = result && getTo().equals(other.getTo()); + result = result && (getGroupCount() == other.getGroupCount()); + result = result && getHeader().equals(other.getHeader()); + result = result && getNext().equals(other.getNext()); + 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) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFee()); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpire()); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + GROUPCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGroupCount(); + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + hash = (37 * hash) + NEXT_FIELD_NUMBER; + hash = (53 * hash) + getNext().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Transaction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Transaction) + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.class, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + execer_ = com.google.protobuf.ByteString.EMPTY; + + payload_ = com.google.protobuf.ByteString.EMPTY; + + if (signatureBuilder_ == null) { + signature_ = null; + } else { + signature_ = null; + signatureBuilder_ = null; + } + fee_ = 0L; + + expire_ = 0L; + + nonce_ = 0L; + + to_ = ""; + + groupCount_ = 0; + + header_ = com.google.protobuf.ByteString.EMPTY; + + next_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transaction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction build() { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction buildPartial() { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction result = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction( + this); + result.execer_ = execer_; + result.payload_ = payload_; + if (signatureBuilder_ == null) { + result.signature_ = signature_; + } else { + result.signature_ = signatureBuilder_.build(); + } + result.fee_ = fee_; + result.expire_ = expire_; + result.nonce_ = nonce_; + result.to_ = to_; + result.groupCount_ = groupCount_; + result.header_ = header_; + result.next_ = next_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction other) { + if (other == cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance()) + return this; + if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { + setExecer(other.getExecer()); + } + if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { + setPayload(other.getPayload()); + } + if (other.hasSignature()) { + mergeSignature(other.getSignature()); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (other.getExpire() != 0L) { + setExpire(other.getExpire()); + } + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (other.getGroupCount() != 0) { + setGroupCount(other.getGroupCount()); + } + if (other.getHeader() != com.google.protobuf.ByteString.EMPTY) { + setHeader(other.getHeader()); + } + if (other.getNext() != com.google.protobuf.ByteString.EMPTY) { + setNext(other.getNext()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes execer = 1; + */ + public com.google.protobuf.ByteString getExecer() { + return execer_; + } + + /** + * bytes execer = 1; + */ + public Builder setExecer(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } + + /** + * bytes execer = 1; + */ + public Builder clearExecer() { + + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes payload = 2; + */ + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * bytes payload = 2; + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + payload_ = value; + onChanged(); + return this; + } + + /** + * bytes payload = 2; + */ + public Builder clearPayload() { + + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature signature_ = null; + private com.google.protobuf.SingleFieldBuilderV3 signatureBuilder_; + + /** + * .Signature signature = 3; + */ + public boolean hasSignature() { + return signatureBuilder_ != null || signature_ != null; + } + + /** + * .Signature signature = 3; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature getSignature() { + if (signatureBuilder_ == null) { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance() + : signature_; + } else { + return signatureBuilder_.getMessage(); + } + } + + /** + * .Signature signature = 3; + */ + public Builder setSignature(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + signature_ = value; + onChanged(); + } else { + signatureBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public Builder setSignature( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder builderForValue) { + if (signatureBuilder_ == null) { + signature_ = builderForValue.build(); + onChanged(); + } else { + signatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (signature_ != null) { + signature_ = cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature + .newBuilder(signature_).mergeFrom(value).buildPartial(); + } else { + signature_ = value; + } + onChanged(); + } else { + signatureBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public Builder clearSignature() { + if (signatureBuilder_ == null) { + signature_ = null; + onChanged(); + } else { + signature_ = null; + signatureBuilder_ = null; + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.Builder getSignatureBuilder() { + + onChanged(); + return getSignatureFieldBuilder().getBuilder(); + } + + /** + * .Signature signature = 3; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + if (signatureBuilder_ != null) { + return signatureBuilder_.getMessageOrBuilder(); + } else { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Signature.getDefaultInstance() + : signature_; + } + } + + /** + * .Signature signature = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getSignatureFieldBuilder() { + if (signatureBuilder_ == null) { + signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getSignature(), getParentForChildren(), isClean()); + signature_ = null; + } + return signatureBuilder_; + } + + private long fee_; + + /** + * int64 fee = 4; + */ + public long getFee() { + return fee_; + } + + /** + * int64 fee = 4; + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } + + /** + * int64 fee = 4; + */ + public Builder clearFee() { + + fee_ = 0L; + onChanged(); + return this; + } + + private long expire_; + + /** + * int64 expire = 5; + */ + public long getExpire() { + return expire_; + } + + /** + * int64 expire = 5; + */ + public Builder setExpire(long value) { + + expire_ = value; + onChanged(); + return this; + } + + /** + * int64 expire = 5; + */ + public Builder clearExpire() { + + expire_ = 0L; + onChanged(); + return this; + } + + private long nonce_; + + /** + *
+             *随机ID,可以防止payload 相同的时候,交易重复
+             * 
+ * + * int64 nonce = 6; + */ + public long getNonce() { + return nonce_; + } + + /** + *
+             *随机ID,可以防止payload 相同的时候,交易重复
+             * 
+ * + * int64 nonce = 6; + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + *
+             *随机ID,可以防止payload 相同的时候,交易重复
+             * 
+ * + * int64 nonce = 6; + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object to_ = ""; + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } + + private int groupCount_; + + /** + * int32 groupCount = 8; + */ + public int getGroupCount() { + return groupCount_; + } + + /** + * int32 groupCount = 8; + */ + public Builder setGroupCount(int value) { + + groupCount_ = value; + onChanged(); + return this; + } + + /** + * int32 groupCount = 8; + */ + public Builder clearGroupCount() { + + groupCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString header_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes header = 9; + */ + public com.google.protobuf.ByteString getHeader() { + return header_; + } + + /** + * bytes header = 9; + */ + public Builder setHeader(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + header_ = value; + onChanged(); + return this; + } + + /** + * bytes header = 9; + */ + public Builder clearHeader() { + + header_ = getDefaultInstance().getHeader(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString next_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes next = 10; + */ + public com.google.protobuf.ByteString getNext() { + return next_; + } + + /** + * bytes next = 10; + */ + public Builder setNext(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + next_ = value; + onChanged(); + return this; + } + + /** + * bytes next = 10; + */ + public Builder clearNext() { + + next_ = getDefaultInstance().getNext(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Transaction) + } + + // @@protoc_insertion_point(class_scope:Transaction) + private static final cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction(); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Transaction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Transaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public interface TransactionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Transactions) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getTxs(int index); + + /** + * repeated .Transaction txs = 1; + */ + int getTxsCount(); + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder getTxsOrBuilder(int index); } + /** * Protobuf type {@code Transactions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Transactions) - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.class, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions build() { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions buildPartial() { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions result = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions(this); - int from_bitField0_ = bitField0_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions other) { - if (other == cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.getDefaultInstance()) return this; - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder> txsBuilder_; - - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Transactions) - } + public static final class Transactions extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Transactions) + TransactionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Transactions.newBuilder() to construct. + private Transactions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - // @@protoc_insertion_point(class_scope:Transactions) - private static final cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions(); - } + private Transactions() { + txs_ = java.util.Collections.emptyList(); + } - public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Transactions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Transactions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private Transactions(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.class, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.Builder.class); + } + + public static final int TXS_FIELD_NUMBER = 1; + private java.util.List txs_; + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(1, txs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, txs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions other = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions) obj; + + boolean result = true; + result = result && getTxsList().equals(other.getTxsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Transactions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Transactions) + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.class, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.internal_static_Transactions_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions build() { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions buildPartial() { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions result = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions( + this); + int from_bitField0_ = bitField0_; + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions other) { + if (other == cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions.getDefaultInstance()) + return this; + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List txs_ = java.util.Collections + .emptyList(); + + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder addTxsBuilder() { + return getTxsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Transactions) + } + + // @@protoc_insertion_point(class_scope:Transactions) + private static final cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions(); + } + + public static cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Transactions parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Transactions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.RawTransactionProtobuf.Transactions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Signature_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Signature_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Transaction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Transaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Transactions_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Transactions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Signature_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Signature_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Transaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Transaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Transactions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Transactions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024RawTransaction.proto\":\n\tSignature\022\n\n\002t" + - "y\030\001 \001(\005\022\016\n\006pubkey\030\002 \001(\014\022\021\n\tsignature\030\003 \001" + - "(\014\"\267\001\n\013Transaction\022\016\n\006execer\030\001 \001(\014\022\017\n\007pa" + - "yload\030\002 \001(\014\022\035\n\tsignature\030\003 \001(\0132\n.Signatu" + - "re\022\013\n\003fee\030\004 \001(\003\022\016\n\006expire\030\005 \001(\003\022\r\n\005nonce" + - "\030\006 \001(\003\022\n\n\002to\030\007 \001(\t\022\022\n\ngroupCount\030\010 \001(\005\022\016" + - "\n\006header\030\t \001(\014\022\014\n\004next\030\n \001(\014\")\n\014Transact" + - "ions\022\031\n\003txs\030\001 \003(\0132\014.TransactionB>\n$cn.ch" + - "ain33.javafw.rpc.model.protobufB\026RawTran" + - "sactionProtobufb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\024RawTransaction.proto\":\n\tSignature\022\n\n\002t" + + "y\030\001 \001(\005\022\016\n\006pubkey\030\002 \001(\014\022\021\n\tsignature\030\003 \001" + + "(\014\"\267\001\n\013Transaction\022\016\n\006execer\030\001 \001(\014\022\017\n\007pa" + + "yload\030\002 \001(\014\022\035\n\tsignature\030\003 \001(\0132\n.Signatu" + + "re\022\013\n\003fee\030\004 \001(\003\022\016\n\006expire\030\005 \001(\003\022\r\n\005nonce" + + "\030\006 \001(\003\022\n\n\002to\030\007 \001(\t\022\022\n\ngroupCount\030\010 \001(\005\022\016" + + "\n\006header\030\t \001(\014\022\014\n\004next\030\n \001(\014\")\n\014Transact" + + "ions\022\031\n\003txs\030\001 \003(\0132\014.TransactionB>\n$cn.ch" + + "ain33.javafw.rpc.model.protobufB\026RawTran" + "sactionProtobufb\006proto3" }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_Signature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Signature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Signature_descriptor, - new java.lang.String[] { "Ty", "Pubkey", "Signature", }); - internal_static_Transaction_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_Transaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Transaction_descriptor, - new java.lang.String[] { "Execer", "Payload", "Signature", "Fee", "Expire", "Nonce", "To", "GroupCount", "Header", "Next", }); - internal_static_Transactions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_Transactions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Transactions_descriptor, - new java.lang.String[] { "Txs", }); - } - - // @@protoc_insertion_point(outer_class_scope) + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); + internal_static_Signature_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_Signature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Signature_descriptor, new java.lang.String[] { "Ty", "Pubkey", "Signature", }); + internal_static_Transaction_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Transaction_descriptor, new java.lang.String[] { "Execer", "Payload", "Signature", + "Fee", "Expire", "Nonce", "To", "GroupCount", "Header", "Next", }); + internal_static_Transactions_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_Transactions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Transactions_descriptor, new java.lang.String[] { "Txs", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/Storage.proto b/src/main/java/cn/chain33/javasdk/model/protobuf/Storage.proto index 2d9de9e..0b7147a 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/Storage.proto +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/Storage.proto @@ -1,6 +1,6 @@ -syntax = "proto3"; +syntax = "proto3"; option java_outer_classname = "StorageProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; //后面如果有其他数据模型可继续往上面添加 message Storage { @@ -34,7 +34,7 @@ message ContentOnlyNotaryStorage { //自定义的主键,可以为空,如果没传,则用txhash为key string key = 2; // Op 0表示创建 1表示追加add - int32 op = 3; + int32 op = 3; //字符串值 string value = 4; } @@ -111,5 +111,4 @@ message BatchReplyStorage { repeated Storage storages = 1; } -message ReceiptStorage { -} \ No newline at end of file +message ReceiptStorage {} \ No newline at end of file diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/StorageProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/StorageProtobuf.java index fd76b8b..11e7042 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/StorageProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/StorageProtobuf.java @@ -4,11780 +4,12775 @@ package cn.chain33.javasdk.model.protobuf; public final class StorageProtobuf { - private StorageProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface StorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:Storage) - com.google.protobuf.MessageOrBuilder { + private StorageProtobuf() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface StorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:Storage) + com.google.protobuf.MessageOrBuilder { + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return Whether the contentStorage field is set. + */ + boolean hasContentStorage(); + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return The contentStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage(); + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder(); + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return Whether the hashStorage field is set. + */ + boolean hasHashStorage(); + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return The hashStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage(); + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder(); + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return Whether the linkStorage field is set. + */ + boolean hasLinkStorage(); + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return The linkStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage(); + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder(); + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return Whether the encryptStorage field is set. + */ + boolean hasEncryptStorage(); + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return The encryptStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage(); + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder(); + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return Whether the encryptShareStorage field is set. + */ + boolean hasEncryptShareStorage(); + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return The encryptShareStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage(); + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder(); + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return Whether the encryptAdd field is set. + */ + boolean hasEncryptAdd(); + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return The encryptAdd. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd(); + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder(); + + /** + * int32 ty = 7; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.ValueCase getValueCase(); + } + + /** + *
+     * 后面如果有其他数据模型可继续往上面添加
+     * 
+ * + * Protobuf type {@code Storage} + */ + public static final class Storage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Storage) + StorageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Storage.newBuilder() to construct. + private Storage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Storage() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Storage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Storage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 56: { + + ty_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTENTSTORAGE(1), HASHSTORAGE(2), LINKSTORAGE(3), ENCRYPTSTORAGE(4), ENCRYPTSHARESTORAGE(5), ENCRYPTADD(6), + VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return CONTENTSTORAGE; + case 2: + return HASHSTORAGE; + case 3: + return LINKSTORAGE; + case 4: + return ENCRYPTSTORAGE; + case 5: + return ENCRYPTSHARESTORAGE; + case 6: + return ENCRYPTADD; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int CONTENTSTORAGE_FIELD_NUMBER = 1; + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return Whether the contentStorage field is set. + */ + @java.lang.Override + public boolean hasContentStorage() { + return valueCase_ == 1; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return The contentStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); + } + + public static final int HASHSTORAGE_FIELD_NUMBER = 2; + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return Whether the hashStorage field is set. + */ + @java.lang.Override + public boolean hasHashStorage() { + return valueCase_ == 2; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return The hashStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + + public static final int LINKSTORAGE_FIELD_NUMBER = 3; + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return Whether the linkStorage field is set. + */ + @java.lang.Override + public boolean hasLinkStorage() { + return valueCase_ == 3; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return The linkStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + + public static final int ENCRYPTSTORAGE_FIELD_NUMBER = 4; + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return Whether the encryptStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptStorage() { + return valueCase_ == 4; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return The encryptStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + + public static final int ENCRYPTSHARESTORAGE_FIELD_NUMBER = 5; + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return Whether the encryptShareStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptShareStorage() { + return valueCase_ == 5; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return The encryptShareStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); + } + + public static final int ENCRYPTADD_FIELD_NUMBER = 6; + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return Whether the encryptAdd field is set. + */ + @java.lang.Override + public boolean hasEncryptAdd() { + return valueCase_ == 6; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return The encryptAdd. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + + public static final int TY_FIELD_NUMBER = 7; + private int ty_; + + /** + * int32 ty = 7; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); + } + if (ty_ != 0) { + output.writeInt32(7, ty_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ty_); + } + 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 cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getContentStorage().equals(other.getContentStorage())) + return false; + break; + case 2: + if (!getHashStorage().equals(other.getHashStorage())) + return false; + break; + case 3: + if (!getLinkStorage().equals(other.getLinkStorage())) + return false; + break; + case 4: + if (!getEncryptStorage().equals(other.getEncryptStorage())) + return false; + break; + case 5: + if (!getEncryptShareStorage().equals(other.getEncryptShareStorage())) + return false; + break; + case 6: + if (!getEncryptAdd().equals(other.getEncryptAdd())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + CONTENTSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getContentStorage().hashCode(); + break; + case 2: + hash = (37 * hash) + HASHSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getHashStorage().hashCode(); + break; + case 3: + hash = (37 * hash) + LINKSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getLinkStorage().hashCode(); + break; + case 4: + hash = (37 * hash) + ENCRYPTSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getEncryptStorage().hashCode(); + break; + case 5: + hash = (37 * hash) + ENCRYPTSHARESTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getEncryptShareStorage().hashCode(); + break; + case 6: + hash = (37 * hash) + ENCRYPTADD_FIELD_NUMBER; + hash = (53 * hash) + getEncryptAdd().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Storage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Storage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage( + this); + if (valueCase_ == 1) { + if (contentStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = contentStorageBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (hashStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = hashStorageBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (linkStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = linkStorageBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (encryptStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = encryptStorageBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (encryptShareStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = encryptShareStorageBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (encryptAddBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = encryptAddBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case CONTENTSTORAGE: { + mergeContentStorage(other.getContentStorage()); + break; + } + case HASHSTORAGE: { + mergeHashStorage(other.getHashStorage()); + break; + } + case LINKSTORAGE: { + mergeLinkStorage(other.getLinkStorage()); + break; + } + case ENCRYPTSTORAGE: { + mergeEncryptStorage(other.getEncryptStorage()); + break; + } + case ENCRYPTSHARESTORAGE: { + mergeEncryptShareStorage(other.getEncryptShareStorage()); + break; + } + case ENCRYPTADD: { + mergeEncryptAdd(other.getEncryptAdd()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 contentStorageBuilder_; + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return Whether the contentStorage field is set. + */ + @java.lang.Override + public boolean hasContentStorage() { + return valueCase_ == 1; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return The contentStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { + if (contentStorageBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return contentStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder setContentStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { + if (contentStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + contentStorageBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder setContentStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder builderForValue) { + if (contentStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + contentStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder mergeContentStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { + if (contentStorageBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + contentStorageBuilder_.mergeFrom(value); + } + contentStorageBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder clearContentStorage() { + if (contentStorageBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + contentStorageBuilder_.clear(); + } + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder getContentStorageBuilder() { + return getContentStorageFieldBuilder().getBuilder(); + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { + if ((valueCase_ == 1) && (contentStorageBuilder_ != null)) { + return contentStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getContentStorageFieldBuilder() { + if (contentStorageBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } + contentStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return contentStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 hashStorageBuilder_; + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return Whether the hashStorage field is set. + */ + @java.lang.Override + public boolean hasHashStorage() { + return valueCase_ == 2; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return The hashStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { + if (hashStorageBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return hashStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder setHashStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { + if (hashStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + hashStorageBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder setHashStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder builderForValue) { + if (hashStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + hashStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder mergeHashStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { + if (hashStorageBuilder_ == null) { + if (valueCase_ == 2 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + hashStorageBuilder_.mergeFrom(value); + } + hashStorageBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder clearHashStorage() { + if (hashStorageBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + hashStorageBuilder_.clear(); + } + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder getHashStorageBuilder() { + return getHashStorageFieldBuilder().getBuilder(); + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { + if ((valueCase_ == 2) && (hashStorageBuilder_ != null)) { + return hashStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHashStorageFieldBuilder() { + if (hashStorageBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage + .getDefaultInstance(); + } + hashStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return hashStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 linkStorageBuilder_; + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return Whether the linkStorage field is set. + */ + @java.lang.Override + public boolean hasLinkStorage() { + return valueCase_ == 3; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return The linkStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { + if (linkStorageBuilder_ == null) { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return linkStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder setLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { + if (linkStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + linkStorageBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder setLinkStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder builderForValue) { + if (linkStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + linkStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder mergeLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { + if (linkStorageBuilder_ == null) { + if (valueCase_ == 3 && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage + .newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + linkStorageBuilder_.mergeFrom(value); + } + linkStorageBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder clearLinkStorage() { + if (linkStorageBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + linkStorageBuilder_.clear(); + } + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder getLinkStorageBuilder() { + return getLinkStorageFieldBuilder().getBuilder(); + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { + if ((valueCase_ == 3) && (linkStorageBuilder_ != null)) { + return linkStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getLinkStorageFieldBuilder() { + if (linkStorageBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage + .getDefaultInstance(); + } + linkStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return linkStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 encryptStorageBuilder_; + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return Whether the encryptStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptStorage() { + return valueCase_ == 4; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return The encryptStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { + if (encryptStorageBuilder_ == null) { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return encryptStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder setEncryptStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { + if (encryptStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + encryptStorageBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder setEncryptStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder builderForValue) { + if (encryptStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + encryptStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder mergeEncryptStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { + if (encryptStorageBuilder_ == null) { + if (valueCase_ == 4 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage + .newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + encryptStorageBuilder_.mergeFrom(value); + } + encryptStorageBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder clearEncryptStorage() { + if (encryptStorageBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + encryptStorageBuilder_.clear(); + } + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder getEncryptStorageBuilder() { + return getEncryptStorageFieldBuilder().getBuilder(); + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { + if ((valueCase_ == 4) && (encryptStorageBuilder_ != null)) { + return encryptStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEncryptStorageFieldBuilder() { + if (encryptStorageBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage + .getDefaultInstance(); + } + encryptStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged(); + ; + return encryptStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 encryptShareStorageBuilder_; + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return Whether the encryptShareStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptShareStorage() { + return valueCase_ == 5; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return The encryptShareStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { + if (encryptShareStorageBuilder_ == null) { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return encryptShareStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder setEncryptShareStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { + if (encryptShareStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + encryptShareStorageBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder setEncryptShareStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder builderForValue) { + if (encryptShareStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + encryptShareStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder mergeEncryptShareStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { + if (encryptShareStorageBuilder_ == null) { + if (valueCase_ == 5 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + encryptShareStorageBuilder_.mergeFrom(value); + } + encryptShareStorageBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder clearEncryptShareStorage() { + if (encryptShareStorageBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + encryptShareStorageBuilder_.clear(); + } + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder getEncryptShareStorageBuilder() { + return getEncryptShareStorageFieldBuilder().getBuilder(); + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { + if ((valueCase_ == 5) && (encryptShareStorageBuilder_ != null)) { + return encryptShareStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEncryptShareStorageFieldBuilder() { + if (encryptShareStorageBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } + encryptShareStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged(); + ; + return encryptShareStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 encryptAddBuilder_; + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return Whether the encryptAdd field is set. + */ + @java.lang.Override + public boolean hasEncryptAdd() { + return valueCase_ == 6; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return The encryptAdd. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { + if (encryptAddBuilder_ == null) { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return encryptAddBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder setEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { + if (encryptAddBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + encryptAddBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder setEncryptAdd( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder builderForValue) { + if (encryptAddBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + encryptAddBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder mergeEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { + if (encryptAddBuilder_ == null) { + if (valueCase_ == 6 && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd + .newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + encryptAddBuilder_.mergeFrom(value); + } + encryptAddBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder clearEncryptAdd() { + if (encryptAddBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + encryptAddBuilder_.clear(); + } + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder getEncryptAddBuilder() { + return getEncryptAddFieldBuilder().getBuilder(); + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { + if ((valueCase_ == 6) && (encryptAddBuilder_ != null)) { + return encryptAddBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEncryptAddFieldBuilder() { + if (encryptAddBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd + .getDefaultInstance(); + } + encryptAddBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged(); + ; + return encryptAddBuilder_; + } + + private int ty_; + + /** + * int32 ty = 7; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 7; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 7; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Storage) + } + + // @@protoc_insertion_point(class_scope:Storage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Storage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Storage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:StorageAction) + com.google.protobuf.MessageOrBuilder { + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return Whether the contentStorage field is set. + */ + boolean hasContentStorage(); + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return The contentStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage(); + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder(); + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return Whether the hashStorage field is set. + */ + boolean hasHashStorage(); + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return The hashStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage(); + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder(); + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return Whether the linkStorage field is set. + */ + boolean hasLinkStorage(); + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return The linkStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage(); + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder(); + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return Whether the encryptStorage field is set. + */ + boolean hasEncryptStorage(); + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return The encryptStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage(); + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder(); + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return Whether the encryptShareStorage field is set. + */ + boolean hasEncryptShareStorage(); + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return The encryptShareStorage. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage(); + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder(); + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return Whether the encryptAdd field is set. + */ + boolean hasEncryptAdd(); + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return The encryptAdd. + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd(); + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder(); + + /** + * int32 ty = 7; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.ValueCase getValueCase(); + } + + /** + * Protobuf type {@code StorageAction} + */ + public static final class StorageAction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:StorageAction) + StorageActionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StorageAction.newBuilder() to construct. + private StorageAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StorageAction() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StorageAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StorageAction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 56: { + + ty_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTENTSTORAGE(1), HASHSTORAGE(2), LINKSTORAGE(3), ENCRYPTSTORAGE(4), ENCRYPTSHARESTORAGE(5), ENCRYPTADD(6), + VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return CONTENTSTORAGE; + case 2: + return HASHSTORAGE; + case 3: + return LINKSTORAGE; + case 4: + return ENCRYPTSTORAGE; + case 5: + return ENCRYPTSHARESTORAGE; + case 6: + return ENCRYPTADD; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int CONTENTSTORAGE_FIELD_NUMBER = 1; + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return Whether the contentStorage field is set. + */ + @java.lang.Override + public boolean hasContentStorage() { + return valueCase_ == 1; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return The contentStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); + } + + public static final int HASHSTORAGE_FIELD_NUMBER = 2; + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return Whether the hashStorage field is set. + */ + @java.lang.Override + public boolean hasHashStorage() { + return valueCase_ == 2; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return The hashStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + + public static final int LINKSTORAGE_FIELD_NUMBER = 3; + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return Whether the linkStorage field is set. + */ + @java.lang.Override + public boolean hasLinkStorage() { + return valueCase_ == 3; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return The linkStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + + public static final int ENCRYPTSTORAGE_FIELD_NUMBER = 4; + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return Whether the encryptStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptStorage() { + return valueCase_ == 4; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return The encryptStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + + public static final int ENCRYPTSHARESTORAGE_FIELD_NUMBER = 5; + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return Whether the encryptShareStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptShareStorage() { + return valueCase_ == 5; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return The encryptShareStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); + } + + public static final int ENCRYPTADD_FIELD_NUMBER = 6; + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return Whether the encryptAdd field is set. + */ + @java.lang.Override + public boolean hasEncryptAdd() { + return valueCase_ == 6; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return The encryptAdd. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + + public static final int TY_FIELD_NUMBER = 7; + private int ty_; + + /** + * int32 ty = 7; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); + } + if (ty_ != 0) { + output.writeInt32(7, ty_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ty_); + } + 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 cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getContentStorage().equals(other.getContentStorage())) + return false; + break; + case 2: + if (!getHashStorage().equals(other.getHashStorage())) + return false; + break; + case 3: + if (!getLinkStorage().equals(other.getLinkStorage())) + return false; + break; + case 4: + if (!getEncryptStorage().equals(other.getEncryptStorage())) + return false; + break; + case 5: + if (!getEncryptShareStorage().equals(other.getEncryptShareStorage())) + return false; + break; + case 6: + if (!getEncryptAdd().equals(other.getEncryptAdd())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + CONTENTSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getContentStorage().hashCode(); + break; + case 2: + hash = (37 * hash) + HASHSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getHashStorage().hashCode(); + break; + case 3: + hash = (37 * hash) + LINKSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getLinkStorage().hashCode(); + break; + case 4: + hash = (37 * hash) + ENCRYPTSTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getEncryptStorage().hashCode(); + break; + case 5: + hash = (37 * hash) + ENCRYPTSHARESTORAGE_FIELD_NUMBER; + hash = (53 * hash) + getEncryptShareStorage().hashCode(); + break; + case 6: + hash = (37 * hash) + ENCRYPTADD_FIELD_NUMBER; + hash = (53 * hash) + getEncryptAdd().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 StorageAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:StorageAction) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction( + this); + if (valueCase_ == 1) { + if (contentStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = contentStorageBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (hashStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = hashStorageBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (linkStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = linkStorageBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (encryptStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = encryptStorageBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (encryptShareStorageBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = encryptShareStorageBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (encryptAddBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = encryptAddBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case CONTENTSTORAGE: { + mergeContentStorage(other.getContentStorage()); + break; + } + case HASHSTORAGE: { + mergeHashStorage(other.getHashStorage()); + break; + } + case LINKSTORAGE: { + mergeLinkStorage(other.getLinkStorage()); + break; + } + case ENCRYPTSTORAGE: { + mergeEncryptStorage(other.getEncryptStorage()); + break; + } + case ENCRYPTSHARESTORAGE: { + mergeEncryptShareStorage(other.getEncryptShareStorage()); + break; + } + case ENCRYPTADD: { + mergeEncryptAdd(other.getEncryptAdd()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 contentStorageBuilder_; + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return Whether the contentStorage field is set. + */ + @java.lang.Override + public boolean hasContentStorage() { + return valueCase_ == 1; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + * + * @return The contentStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { + if (contentStorageBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return contentStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder setContentStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { + if (contentStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + contentStorageBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder setContentStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder builderForValue) { + if (contentStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + contentStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder mergeContentStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { + if (contentStorageBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + contentStorageBuilder_.mergeFrom(value); + } + contentStorageBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public Builder clearContentStorage() { + if (contentStorageBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + contentStorageBuilder_.clear(); + } + return this; + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder getContentStorageBuilder() { + return getContentStorageFieldBuilder().getBuilder(); + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { + if ((valueCase_ == 1) && (contentStorageBuilder_ != null)) { + return contentStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .ContentOnlyNotaryStorage contentStorage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getContentStorageFieldBuilder() { + if (contentStorageBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance(); + } + contentStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return contentStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 hashStorageBuilder_; + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return Whether the hashStorage field is set. + */ + @java.lang.Override + public boolean hasHashStorage() { + return valueCase_ == 2; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + * + * @return The hashStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { + if (hashStorageBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return hashStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder setHashStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { + if (hashStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + hashStorageBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder setHashStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder builderForValue) { + if (hashStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + hashStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder mergeHashStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { + if (hashStorageBuilder_ == null) { + if (valueCase_ == 2 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + hashStorageBuilder_.mergeFrom(value); + } + hashStorageBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public Builder clearHashStorage() { + if (hashStorageBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + hashStorageBuilder_.clear(); + } + return this; + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder getHashStorageBuilder() { + return getHashStorageFieldBuilder().getBuilder(); + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { + if ((valueCase_ == 2) && (hashStorageBuilder_ != null)) { + return hashStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + } + + /** + * .HashOnlyNotaryStorage hashStorage = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHashStorageFieldBuilder() { + if (hashStorageBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage + .getDefaultInstance(); + } + hashStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return hashStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 linkStorageBuilder_; + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return Whether the linkStorage field is set. + */ + @java.lang.Override + public boolean hasLinkStorage() { + return valueCase_ == 3; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + * + * @return The linkStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { + if (linkStorageBuilder_ == null) { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return linkStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder setLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { + if (linkStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + linkStorageBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder setLinkStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder builderForValue) { + if (linkStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + linkStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder mergeLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { + if (linkStorageBuilder_ == null) { + if (valueCase_ == 3 && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage + .newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + linkStorageBuilder_.mergeFrom(value); + } + linkStorageBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public Builder clearLinkStorage() { + if (linkStorageBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + linkStorageBuilder_.clear(); + } + return this; + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder getLinkStorageBuilder() { + return getLinkStorageFieldBuilder().getBuilder(); + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { + if ((valueCase_ == 3) && (linkStorageBuilder_ != null)) { + return linkStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + } + + /** + * .LinkNotaryStorage linkStorage = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getLinkStorageFieldBuilder() { + if (linkStorageBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage + .getDefaultInstance(); + } + linkStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return linkStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 encryptStorageBuilder_; + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return Whether the encryptStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptStorage() { + return valueCase_ == 4; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + * + * @return The encryptStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { + if (encryptStorageBuilder_ == null) { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return encryptStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder setEncryptStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { + if (encryptStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + encryptStorageBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder setEncryptStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder builderForValue) { + if (encryptStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + encryptStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder mergeEncryptStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { + if (encryptStorageBuilder_ == null) { + if (valueCase_ == 4 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage + .newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + encryptStorageBuilder_.mergeFrom(value); + } + encryptStorageBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public Builder clearEncryptStorage() { + if (encryptStorageBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + encryptStorageBuilder_.clear(); + } + return this; + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder getEncryptStorageBuilder() { + return getEncryptStorageFieldBuilder().getBuilder(); + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { + if ((valueCase_ == 4) && (encryptStorageBuilder_ != null)) { + return encryptStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryStorage encryptStorage = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEncryptStorageFieldBuilder() { + if (encryptStorageBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage + .getDefaultInstance(); + } + encryptStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged(); + ; + return encryptStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 encryptShareStorageBuilder_; + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return Whether the encryptShareStorage field is set. + */ + @java.lang.Override + public boolean hasEncryptShareStorage() { + return valueCase_ == 5; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + * + * @return The encryptShareStorage. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { + if (encryptShareStorageBuilder_ == null) { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return encryptShareStorageBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder setEncryptShareStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { + if (encryptShareStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + encryptShareStorageBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder setEncryptShareStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder builderForValue) { + if (encryptShareStorageBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + encryptShareStorageBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder mergeEncryptShareStorage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { + if (encryptShareStorageBuilder_ == null) { + if (valueCase_ == 5 + && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.newBuilder( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + encryptShareStorageBuilder_.mergeFrom(value); + } + encryptShareStorageBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public Builder clearEncryptShareStorage() { + if (encryptShareStorageBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + encryptShareStorageBuilder_.clear(); + } + return this; + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder getEncryptShareStorageBuilder() { + return getEncryptShareStorageFieldBuilder().getBuilder(); + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { + if ((valueCase_ == 5) && (encryptShareStorageBuilder_ != null)) { + return encryptShareStorageBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } + } + + /** + * .EncryptShareNotaryStorage encryptShareStorage = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEncryptShareStorageFieldBuilder() { + if (encryptShareStorageBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance(); + } + encryptShareStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged(); + ; + return encryptShareStorageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 encryptAddBuilder_; + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return Whether the encryptAdd field is set. + */ + @java.lang.Override + public boolean hasEncryptAdd() { + return valueCase_ == 6; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + * + * @return The encryptAdd. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { + if (encryptAddBuilder_ == null) { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return encryptAddBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder setEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { + if (encryptAddBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + encryptAddBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder setEncryptAdd( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder builderForValue) { + if (encryptAddBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + encryptAddBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder mergeEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { + if (encryptAddBuilder_ == null) { + if (valueCase_ == 6 && value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd + .newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + encryptAddBuilder_.mergeFrom(value); + } + encryptAddBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public Builder clearEncryptAdd() { + if (encryptAddBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + encryptAddBuilder_.clear(); + } + return this; + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder getEncryptAddBuilder() { + return getEncryptAddFieldBuilder().getBuilder(); + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { + if ((valueCase_ == 6) && (encryptAddBuilder_ != null)) { + return encryptAddBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; + } + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + } + + /** + * .EncryptNotaryAdd encryptAdd = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEncryptAddFieldBuilder() { + if (encryptAddBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd + .getDefaultInstance(); + } + encryptAddBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged(); + ; + return encryptAddBuilder_; + } + + private int ty_; + + /** + * int32 ty = 7; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 7; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 7; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:StorageAction) + } + + // @@protoc_insertion_point(class_scope:StorageAction) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageAction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContentOnlyNotaryStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:ContentOnlyNotaryStorage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 长度需要小于512k
+         * 
+ * + * bytes content = 1; + * + * @return The content. + */ + com.google.protobuf.ByteString getContent(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * Op 0表示创建 1表示追加add
+         * 
+ * + * int32 op = 3; + * + * @return The op. + */ + int getOp(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + *
+     * 内容存证模型
+     * 
+ * + * Protobuf type {@code ContentOnlyNotaryStorage} + */ + public static final class ContentOnlyNotaryStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ContentOnlyNotaryStorage) + ContentOnlyNotaryStorageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ContentOnlyNotaryStorage.newBuilder() to construct. + private ContentOnlyNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContentOnlyNotaryStorage() { + content_ = com.google.protobuf.ByteString.EMPTY; + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContentOnlyNotaryStorage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ContentOnlyNotaryStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + content_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 24: { + + op_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString content_; + + /** + *
+         * 长度需要小于512k
+         * 
+ * + * bytes content = 1; + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContent() { + return content_; + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OP_FIELD_NUMBER = 3; + private int op_; + + /** + *
+         * Op 0表示创建 1表示追加add
+         * 
+ * + * int32 op = 3; + * + * @return The op. + */ + @java.lang.Override + public int getOp() { + return op_; + } + + public static final int VALUE_FIELD_NUMBER = 4; + private volatile java.lang.Object value_; + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!content_.isEmpty()) { + output.writeBytes(1, content_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + if (op_ != 0) { + output.writeInt32(3, op_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!content_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + if (op_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, op_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) obj; + + if (!getContent().equals(other.getContent())) + return false; + if (!getKey().equals(other.getKey())) + return false; + if (getOp() != other.getOp()) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOp(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ContentOnlyNotaryStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ContentOnlyNotaryStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = com.google.protobuf.ByteString.EMPTY; + + key_ = ""; + + op_ = 0; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage( + this); + result.content_ = content_; + result.key_ = key_; + result.op_ = op_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage + .getDefaultInstance()) + return this; + if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { + setContent(other.getContent()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getOp() != 0) { + setOp(other.getOp()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 长度需要小于512k
+             * 
+ * + * bytes content = 1; + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContent() { + return content_; + } + + /** + *
+             * 长度需要小于512k
+             * 
+ * + * bytes content = 1; + * + * @param value + * The content to set. + * + * @return This builder for chaining. + */ + public Builder setContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + + /** + *
+             * 长度需要小于512k
+             * 
+ * + * bytes content = 1; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int op_; + + /** + *
+             * Op 0表示创建 1表示追加add
+             * 
+ * + * int32 op = 3; + * + * @return The op. + */ + @java.lang.Override + public int getOp() { + return op_; + } + + /** + *
+             * Op 0表示创建 1表示追加add
+             * 
+ * + * int32 op = 3; + * + * @param value + * The op to set. + * + * @return This builder for chaining. + */ + public Builder setOp(int value) { + + op_ = value; + onChanged(); + return this; + } + + /** + *
+             * Op 0表示创建 1表示追加add
+             * 
+ * + * int32 op = 3; + * + * @return This builder for chaining. + */ + public Builder clearOp() { + + op_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ContentOnlyNotaryStorage) + } + + // @@protoc_insertion_point(class_scope:ContentOnlyNotaryStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentOnlyNotaryStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContentOnlyNotaryStorage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HashOnlyNotaryStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:HashOnlyNotaryStorage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 长度固定为32字节
+         * 
+ * + * bytes hash = 1; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 3; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 3; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + *
+     *哈希存证模型,推荐使用sha256哈希,限制256位得摘要值
+     * 
+ * + * Protobuf type {@code HashOnlyNotaryStorage} + */ + public static final class HashOnlyNotaryStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HashOnlyNotaryStorage) + HashOnlyNotaryStorageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HashOnlyNotaryStorage.newBuilder() to construct. + private HashOnlyNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HashOnlyNotaryStorage() { + hash_ = com.google.protobuf.ByteString.EMPTY; + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HashOnlyNotaryStorage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HashOnlyNotaryStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + hash_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString hash_; + + /** + *
+         * 长度固定为32字节
+         * 
+ * + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object value_; + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 3; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 3; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!hash_.isEmpty()) { + output.writeBytes(1, hash_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, hash_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) obj; + + if (!getHash().equals(other.getHash())) + return false; + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *哈希存证模型,推荐使用sha256哈希,限制256位得摘要值
+         * 
+ * + * Protobuf type {@code HashOnlyNotaryStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HashOnlyNotaryStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = com.google.protobuf.ByteString.EMPTY; + + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage( + this); + result.hash_ = hash_; + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage + .getDefaultInstance()) + return this; + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 长度固定为32字节
+             * 
+ * + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + *
+             * 长度固定为32字节
+             * 
+ * + * bytes hash = 1; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + *
+             * 长度固定为32字节
+             * 
+ * + * bytes hash = 1; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 2; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 3; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 3; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 3; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 3; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:HashOnlyNotaryStorage) + } + + // @@protoc_insertion_point(class_scope:HashOnlyNotaryStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HashOnlyNotaryStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HashOnlyNotaryStorage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LinkNotaryStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:LinkNotaryStorage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
+         * 
+ * + * bytes link = 1; + * + * @return The link. + */ + com.google.protobuf.ByteString getLink(); + + /** + *
+         *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
+         * 
+ * + * bytes hash = 2; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 3; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 3; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + *
+     * 链接存证模型
+     * 
+ * + * Protobuf type {@code LinkNotaryStorage} + */ + public static final class LinkNotaryStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:LinkNotaryStorage) + LinkNotaryStorageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LinkNotaryStorage.newBuilder() to construct. + private LinkNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinkNotaryStorage() { + link_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinkNotaryStorage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LinkNotaryStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + link_ = input.readBytes(); + break; + } + case 18: { + + hash_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder.class); + } + + public static final int LINK_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString link_; + + /** + *
+         *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
+         * 
+ * + * bytes link = 1; + * + * @return The link. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLink() { + return link_; + } + + public static final int HASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString hash_; + + /** + *
+         *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
+         * 
+ * + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int KEY_FIELD_NUMBER = 3; + private volatile java.lang.Object key_; + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 3; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 3; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 4; + private volatile java.lang.Object value_; + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 4; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!link_.isEmpty()) { + output.writeBytes(1, link_); + } + if (!hash_.isEmpty()) { + output.writeBytes(2, hash_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!link_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, link_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hash_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) obj; + + if (!getLink().equals(other.getLink())) + return false; + if (!getHash().equals(other.getHash())) + return false; + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINK_FIELD_NUMBER; + hash = (53 * hash) + getLink().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 LinkNotaryStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:LinkNotaryStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + link_ = com.google.protobuf.ByteString.EMPTY; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage( + this); + result.link_ = link_; + result.hash_ = hash_; + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance()) + return this; + if (other.getLink() != com.google.protobuf.ByteString.EMPTY) { + setLink(other.getLink()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString link_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
+             * 
+ * + * bytes link = 1; + * + * @return The link. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLink() { + return link_; + } + + /** + *
+             *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
+             * 
+ * + * bytes link = 1; + * + * @param value + * The link to set. + * + * @return This builder for chaining. + */ + public Builder setLink(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + link_ = value; + onChanged(); + return this; + } + + /** + *
+             *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
+             * 
+ * + * bytes link = 1; + * + * @return This builder for chaining. + */ + public Builder clearLink() { + + link_ = getDefaultInstance().getLink(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes hash = 2; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + *
+             *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes hash = 2; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + *
+             *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes hash = 2; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 3; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 3; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 3; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 3; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 3; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 4; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:LinkNotaryStorage) + } + + // @@protoc_insertion_point(class_scope:LinkNotaryStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkNotaryStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LinkNotaryStorage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EncryptNotaryStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:EncryptNotaryStorage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+         * 
+ * + * bytes contentHash = 1; + * + * @return The contentHash. + */ + com.google.protobuf.ByteString getContentHash(); + + /** + *
+         *源文件得密文,由加密key及nonce对明文加密得到该值。
+         * 
+ * + * bytes encryptContent = 2; + * + * @return The encryptContent. + */ + com.google.protobuf.ByteString getEncryptContent(); + + /** + *
+         *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
+         * 
+ * + * bytes nonce = 3; + * + * @return The nonce. + */ + com.google.protobuf.ByteString getNonce(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + *
+     * 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链
+     * 
+ * + * Protobuf type {@code EncryptNotaryStorage} + */ + public static final class EncryptNotaryStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EncryptNotaryStorage) + EncryptNotaryStorageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EncryptNotaryStorage.newBuilder() to construct. + private EncryptNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptNotaryStorage() { + contentHash_ = com.google.protobuf.ByteString.EMPTY; + encryptContent_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptNotaryStorage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EncryptNotaryStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + contentHash_ = input.readBytes(); + break; + } + case 18: { + + encryptContent_ = input.readBytes(); + break; + } + case 26: { + + nonce_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder.class); + } + + public static final int CONTENTHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString contentHash_; + + /** + *
+         *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+         * 
+ * + * bytes contentHash = 1; + * + * @return The contentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentHash() { + return contentHash_; + } + + public static final int ENCRYPTCONTENT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString encryptContent_; + + /** + *
+         *源文件得密文,由加密key及nonce对明文加密得到该值。
+         * 
+ * + * bytes encryptContent = 2; + * + * @return The encryptContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncryptContent() { + return encryptContent_; + } + + public static final int NONCE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString nonce_; + + /** + *
+         *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
+         * 
+ * + * bytes nonce = 3; + * + * @return The nonce. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + public static final int KEY_FIELD_NUMBER = 4; + private volatile java.lang.Object key_; + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 5; + private volatile java.lang.Object value_; + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!contentHash_.isEmpty()) { + output.writeBytes(1, contentHash_); + } + if (!encryptContent_.isEmpty()) { + output.writeBytes(2, encryptContent_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(3, nonce_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!contentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, contentHash_); + } + if (!encryptContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, encryptContent_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, nonce_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) obj; + + if (!getContentHash().equals(other.getContentHash())) + return false; + if (!getEncryptContent().equals(other.getEncryptContent())) + return false; + if (!getNonce().equals(other.getNonce())) + return false; + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getContentHash().hashCode(); + hash = (37 * hash) + ENCRYPTCONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEncryptContent().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 EncryptNotaryStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EncryptNotaryStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + contentHash_ = com.google.protobuf.ByteString.EMPTY; + + encryptContent_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage( + this); + result.contentHash_ = contentHash_; + result.encryptContent_ = encryptContent_; + result.nonce_ = nonce_; + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage + .getDefaultInstance()) + return this; + if (other.getContentHash() != com.google.protobuf.ByteString.EMPTY) { + setContentHash(other.getContentHash()); + } + if (other.getEncryptContent() != com.google.protobuf.ByteString.EMPTY) { + setEncryptContent(other.getEncryptContent()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString contentHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes contentHash = 1; + * + * @return The contentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentHash() { + return contentHash_; + } + + /** + *
+             *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes contentHash = 1; + * + * @param value + * The contentHash to set. + * + * @return This builder for chaining. + */ + public Builder setContentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contentHash_ = value; + onChanged(); + return this; + } + + /** + *
+             *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes contentHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearContentHash() { + + contentHash_ = getDefaultInstance().getContentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encryptContent_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *源文件得密文,由加密key及nonce对明文加密得到该值。
+             * 
+ * + * bytes encryptContent = 2; + * + * @return The encryptContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncryptContent() { + return encryptContent_; + } + + /** + *
+             *源文件得密文,由加密key及nonce对明文加密得到该值。
+             * 
+ * + * bytes encryptContent = 2; + * + * @param value + * The encryptContent to set. + * + * @return This builder for chaining. + */ + public Builder setEncryptContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + encryptContent_ = value; + onChanged(); + return this; + } + + /** + *
+             *源文件得密文,由加密key及nonce对明文加密得到该值。
+             * 
+ * + * bytes encryptContent = 2; + * + * @return This builder for chaining. + */ + public Builder clearEncryptContent() { + + encryptContent_ = getDefaultInstance().getEncryptContent(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
+             * 
+ * + * bytes nonce = 3; + * + * @return The nonce. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + /** + *
+             *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
+             * 
+ * + * bytes nonce = 3; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + + /** + *
+             *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
+             * 
+ * + * bytes nonce = 3; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EncryptNotaryStorage) + } + + // @@protoc_insertion_point(class_scope:EncryptNotaryStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptNotaryStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptNotaryStorage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EncryptShareNotaryStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:EncryptShareNotaryStorage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+         * 
+ * + * bytes contentHash = 1; + * + * @return The contentHash. + */ + com.google.protobuf.ByteString getContentHash(); + + /** + *
+         *源文件得密文。,用公钥地址加密
+         * 
+ * + * bytes encryptContent = 2; + * + * @return The encryptContent. + */ + com.google.protobuf.ByteString getEncryptContent(); + + /** + *
+         * 公钥
+         * 
+ * + * bytes pubKey = 3; + * + * @return The pubKey. + */ + com.google.protobuf.ByteString getPubKey(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + *
+     * 分享隐私存证模型,需要完备的sdk或者相应的密钥库支持
+     * 
+ * + * Protobuf type {@code EncryptShareNotaryStorage} + */ + public static final class EncryptShareNotaryStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EncryptShareNotaryStorage) + EncryptShareNotaryStorageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EncryptShareNotaryStorage.newBuilder() to construct. + private EncryptShareNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptShareNotaryStorage() { + contentHash_ = com.google.protobuf.ByteString.EMPTY; + encryptContent_ = com.google.protobuf.ByteString.EMPTY; + pubKey_ = com.google.protobuf.ByteString.EMPTY; + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptShareNotaryStorage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EncryptShareNotaryStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + contentHash_ = input.readBytes(); + break; + } + case 18: { + + encryptContent_ = input.readBytes(); + break; + } + case 26: { + + pubKey_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder.class); + } + + public static final int CONTENTHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString contentHash_; + + /** + *
+         *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+         * 
+ * + * bytes contentHash = 1; + * + * @return The contentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentHash() { + return contentHash_; + } + + public static final int ENCRYPTCONTENT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString encryptContent_; + + /** + *
+         *源文件得密文。,用公钥地址加密
+         * 
+ * + * bytes encryptContent = 2; + * + * @return The encryptContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncryptContent() { + return encryptContent_; + } + + public static final int PUBKEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString pubKey_; + + /** + *
+         * 公钥
+         * 
+ * + * bytes pubKey = 3; + * + * @return The pubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPubKey() { + return pubKey_; + } + + public static final int KEY_FIELD_NUMBER = 4; + private volatile java.lang.Object key_; + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + *
+         *自定义的主键,可以为空,如果没传,则用txhash为key
+         * 
+ * + * string key = 4; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 5; + private volatile java.lang.Object value_; + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + *
+         * 字符串值
+         * 
+ * + * string value = 5; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!contentHash_.isEmpty()) { + output.writeBytes(1, contentHash_); + } + if (!encryptContent_.isEmpty()) { + output.writeBytes(2, encryptContent_); + } + if (!pubKey_.isEmpty()) { + output.writeBytes(3, pubKey_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!contentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, contentHash_); + } + if (!encryptContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, encryptContent_); + } + if (!pubKey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, pubKey_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) obj; + + if (!getContentHash().equals(other.getContentHash())) + return false; + if (!getEncryptContent().equals(other.getEncryptContent())) + return false; + if (!getPubKey().equals(other.getPubKey())) + return false; + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getContentHash().hashCode(); + hash = (37 * hash) + ENCRYPTCONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEncryptContent().hashCode(); + hash = (37 * hash) + PUBKEY_FIELD_NUMBER; + hash = (53 * hash) + getPubKey().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 分享隐私存证模型,需要完备的sdk或者相应的密钥库支持
+         * 
+ * + * Protobuf type {@code EncryptShareNotaryStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EncryptShareNotaryStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + contentHash_ = com.google.protobuf.ByteString.EMPTY; + + encryptContent_ = com.google.protobuf.ByteString.EMPTY; + + pubKey_ = com.google.protobuf.ByteString.EMPTY; + + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage( + this); + result.contentHash_ = contentHash_; + result.encryptContent_ = encryptContent_; + result.pubKey_ = pubKey_; + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage + .getDefaultInstance()) + return this; + if (other.getContentHash() != com.google.protobuf.ByteString.EMPTY) { + setContentHash(other.getContentHash()); + } + if (other.getEncryptContent() != com.google.protobuf.ByteString.EMPTY) { + setEncryptContent(other.getEncryptContent()); + } + if (other.getPubKey() != com.google.protobuf.ByteString.EMPTY) { + setPubKey(other.getPubKey()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString contentHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes contentHash = 1; + * + * @return The contentHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentHash() { + return contentHash_; + } + + /** + *
+             *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes contentHash = 1; + * + * @param value + * The contentHash to set. + * + * @return This builder for chaining. + */ + public Builder setContentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contentHash_ = value; + onChanged(); + return this; + } + + /** + *
+             *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
+             * 
+ * + * bytes contentHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearContentHash() { + + contentHash_ = getDefaultInstance().getContentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encryptContent_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *源文件得密文。,用公钥地址加密
+             * 
+ * + * bytes encryptContent = 2; + * + * @return The encryptContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncryptContent() { + return encryptContent_; + } + + /** + *
+             *源文件得密文。,用公钥地址加密
+             * 
+ * + * bytes encryptContent = 2; + * + * @param value + * The encryptContent to set. + * + * @return This builder for chaining. + */ + public Builder setEncryptContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + encryptContent_ = value; + onChanged(); + return this; + } + + /** + *
+             *源文件得密文。,用公钥地址加密
+             * 
+ * + * bytes encryptContent = 2; + * + * @return This builder for chaining. + */ + public Builder clearEncryptContent() { + + encryptContent_ = getDefaultInstance().getEncryptContent(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 公钥
+             * 
+ * + * bytes pubKey = 3; + * + * @return The pubKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPubKey() { + return pubKey_; + } + + /** + *
+             * 公钥
+             * 
+ * + * bytes pubKey = 3; + * + * @param value + * The pubKey to set. + * + * @return This builder for chaining. + */ + public Builder setPubKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + pubKey_ = value; + onChanged(); + return this; + } + + /** + *
+             * 公钥
+             * 
+ * + * bytes pubKey = 3; + * + * @return This builder for chaining. + */ + public Builder clearPubKey() { + + pubKey_ = getDefaultInstance().getPubKey(); + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + *
+             *自定义的主键,可以为空,如果没传,则用txhash为key
+             * 
+ * + * string key = 4; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + /** + *
+             * 字符串值
+             * 
+ * + * string value = 5; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EncryptShareNotaryStorage) + } + + // @@protoc_insertion_point(class_scope:EncryptShareNotaryStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptShareNotaryStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptShareNotaryStorage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EncryptNotaryAddOrBuilder extends + // @@protoc_insertion_point(interface_extends:EncryptNotaryAdd) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * 源操作数存证索引
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         * 源操作数存证索引
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * 待操作数据
+         * 
+ * + * bytes encryptAdd = 2; + * + * @return The encryptAdd. + */ + com.google.protobuf.ByteString getEncryptAdd(); + } + + /** + *
+     * 加密存证数据运算
+     * 
+ * + * Protobuf type {@code EncryptNotaryAdd} + */ + public static final class EncryptNotaryAdd extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:EncryptNotaryAdd) + EncryptNotaryAddOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EncryptNotaryAdd.newBuilder() to construct. + private EncryptNotaryAdd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptNotaryAdd() { + key_ = ""; + encryptAdd_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptNotaryAdd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EncryptNotaryAdd(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + + encryptAdd_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + + /** + *
+         * 源操作数存证索引
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + *
+         * 源操作数存证索引
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENCRYPTADD_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString encryptAdd_; + + /** + *
+         * 待操作数据
+         * 
+ * + * bytes encryptAdd = 2; + * + * @return The encryptAdd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncryptAdd() { + return encryptAdd_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!encryptAdd_.isEmpty()) { + output.writeBytes(2, encryptAdd_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!encryptAdd_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, encryptAdd_); + } + 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 cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getEncryptAdd().equals(other.getEncryptAdd())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - boolean hasContentStorage(); - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage(); - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + ENCRYPTADD_FIELD_NUMBER; + hash = (53 * hash) + getEncryptAdd().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - boolean hasHashStorage(); - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage(); - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - boolean hasLinkStorage(); - /** - * .LinkNotaryStorage linkStorage = 3; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage(); - /** - * .LinkNotaryStorage linkStorage = 3; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - boolean hasEncryptStorage(); - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage(); - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - boolean hasEncryptShareStorage(); - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage(); - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - boolean hasEncryptAdd(); - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd(); - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * int32 ty = 7; - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.ValueCase getValueCase(); - } - /** - *
-   *后面如果有其他数据模型可继续往上面添加
-   * 
- * - * Protobuf type {@code Storage} - */ - public static final class Storage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Storage) - StorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use Storage.newBuilder() to construct. - private Storage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Storage() { - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Storage(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Storage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 56: { - - ty_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - CONTENTSTORAGE(1), - HASHSTORAGE(2), - LINKSTORAGE(3), - ENCRYPTSTORAGE(4), - ENCRYPTSHARESTORAGE(5), - ENCRYPTADD(6), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return CONTENTSTORAGE; - case 2: return HASHSTORAGE; - case 3: return LINKSTORAGE; - case 4: return ENCRYPTSTORAGE; - case 5: return ENCRYPTSHARESTORAGE; - case 6: return ENCRYPTADD; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int CONTENTSTORAGE_FIELD_NUMBER = 1; - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public boolean hasContentStorage() { - return valueCase_ == 1; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int HASHSTORAGE_FIELD_NUMBER = 2; - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public boolean hasHashStorage() { - return valueCase_ == 2; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int LINKSTORAGE_FIELD_NUMBER = 3; - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public boolean hasLinkStorage() { - return valueCase_ == 3; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int ENCRYPTSTORAGE_FIELD_NUMBER = 4; - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public boolean hasEncryptStorage() { - return valueCase_ == 4; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int ENCRYPTSHARESTORAGE_FIELD_NUMBER = 5; - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public boolean hasEncryptShareStorage() { - return valueCase_ == 5; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int ENCRYPTADD_FIELD_NUMBER = 6; - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public boolean hasEncryptAdd() { - return valueCase_ == 6; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int TY_FIELD_NUMBER = 7; - private int ty_; - /** - * int32 ty = 7; - */ - public int getTy() { - return ty_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + *
+         * 加密存证数据运算
+         * 
+ * + * Protobuf type {@code EncryptNotaryAdd} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:EncryptNotaryAdd) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder.class); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); - } - if (ty_ != 0) { - output.writeInt32(7, ty_); - } - unknownFields.writeTo(output); - } + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, ty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage) obj; - - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getContentStorage() - .equals(other.getContentStorage())) return false; - break; - case 2: - if (!getHashStorage() - .equals(other.getHashStorage())) return false; - break; - case 3: - if (!getLinkStorage() - .equals(other.getLinkStorage())) return false; - break; - case 4: - if (!getEncryptStorage() - .equals(other.getEncryptStorage())) return false; - break; - case 5: - if (!getEncryptShareStorage() - .equals(other.getEncryptShareStorage())) return false; - break; - case 6: - if (!getEncryptAdd() - .equals(other.getEncryptAdd())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + CONTENTSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getContentStorage().hashCode(); - break; - case 2: - hash = (37 * hash) + HASHSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getHashStorage().hashCode(); - break; - case 3: - hash = (37 * hash) + LINKSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getLinkStorage().hashCode(); - break; - case 4: - hash = (37 * hash) + ENCRYPTSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getEncryptStorage().hashCode(); - break; - case 5: - hash = (37 * hash) + ENCRYPTSHARESTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getEncryptShareStorage().hashCode(); - break; - case 6: - hash = (37 * hash) + ENCRYPTADD_FIELD_NUMBER; - hash = (53 * hash) + getEncryptAdd().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + encryptAdd_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd( + this); + result.key_ = key_; + result.encryptAdd_ = encryptAdd_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getEncryptAdd() != com.google.protobuf.ByteString.EMPTY) { + setEncryptAdd(other.getEncryptAdd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + + /** + *
+             * 源操作数存证索引
+             * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * 源操作数存证索引
+             * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * 源操作数存证索引
+             * 
+ * + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + *
+             * 源操作数存证索引
+             * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + *
+             * 源操作数存证索引
+             * 
+ * + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encryptAdd_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * 待操作数据
+             * 
+ * + * bytes encryptAdd = 2; + * + * @return The encryptAdd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncryptAdd() { + return encryptAdd_; + } + + /** + *
+             * 待操作数据
+             * 
+ * + * bytes encryptAdd = 2; + * + * @param value + * The encryptAdd to set. + * + * @return This builder for chaining. + */ + public Builder setEncryptAdd(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + encryptAdd_ = value; + onChanged(); + return this; + } + + /** + *
+             * 待操作数据
+             * 
+ * + * bytes encryptAdd = 2; + * + * @return This builder for chaining. + */ + public Builder clearEncryptAdd() { + + encryptAdd_ = getDefaultInstance().getEncryptAdd(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:EncryptNotaryAdd) + } + + // @@protoc_insertion_point(class_scope:EncryptNotaryAdd) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptNotaryAdd parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptNotaryAdd(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface QueryStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:QueryStorage) + com.google.protobuf.MessageOrBuilder { + + /** + * string txHash = 1; + * + * @return The txHash. + */ + java.lang.String getTxHash(); + + /** + * string txHash = 1; + * + * @return The bytes for txHash. + */ + com.google.protobuf.ByteString getTxHashBytes(); } + /** *
-     *后面如果有其他数据模型可继续往上面添加
+     * 根据txhash去状态数据库中查询存储内容
      * 
* - * Protobuf type {@code Storage} + * Protobuf type {@code QueryStorage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Storage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_Storage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage(this); - if (valueCase_ == 1) { - if (contentStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = contentStorageBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (hashStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = hashStorageBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (linkStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = linkStorageBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (encryptStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = encryptStorageBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (encryptShareStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = encryptShareStorageBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (encryptAddBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = encryptAddBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case CONTENTSTORAGE: { - mergeContentStorage(other.getContentStorage()); - break; - } - case HASHSTORAGE: { - mergeHashStorage(other.getHashStorage()); - break; - } - case LINKSTORAGE: { - mergeLinkStorage(other.getLinkStorage()); - break; - } - case ENCRYPTSTORAGE: { - mergeEncryptStorage(other.getEncryptStorage()); - break; - } - case ENCRYPTSHARESTORAGE: { - mergeEncryptShareStorage(other.getEncryptShareStorage()); - break; - } - case ENCRYPTADD: { - mergeEncryptAdd(other.getEncryptAdd()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder> contentStorageBuilder_; - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public boolean hasContentStorage() { - return valueCase_ == 1; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { - if (contentStorageBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return contentStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder setContentStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { - if (contentStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - contentStorageBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder setContentStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder builderForValue) { - if (contentStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - contentStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder mergeContentStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { - if (contentStorageBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - contentStorageBuilder_.mergeFrom(value); - } - contentStorageBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder clearContentStorage() { - if (contentStorageBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - contentStorageBuilder_.clear(); - } - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder getContentStorageBuilder() { - return getContentStorageFieldBuilder().getBuilder(); - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { - if ((valueCase_ == 1) && (contentStorageBuilder_ != null)) { - return contentStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder> - getContentStorageFieldBuilder() { - if (contentStorageBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - contentStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return contentStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder> hashStorageBuilder_; - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public boolean hasHashStorage() { - return valueCase_ == 2; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { - if (hashStorageBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return hashStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder setHashStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { - if (hashStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - hashStorageBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder setHashStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder builderForValue) { - if (hashStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - hashStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder mergeHashStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { - if (hashStorageBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - hashStorageBuilder_.mergeFrom(value); - } - hashStorageBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder clearHashStorage() { - if (hashStorageBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - hashStorageBuilder_.clear(); - } - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder getHashStorageBuilder() { - return getHashStorageFieldBuilder().getBuilder(); - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { - if ((valueCase_ == 2) && (hashStorageBuilder_ != null)) { - return hashStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder> - getHashStorageFieldBuilder() { - if (hashStorageBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - hashStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return hashStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder> linkStorageBuilder_; - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public boolean hasLinkStorage() { - return valueCase_ == 3; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { - if (linkStorageBuilder_ == null) { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return linkStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder setLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { - if (linkStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - linkStorageBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder setLinkStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder builderForValue) { - if (linkStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - linkStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder mergeLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { - if (linkStorageBuilder_ == null) { - if (valueCase_ == 3 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - linkStorageBuilder_.mergeFrom(value); - } - linkStorageBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder clearLinkStorage() { - if (linkStorageBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - linkStorageBuilder_.clear(); - } - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder getLinkStorageBuilder() { - return getLinkStorageFieldBuilder().getBuilder(); - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { - if ((valueCase_ == 3) && (linkStorageBuilder_ != null)) { - return linkStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder> - getLinkStorageFieldBuilder() { - if (linkStorageBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - linkStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return linkStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder> encryptStorageBuilder_; - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public boolean hasEncryptStorage() { - return valueCase_ == 4; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { - if (encryptStorageBuilder_ == null) { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return encryptStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder setEncryptStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { - if (encryptStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - encryptStorageBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder setEncryptStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder builderForValue) { - if (encryptStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - encryptStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder mergeEncryptStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { - if (encryptStorageBuilder_ == null) { - if (valueCase_ == 4 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - encryptStorageBuilder_.mergeFrom(value); - } - encryptStorageBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder clearEncryptStorage() { - if (encryptStorageBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - encryptStorageBuilder_.clear(); - } - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder getEncryptStorageBuilder() { - return getEncryptStorageFieldBuilder().getBuilder(); - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { - if ((valueCase_ == 4) && (encryptStorageBuilder_ != null)) { - return encryptStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder> - getEncryptStorageFieldBuilder() { - if (encryptStorageBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - encryptStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return encryptStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder> encryptShareStorageBuilder_; - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public boolean hasEncryptShareStorage() { - return valueCase_ == 5; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { - if (encryptShareStorageBuilder_ == null) { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return encryptShareStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder setEncryptShareStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { - if (encryptShareStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - encryptShareStorageBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder setEncryptShareStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder builderForValue) { - if (encryptShareStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - encryptShareStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder mergeEncryptShareStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { - if (encryptShareStorageBuilder_ == null) { - if (valueCase_ == 5 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - encryptShareStorageBuilder_.mergeFrom(value); - } - encryptShareStorageBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder clearEncryptShareStorage() { - if (encryptShareStorageBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - encryptShareStorageBuilder_.clear(); - } - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder getEncryptShareStorageBuilder() { - return getEncryptShareStorageFieldBuilder().getBuilder(); - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { - if ((valueCase_ == 5) && (encryptShareStorageBuilder_ != null)) { - return encryptShareStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder> - getEncryptShareStorageFieldBuilder() { - if (encryptShareStorageBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - encryptShareStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return encryptShareStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder> encryptAddBuilder_; - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public boolean hasEncryptAdd() { - return valueCase_ == 6; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { - if (encryptAddBuilder_ == null) { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return encryptAddBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder setEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { - if (encryptAddBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - encryptAddBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder setEncryptAdd( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder builderForValue) { - if (encryptAddBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - encryptAddBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder mergeEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { - if (encryptAddBuilder_ == null) { - if (valueCase_ == 6 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - encryptAddBuilder_.mergeFrom(value); - } - encryptAddBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder clearEncryptAdd() { - if (encryptAddBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - encryptAddBuilder_.clear(); - } - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder getEncryptAddBuilder() { - return getEncryptAddFieldBuilder().getBuilder(); - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { - if ((valueCase_ == 6) && (encryptAddBuilder_ != null)) { - return encryptAddBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder> - getEncryptAddFieldBuilder() { - if (encryptAddBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - encryptAddBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return encryptAddBuilder_; - } - - private int ty_ ; - /** - * int32 ty = 7; - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 7; - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 7; - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Storage) - } + public static final class QueryStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:QueryStorage) + QueryStorageOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:Storage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage(); - } + // Use QueryStorage.newBuilder() to construct. + private QueryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private QueryStorage() { + txHash_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Storage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Storage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryStorage(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private QueryStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + txHash_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.Builder.class); + } - public interface StorageActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:StorageAction) - com.google.protobuf.MessageOrBuilder { + public static final int TXHASH_FIELD_NUMBER = 1; + private volatile java.lang.Object txHash_; - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - boolean hasContentStorage(); - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage(); - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder(); + /** + * string txHash = 1; + * + * @return The txHash. + */ + @java.lang.Override + public java.lang.String getTxHash() { + java.lang.Object ref = txHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHash_ = s; + return s; + } + } + + /** + * string txHash = 1; + * + * @return The bytes for txHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHashBytes() { + java.lang.Object ref = txHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTxHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTxHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - boolean hasHashStorage(); - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage(); - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage) obj; - /** - * .LinkNotaryStorage linkStorage = 3; - */ - boolean hasLinkStorage(); - /** - * .LinkNotaryStorage linkStorage = 3; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage(); - /** - * .LinkNotaryStorage linkStorage = 3; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder(); + if (!getTxHash().equals(other.getTxHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - boolean hasEncryptStorage(); - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage(); - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - boolean hasEncryptShareStorage(); - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage(); - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - boolean hasEncryptAdd(); - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd(); - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * int32 ty = 7; - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.ValueCase getValueCase(); - } - /** - * Protobuf type {@code StorageAction} - */ - public static final class StorageAction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:StorageAction) - StorageActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use StorageAction.newBuilder() to construct. - private StorageAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StorageAction() { - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StorageAction(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StorageAction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 56: { - - ty_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - CONTENTSTORAGE(1), - HASHSTORAGE(2), - LINKSTORAGE(3), - ENCRYPTSTORAGE(4), - ENCRYPTSHARESTORAGE(5), - ENCRYPTADD(6), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return CONTENTSTORAGE; - case 2: return HASHSTORAGE; - case 3: return LINKSTORAGE; - case 4: return ENCRYPTSTORAGE; - case 5: return ENCRYPTSHARESTORAGE; - case 6: return ENCRYPTADD; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int CONTENTSTORAGE_FIELD_NUMBER = 1; - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public boolean hasContentStorage() { - return valueCase_ == 1; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int HASHSTORAGE_FIELD_NUMBER = 2; - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public boolean hasHashStorage() { - return valueCase_ == 2; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int LINKSTORAGE_FIELD_NUMBER = 3; - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public boolean hasLinkStorage() { - return valueCase_ == 3; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int ENCRYPTSTORAGE_FIELD_NUMBER = 4; - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public boolean hasEncryptStorage() { - return valueCase_ == 4; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int ENCRYPTSHARESTORAGE_FIELD_NUMBER = 5; - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public boolean hasEncryptShareStorage() { - return valueCase_ == 5; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int ENCRYPTADD_FIELD_NUMBER = 6; - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public boolean hasEncryptAdd() { - return valueCase_ == 6; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int TY_FIELD_NUMBER = 7; - private int ty_; - /** - * int32 ty = 7; - */ - public int getTy() { - return ty_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); - } - if (ty_ != 0) { - output.writeInt32(7, ty_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, ty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + *
+         * 根据txhash去状态数据库中查询存储内容
+         * 
+ * + * Protobuf type {@code QueryStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:QueryStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction) obj; - - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getContentStorage() - .equals(other.getContentStorage())) return false; - break; - case 2: - if (!getHashStorage() - .equals(other.getHashStorage())) return false; - break; - case 3: - if (!getLinkStorage() - .equals(other.getLinkStorage())) return false; - break; - case 4: - if (!getEncryptStorage() - .equals(other.getEncryptStorage())) return false; - break; - case 5: - if (!getEncryptShareStorage() - .equals(other.getEncryptShareStorage())) return false; - break; - case 6: - if (!getEncryptAdd() - .equals(other.getEncryptAdd())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + CONTENTSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getContentStorage().hashCode(); - break; - case 2: - hash = (37 * hash) + HASHSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getHashStorage().hashCode(); - break; - case 3: - hash = (37 * hash) + LINKSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getLinkStorage().hashCode(); - break; - case 4: - hash = (37 * hash) + ENCRYPTSTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getEncryptStorage().hashCode(); - break; - case 5: - hash = (37 * hash) + ENCRYPTSHARESTORAGE_FIELD_NUMBER; - hash = (53 * hash) + getEncryptShareStorage().hashCode(); - break; - case 6: - hash = (37 * hash) + ENCRYPTADD_FIELD_NUMBER; - hash = (53 * hash) + getEncryptAdd().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code StorageAction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:StorageAction) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_StorageAction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction(this); - if (valueCase_ == 1) { - if (contentStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = contentStorageBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (hashStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = hashStorageBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (linkStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = linkStorageBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (encryptStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = encryptStorageBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (encryptShareStorageBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = encryptShareStorageBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (encryptAddBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = encryptAddBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case CONTENTSTORAGE: { - mergeContentStorage(other.getContentStorage()); - break; - } - case HASHSTORAGE: { - mergeHashStorage(other.getHashStorage()); - break; - } - case LINKSTORAGE: { - mergeLinkStorage(other.getLinkStorage()); - break; - } - case ENCRYPTSTORAGE: { - mergeEncryptStorage(other.getEncryptStorage()); - break; - } - case ENCRYPTSHARESTORAGE: { - mergeEncryptShareStorage(other.getEncryptShareStorage()); - break; - } - case ENCRYPTADD: { - mergeEncryptAdd(other.getEncryptAdd()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder> contentStorageBuilder_; - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public boolean hasContentStorage() { - return valueCase_ == 1; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getContentStorage() { - if (contentStorageBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return contentStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder setContentStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { - if (contentStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - contentStorageBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder setContentStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder builderForValue) { - if (contentStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - contentStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder mergeContentStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage value) { - if (contentStorageBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - contentStorageBuilder_.mergeFrom(value); - } - contentStorageBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public Builder clearContentStorage() { - if (contentStorageBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - contentStorageBuilder_.clear(); - } - return this; - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder getContentStorageBuilder() { - return getContentStorageFieldBuilder().getBuilder(); - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder getContentStorageOrBuilder() { - if ((valueCase_ == 1) && (contentStorageBuilder_ != null)) { - return contentStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .ContentOnlyNotaryStorage contentStorage = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder> - getContentStorageFieldBuilder() { - if (contentStorageBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - contentStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return contentStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder> hashStorageBuilder_; - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public boolean hasHashStorage() { - return valueCase_ == 2; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getHashStorage() { - if (hashStorageBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return hashStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder setHashStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { - if (hashStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - hashStorageBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder setHashStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder builderForValue) { - if (hashStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - hashStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder mergeHashStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage value) { - if (hashStorageBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - hashStorageBuilder_.mergeFrom(value); - } - hashStorageBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public Builder clearHashStorage() { - if (hashStorageBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - hashStorageBuilder_.clear(); - } - return this; - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder getHashStorageBuilder() { - return getHashStorageFieldBuilder().getBuilder(); - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder getHashStorageOrBuilder() { - if ((valueCase_ == 2) && (hashStorageBuilder_ != null)) { - return hashStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - } - /** - * .HashOnlyNotaryStorage hashStorage = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder> - getHashStorageFieldBuilder() { - if (hashStorageBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - hashStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return hashStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder> linkStorageBuilder_; - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public boolean hasLinkStorage() { - return valueCase_ == 3; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getLinkStorage() { - if (linkStorageBuilder_ == null) { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return linkStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder setLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { - if (linkStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - linkStorageBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder setLinkStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder builderForValue) { - if (linkStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - linkStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder mergeLinkStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage value) { - if (linkStorageBuilder_ == null) { - if (valueCase_ == 3 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - linkStorageBuilder_.mergeFrom(value); - } - linkStorageBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public Builder clearLinkStorage() { - if (linkStorageBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - linkStorageBuilder_.clear(); - } - return this; - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder getLinkStorageBuilder() { - return getLinkStorageFieldBuilder().getBuilder(); - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder getLinkStorageOrBuilder() { - if ((valueCase_ == 3) && (linkStorageBuilder_ != null)) { - return linkStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - } - /** - * .LinkNotaryStorage linkStorage = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder> - getLinkStorageFieldBuilder() { - if (linkStorageBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - linkStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return linkStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder> encryptStorageBuilder_; - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public boolean hasEncryptStorage() { - return valueCase_ == 4; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getEncryptStorage() { - if (encryptStorageBuilder_ == null) { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return encryptStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder setEncryptStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { - if (encryptStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - encryptStorageBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder setEncryptStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder builderForValue) { - if (encryptStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - encryptStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder mergeEncryptStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage value) { - if (encryptStorageBuilder_ == null) { - if (valueCase_ == 4 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - encryptStorageBuilder_.mergeFrom(value); - } - encryptStorageBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public Builder clearEncryptStorage() { - if (encryptStorageBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - encryptStorageBuilder_.clear(); - } - return this; - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder getEncryptStorageBuilder() { - return getEncryptStorageFieldBuilder().getBuilder(); - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder getEncryptStorageOrBuilder() { - if ((valueCase_ == 4) && (encryptStorageBuilder_ != null)) { - return encryptStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptNotaryStorage encryptStorage = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder> - getEncryptStorageFieldBuilder() { - if (encryptStorageBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - encryptStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return encryptStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder> encryptShareStorageBuilder_; - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public boolean hasEncryptShareStorage() { - return valueCase_ == 5; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getEncryptShareStorage() { - if (encryptShareStorageBuilder_ == null) { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return encryptShareStorageBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder setEncryptShareStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { - if (encryptShareStorageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - encryptShareStorageBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder setEncryptShareStorage( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder builderForValue) { - if (encryptShareStorageBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - encryptShareStorageBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder mergeEncryptShareStorage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage value) { - if (encryptShareStorageBuilder_ == null) { - if (valueCase_ == 5 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - encryptShareStorageBuilder_.mergeFrom(value); - } - encryptShareStorageBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public Builder clearEncryptShareStorage() { - if (encryptShareStorageBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - encryptShareStorageBuilder_.clear(); - } - return this; - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder getEncryptShareStorageBuilder() { - return getEncryptShareStorageFieldBuilder().getBuilder(); - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder getEncryptShareStorageOrBuilder() { - if ((valueCase_ == 5) && (encryptShareStorageBuilder_ != null)) { - return encryptShareStorageBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - } - /** - * .EncryptShareNotaryStorage encryptShareStorage = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder> - getEncryptShareStorageFieldBuilder() { - if (encryptShareStorageBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - encryptShareStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return encryptShareStorageBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder> encryptAddBuilder_; - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public boolean hasEncryptAdd() { - return valueCase_ == 6; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getEncryptAdd() { - if (encryptAddBuilder_ == null) { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return encryptAddBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder setEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { - if (encryptAddBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - encryptAddBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder setEncryptAdd( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder builderForValue) { - if (encryptAddBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - encryptAddBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder mergeEncryptAdd(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd value) { - if (encryptAddBuilder_ == null) { - if (valueCase_ == 6 && - value_ != cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.newBuilder((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - encryptAddBuilder_.mergeFrom(value); - } - encryptAddBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public Builder clearEncryptAdd() { - if (encryptAddBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - encryptAddBuilder_.clear(); - } - return this; - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder getEncryptAddBuilder() { - return getEncryptAddFieldBuilder().getBuilder(); - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder getEncryptAddOrBuilder() { - if ((valueCase_ == 6) && (encryptAddBuilder_ != null)) { - return encryptAddBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_; - } - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - } - /** - * .EncryptNotaryAdd encryptAdd = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder> - getEncryptAddFieldBuilder() { - if (encryptAddBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - encryptAddBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder>( - (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return encryptAddBuilder_; - } - - private int ty_ ; - /** - * int32 ty = 7; - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 7; - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 7; - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:StorageAction) - } + @java.lang.Override + public Builder clear() { + super.clear(); + txHash_ = ""; - // @@protoc_insertion_point(class_scope:StorageAction) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction(); - } + return this; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StorageAction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage( + this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public interface ContentOnlyNotaryStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ContentOnlyNotaryStorage) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - *
-     *长度需要小于512k
-     * 
- * - * bytes content = 1; - */ - com.google.protobuf.ByteString getContent(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - java.lang.String getKey(); - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - *
-     * Op 0表示创建 1表示追加add
-     * 
- * - * int32 op = 3; - */ - int getOp(); + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - java.lang.String getValue(); - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * 内容存证模型
-   * 
- * - * Protobuf type {@code ContentOnlyNotaryStorage} - */ - public static final class ContentOnlyNotaryStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ContentOnlyNotaryStorage) - ContentOnlyNotaryStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContentOnlyNotaryStorage.newBuilder() to construct. - private ContentOnlyNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContentOnlyNotaryStorage() { - content_ = com.google.protobuf.ByteString.EMPTY; - key_ = ""; - value_ = ""; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ContentOnlyNotaryStorage(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContentOnlyNotaryStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.getDefaultInstance()) + return this; + if (!other.getTxHash().isEmpty()) { + txHash_ = other.txHash_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - content_ = input.readBytes(); - break; + @java.lang.Override + public final boolean isInitialized() { + return true; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - case 24: { - op_ = input.readInt32(); - break; + private java.lang.Object txHash_ = ""; + + /** + * string txHash = 1; + * + * @return The txHash. + */ + public java.lang.String getTxHash() { + java.lang.Object ref = txHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; + /** + * string txHash = 1; + * + * @return The bytes for txHash. + */ + public com.google.protobuf.ByteString getTxHashBytes() { + java.lang.Object ref = txHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + txHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + /** + * string txHash = 1; + * + * @param value + * The txHash to set. + * + * @return This builder for chaining. + */ + public Builder setTxHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder.class); - } + /** + * string txHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHash() { - public static final int CONTENT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString content_; - /** - *
-     *长度需要小于512k
-     * 
- * - * bytes content = 1; - */ - public com.google.protobuf.ByteString getContent() { - return content_; - } + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string txHash = 1; + * + * @param value + * The bytes for txHash to set. + * + * @return This builder for chaining. + */ + public Builder setTxHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txHash_ = value; + onChanged(); + return this; + } - public static final int OP_FIELD_NUMBER = 3; - private int op_; - /** - *
-     * Op 0表示创建 1表示追加add
-     * 
- * - * int32 op = 3; - */ - public int getOp() { - return op_; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int VALUE_FIELD_NUMBER = 4; - private volatile java.lang.Object value_; - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:QueryStorage) + } + + // @@protoc_insertion_point(class_scope:QueryStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage(); + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryStorage(input, extensionRegistry); + } + }; - memoizedIsInitialized = 1; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!content_.isEmpty()) { - output.writeBytes(1, content_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - if (op_ != 0) { - output.writeInt32(3, op_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, content_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - if (op_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, op_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) obj; - - if (!getContent() - .equals(other.getContent())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (getOp() - != other.getOp()) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOp(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public interface BatchQueryStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:BatchQueryStorage) + com.google.protobuf.MessageOrBuilder { - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated string txHashs = 1; + * + * @return A list containing the txHashs. + */ + java.util.List getTxHashsList(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated string txHashs = 1; + * + * @return The count of txHashs. + */ + int getTxHashsCount(); + + /** + * repeated string txHashs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHashs at the given index. + */ + java.lang.String getTxHashs(int index); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * repeated string txHashs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txHashs at the given index. + */ + com.google.protobuf.ByteString getTxHashsBytes(int index); } + /** *
-     * 内容存证模型
+     * 批量查询有可能导致数据库崩溃
      * 
* - * Protobuf type {@code ContentOnlyNotaryStorage} + * Protobuf type {@code BatchQueryStorage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ContentOnlyNotaryStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - content_ = com.google.protobuf.ByteString.EMPTY; - - key_ = ""; - - op_ = 0; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ContentOnlyNotaryStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage(this); - result.content_ = content_; - result.key_ = key_; - result.op_ = op_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage.getDefaultInstance()) return this; - if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { - setContent(other.getContent()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getOp() != 0) { - setOp(other.getOp()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *长度需要小于512k
-       * 
- * - * bytes content = 1; - */ - public com.google.protobuf.ByteString getContent() { - return content_; - } - /** - *
-       *长度需要小于512k
-       * 
- * - * bytes content = 1; - */ - public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - content_ = value; - onChanged(); - return this; - } - /** - *
-       *长度需要小于512k
-       * 
- * - * bytes content = 1; - */ - public Builder clearContent() { - - content_ = getDefaultInstance().getContent(); - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int op_ ; - /** - *
-       * Op 0表示创建 1表示追加add
-       * 
- * - * int32 op = 3; - */ - public int getOp() { - return op_; - } - /** - *
-       * Op 0表示创建 1表示追加add
-       * 
- * - * int32 op = 3; - */ - public Builder setOp(int value) { - - op_ = value; - onChanged(); - return this; - } - /** - *
-       * Op 0表示创建 1表示追加add
-       * 
- * - * int32 op = 3; - */ - public Builder clearOp() { - - op_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ContentOnlyNotaryStorage) - } - - // @@protoc_insertion_point(class_scope:ContentOnlyNotaryStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage(); - } + public static final class BatchQueryStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BatchQueryStorage) + BatchQueryStorageOrBuilder { + private static final long serialVersionUID = 0L; - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentOnlyNotaryStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContentOnlyNotaryStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Use BatchQueryStorage.newBuilder() to construct. + private BatchQueryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private BatchQueryStorage() { + txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ContentOnlyNotaryStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchQueryStorage(); + } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public interface HashOnlyNotaryStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:HashOnlyNotaryStorage) - com.google.protobuf.MessageOrBuilder { + private BatchQueryStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txHashs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txHashs_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txHashs_ = txHashs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - /** - *
-     *长度固定为32字节
-     * 
- * - * bytes hash = 1; - */ - com.google.protobuf.ByteString getHash(); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_descriptor; + } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - java.lang.String getKey(); - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.Builder.class); + } - /** - *
-     *字符串值
-     * 
- * - * string value = 3; - */ - java.lang.String getValue(); - /** - *
-     *字符串值
-     * 
- * - * string value = 3; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   *哈希存证模型,推荐使用sha256哈希,限制256位得摘要值
-   * 
- * - * Protobuf type {@code HashOnlyNotaryStorage} - */ - public static final class HashOnlyNotaryStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HashOnlyNotaryStorage) - HashOnlyNotaryStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use HashOnlyNotaryStorage.newBuilder() to construct. - private HashOnlyNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HashOnlyNotaryStorage() { - hash_ = com.google.protobuf.ByteString.EMPTY; - key_ = ""; - value_ = ""; - } + public static final int TXHASHS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList txHashs_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HashOnlyNotaryStorage(); - } + /** + * repeated string txHashs = 1; + * + * @return A list containing the txHashs. + */ + public com.google.protobuf.ProtocolStringList getTxHashsList() { + return txHashs_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HashOnlyNotaryStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_descriptor; - } + /** + * repeated string txHashs = 1; + * + * @return The count of txHashs. + */ + public int getTxHashsCount() { + return txHashs_.size(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder.class); - } + /** + * repeated string txHashs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHashs at the given index. + */ + public java.lang.String getTxHashs(int index) { + return txHashs_.get(index); + } - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - *
-     *长度固定为32字节
-     * 
- * - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + /** + * repeated string txHashs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txHashs at the given index. + */ + public com.google.protobuf.ByteString getTxHashsBytes(int index) { + return txHashs_.getByteString(index); + } - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private byte memoizedIsInitialized = -1; - public static final int VALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object value_; - /** - *
-     *字符串值
-     * 
- * - * string value = 3; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     *字符串值
-     * 
- * - * string value = 3; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + memoizedIsInitialized = 1; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txHashs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHashs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < txHashs_.size(); i++) { + dataSize += computeStringSizeNoTag(txHashs_.getRaw(i)); + } + size += dataSize; + size += 1 * getTxHashsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage) obj; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + if (!getTxHashsList().equals(other.getTxHashsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxHashsCount() > 0) { + hash = (37 * hash) + TXHASHS_FIELD_NUMBER; + hash = (53 * hash) + getTxHashsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *哈希存证模型,推荐使用sha256哈希,限制256位得摘要值
-     * 
- * - * Protobuf type {@code HashOnlyNotaryStorage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HashOnlyNotaryStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_HashOnlyNotaryStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage(this); - result.hash_ = hash_; - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *长度固定为32字节
-       * 
- * - * bytes hash = 1; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - *
-       *长度固定为32字节
-       * 
- * - * bytes hash = 1; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-       *长度固定为32字节
-       * 
- * - * bytes hash = 1; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       *字符串值
-       * 
- * - * string value = 3; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 3; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 3; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 3; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 3; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HashOnlyNotaryStorage) - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:HashOnlyNotaryStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HashOnlyNotaryStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HashOnlyNotaryStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public interface LinkNotaryStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:LinkNotaryStorage) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - *
-     *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
-     * 
- * - * bytes link = 1; - */ - com.google.protobuf.ByteString getLink(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - *
-     *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
-     * 
- * - * bytes hash = 2; - */ - com.google.protobuf.ByteString getHash(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 3; - */ - java.lang.String getKey(); - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 3; - */ - com.google.protobuf.ByteString - getKeyBytes(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - java.lang.String getValue(); - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * 链接存证模型
-   * 
- * - * Protobuf type {@code LinkNotaryStorage} - */ - public static final class LinkNotaryStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:LinkNotaryStorage) - LinkNotaryStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use LinkNotaryStorage.newBuilder() to construct. - private LinkNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LinkNotaryStorage() { - link_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - key_ = ""; - value_ = ""; - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LinkNotaryStorage(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LinkNotaryStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - link_ = input.readBytes(); - break; + /** + *
+         * 批量查询有可能导致数据库崩溃
+         * 
+ * + * Protobuf type {@code BatchQueryStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BatchQueryStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_descriptor; } - case 18: { - hash_ = input.readBytes(); - break; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.Builder.class); } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder.class); - } - - public static final int LINK_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString link_; - /** - *
-     *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
-     * 
- * - * bytes link = 1; - */ - public com.google.protobuf.ByteString getLink() { - return link_; - } - - public static final int HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString hash_; - /** - *
-     *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
-     * 
- * - * bytes hash = 2; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - public static final int KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object key_; - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 3; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 3; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 4; - private volatile java.lang.Object value_; - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     *字符串值
-     * 
- * - * string value = 4; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!link_.isEmpty()) { - output.writeBytes(1, link_); - } - if (!hash_.isEmpty()) { - output.writeBytes(2, hash_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!link_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, link_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, hash_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) obj; - - if (!getLink() - .equals(other.getLink())) return false; - if (!getHash() - .equals(other.getHash())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LINK_FIELD_NUMBER; - hash = (53 * hash) + getLink().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + txHashs_ = txHashs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txHashs_ = txHashs_; + onBuilt(); + return result; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 链接存证模型
-     * 
- * - * Protobuf type {@code LinkNotaryStorage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:LinkNotaryStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - link_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_LinkNotaryStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage(this); - result.link_ = link_; - result.hash_ = hash_; - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.getDefaultInstance()) return this; - if (other.getLink() != com.google.protobuf.ByteString.EMPTY) { - setLink(other.getLink()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString link_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
-       * 
- * - * bytes link = 1; - */ - public com.google.protobuf.ByteString getLink() { - return link_; - } - /** - *
-       *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
-       * 
- * - * bytes link = 1; - */ - public Builder setLink(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - link_ = value; - onChanged(); - return this; - } - /** - *
-       *存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
-       * 
- * - * bytes link = 1; - */ - public Builder clearLink() { - - link_ = getDefaultInstance().getLink(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes hash = 2; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - *
-       *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes hash = 2; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-       *源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes hash = 2; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 3; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 3; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 3; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 3; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 3; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 4; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:LinkNotaryStorage) - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - // @@protoc_insertion_point(class_scope:LinkNotaryStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage(); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkNotaryStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LinkNotaryStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.getDefaultInstance()) + return this; + if (!other.txHashs_.isEmpty()) { + if (txHashs_.isEmpty()) { + txHashs_ = other.txHashs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxHashsIsMutable(); + txHashs_.addAll(other.txHashs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public interface EncryptNotaryStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:EncryptNotaryStorage) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - *
-     *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-     * 
- * - * bytes contentHash = 1; - */ - com.google.protobuf.ByteString getContentHash(); + private int bitField0_; - /** - *
-     *源文件得密文,由加密key及nonce对明文加密得到该值。
-     * 
- * - * bytes encryptContent = 2; - */ - com.google.protobuf.ByteString getEncryptContent(); + private com.google.protobuf.LazyStringList txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - /** - *
-     *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
-     * 
- * - * bytes nonce = 3; - */ - com.google.protobuf.ByteString getNonce(); + private void ensureTxHashsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txHashs_ = new com.google.protobuf.LazyStringArrayList(txHashs_); + bitField0_ |= 0x00000001; + } + } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - java.lang.String getKey(); - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - com.google.protobuf.ByteString - getKeyBytes(); + /** + * repeated string txHashs = 1; + * + * @return A list containing the txHashs. + */ + public com.google.protobuf.ProtocolStringList getTxHashsList() { + return txHashs_.getUnmodifiableView(); + } - /** - *
-     *字符串值
-     * 
- * - * string value = 5; - */ - java.lang.String getValue(); - /** - *
-     *字符串值
-     * 
- * - * string value = 5; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链
-   * 
- * - * Protobuf type {@code EncryptNotaryStorage} - */ - public static final class EncryptNotaryStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EncryptNotaryStorage) - EncryptNotaryStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use EncryptNotaryStorage.newBuilder() to construct. - private EncryptNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EncryptNotaryStorage() { - contentHash_ = com.google.protobuf.ByteString.EMPTY; - encryptContent_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - key_ = ""; - value_ = ""; - } + /** + * repeated string txHashs = 1; + * + * @return The count of txHashs. + */ + public int getTxHashsCount() { + return txHashs_.size(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EncryptNotaryStorage(); - } + /** + * repeated string txHashs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHashs at the given index. + */ + public java.lang.String getTxHashs(int index) { + return txHashs_.get(index); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EncryptNotaryStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { + /** + * repeated string txHashs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txHashs at the given index. + */ + public com.google.protobuf.ByteString getTxHashsBytes(int index) { + return txHashs_.getByteString(index); + } - contentHash_ = input.readBytes(); - break; + /** + * repeated string txHashs = 1; + * + * @param index + * The index to set the value at. + * @param value + * The txHashs to set. + * + * @return This builder for chaining. + */ + public Builder setTxHashs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashsIsMutable(); + txHashs_.set(index, value); + onChanged(); + return this; } - case 18: { - encryptContent_ = input.readBytes(); - break; + /** + * repeated string txHashs = 1; + * + * @param value + * The txHashs to add. + * + * @return This builder for chaining. + */ + public Builder addTxHashs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashsIsMutable(); + txHashs_.add(value); + onChanged(); + return this; } - case 26: { - nonce_ = input.readBytes(); - break; + /** + * repeated string txHashs = 1; + * + * @param values + * The txHashs to add. + * + * @return This builder for chaining. + */ + public Builder addAllTxHashs(java.lang.Iterable values) { + ensureTxHashsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHashs_); + onChanged(); + return this; } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; + /** + * repeated string txHashs = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHashs() { + txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; + /** + * repeated string txHashs = 1; + * + * @param value + * The bytes of the txHashs to add. + * + * @return This builder for chaining. + */ + public Builder addTxHashsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTxHashsIsMutable(); + txHashs_.add(value); + onChanged(); + return this; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } + + // @@protoc_insertion_point(builder_scope:BatchQueryStorage) } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder.class); - } + // @@protoc_insertion_point(class_scope:BatchQueryStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage(); + } - public static final int CONTENTHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString contentHash_; - /** - *
-     *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-     * 
- * - * bytes contentHash = 1; - */ - public com.google.protobuf.ByteString getContentHash() { - return contentHash_; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int ENCRYPTCONTENT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString encryptContent_; - /** - *
-     *源文件得密文,由加密key及nonce对明文加密得到该值。
-     * 
- * - * bytes encryptContent = 2; - */ - public com.google.protobuf.ByteString getEncryptContent() { - return encryptContent_; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchQueryStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchQueryStorage(input, extensionRegistry); + } + }; - public static final int NONCE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString nonce_; - /** - *
-     *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
-     * 
- * - * bytes nonce = 3; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int KEY_FIELD_NUMBER = 4; - private volatile java.lang.Object key_; - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } } - public static final int VALUE_FIELD_NUMBER = 5; - private volatile java.lang.Object value_; - /** - *
-     *字符串值
-     * 
- * - * string value = 5; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } + public interface BatchReplyStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:BatchReplyStorage) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Storage storages = 1; + */ + java.util.List getStoragesList(); + + /** + * repeated .Storage storages = 1; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getStorages(int index); + + /** + * repeated .Storage storages = 1; + */ + int getStoragesCount(); + + /** + * repeated .Storage storages = 1; + */ + java.util.List getStoragesOrBuilderList(); + + /** + * repeated .Storage storages = 1; + */ + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder getStoragesOrBuilder(int index); } + /** - *
-     *字符串值
-     * 
- * - * string value = 5; + * Protobuf type {@code BatchReplyStorage} */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class BatchReplyStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BatchReplyStorage) + BatchReplyStorageOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use BatchReplyStorage.newBuilder() to construct. + private BatchReplyStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private BatchReplyStorage() { + storages_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!contentHash_.isEmpty()) { - output.writeBytes(1, contentHash_); - } - if (!encryptContent_.isEmpty()) { - output.writeBytes(2, encryptContent_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(3, nonce_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchReplyStorage(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!contentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, contentHash_); - } - if (!encryptContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, encryptContent_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, nonce_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) obj; - - if (!getContentHash() - .equals(other.getContentHash())) return false; - if (!getEncryptContent() - .equals(other.getEncryptContent())) return false; - if (!getNonce() - .equals(other.getNonce())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private BatchReplyStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + storages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + storages_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + storages_ = java.util.Collections.unmodifiableList(storages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getContentHash().hashCode(); - hash = (37 * hash) + ENCRYPTCONTENT_FIELD_NUMBER; - hash = (53 * hash) + getEncryptContent().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int STORAGES_FIELD_NUMBER = 1; + private java.util.List storages_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链
-     * 
- * - * Protobuf type {@code EncryptNotaryStorage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EncryptNotaryStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contentHash_ = com.google.protobuf.ByteString.EMPTY; - - encryptContent_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage(this); - result.contentHash_ = contentHash_; - result.encryptContent_ = encryptContent_; - result.nonce_ = nonce_; - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.getDefaultInstance()) return this; - if (other.getContentHash() != com.google.protobuf.ByteString.EMPTY) { - setContentHash(other.getContentHash()); - } - if (other.getEncryptContent() != com.google.protobuf.ByteString.EMPTY) { - setEncryptContent(other.getEncryptContent()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString contentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes contentHash = 1; - */ - public com.google.protobuf.ByteString getContentHash() { - return contentHash_; - } - /** - *
-       *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes contentHash = 1; - */ - public Builder setContentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contentHash_ = value; - onChanged(); - return this; - } - /** - *
-       *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes contentHash = 1; - */ - public Builder clearContentHash() { - - contentHash_ = getDefaultInstance().getContentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encryptContent_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *源文件得密文,由加密key及nonce对明文加密得到该值。
-       * 
- * - * bytes encryptContent = 2; - */ - public com.google.protobuf.ByteString getEncryptContent() { - return encryptContent_; - } - /** - *
-       *源文件得密文,由加密key及nonce对明文加密得到该值。
-       * 
- * - * bytes encryptContent = 2; - */ - public Builder setEncryptContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - encryptContent_ = value; - onChanged(); - return this; - } - /** - *
-       *源文件得密文,由加密key及nonce对明文加密得到该值。
-       * 
- * - * bytes encryptContent = 2; - */ - public Builder clearEncryptContent() { - - encryptContent_ = getDefaultInstance().getEncryptContent(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
-       * 
- * - * bytes nonce = 3; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - *
-       *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
-       * 
- * - * bytes nonce = 3; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - *
-       *加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
-       * 
- * - * bytes nonce = 3; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EncryptNotaryStorage) - } + /** + * repeated .Storage storages = 1; + */ + @java.lang.Override + public java.util.List getStoragesList() { + return storages_; + } - // @@protoc_insertion_point(class_scope:EncryptNotaryStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage(); - } + /** + * repeated .Storage storages = 1; + */ + @java.lang.Override + public java.util.List getStoragesOrBuilderList() { + return storages_; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Storage storages = 1; + */ + @java.lang.Override + public int getStoragesCount() { + return storages_.size(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptNotaryStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptNotaryStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .Storage storages = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getStorages(int index) { + return storages_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .Storage storages = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder getStoragesOrBuilder(int index) { + return storages_.get(index); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface EncryptShareNotaryStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:EncryptShareNotaryStorage) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - *
-     *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-     * 
- * - * bytes contentHash = 1; - */ - com.google.protobuf.ByteString getContentHash(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < storages_.size(); i++) { + output.writeMessage(1, storages_.get(i)); + } + unknownFields.writeTo(output); + } - /** - *
-     *源文件得密文。,用公钥地址加密
-     * 
- * - * bytes encryptContent = 2; - */ - com.google.protobuf.ByteString getEncryptContent(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - *
-     *公钥
-     * 
- * - * bytes pubKey = 3; - */ - com.google.protobuf.ByteString getPubKey(); + size = 0; + for (int i = 0; i < storages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, storages_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - java.lang.String getKey(); - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage) obj; - /** - *
-     *字符串值
-     * 
- * - * string value = 5; - */ - java.lang.String getValue(); - /** - *
-     *字符串值
-     * 
- * - * string value = 5; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * 分享隐私存证模型,需要完备的sdk或者相应的密钥库支持
-   * 
- * - * Protobuf type {@code EncryptShareNotaryStorage} - */ - public static final class EncryptShareNotaryStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EncryptShareNotaryStorage) - EncryptShareNotaryStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use EncryptShareNotaryStorage.newBuilder() to construct. - private EncryptShareNotaryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EncryptShareNotaryStorage() { - contentHash_ = com.google.protobuf.ByteString.EMPTY; - encryptContent_ = com.google.protobuf.ByteString.EMPTY; - pubKey_ = com.google.protobuf.ByteString.EMPTY; - key_ = ""; - value_ = ""; - } + if (!getStoragesList().equals(other.getStoragesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStoragesCount() > 0) { + hash = (37 * hash) + STORAGES_FIELD_NUMBER; + hash = (53 * hash) + getStoragesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EncryptShareNotaryStorage(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EncryptShareNotaryStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - contentHash_ = input.readBytes(); - break; - } - case 18: { + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - encryptContent_ = input.readBytes(); - break; - } - case 26: { + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - pubKey_ = input.readBytes(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - key_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int CONTENTHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString contentHash_; - /** - *
-     *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-     * 
- * - * bytes contentHash = 1; - */ - public com.google.protobuf.ByteString getContentHash() { - return contentHash_; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int ENCRYPTCONTENT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString encryptContent_; - /** - *
-     *源文件得密文。,用公钥地址加密
-     * 
- * - * bytes encryptContent = 2; - */ - public com.google.protobuf.ByteString getEncryptContent() { - return encryptContent_; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int PUBKEY_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString pubKey_; - /** - *
-     *公钥
-     * 
- * - * bytes pubKey = 3; - */ - public com.google.protobuf.ByteString getPubKey() { - return pubKey_; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int KEY_FIELD_NUMBER = 4; - private volatile java.lang.Object key_; - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     *自定义的主键,可以为空,如果没传,则用txhash为key
-     * 
- * - * string key = 4; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int VALUE_FIELD_NUMBER = 5; - private volatile java.lang.Object value_; - /** - *
-     *字符串值
-     * 
- * - * string value = 5; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     *字符串值
-     * 
- * - * string value = 5; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!contentHash_.isEmpty()) { - output.writeBytes(1, contentHash_); - } - if (!encryptContent_.isEmpty()) { - output.writeBytes(2, encryptContent_); - } - if (!pubKey_.isEmpty()) { - output.writeBytes(3, pubKey_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!contentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, contentHash_); - } - if (!encryptContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, encryptContent_); - } - if (!pubKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, pubKey_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * Protobuf type {@code BatchReplyStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BatchReplyStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) obj; - - if (!getContentHash() - .equals(other.getContentHash())) return false; - if (!getEncryptContent() - .equals(other.getEncryptContent())) return false; - if (!getPubKey() - .equals(other.getPubKey())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getContentHash().hashCode(); - hash = (37 * hash) + ENCRYPTCONTENT_FIELD_NUMBER; - hash = (53 * hash) + getEncryptContent().hashCode(); - hash = (37 * hash) + PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getPubKey().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStoragesFieldBuilder(); + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 分享隐私存证模型,需要完备的sdk或者相应的密钥库支持
-     * 
- * - * Protobuf type {@code EncryptShareNotaryStorage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EncryptShareNotaryStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contentHash_ = com.google.protobuf.ByteString.EMPTY; - - encryptContent_ = com.google.protobuf.ByteString.EMPTY; - - pubKey_ = com.google.protobuf.ByteString.EMPTY; - - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptShareNotaryStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage(this); - result.contentHash_ = contentHash_; - result.encryptContent_ = encryptContent_; - result.pubKey_ = pubKey_; - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.getDefaultInstance()) return this; - if (other.getContentHash() != com.google.protobuf.ByteString.EMPTY) { - setContentHash(other.getContentHash()); - } - if (other.getEncryptContent() != com.google.protobuf.ByteString.EMPTY) { - setEncryptContent(other.getEncryptContent()); - } - if (other.getPubKey() != com.google.protobuf.ByteString.EMPTY) { - setPubKey(other.getPubKey()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString contentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes contentHash = 1; - */ - public com.google.protobuf.ByteString getContentHash() { - return contentHash_; - } - /** - *
-       *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes contentHash = 1; - */ - public Builder setContentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contentHash_ = value; - onChanged(); - return this; - } - /** - *
-       *存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
-       * 
- * - * bytes contentHash = 1; - */ - public Builder clearContentHash() { - - contentHash_ = getDefaultInstance().getContentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encryptContent_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *源文件得密文。,用公钥地址加密
-       * 
- * - * bytes encryptContent = 2; - */ - public com.google.protobuf.ByteString getEncryptContent() { - return encryptContent_; - } - /** - *
-       *源文件得密文。,用公钥地址加密
-       * 
- * - * bytes encryptContent = 2; - */ - public Builder setEncryptContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - encryptContent_ = value; - onChanged(); - return this; - } - /** - *
-       *源文件得密文。,用公钥地址加密
-       * 
- * - * bytes encryptContent = 2; - */ - public Builder clearEncryptContent() { - - encryptContent_ = getDefaultInstance().getEncryptContent(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *公钥
-       * 
- * - * bytes pubKey = 3; - */ - public com.google.protobuf.ByteString getPubKey() { - return pubKey_; - } - /** - *
-       *公钥
-       * 
- * - * bytes pubKey = 3; - */ - public Builder setPubKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - pubKey_ = value; - onChanged(); - return this; - } - /** - *
-       *公钥
-       * 
- * - * bytes pubKey = 3; - */ - public Builder clearPubKey() { - - pubKey_ = getDefaultInstance().getPubKey(); - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *自定义的主键,可以为空,如果没传,则用txhash为key
-       * 
- * - * string key = 4; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *字符串值
-       * 
- * - * string value = 5; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EncryptShareNotaryStorage) - } + @java.lang.Override + public Builder clear() { + super.clear(); + if (storagesBuilder_ == null) { + storages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + storagesBuilder_.clear(); + } + return this; + } - // @@protoc_insertion_point(class_scope:EncryptShareNotaryStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.getDefaultInstance(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptShareNotaryStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptShareNotaryStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage( + this); + int from_bitField0_ = bitField0_; + if (storagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + storages_ = java.util.Collections.unmodifiableList(storages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.storages_ = storages_; + } else { + result.storages_ = storagesBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public interface EncryptNotaryAddOrBuilder extends - // @@protoc_insertion_point(interface_extends:EncryptNotaryAdd) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - *
-     *源操作数存证索引
-     * 
- * - * string key = 1; - */ - java.lang.String getKey(); - /** - *
-     *源操作数存证索引
-     * 
- * - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - *
-     *待操作数据
-     * 
- * - * bytes encryptAdd = 2; - */ - com.google.protobuf.ByteString getEncryptAdd(); - } - /** - *
-   * 加密存证数据运算
-   * 
- * - * Protobuf type {@code EncryptNotaryAdd} - */ - public static final class EncryptNotaryAdd extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EncryptNotaryAdd) - EncryptNotaryAddOrBuilder { - private static final long serialVersionUID = 0L; - // Use EncryptNotaryAdd.newBuilder() to construct. - private EncryptNotaryAdd(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EncryptNotaryAdd() { - key_ = ""; - encryptAdd_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EncryptNotaryAdd(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EncryptNotaryAdd( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - - encryptAdd_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder.class); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.getDefaultInstance()) + return this; + if (storagesBuilder_ == null) { + if (!other.storages_.isEmpty()) { + if (storages_.isEmpty()) { + storages_ = other.storages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStoragesIsMutable(); + storages_.addAll(other.storages_); + } + onChanged(); + } + } else { + if (!other.storages_.isEmpty()) { + if (storagesBuilder_.isEmpty()) { + storagesBuilder_.dispose(); + storagesBuilder_ = null; + storages_ = other.storages_; + bitField0_ = (bitField0_ & ~0x00000001); + storagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStoragesFieldBuilder() : null; + } else { + storagesBuilder_.addAllMessages(other.storages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     *源操作数存证索引
-     * 
- * - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     *源操作数存证索引
-     * 
- * - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int ENCRYPTADD_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString encryptAdd_; - /** - *
-     *待操作数据
-     * 
- * - * bytes encryptAdd = 2; - */ - public com.google.protobuf.ByteString getEncryptAdd() { - return encryptAdd_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int bitField0_; - memoizedIsInitialized = 1; - return true; - } + private java.util.List storages_ = java.util.Collections + .emptyList(); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!encryptAdd_.isEmpty()) { - output.writeBytes(2, encryptAdd_); - } - unknownFields.writeTo(output); - } + private void ensureStoragesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + storages_ = new java.util.ArrayList( + storages_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!encryptAdd_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, encryptAdd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private com.google.protobuf.RepeatedFieldBuilderV3 storagesBuilder_; + + /** + * repeated .Storage storages = 1; + */ + public java.util.List getStoragesList() { + if (storagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(storages_); + } else { + return storagesBuilder_.getMessageList(); + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getEncryptAdd() - .equals(other.getEncryptAdd())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated .Storage storages = 1; + */ + public int getStoragesCount() { + if (storagesBuilder_ == null) { + return storages_.size(); + } else { + return storagesBuilder_.getCount(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + ENCRYPTADD_FIELD_NUMBER; - hash = (53 * hash) + getEncryptAdd().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated .Storage storages = 1; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getStorages(int index) { + if (storagesBuilder_ == null) { + return storages_.get(index); + } else { + return storagesBuilder_.getMessage(index); + } + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * repeated .Storage storages = 1; + */ + public Builder setStorages(int index, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage value) { + if (storagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoragesIsMutable(); + storages_.set(index, value); + onChanged(); + } else { + storagesBuilder_.setMessage(index, value); + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * repeated .Storage storages = 1; + */ + public Builder setStorages(int index, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder builderForValue) { + if (storagesBuilder_ == null) { + ensureStoragesIsMutable(); + storages_.set(index, builderForValue.build()); + onChanged(); + } else { + storagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 加密存证数据运算
-     * 
- * - * Protobuf type {@code EncryptNotaryAdd} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:EncryptNotaryAdd) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAddOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - encryptAdd_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_EncryptNotaryAdd_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd(this); - result.key_ = key_; - result.encryptAdd_ = encryptAdd_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getEncryptAdd() != com.google.protobuf.ByteString.EMPTY) { - setEncryptAdd(other.getEncryptAdd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *源操作数存证索引
-       * 
- * - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *源操作数存证索引
-       * 
- * - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *源操作数存证索引
-       * 
- * - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *源操作数存证索引
-       * 
- * - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *源操作数存证索引
-       * 
- * - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encryptAdd_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *待操作数据
-       * 
- * - * bytes encryptAdd = 2; - */ - public com.google.protobuf.ByteString getEncryptAdd() { - return encryptAdd_; - } - /** - *
-       *待操作数据
-       * 
- * - * bytes encryptAdd = 2; - */ - public Builder setEncryptAdd(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - encryptAdd_ = value; - onChanged(); - return this; - } - /** - *
-       *待操作数据
-       * 
- * - * bytes encryptAdd = 2; - */ - public Builder clearEncryptAdd() { - - encryptAdd_ = getDefaultInstance().getEncryptAdd(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EncryptNotaryAdd) - } + /** + * repeated .Storage storages = 1; + */ + public Builder addStorages(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage value) { + if (storagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoragesIsMutable(); + storages_.add(value); + onChanged(); + } else { + storagesBuilder_.addMessage(value); + } + return this; + } - // @@protoc_insertion_point(class_scope:EncryptNotaryAdd) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd(); - } + /** + * repeated .Storage storages = 1; + */ + public Builder addStorages(int index, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage value) { + if (storagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoragesIsMutable(); + storages_.add(index, value); + onChanged(); + } else { + storagesBuilder_.addMessage(index, value); + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Storage storages = 1; + */ + public Builder addStorages( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder builderForValue) { + if (storagesBuilder_ == null) { + ensureStoragesIsMutable(); + storages_.add(builderForValue.build()); + onChanged(); + } else { + storagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptNotaryAdd parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptNotaryAdd(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated .Storage storages = 1; + */ + public Builder addStorages(int index, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder builderForValue) { + if (storagesBuilder_ == null) { + ensureStoragesIsMutable(); + storages_.add(index, builderForValue.build()); + onChanged(); + } else { + storagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated .Storage storages = 1; + */ + public Builder addAllStorages( + java.lang.Iterable values) { + if (storagesBuilder_ == null) { + ensureStoragesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storages_); + onChanged(); + } else { + storagesBuilder_.addAllMessages(values); + } + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryAdd getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated .Storage storages = 1; + */ + public Builder clearStorages() { + if (storagesBuilder_ == null) { + storages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + storagesBuilder_.clear(); + } + return this; + } - } + /** + * repeated .Storage storages = 1; + */ + public Builder removeStorages(int index) { + if (storagesBuilder_ == null) { + ensureStoragesIsMutable(); + storages_.remove(index); + onChanged(); + } else { + storagesBuilder_.remove(index); + } + return this; + } - public interface QueryStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:QueryStorage) - com.google.protobuf.MessageOrBuilder { + /** + * repeated .Storage storages = 1; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder getStoragesBuilder(int index) { + return getStoragesFieldBuilder().getBuilder(index); + } - /** - * string txHash = 1; - */ - java.lang.String getTxHash(); - /** - * string txHash = 1; - */ - com.google.protobuf.ByteString - getTxHashBytes(); - } - /** - *
-   *根据txhash去状态数据库中查询存储内容
-   * 
- * - * Protobuf type {@code QueryStorage} - */ - public static final class QueryStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:QueryStorage) - QueryStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryStorage.newBuilder() to construct. - private QueryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryStorage() { - txHash_ = ""; - } + /** + * repeated .Storage storages = 1; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder getStoragesOrBuilder(int index) { + if (storagesBuilder_ == null) { + return storages_.get(index); + } else { + return storagesBuilder_.getMessageOrBuilder(index); + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryStorage(); - } + /** + * repeated .Storage storages = 1; + */ + public java.util.List getStoragesOrBuilderList() { + if (storagesBuilder_ != null) { + return storagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(storages_); + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - txHash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_descriptor; - } + /** + * repeated .Storage storages = 1; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder addStoragesBuilder() { + return getStoragesFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance()); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.Builder.class); - } + /** + * repeated .Storage storages = 1; + */ + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder addStoragesBuilder(int index) { + return getStoragesFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance()); + } - public static final int TXHASH_FIELD_NUMBER = 1; - private volatile java.lang.Object txHash_; - /** - * string txHash = 1; - */ - public java.lang.String getTxHash() { - java.lang.Object ref = txHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHash_ = s; - return s; - } - } - /** - * string txHash = 1; - */ - public com.google.protobuf.ByteString - getTxHashBytes() { - java.lang.Object ref = txHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated .Storage storages = 1; + */ + public java.util.List getStoragesBuilderList() { + return getStoragesFieldBuilder().getBuilderList(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private com.google.protobuf.RepeatedFieldBuilderV3 getStoragesFieldBuilder() { + if (storagesBuilder_ == null) { + storagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + storages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + storages_ = null; + } + return storagesBuilder_; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // @@protoc_insertion_point(builder_scope:BatchReplyStorage) + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage) obj; - - if (!getTxHash() - .equals(other.getTxHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(class_scope:BatchReplyStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchReplyStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchReplyStorage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public interface ReceiptStorageOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptStorage) + com.google.protobuf.MessageOrBuilder { } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** - *
-     *根据txhash去状态数据库中查询存储内容
-     * 
- * - * Protobuf type {@code QueryStorage} + * Protobuf type {@code ReceiptStorage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:QueryStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHash_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_QueryStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage.getDefaultInstance()) return this; - if (!other.getTxHash().isEmpty()) { - txHash_ = other.txHash_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object txHash_ = ""; - /** - * string txHash = 1; - */ - public java.lang.String getTxHash() { - java.lang.Object ref = txHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string txHash = 1; - */ - public com.google.protobuf.ByteString - getTxHashBytes() { - java.lang.Object ref = txHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string txHash = 1; - */ - public Builder setTxHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * string txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - /** - * string txHash = 1; - */ - public Builder setTxHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txHash_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:QueryStorage) - } + public static final class ReceiptStorage extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptStorage) + ReceiptStorageOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:QueryStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage(); - } - - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // Use ReceiptStorage.newBuilder() to construct. + private ReceiptStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private ReceiptStorage() { + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptStorage(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.QueryStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - } + private ReceiptStorage(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public interface BatchQueryStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:BatchQueryStorage) - com.google.protobuf.MessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_descriptor; + } - /** - * repeated string txHashs = 1; - */ - java.util.List - getTxHashsList(); - /** - * repeated string txHashs = 1; - */ - int getTxHashsCount(); - /** - * repeated string txHashs = 1; - */ - java.lang.String getTxHashs(int index); - /** - * repeated string txHashs = 1; - */ - com.google.protobuf.ByteString - getTxHashsBytes(int index); - } - /** - *
-   *批量查询有可能导致数据库崩溃
-   * 
- * - * Protobuf type {@code BatchQueryStorage} - */ - public static final class BatchQueryStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BatchQueryStorage) - BatchQueryStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchQueryStorage.newBuilder() to construct. - private BatchQueryStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchQueryStorage() { - txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.Builder.class); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchQueryStorage(); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BatchQueryStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txHashs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txHashs_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txHashs_ = txHashs_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.Builder.class); - } + memoizedIsInitialized = 1; + return true; + } - public static final int TXHASHS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList txHashs_; - /** - * repeated string txHashs = 1; - */ - public com.google.protobuf.ProtocolStringList - getTxHashsList() { - return txHashs_; - } - /** - * repeated string txHashs = 1; - */ - public int getTxHashsCount() { - return txHashs_.size(); - } - /** - * repeated string txHashs = 1; - */ - public java.lang.String getTxHashs(int index) { - return txHashs_.get(index); - } - /** - * repeated string txHashs = 1; - */ - public com.google.protobuf.ByteString - getTxHashsBytes(int index) { - return txHashs_.getByteString(index); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - memoizedIsInitialized = 1; - return true; - } + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txHashs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHashs_.getRaw(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage) obj; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < txHashs_.size(); i++) { - dataSize += computeStringSizeNoTag(txHashs_.getRaw(i)); - } - size += dataSize; - size += 1 * getTxHashsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage) obj; - - if (!getTxHashsList() - .equals(other.getTxHashsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxHashsCount() > 0) { - hash = (37 * hash) + TXHASHS_FIELD_NUMBER; - hash = (53 * hash) + getTxHashsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *批量查询有可能导致数据库崩溃
-     * 
- * - * Protobuf type {@code BatchQueryStorage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BatchQueryStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchQueryStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - txHashs_ = txHashs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txHashs_ = txHashs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage.getDefaultInstance()) return this; - if (!other.txHashs_.isEmpty()) { - if (txHashs_.isEmpty()) { - txHashs_ = other.txHashs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxHashsIsMutable(); - txHashs_.addAll(other.txHashs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTxHashsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txHashs_ = new com.google.protobuf.LazyStringArrayList(txHashs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string txHashs = 1; - */ - public com.google.protobuf.ProtocolStringList - getTxHashsList() { - return txHashs_.getUnmodifiableView(); - } - /** - * repeated string txHashs = 1; - */ - public int getTxHashsCount() { - return txHashs_.size(); - } - /** - * repeated string txHashs = 1; - */ - public java.lang.String getTxHashs(int index) { - return txHashs_.get(index); - } - /** - * repeated string txHashs = 1; - */ - public com.google.protobuf.ByteString - getTxHashsBytes(int index) { - return txHashs_.getByteString(index); - } - /** - * repeated string txHashs = 1; - */ - public Builder setTxHashs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashsIsMutable(); - txHashs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string txHashs = 1; - */ - public Builder addTxHashs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashsIsMutable(); - txHashs_.add(value); - onChanged(); - return this; - } - /** - * repeated string txHashs = 1; - */ - public Builder addAllTxHashs( - java.lang.Iterable values) { - ensureTxHashsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txHashs_); - onChanged(); - return this; - } - /** - * repeated string txHashs = 1; - */ - public Builder clearTxHashs() { - txHashs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string txHashs = 1; - */ - public Builder addTxHashsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTxHashsIsMutable(); - txHashs_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BatchQueryStorage) - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:BatchQueryStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchQueryStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchQueryStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchQueryStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public interface BatchReplyStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:BatchReplyStorage) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * repeated .Storage storages = 1; - */ - java.util.List - getStoragesList(); - /** - * repeated .Storage storages = 1; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getStorages(int index); - /** - * repeated .Storage storages = 1; - */ - int getStoragesCount(); - /** - * repeated .Storage storages = 1; - */ - java.util.List - getStoragesOrBuilderList(); - /** - * repeated .Storage storages = 1; - */ - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder getStoragesOrBuilder( - int index); - } - /** - * Protobuf type {@code BatchReplyStorage} - */ - public static final class BatchReplyStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BatchReplyStorage) - BatchReplyStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchReplyStorage.newBuilder() to construct. - private BatchReplyStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchReplyStorage() { - storages_ = java.util.Collections.emptyList(); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchReplyStorage(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BatchReplyStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - storages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - storages_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - storages_ = java.util.Collections.unmodifiableList(storages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_descriptor; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.Builder.class); - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int STORAGES_FIELD_NUMBER = 1; - private java.util.List storages_; - /** - * repeated .Storage storages = 1; - */ - public java.util.List getStoragesList() { - return storages_; - } - /** - * repeated .Storage storages = 1; - */ - public java.util.List - getStoragesOrBuilderList() { - return storages_; - } - /** - * repeated .Storage storages = 1; - */ - public int getStoragesCount() { - return storages_.size(); - } - /** - * repeated .Storage storages = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getStorages(int index) { - return storages_.get(index); - } - /** - * repeated .Storage storages = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder getStoragesOrBuilder( - int index) { - return storages_.get(index); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - memoizedIsInitialized = 1; - return true; - } + /** + * Protobuf type {@code ReceiptStorage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptStorage) + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < storages_.size(); i++) { - output.writeMessage(1, storages_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.class, + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.Builder.class); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < storages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, storages_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage) obj; - - if (!getStoragesList() - .equals(other.getStoragesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getStoragesCount() > 0) { - hash = (37 * hash) + STORAGES_FIELD_NUMBER; - hash = (53 * hash) + getStoragesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code BatchReplyStorage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:BatchReplyStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getStoragesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (storagesBuilder_ == null) { - storages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - storagesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_BatchReplyStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage(this); - int from_bitField0_ = bitField0_; - if (storagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - storages_ = java.util.Collections.unmodifiableList(storages_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.storages_ = storages_; - } else { - result.storages_ = storagesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage.getDefaultInstance()) return this; - if (storagesBuilder_ == null) { - if (!other.storages_.isEmpty()) { - if (storages_.isEmpty()) { - storages_ = other.storages_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStoragesIsMutable(); - storages_.addAll(other.storages_); - } - onChanged(); - } - } else { - if (!other.storages_.isEmpty()) { - if (storagesBuilder_.isEmpty()) { - storagesBuilder_.dispose(); - storagesBuilder_ = null; - storages_ = other.storages_; - bitField0_ = (bitField0_ & ~0x00000001); - storagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStoragesFieldBuilder() : null; - } else { - storagesBuilder_.addAllMessages(other.storages_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List storages_ = - java.util.Collections.emptyList(); - private void ensureStoragesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - storages_ = new java.util.ArrayList(storages_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder> storagesBuilder_; - - /** - * repeated .Storage storages = 1; - */ - public java.util.List getStoragesList() { - if (storagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(storages_); - } else { - return storagesBuilder_.getMessageList(); - } - } - /** - * repeated .Storage storages = 1; - */ - public int getStoragesCount() { - if (storagesBuilder_ == null) { - return storages_.size(); - } else { - return storagesBuilder_.getCount(); - } - } - /** - * repeated .Storage storages = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage getStorages(int index) { - if (storagesBuilder_ == null) { - return storages_.get(index); - } else { - return storagesBuilder_.getMessage(index); - } - } - /** - * repeated .Storage storages = 1; - */ - public Builder setStorages( - int index, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage value) { - if (storagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoragesIsMutable(); - storages_.set(index, value); - onChanged(); - } else { - storagesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder setStorages( - int index, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder builderForValue) { - if (storagesBuilder_ == null) { - ensureStoragesIsMutable(); - storages_.set(index, builderForValue.build()); - onChanged(); - } else { - storagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder addStorages(cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage value) { - if (storagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoragesIsMutable(); - storages_.add(value); - onChanged(); - } else { - storagesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder addStorages( - int index, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage value) { - if (storagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStoragesIsMutable(); - storages_.add(index, value); - onChanged(); - } else { - storagesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder addStorages( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder builderForValue) { - if (storagesBuilder_ == null) { - ensureStoragesIsMutable(); - storages_.add(builderForValue.build()); - onChanged(); - } else { - storagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder addStorages( - int index, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder builderForValue) { - if (storagesBuilder_ == null) { - ensureStoragesIsMutable(); - storages_.add(index, builderForValue.build()); - onChanged(); - } else { - storagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder addAllStorages( - java.lang.Iterable values) { - if (storagesBuilder_ == null) { - ensureStoragesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, storages_); - onChanged(); - } else { - storagesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder clearStorages() { - if (storagesBuilder_ == null) { - storages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - storagesBuilder_.clear(); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public Builder removeStorages(int index) { - if (storagesBuilder_ == null) { - ensureStoragesIsMutable(); - storages_.remove(index); - onChanged(); - } else { - storagesBuilder_.remove(index); - } - return this; - } - /** - * repeated .Storage storages = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder getStoragesBuilder( - int index) { - return getStoragesFieldBuilder().getBuilder(index); - } - /** - * repeated .Storage storages = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder getStoragesOrBuilder( - int index) { - if (storagesBuilder_ == null) { - return storages_.get(index); } else { - return storagesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Storage storages = 1; - */ - public java.util.List - getStoragesOrBuilderList() { - if (storagesBuilder_ != null) { - return storagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(storages_); - } - } - /** - * repeated .Storage storages = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder addStoragesBuilder() { - return getStoragesFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance()); - } - /** - * repeated .Storage storages = 1; - */ - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder addStoragesBuilder( - int index) { - return getStoragesFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.getDefaultInstance()); - } - /** - * repeated .Storage storages = 1; - */ - public java.util.List - getStoragesBuilderList() { - return getStoragesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder> - getStoragesFieldBuilder() { - if (storagesBuilder_ == null) { - storagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage, cn.chain33.javasdk.model.protobuf.StorageProtobuf.Storage.Builder, cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageOrBuilder>( - storages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - storages_ = null; - } - return storagesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BatchReplyStorage) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:BatchReplyStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage build() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage buildPartial() { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage( + this); + onBuilt(); + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchReplyStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchReplyStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.BatchReplyStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - } - - public interface ReceiptStorageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptStorage) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code ReceiptStorage} - */ - public static final class ReceiptStorage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptStorage) - ReceiptStorageOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptStorage.newBuilder() to construct. - private ReceiptStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptStorage() { - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptStorage(); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptStorage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_descriptor; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.Builder.class); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage other) { + if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage other = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:ReceiptStorage) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:ReceiptStorage) + private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage(); + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptStorage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptStorage(input, extensionRegistry); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReceiptStorage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptStorage) - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.class, cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.internal_static_ReceiptStorage_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage build() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage buildPartial() { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage result = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage other) { - if (other == cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptStorage) - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:ReceiptStorage) - private static final cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptStorage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptStorage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Storage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Storage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_StorageAction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_StorageAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ContentOnlyNotaryStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ContentOnlyNotaryStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HashOnlyNotaryStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HashOnlyNotaryStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_LinkNotaryStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_LinkNotaryStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EncryptNotaryStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EncryptNotaryStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EncryptShareNotaryStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EncryptShareNotaryStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_EncryptNotaryAdd_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EncryptNotaryAdd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_QueryStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_QueryStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BatchQueryStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BatchQueryStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_BatchReplyStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BatchReplyStorage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptStorage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptStorage_fieldAccessorTable; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.StorageProtobuf.ReceiptStorage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Storage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Storage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_StorageAction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_StorageAction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ContentOnlyNotaryStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ContentOnlyNotaryStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HashOnlyNotaryStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HashOnlyNotaryStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_LinkNotaryStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_LinkNotaryStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EncryptNotaryStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EncryptNotaryStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EncryptShareNotaryStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EncryptShareNotaryStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EncryptNotaryAdd_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EncryptNotaryAdd_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_QueryStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_QueryStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BatchQueryStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BatchQueryStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BatchReplyStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BatchReplyStorage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptStorage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptStorage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rStorage.proto\"\302\002\n\007Storage\0223\n\016contentSt" + - "orage\030\001 \001(\0132\031.ContentOnlyNotaryStorageH\000" + - "\022-\n\013hashStorage\030\002 \001(\0132\026.HashOnlyNotarySt" + - "orageH\000\022)\n\013linkStorage\030\003 \001(\0132\022.LinkNotar" + - "yStorageH\000\022/\n\016encryptStorage\030\004 \001(\0132\025.Enc" + - "ryptNotaryStorageH\000\0229\n\023encryptShareStora" + - "ge\030\005 \001(\0132\032.EncryptShareNotaryStorageH\000\022\'" + - "\n\nencryptAdd\030\006 \001(\0132\021.EncryptNotaryAddH\000\022" + - "\n\n\002ty\030\007 \001(\005B\007\n\005value\"\310\002\n\rStorageAction\0223" + - "\n\016contentStorage\030\001 \001(\0132\031.ContentOnlyNota" + - "ryStorageH\000\022-\n\013hashStorage\030\002 \001(\0132\026.HashO" + - "nlyNotaryStorageH\000\022)\n\013linkStorage\030\003 \001(\0132" + - "\022.LinkNotaryStorageH\000\022/\n\016encryptStorage\030" + - "\004 \001(\0132\025.EncryptNotaryStorageH\000\0229\n\023encryp" + - "tShareStorage\030\005 \001(\0132\032.EncryptShareNotary" + - "StorageH\000\022\'\n\nencryptAdd\030\006 \001(\0132\021.EncryptN" + - "otaryAddH\000\022\n\n\002ty\030\007 \001(\005B\007\n\005value\"S\n\030Conte" + - "ntOnlyNotaryStorage\022\017\n\007content\030\001 \001(\014\022\013\n\003" + - "key\030\002 \001(\t\022\n\n\002op\030\003 \001(\005\022\r\n\005value\030\004 \001(\t\"A\n\025" + - "HashOnlyNotaryStorage\022\014\n\004hash\030\001 \001(\014\022\013\n\003k" + - "ey\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\"K\n\021LinkNotarySto" + - "rage\022\014\n\004link\030\001 \001(\014\022\014\n\004hash\030\002 \001(\014\022\013\n\003key\030" + - "\003 \001(\t\022\r\n\005value\030\004 \001(\t\"n\n\024EncryptNotarySto" + - "rage\022\023\n\013contentHash\030\001 \001(\014\022\026\n\016encryptCont" + - "ent\030\002 \001(\014\022\r\n\005nonce\030\003 \001(\014\022\013\n\003key\030\004 \001(\t\022\r\n" + - "\005value\030\005 \001(\t\"t\n\031EncryptShareNotaryStorag" + - "e\022\023\n\013contentHash\030\001 \001(\014\022\026\n\016encryptContent" + - "\030\002 \001(\014\022\016\n\006pubKey\030\003 \001(\014\022\013\n\003key\030\004 \001(\t\022\r\n\005v" + - "alue\030\005 \001(\t\"3\n\020EncryptNotaryAdd\022\013\n\003key\030\001 " + - "\001(\t\022\022\n\nencryptAdd\030\002 \001(\014\"\036\n\014QueryStorage\022" + - "\016\n\006txHash\030\001 \001(\t\"$\n\021BatchQueryStorage\022\017\n\007" + - "txHashs\030\001 \003(\t\"/\n\021BatchReplyStorage\022\032\n\010st" + - "orages\030\001 \003(\0132\010.Storage\"\020\n\016ReceiptStorage" + - "B4\n!cn.chain33.javasdk.model.protobufB\017S" + - "torageProtobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Storage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Storage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Storage_descriptor, - new java.lang.String[] { "ContentStorage", "HashStorage", "LinkStorage", "EncryptStorage", "EncryptShareStorage", "EncryptAdd", "Ty", "Value", }); - internal_static_StorageAction_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_StorageAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_StorageAction_descriptor, - new java.lang.String[] { "ContentStorage", "HashStorage", "LinkStorage", "EncryptStorage", "EncryptShareStorage", "EncryptAdd", "Ty", "Value", }); - internal_static_ContentOnlyNotaryStorage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ContentOnlyNotaryStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ContentOnlyNotaryStorage_descriptor, - new java.lang.String[] { "Content", "Key", "Op", "Value", }); - internal_static_HashOnlyNotaryStorage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_HashOnlyNotaryStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HashOnlyNotaryStorage_descriptor, - new java.lang.String[] { "Hash", "Key", "Value", }); - internal_static_LinkNotaryStorage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_LinkNotaryStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_LinkNotaryStorage_descriptor, - new java.lang.String[] { "Link", "Hash", "Key", "Value", }); - internal_static_EncryptNotaryStorage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_EncryptNotaryStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EncryptNotaryStorage_descriptor, - new java.lang.String[] { "ContentHash", "EncryptContent", "Nonce", "Key", "Value", }); - internal_static_EncryptShareNotaryStorage_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_EncryptShareNotaryStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EncryptShareNotaryStorage_descriptor, - new java.lang.String[] { "ContentHash", "EncryptContent", "PubKey", "Key", "Value", }); - internal_static_EncryptNotaryAdd_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_EncryptNotaryAdd_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EncryptNotaryAdd_descriptor, - new java.lang.String[] { "Key", "EncryptAdd", }); - internal_static_QueryStorage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_QueryStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_QueryStorage_descriptor, - new java.lang.String[] { "TxHash", }); - internal_static_BatchQueryStorage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_BatchQueryStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BatchQueryStorage_descriptor, - new java.lang.String[] { "TxHashs", }); - internal_static_BatchReplyStorage_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_BatchReplyStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BatchReplyStorage_descriptor, - new java.lang.String[] { "Storages", }); - internal_static_ReceiptStorage_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_ReceiptStorage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptStorage_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} \ No newline at end of file + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\rStorage.proto\"\302\002\n\007Storage\0223\n\016contentSt" + + "orage\030\001 \001(\0132\031.ContentOnlyNotaryStorageH\000" + + "\022-\n\013hashStorage\030\002 \001(\0132\026.HashOnlyNotarySt" + + "orageH\000\022)\n\013linkStorage\030\003 \001(\0132\022.LinkNotar" + + "yStorageH\000\022/\n\016encryptStorage\030\004 \001(\0132\025.Enc" + + "ryptNotaryStorageH\000\0229\n\023encryptShareStora" + + "ge\030\005 \001(\0132\032.EncryptShareNotaryStorageH\000\022\'" + + "\n\nencryptAdd\030\006 \001(\0132\021.EncryptNotaryAddH\000\022" + + "\n\n\002ty\030\007 \001(\005B\007\n\005value\"\310\002\n\rStorageAction\0223" + + "\n\016contentStorage\030\001 \001(\0132\031.ContentOnlyNota" + + "ryStorageH\000\022-\n\013hashStorage\030\002 \001(\0132\026.HashO" + + "nlyNotaryStorageH\000\022)\n\013linkStorage\030\003 \001(\0132" + + "\022.LinkNotaryStorageH\000\022/\n\016encryptStorage\030" + + "\004 \001(\0132\025.EncryptNotaryStorageH\000\0229\n\023encryp" + + "tShareStorage\030\005 \001(\0132\032.EncryptShareNotary" + + "StorageH\000\022\'\n\nencryptAdd\030\006 \001(\0132\021.EncryptN" + + "otaryAddH\000\022\n\n\002ty\030\007 \001(\005B\007\n\005value\"S\n\030Conte" + + "ntOnlyNotaryStorage\022\017\n\007content\030\001 \001(\014\022\013\n\003" + + "key\030\002 \001(\t\022\n\n\002op\030\003 \001(\005\022\r\n\005value\030\004 \001(\t\"A\n\025" + + "HashOnlyNotaryStorage\022\014\n\004hash\030\001 \001(\014\022\013\n\003k" + + "ey\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\"K\n\021LinkNotarySto" + + "rage\022\014\n\004link\030\001 \001(\014\022\014\n\004hash\030\002 \001(\014\022\013\n\003key\030" + + "\003 \001(\t\022\r\n\005value\030\004 \001(\t\"n\n\024EncryptNotarySto" + + "rage\022\023\n\013contentHash\030\001 \001(\014\022\026\n\016encryptCont" + + "ent\030\002 \001(\014\022\r\n\005nonce\030\003 \001(\014\022\013\n\003key\030\004 \001(\t\022\r\n" + + "\005value\030\005 \001(\t\"t\n\031EncryptShareNotaryStorag" + + "e\022\023\n\013contentHash\030\001 \001(\014\022\026\n\016encryptContent" + + "\030\002 \001(\014\022\016\n\006pubKey\030\003 \001(\014\022\013\n\003key\030\004 \001(\t\022\r\n\005v" + + "alue\030\005 \001(\t\"3\n\020EncryptNotaryAdd\022\013\n\003key\030\001 " + + "\001(\t\022\022\n\nencryptAdd\030\002 \001(\014\"\036\n\014QueryStorage\022" + + "\016\n\006txHash\030\001 \001(\t\"$\n\021BatchQueryStorage\022\017\n\007" + + "txHashs\030\001 \003(\t\"/\n\021BatchReplyStorage\022\032\n\010st" + + "orages\030\001 \003(\0132\010.Storage\"\020\n\016ReceiptStorage" + + "B4\n!cn.chain33.javasdk.model.protobufB\017S" + "torageProtobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_Storage_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_Storage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Storage_descriptor, new java.lang.String[] { "ContentStorage", "HashStorage", + "LinkStorage", "EncryptStorage", "EncryptShareStorage", "EncryptAdd", "Ty", "Value", }); + internal_static_StorageAction_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_StorageAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_StorageAction_descriptor, new java.lang.String[] { "ContentStorage", "HashStorage", + "LinkStorage", "EncryptStorage", "EncryptShareStorage", "EncryptAdd", "Ty", "Value", }); + internal_static_ContentOnlyNotaryStorage_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_ContentOnlyNotaryStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ContentOnlyNotaryStorage_descriptor, + new java.lang.String[] { "Content", "Key", "Op", "Value", }); + internal_static_HashOnlyNotaryStorage_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_HashOnlyNotaryStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HashOnlyNotaryStorage_descriptor, new java.lang.String[] { "Hash", "Key", "Value", }); + internal_static_LinkNotaryStorage_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_LinkNotaryStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_LinkNotaryStorage_descriptor, + new java.lang.String[] { "Link", "Hash", "Key", "Value", }); + internal_static_EncryptNotaryStorage_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_EncryptNotaryStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EncryptNotaryStorage_descriptor, + new java.lang.String[] { "ContentHash", "EncryptContent", "Nonce", "Key", "Value", }); + internal_static_EncryptShareNotaryStorage_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_EncryptShareNotaryStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EncryptShareNotaryStorage_descriptor, + new java.lang.String[] { "ContentHash", "EncryptContent", "PubKey", "Key", "Value", }); + internal_static_EncryptNotaryAdd_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_EncryptNotaryAdd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_EncryptNotaryAdd_descriptor, new java.lang.String[] { "Key", "EncryptAdd", }); + internal_static_QueryStorage_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_QueryStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_QueryStorage_descriptor, new java.lang.String[] { "TxHash", }); + internal_static_BatchQueryStorage_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_BatchQueryStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BatchQueryStorage_descriptor, new java.lang.String[] { "TxHashs", }); + internal_static_BatchReplyStorage_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_BatchReplyStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BatchReplyStorage_descriptor, new java.lang.String[] { "Storages", }); + internal_static_ReceiptStorage_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_ReceiptStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptStorage_descriptor, new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/TokenActionProtoBuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/TokenActionProtoBuf.java index 740db88..a402e66 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/TokenActionProtoBuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/TokenActionProtoBuf.java @@ -4,10160 +4,10631 @@ package cn.chain33.javasdk.model.protobuf; public final class TokenActionProtoBuf { - private TokenActionProtoBuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TokenActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:TokenAction) - com.google.protobuf.MessageOrBuilder { + private TokenActionProtoBuf() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface TokenActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:TokenAction) + com.google.protobuf.MessageOrBuilder { + + /** + * .TokenPreCreate tokenPreCreate = 1; + * + * @return Whether the tokenPreCreate field is set. + */ + boolean hasTokenPreCreate(); + + /** + * .TokenPreCreate tokenPreCreate = 1; + * + * @return The tokenPreCreate. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getTokenPreCreate(); + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder getTokenPreCreateOrBuilder(); + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + * + * @return Whether the tokenFinishCreate field is set. + */ + boolean hasTokenFinishCreate(); + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + * + * @return The tokenFinishCreate. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getTokenFinishCreate(); + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder getTokenFinishCreateOrBuilder(); + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + * + * @return Whether the tokenRevokeCreate field is set. + */ + boolean hasTokenRevokeCreate(); + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + * + * @return The tokenRevokeCreate. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getTokenRevokeCreate(); + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder getTokenRevokeCreateOrBuilder(); + + /** + * .AssetsTransfer transfer = 4; + * + * @return Whether the transfer field is set. + */ + boolean hasTransfer(); + + /** + * .AssetsTransfer transfer = 4; + * + * @return The transfer. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getTransfer(); + + /** + * .AssetsTransfer transfer = 4; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder getTransferOrBuilder(); + + /** + * .AssetsWithdraw withdraw = 5; + * + * @return Whether the withdraw field is set. + */ + boolean hasWithdraw(); + + /** + * .AssetsWithdraw withdraw = 5; + * + * @return The withdraw. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getWithdraw(); + + /** + * .AssetsWithdraw withdraw = 5; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder(); + + /** + * .AssetsGenesis genesis = 6; + * + * @return Whether the genesis field is set. + */ + boolean hasGenesis(); + + /** + * .AssetsGenesis genesis = 6; + * + * @return The genesis. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getGenesis(); + + /** + * .AssetsGenesis genesis = 6; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder getGenesisOrBuilder(); + + /** + * .AssetsTransferToExec transferToExec = 8; + * + * @return Whether the transferToExec field is set. + */ + boolean hasTransferToExec(); + + /** + * .AssetsTransferToExec transferToExec = 8; + * + * @return The transferToExec. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getTransferToExec(); + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder(); + + /** + * .TokenMint tokenMint = 9; + * + * @return Whether the tokenMint field is set. + */ + boolean hasTokenMint(); + + /** + * .TokenMint tokenMint = 9; + * + * @return The tokenMint. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getTokenMint(); + + /** + * .TokenMint tokenMint = 9; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder getTokenMintOrBuilder(); + + /** + * .TokenBurn tokenBurn = 10; + * + * @return Whether the tokenBurn field is set. + */ + boolean hasTokenBurn(); + + /** + * .TokenBurn tokenBurn = 10; + * + * @return The tokenBurn. + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getTokenBurn(); + + /** + * .TokenBurn tokenBurn = 10; + */ + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder getTokenBurnOrBuilder(); + + /** + * int32 Ty = 7; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.ValueCase getValueCase(); + } + + /** + *
+     * action
+     * 
+ * + * Protobuf type {@code TokenAction} + */ + public static final class TokenAction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TokenAction) + TokenActionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TokenAction.newBuilder() to construct. + private TokenAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TokenAction() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TokenAction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 56: { + + ty_ = input.readInt32(); + break; + } + case 66: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder subBuilder = null; + if (valueCase_ == 8) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 8; + break; + } + case 74: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder subBuilder = null; + if (valueCase_ == 9) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 9; + break; + } + case 82: { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder subBuilder = null; + if (valueCase_ == 10) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_) + .toBuilder(); + } + value_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 10; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOKENPRECREATE(1), TOKENFINISHCREATE(2), TOKENREVOKECREATE(3), TRANSFER(4), WITHDRAW(5), GENESIS(6), + TRANSFERTOEXEC(8), TOKENMINT(9), TOKENBURN(10), VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return TOKENPRECREATE; + case 2: + return TOKENFINISHCREATE; + case 3: + return TOKENREVOKECREATE; + case 4: + return TRANSFER; + case 5: + return WITHDRAW; + case 6: + return GENESIS; + case 8: + return TRANSFERTOEXEC; + case 9: + return TOKENMINT; + case 10: + return TOKENBURN; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int TOKENPRECREATE_FIELD_NUMBER = 1; + + /** + * .TokenPreCreate tokenPreCreate = 1; + * + * @return Whether the tokenPreCreate field is set. + */ + public boolean hasTokenPreCreate() { + return valueCase_ == 1; + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + * + * @return The tokenPreCreate. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getTokenPreCreate() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder getTokenPreCreateOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); + } + + public static final int TOKENFINISHCREATE_FIELD_NUMBER = 2; + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + * + * @return Whether the tokenFinishCreate field is set. + */ + public boolean hasTokenFinishCreate() { + return valueCase_ == 2; + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + * + * @return The tokenFinishCreate. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getTokenFinishCreate() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder getTokenFinishCreateOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); + } + + public static final int TOKENREVOKECREATE_FIELD_NUMBER = 3; + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + * + * @return Whether the tokenRevokeCreate field is set. + */ + public boolean hasTokenRevokeCreate() { + return valueCase_ == 3; + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + * + * @return The tokenRevokeCreate. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getTokenRevokeCreate() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder getTokenRevokeCreateOrBuilder() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); + } + + public static final int TRANSFER_FIELD_NUMBER = 4; + + /** + * .AssetsTransfer transfer = 4; + * + * @return Whether the transfer field is set. + */ + public boolean hasTransfer() { + return valueCase_ == 4; + } + + /** + * .AssetsTransfer transfer = 4; + * + * @return The transfer. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getTransfer() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); + } + + /** + * .AssetsTransfer transfer = 4; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder getTransferOrBuilder() { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); + } + + public static final int WITHDRAW_FIELD_NUMBER = 5; + + /** + * .AssetsWithdraw withdraw = 5; + * + * @return Whether the withdraw field is set. + */ + public boolean hasWithdraw() { + return valueCase_ == 5; + } + + /** + * .AssetsWithdraw withdraw = 5; + * + * @return The withdraw. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getWithdraw() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); + } + + public static final int GENESIS_FIELD_NUMBER = 6; + + /** + * .AssetsGenesis genesis = 6; + * + * @return Whether the genesis field is set. + */ + public boolean hasGenesis() { + return valueCase_ == 6; + } + + /** + * .AssetsGenesis genesis = 6; + * + * @return The genesis. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getGenesis() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); + } + + /** + * .AssetsGenesis genesis = 6; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); + } + + public static final int TRANSFERTOEXEC_FIELD_NUMBER = 8; + + /** + * .AssetsTransferToExec transferToExec = 8; + * + * @return Whether the transferToExec field is set. + */ + public boolean hasTransferToExec() { + return valueCase_ == 8; + } + + /** + * .AssetsTransferToExec transferToExec = 8; + * + * @return The transferToExec. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getTransferToExec() { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); + } + + public static final int TOKENMINT_FIELD_NUMBER = 9; + + /** + * .TokenMint tokenMint = 9; + * + * @return Whether the tokenMint field is set. + */ + public boolean hasTokenMint() { + return valueCase_ == 9; + } + + /** + * .TokenMint tokenMint = 9; + * + * @return The tokenMint. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getTokenMint() { + if (valueCase_ == 9) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); + } + + /** + * .TokenMint tokenMint = 9; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder getTokenMintOrBuilder() { + if (valueCase_ == 9) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); + } + + public static final int TOKENBURN_FIELD_NUMBER = 10; + + /** + * .TokenBurn tokenBurn = 10; + * + * @return Whether the tokenBurn field is set. + */ + public boolean hasTokenBurn() { + return valueCase_ == 10; + } + + /** + * .TokenBurn tokenBurn = 10; + * + * @return The tokenBurn. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getTokenBurn() { + if (valueCase_ == 10) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); + } + + /** + * .TokenBurn tokenBurn = 10; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder getTokenBurnOrBuilder() { + if (valueCase_ == 10) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); + } + + public static final int TY_FIELD_NUMBER = 7; + private int ty_; + + /** + * int32 Ty = 7; + * + * @return The ty. + */ + public int getTy() { + return ty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_); + } + if (ty_ != 0) { + output.writeInt32(7, ty_); + } + if (valueCase_ == 8) { + output.writeMessage(8, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_); + } + if (valueCase_ == 9) { + output.writeMessage(9, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_); + } + if (valueCase_ == 10) { + output.writeMessage(10, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ty_); + } + if (valueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_); + } + if (valueCase_ == 9) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_); + } + if (valueCase_ == 10) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getTokenPreCreate().equals(other.getTokenPreCreate())) + return false; + break; + case 2: + if (!getTokenFinishCreate().equals(other.getTokenFinishCreate())) + return false; + break; + case 3: + if (!getTokenRevokeCreate().equals(other.getTokenRevokeCreate())) + return false; + break; + case 4: + if (!getTransfer().equals(other.getTransfer())) + return false; + break; + case 5: + if (!getWithdraw().equals(other.getWithdraw())) + return false; + break; + case 6: + if (!getGenesis().equals(other.getGenesis())) + return false; + break; + case 8: + if (!getTransferToExec().equals(other.getTransferToExec())) + return false; + break; + case 9: + if (!getTokenMint().equals(other.getTokenMint())) + return false; + break; + case 10: + if (!getTokenBurn().equals(other.getTokenBurn())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + TOKENPRECREATE_FIELD_NUMBER; + hash = (53 * hash) + getTokenPreCreate().hashCode(); + break; + case 2: + hash = (37 * hash) + TOKENFINISHCREATE_FIELD_NUMBER; + hash = (53 * hash) + getTokenFinishCreate().hashCode(); + break; + case 3: + hash = (37 * hash) + TOKENREVOKECREATE_FIELD_NUMBER; + hash = (53 * hash) + getTokenRevokeCreate().hashCode(); + break; + case 4: + hash = (37 * hash) + TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + getTransfer().hashCode(); + break; + case 5: + hash = (37 * hash) + WITHDRAW_FIELD_NUMBER; + hash = (53 * hash) + getWithdraw().hashCode(); + break; + case 6: + hash = (37 * hash) + GENESIS_FIELD_NUMBER; + hash = (53 * hash) + getGenesis().hashCode(); + break; + case 8: + hash = (37 * hash) + TRANSFERTOEXEC_FIELD_NUMBER; + hash = (53 * hash) + getTransferToExec().hashCode(); + break; + case 9: + hash = (37 * hash) + TOKENMINT_FIELD_NUMBER; + hash = (53 * hash) + getTokenMint().hashCode(); + break; + case 10: + hash = (37 * hash) + TOKENBURN_FIELD_NUMBER; + hash = (53 * hash) + getTokenBurn().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * action
+         * 
+ * + * Protobuf type {@code TokenAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TokenAction) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction( + this); + if (valueCase_ == 1) { + if (tokenPreCreateBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = tokenPreCreateBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (tokenFinishCreateBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = tokenFinishCreateBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (tokenRevokeCreateBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = tokenRevokeCreateBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (transferBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = transferBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (withdrawBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = withdrawBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (genesisBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = genesisBuilder_.build(); + } + } + if (valueCase_ == 8) { + if (transferToExecBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = transferToExecBuilder_.build(); + } + } + if (valueCase_ == 9) { + if (tokenMintBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = tokenMintBuilder_.build(); + } + } + if (valueCase_ == 10) { + if (tokenBurnBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = tokenBurnBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case TOKENPRECREATE: { + mergeTokenPreCreate(other.getTokenPreCreate()); + break; + } + case TOKENFINISHCREATE: { + mergeTokenFinishCreate(other.getTokenFinishCreate()); + break; + } + case TOKENREVOKECREATE: { + mergeTokenRevokeCreate(other.getTokenRevokeCreate()); + break; + } + case TRANSFER: { + mergeTransfer(other.getTransfer()); + break; + } + case WITHDRAW: { + mergeWithdraw(other.getWithdraw()); + break; + } + case GENESIS: { + mergeGenesis(other.getGenesis()); + break; + } + case TRANSFERTOEXEC: { + mergeTransferToExec(other.getTransferToExec()); + break; + } + case TOKENMINT: { + mergeTokenMint(other.getTokenMint()); + break; + } + case TOKENBURN: { + mergeTokenBurn(other.getTokenBurn()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 tokenPreCreateBuilder_; + + /** + * .TokenPreCreate tokenPreCreate = 1; + * + * @return Whether the tokenPreCreate field is set. + */ + public boolean hasTokenPreCreate() { + return valueCase_ == 1; + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + * + * @return The tokenPreCreate. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getTokenPreCreate() { + if (tokenPreCreateBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return tokenPreCreateBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); + } + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + public Builder setTokenPreCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate value) { + if (tokenPreCreateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + tokenPreCreateBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + public Builder setTokenPreCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder builderForValue) { + if (tokenPreCreateBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + tokenPreCreateBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + public Builder mergeTokenPreCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate value) { + if (tokenPreCreateBuilder_ == null) { + if (valueCase_ == 1 + && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate + .newBuilder( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + tokenPreCreateBuilder_.mergeFrom(value); + } + tokenPreCreateBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + public Builder clearTokenPreCreate() { + if (tokenPreCreateBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + tokenPreCreateBuilder_.clear(); + } + return this; + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder getTokenPreCreateBuilder() { + return getTokenPreCreateFieldBuilder().getBuilder(); + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder getTokenPreCreateOrBuilder() { + if ((valueCase_ == 1) && (tokenPreCreateBuilder_ != null)) { + return tokenPreCreateBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); + } + } + + /** + * .TokenPreCreate tokenPreCreate = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTokenPreCreateFieldBuilder() { + if (tokenPreCreateBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate + .getDefaultInstance(); + } + tokenPreCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return tokenPreCreateBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 tokenFinishCreateBuilder_; + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + * + * @return Whether the tokenFinishCreate field is set. + */ + public boolean hasTokenFinishCreate() { + return valueCase_ == 2; + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + * + * @return The tokenFinishCreate. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getTokenFinishCreate() { + if (tokenFinishCreateBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return tokenFinishCreateBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); + } + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + public Builder setTokenFinishCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate value) { + if (tokenFinishCreateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + tokenFinishCreateBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + public Builder setTokenFinishCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder builderForValue) { + if (tokenFinishCreateBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + tokenFinishCreateBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + public Builder mergeTokenFinishCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate value) { + if (tokenFinishCreateBuilder_ == null) { + if (valueCase_ == 2 + && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.newBuilder( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + tokenFinishCreateBuilder_.mergeFrom(value); + } + tokenFinishCreateBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + public Builder clearTokenFinishCreate() { + if (tokenFinishCreateBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + tokenFinishCreateBuilder_.clear(); + } + return this; + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder getTokenFinishCreateBuilder() { + return getTokenFinishCreateFieldBuilder().getBuilder(); + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder getTokenFinishCreateOrBuilder() { + if ((valueCase_ == 2) && (tokenFinishCreateBuilder_ != null)) { + return tokenFinishCreateBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); + } + } + + /** + * .TokenFinishCreate tokenFinishCreate = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTokenFinishCreateFieldBuilder() { + if (tokenFinishCreateBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate + .getDefaultInstance(); + } + tokenFinishCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return tokenFinishCreateBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 tokenRevokeCreateBuilder_; + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + * + * @return Whether the tokenRevokeCreate field is set. + */ + public boolean hasTokenRevokeCreate() { + return valueCase_ == 3; + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + * + * @return The tokenRevokeCreate. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getTokenRevokeCreate() { + if (tokenRevokeCreateBuilder_ == null) { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return tokenRevokeCreateBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); + } + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + public Builder setTokenRevokeCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate value) { + if (tokenRevokeCreateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + tokenRevokeCreateBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + public Builder setTokenRevokeCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder builderForValue) { + if (tokenRevokeCreateBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + tokenRevokeCreateBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + public Builder mergeTokenRevokeCreate( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate value) { + if (tokenRevokeCreateBuilder_ == null) { + if (valueCase_ == 3 + && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.newBuilder( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + tokenRevokeCreateBuilder_.mergeFrom(value); + } + tokenRevokeCreateBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + public Builder clearTokenRevokeCreate() { + if (tokenRevokeCreateBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + tokenRevokeCreateBuilder_.clear(); + } + return this; + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder getTokenRevokeCreateBuilder() { + return getTokenRevokeCreateFieldBuilder().getBuilder(); + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder getTokenRevokeCreateOrBuilder() { + if ((valueCase_ == 3) && (tokenRevokeCreateBuilder_ != null)) { + return tokenRevokeCreateBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); + } + } + + /** + * .TokenRevokeCreate tokenRevokeCreate = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTokenRevokeCreateFieldBuilder() { + if (tokenRevokeCreateBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate + .getDefaultInstance(); + } + tokenRevokeCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return tokenRevokeCreateBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 transferBuilder_; + + /** + * .AssetsTransfer transfer = 4; + * + * @return Whether the transfer field is set. + */ + public boolean hasTransfer() { + return valueCase_ == 4; + } + + /** + * .AssetsTransfer transfer = 4; + * + * @return The transfer. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getTransfer() { + if (transferBuilder_ == null) { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return transferBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); + } + } + + /** + * .AssetsTransfer transfer = 4; + */ + public Builder setTransfer(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer value) { + if (transferBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + transferBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .AssetsTransfer transfer = 4; + */ + public Builder setTransfer( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder builderForValue) { + if (transferBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + transferBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + + /** + * .AssetsTransfer transfer = 4; + */ + public Builder mergeTransfer(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer value) { + if (transferBuilder_ == null) { + if (valueCase_ == 4 + && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer + .newBuilder( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + transferBuilder_.mergeFrom(value); + } + transferBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + + /** + * .AssetsTransfer transfer = 4; + */ + public Builder clearTransfer() { + if (transferBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + transferBuilder_.clear(); + } + return this; + } + + /** + * .AssetsTransfer transfer = 4; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder getTransferBuilder() { + return getTransferFieldBuilder().getBuilder(); + } + + /** + * .AssetsTransfer transfer = 4; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder getTransferOrBuilder() { + if ((valueCase_ == 4) && (transferBuilder_ != null)) { + return transferBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); + } + } + + /** + * .AssetsTransfer transfer = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTransferFieldBuilder() { + if (transferBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer + .getDefaultInstance(); + } + transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged(); + ; + return transferBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 withdrawBuilder_; + + /** + * .AssetsWithdraw withdraw = 5; + * + * @return Whether the withdraw field is set. + */ + public boolean hasWithdraw() { + return valueCase_ == 5; + } + + /** + * .AssetsWithdraw withdraw = 5; + * + * @return The withdraw. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getWithdraw() { + if (withdrawBuilder_ == null) { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return withdrawBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); + } + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + public Builder setWithdraw(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw value) { + if (withdrawBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + withdrawBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + public Builder setWithdraw( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder builderForValue) { + if (withdrawBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + withdrawBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + public Builder mergeWithdraw(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw value) { + if (withdrawBuilder_ == null) { + if (valueCase_ == 5 + && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw + .newBuilder( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + withdrawBuilder_.mergeFrom(value); + } + withdrawBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + public Builder clearWithdraw() { + if (withdrawBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + withdrawBuilder_.clear(); + } + return this; + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder getWithdrawBuilder() { + return getWithdrawFieldBuilder().getBuilder(); + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { + if ((valueCase_ == 5) && (withdrawBuilder_ != null)) { + return withdrawBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); + } + } + + /** + * .AssetsWithdraw withdraw = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getWithdrawFieldBuilder() { + if (withdrawBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw + .getDefaultInstance(); + } + withdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged(); + ; + return withdrawBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 genesisBuilder_; + + /** + * .AssetsGenesis genesis = 6; + * + * @return Whether the genesis field is set. + */ + public boolean hasGenesis() { + return valueCase_ == 6; + } + + /** + * .AssetsGenesis genesis = 6; + * + * @return The genesis. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getGenesis() { + if (genesisBuilder_ == null) { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return genesisBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); + } + } + + /** + * .AssetsGenesis genesis = 6; + */ + public Builder setGenesis(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis value) { + if (genesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + genesisBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .AssetsGenesis genesis = 6; + */ + public Builder setGenesis( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder builderForValue) { + if (genesisBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + genesisBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + + /** + * .AssetsGenesis genesis = 6; + */ + public Builder mergeGenesis(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis value) { + if (genesisBuilder_ == null) { + if (valueCase_ == 6 && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis + .newBuilder( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + genesisBuilder_.mergeFrom(value); + } + genesisBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * .AssetsGenesis genesis = 6; + */ + public Builder clearGenesis() { + if (genesisBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + genesisBuilder_.clear(); + } + return this; + } + + /** + * .AssetsGenesis genesis = 6; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder getGenesisBuilder() { + return getGenesisFieldBuilder().getBuilder(); + } + + /** + * .AssetsGenesis genesis = 6; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { + if ((valueCase_ == 6) && (genesisBuilder_ != null)) { + return genesisBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); + } + } + + /** + * .AssetsGenesis genesis = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getGenesisFieldBuilder() { + if (genesisBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis + .getDefaultInstance(); + } + genesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged(); + ; + return genesisBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 transferToExecBuilder_; + + /** + * .AssetsTransferToExec transferToExec = 8; + * + * @return Whether the transferToExec field is set. + */ + public boolean hasTransferToExec() { + return valueCase_ == 8; + } + + /** + * .AssetsTransferToExec transferToExec = 8; + * + * @return The transferToExec. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getTransferToExec() { + if (transferToExecBuilder_ == null) { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec + .getDefaultInstance(); + } else { + if (valueCase_ == 8) { + return transferToExecBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec + .getDefaultInstance(); + } + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + public Builder setTransferToExec( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec value) { + if (transferToExecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + transferToExecBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + public Builder setTransferToExec( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder builderForValue) { + if (transferToExecBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + transferToExecBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 8; + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + public Builder mergeTransferToExec( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec value) { + if (transferToExecBuilder_ == null) { + if (valueCase_ == 8 + && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.newBuilder( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 8) { + transferToExecBuilder_.mergeFrom(value); + } + transferToExecBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + public Builder clearTransferToExec() { + if (transferToExecBuilder_ == null) { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + } + transferToExecBuilder_.clear(); + } + return this; + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder getTransferToExecBuilder() { + return getTransferToExecFieldBuilder().getBuilder(); + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { + if ((valueCase_ == 8) && (transferToExecBuilder_ != null)) { + return transferToExecBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 8) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec + .getDefaultInstance(); + } + } + + /** + * .AssetsTransferToExec transferToExec = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTransferToExecFieldBuilder() { + if (transferToExecBuilder_ == null) { + if (!(valueCase_ == 8)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec + .getDefaultInstance(); + } + transferToExecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 8; + onChanged(); + ; + return transferToExecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 tokenMintBuilder_; + + /** + * .TokenMint tokenMint = 9; + * + * @return Whether the tokenMint field is set. + */ + public boolean hasTokenMint() { + return valueCase_ == 9; + } + + /** + * .TokenMint tokenMint = 9; + * + * @return The tokenMint. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getTokenMint() { + if (tokenMintBuilder_ == null) { + if (valueCase_ == 9) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); + } else { + if (valueCase_ == 9) { + return tokenMintBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); + } + } + + /** + * .TokenMint tokenMint = 9; + */ + public Builder setTokenMint(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint value) { + if (tokenMintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + tokenMintBuilder_.setMessage(value); + } + valueCase_ = 9; + return this; + } + + /** + * .TokenMint tokenMint = 9; + */ + public Builder setTokenMint( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder builderForValue) { + if (tokenMintBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + tokenMintBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 9; + return this; + } + + /** + * .TokenMint tokenMint = 9; + */ + public Builder mergeTokenMint(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint value) { + if (tokenMintBuilder_ == null) { + if (valueCase_ == 9 && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint + .newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 9) { + tokenMintBuilder_.mergeFrom(value); + } + tokenMintBuilder_.setMessage(value); + } + valueCase_ = 9; + return this; + } + + /** + * .TokenMint tokenMint = 9; + */ + public Builder clearTokenMint() { + if (tokenMintBuilder_ == null) { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + } + tokenMintBuilder_.clear(); + } + return this; + } + + /** + * .TokenMint tokenMint = 9; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder getTokenMintBuilder() { + return getTokenMintFieldBuilder().getBuilder(); + } + + /** + * .TokenMint tokenMint = 9; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder getTokenMintOrBuilder() { + if ((valueCase_ == 9) && (tokenMintBuilder_ != null)) { + return tokenMintBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 9) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); + } + } + + /** + * .TokenMint tokenMint = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTokenMintFieldBuilder() { + if (tokenMintBuilder_ == null) { + if (!(valueCase_ == 9)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); + } + tokenMintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 9; + onChanged(); + ; + return tokenMintBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 tokenBurnBuilder_; + + /** + * .TokenBurn tokenBurn = 10; + * + * @return Whether the tokenBurn field is set. + */ + public boolean hasTokenBurn() { + return valueCase_ == 10; + } + + /** + * .TokenBurn tokenBurn = 10; + * + * @return The tokenBurn. + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getTokenBurn() { + if (tokenBurnBuilder_ == null) { + if (valueCase_ == 10) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); + } else { + if (valueCase_ == 10) { + return tokenBurnBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); + } + } + + /** + * .TokenBurn tokenBurn = 10; + */ + public Builder setTokenBurn(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn value) { + if (tokenBurnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + tokenBurnBuilder_.setMessage(value); + } + valueCase_ = 10; + return this; + } + + /** + * .TokenBurn tokenBurn = 10; + */ + public Builder setTokenBurn( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder builderForValue) { + if (tokenBurnBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + tokenBurnBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 10; + return this; + } + + /** + * .TokenBurn tokenBurn = 10; + */ + public Builder mergeTokenBurn(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn value) { + if (tokenBurnBuilder_ == null) { + if (valueCase_ == 10 && value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn + .newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 10) { + tokenBurnBuilder_.mergeFrom(value); + } + tokenBurnBuilder_.setMessage(value); + } + valueCase_ = 10; + return this; + } + + /** + * .TokenBurn tokenBurn = 10; + */ + public Builder clearTokenBurn() { + if (tokenBurnBuilder_ == null) { + if (valueCase_ == 10) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 10) { + valueCase_ = 0; + value_ = null; + } + tokenBurnBuilder_.clear(); + } + return this; + } + + /** + * .TokenBurn tokenBurn = 10; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder getTokenBurnBuilder() { + return getTokenBurnFieldBuilder().getBuilder(); + } + + /** + * .TokenBurn tokenBurn = 10; + */ + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder getTokenBurnOrBuilder() { + if ((valueCase_ == 10) && (tokenBurnBuilder_ != null)) { + return tokenBurnBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 10) { + return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; + } + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); + } + } + + /** + * .TokenBurn tokenBurn = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTokenBurnFieldBuilder() { + if (tokenBurnBuilder_ == null) { + if (!(valueCase_ == 10)) { + value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); + } + tokenBurnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_, + getParentForChildren(), isClean()); + value_ = null; + } + valueCase_ = 10; + onChanged(); + ; + return tokenBurnBuilder_; + } + + private int ty_; + + /** + * int32 Ty = 7; + * + * @return The ty. + */ + public int getTy() { + return ty_; + } + + /** + * int32 Ty = 7; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 Ty = 7; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TokenAction) + } + + // @@protoc_insertion_point(class_scope:TokenAction) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction(); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenAction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TokenAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenPreCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:TokenPreCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string symbol = 2; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * string introduction = 3; + * + * @return The introduction. + */ + java.lang.String getIntroduction(); + + /** + * string introduction = 3; + * + * @return The bytes for introduction. + */ + com.google.protobuf.ByteString getIntroductionBytes(); + + /** + * int64 total = 4; + * + * @return The total. + */ + long getTotal(); + + /** + * int64 price = 5; + * + * @return The price. + */ + long getPrice(); + + /** + * string owner = 6; + * + * @return The owner. + */ + java.lang.String getOwner(); + + /** + * string owner = 6; + * + * @return The bytes for owner. + */ + com.google.protobuf.ByteString getOwnerBytes(); + + /** + * int32 category = 7; + * + * @return The category. + */ + int getCategory(); + } + + /** + *
+     *创建token,支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍
+     * 
+ * + * Protobuf type {@code TokenPreCreate} + */ + public static final class TokenPreCreate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TokenPreCreate) + TokenPreCreateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TokenPreCreate.newBuilder() to construct. + private TokenPreCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TokenPreCreate() { + name_ = ""; + symbol_ = ""; + introduction_ = ""; + owner_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenPreCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TokenPreCreate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + introduction_ = s; + break; + } + case 32: { + + total_ = input.readInt64(); + break; + } + case 40: { + + price_ = input.readInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + owner_ = s; + break; + } + case 56: { + + category_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYMBOL_FIELD_NUMBER = 2; + private volatile java.lang.Object symbol_; + + /** + * string symbol = 2; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTRODUCTION_FIELD_NUMBER = 3; + private volatile java.lang.Object introduction_; + + /** + * string introduction = 3; + * + * @return The introduction. + */ + public java.lang.String getIntroduction() { + java.lang.Object ref = introduction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + introduction_ = s; + return s; + } + } + + /** + * string introduction = 3; + * + * @return The bytes for introduction. + */ + public com.google.protobuf.ByteString getIntroductionBytes() { + java.lang.Object ref = introduction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + introduction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_FIELD_NUMBER = 4; + private long total_; + + /** + * int64 total = 4; + * + * @return The total. + */ + public long getTotal() { + return total_; + } + + public static final int PRICE_FIELD_NUMBER = 5; + private long price_; + + /** + * int64 price = 5; + * + * @return The price. + */ + public long getPrice() { + return price_; + } + + public static final int OWNER_FIELD_NUMBER = 6; + private volatile java.lang.Object owner_; + + /** + * string owner = 6; + * + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } + } + + /** + * string owner = 6; + * + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_FIELD_NUMBER = 7; + private int category_; + + /** + * int32 category = 7; + * + * @return The category. + */ + public int getCategory() { + return category_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); + } + if (!getIntroductionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, introduction_); + } + if (total_ != 0L) { + output.writeInt64(4, total_); + } + if (price_ != 0L) { + output.writeInt64(5, price_); + } + if (!getOwnerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, owner_); + } + if (category_ != 0) { + output.writeInt32(7, category_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); + } + if (!getIntroductionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, introduction_); + } + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, total_); + } + if (price_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, price_); + } + if (!getOwnerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, owner_); + } + if (category_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, category_); + } + 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 cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getSymbol().equals(other.getSymbol())) + return false; + if (!getIntroduction().equals(other.getIntroduction())) + return false; + if (getTotal() != other.getTotal()) + return false; + if (getPrice() != other.getPrice()) + return false; + if (!getOwner().equals(other.getOwner())) + return false; + if (getCategory() != other.getCategory()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + INTRODUCTION_FIELD_NUMBER; + hash = (53 * hash) + getIntroduction().hashCode(); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotal()); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPrice()); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategory(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *创建token,支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍
+         * 
+ * + * Protobuf type {@code TokenPreCreate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TokenPreCreate) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + symbol_ = ""; + + introduction_ = ""; + + total_ = 0L; + + price_ = 0L; + + owner_ = ""; + + category_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate( + this); + result.name_ = name_; + result.symbol_ = symbol_; + result.introduction_ = introduction_; + result.total_ = total_; + result.price_ = price_; + result.owner_ = owner_; + result.category_ = category_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (!other.getIntroduction().isEmpty()) { + introduction_ = other.introduction_; + onChanged(); + } + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + if (other.getPrice() != 0L) { + setPrice(other.getPrice()); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + onChanged(); + } + if (other.getCategory() != 0) { + setCategory(other.getCategory()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 2; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string symbol = 2; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } + + /** + * string symbol = 2; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { + + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } + + /** + * string symbol = 2; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } + + private java.lang.Object introduction_ = ""; + + /** + * string introduction = 3; + * + * @return The introduction. + */ + public java.lang.String getIntroduction() { + java.lang.Object ref = introduction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + introduction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string introduction = 3; + * + * @return The bytes for introduction. + */ + public com.google.protobuf.ByteString getIntroductionBytes() { + java.lang.Object ref = introduction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + introduction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string introduction = 3; + * + * @param value + * The introduction to set. + * + * @return This builder for chaining. + */ + public Builder setIntroduction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + introduction_ = value; + onChanged(); + return this; + } + + /** + * string introduction = 3; + * + * @return This builder for chaining. + */ + public Builder clearIntroduction() { + + introduction_ = getDefaultInstance().getIntroduction(); + onChanged(); + return this; + } + + /** + * string introduction = 3; + * + * @param value + * The bytes for introduction to set. + * + * @return This builder for chaining. + */ + public Builder setIntroductionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + introduction_ = value; + onChanged(); + return this; + } + + private long total_; + + /** + * int64 total = 4; + * + * @return The total. + */ + public long getTotal() { + return total_; + } + + /** + * int64 total = 4; + * + * @param value + * The total to set. + * + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + onChanged(); + return this; + } + + /** + * int64 total = 4; + * + * @return This builder for chaining. + */ + public Builder clearTotal() { + + total_ = 0L; + onChanged(); + return this; + } + + private long price_; + + /** + * int64 price = 5; + * + * @return The price. + */ + public long getPrice() { + return price_; + } + + /** + * int64 price = 5; + * + * @param value + * The price to set. + * + * @return This builder for chaining. + */ + public Builder setPrice(long value) { + + price_ = value; + onChanged(); + return this; + } + + /** + * int64 price = 5; + * + * @return This builder for chaining. + */ + public Builder clearPrice() { + + price_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object owner_ = ""; + + /** + * string owner = 6; + * + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string owner = 6; + * + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string owner = 6; + * + * @param value + * The owner to set. + * + * @return This builder for chaining. + */ + public Builder setOwner(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + owner_ = value; + onChanged(); + return this; + } + + /** + * string owner = 6; + * + * @return This builder for chaining. + */ + public Builder clearOwner() { + + owner_ = getDefaultInstance().getOwner(); + onChanged(); + return this; + } + + /** + * string owner = 6; + * + * @param value + * The bytes for owner to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + owner_ = value; + onChanged(); + return this; + } + + private int category_; + + /** + * int32 category = 7; + * + * @return The category. + */ + public int getCategory() { + return category_; + } + + /** + * int32 category = 7; + * + * @param value + * The category to set. + * + * @return This builder for chaining. + */ + public Builder setCategory(int value) { + + category_ = value; + onChanged(); + return this; + } + + /** + * int32 category = 7; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + + category_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TokenPreCreate) + } + + // @@protoc_insertion_point(class_scope:TokenPreCreate) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate(); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenPreCreate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TokenPreCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenFinishCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:TokenFinishCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * string symbol = 1; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * string owner = 2; + * + * @return The owner. + */ + java.lang.String getOwner(); + + /** + * string owner = 2; + * + * @return The bytes for owner. + */ + com.google.protobuf.ByteString getOwnerBytes(); + } + + /** + * Protobuf type {@code TokenFinishCreate} + */ + public static final class TokenFinishCreate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TokenFinishCreate) + TokenFinishCreateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TokenFinishCreate.newBuilder() to construct. + private TokenFinishCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TokenFinishCreate() { + symbol_ = ""; + owner_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenFinishCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TokenFinishCreate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + owner_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder.class); + } + + public static final int SYMBOL_FIELD_NUMBER = 1; + private volatile java.lang.Object symbol_; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_FIELD_NUMBER = 2; + private volatile java.lang.Object owner_; + + /** + * string owner = 2; + * + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } + } + + /** + * string owner = 2; + * + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); + } + if (!getOwnerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); + } + if (!getOwnerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_); + } + 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 cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) obj; + + if (!getSymbol().equals(other.getSymbol())) + return false; + if (!getOwner().equals(other.getOwner())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TokenFinishCreate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TokenFinishCreate) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + symbol_ = ""; + + owner_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate( + this); + result.symbol_ = symbol_; + result.owner_ = owner_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate + .getDefaultInstance()) + return this; + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string symbol = 1; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { + + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } + + private java.lang.Object owner_ = ""; + + /** + * string owner = 2; + * + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string owner = 2; + * + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string owner = 2; + * + * @param value + * The owner to set. + * + * @return This builder for chaining. + */ + public Builder setOwner(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + owner_ = value; + onChanged(); + return this; + } + + /** + * string owner = 2; + * + * @return This builder for chaining. + */ + public Builder clearOwner() { + + owner_ = getDefaultInstance().getOwner(); + onChanged(); + return this; + } + + /** + * string owner = 2; + * + * @param value + * The bytes for owner to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + owner_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TokenFinishCreate) + } + + // @@protoc_insertion_point(class_scope:TokenFinishCreate) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate(); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenFinishCreate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TokenFinishCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenRevokeCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:TokenRevokeCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * string symbol = 1; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * string owner = 2; + * + * @return The owner. + */ + java.lang.String getOwner(); + + /** + * string owner = 2; + * + * @return The bytes for owner. + */ + com.google.protobuf.ByteString getOwnerBytes(); + } + + /** + * Protobuf type {@code TokenRevokeCreate} + */ + public static final class TokenRevokeCreate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TokenRevokeCreate) + TokenRevokeCreateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TokenRevokeCreate.newBuilder() to construct. + private TokenRevokeCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TokenRevokeCreate() { + symbol_ = ""; + owner_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenRevokeCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TokenRevokeCreate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + owner_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder.class); + } + + public static final int SYMBOL_FIELD_NUMBER = 1; + private volatile java.lang.Object symbol_; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_FIELD_NUMBER = 2; + private volatile java.lang.Object owner_; + + /** + * string owner = 2; + * + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } + } + + /** + * string owner = 2; + * + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); + } + if (!getOwnerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); + } + if (!getOwnerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_); + } + 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 cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) obj; + + if (!getSymbol().equals(other.getSymbol())) + return false; + if (!getOwner().equals(other.getOwner())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TokenRevokeCreate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TokenRevokeCreate) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + symbol_ = ""; + + owner_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate( + this); + result.symbol_ = symbol_; + result.owner_ = owner_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate + .getDefaultInstance()) + return this; + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string symbol = 1; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { + + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } + + private java.lang.Object owner_ = ""; + + /** + * string owner = 2; + * + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string owner = 2; + * + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string owner = 2; + * + * @param value + * The owner to set. + * + * @return This builder for chaining. + */ + public Builder setOwner(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + owner_ = value; + onChanged(); + return this; + } + + /** + * string owner = 2; + * + * @return This builder for chaining. + */ + public Builder clearOwner() { + + owner_ = getDefaultInstance().getOwner(); + onChanged(); + return this; + } + + /** + * string owner = 2; + * + * @param value + * The bytes for owner to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + owner_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TokenRevokeCreate) + } + + // @@protoc_insertion_point(class_scope:TokenRevokeCreate) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate(); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenRevokeCreate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TokenRevokeCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenMintOrBuilder extends + // @@protoc_insertion_point(interface_extends:TokenMint) + com.google.protobuf.MessageOrBuilder { + + /** + * string symbol = 1; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); + } + + /** + * Protobuf type {@code TokenMint} + */ + public static final class TokenMint extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TokenMint) + TokenMintOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TokenMint.newBuilder() to construct. + private TokenMint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TokenMint() { + symbol_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenMint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TokenMint(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder.class); + } + + public static final int SYMBOL_FIELD_NUMBER = 1; + private volatile java.lang.Object symbol_; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + 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 cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) obj; + + if (!getSymbol().equals(other.getSymbol())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TokenMint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TokenMint) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + symbol_ = ""; + + amount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint( + this); + result.symbol_ = symbol_; + result.amount_ = amount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance()) + return this; + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string symbol = 1; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { + + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } + + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TokenMint) + } + + // @@protoc_insertion_point(class_scope:TokenMint) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint(); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenMint parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TokenMint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenBurnOrBuilder extends + // @@protoc_insertion_point(interface_extends:TokenBurn) + com.google.protobuf.MessageOrBuilder { + + /** + * string symbol = 1; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); + } + + /** + * Protobuf type {@code TokenBurn} + */ + public static final class TokenBurn extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TokenBurn) + TokenBurnOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TokenBurn.newBuilder() to construct. + private TokenBurn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TokenBurn() { + symbol_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenBurn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TokenBurn(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder.class); + } + + public static final int SYMBOL_FIELD_NUMBER = 1; + private volatile java.lang.Object symbol_; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + 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 cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) obj; + + if (!getSymbol().equals(other.getSymbol())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TokenBurn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TokenBurn) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + symbol_ = ""; + + amount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn( + this); + result.symbol_ = symbol_; + result.amount_ = amount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance()) + return this; + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 1; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string symbol = 1; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string symbol = 1; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { + + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } + + /** + * string symbol = 1; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } + + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TokenBurn) + } + + // @@protoc_insertion_point(class_scope:TokenBurn) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn(); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenBurn parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TokenBurn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } - /** - * .TokenPreCreate tokenPreCreate = 1; - * @return Whether the tokenPreCreate field is set. - */ - boolean hasTokenPreCreate(); - /** - * .TokenPreCreate tokenPreCreate = 1; - * @return The tokenPreCreate. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getTokenPreCreate(); - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder getTokenPreCreateOrBuilder(); + public interface AssetsGenesisOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsGenesis) + com.google.protobuf.MessageOrBuilder { - /** - * .TokenFinishCreate tokenFinishCreate = 2; - * @return Whether the tokenFinishCreate field is set. - */ - boolean hasTokenFinishCreate(); - /** - * .TokenFinishCreate tokenFinishCreate = 2; - * @return The tokenFinishCreate. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getTokenFinishCreate(); - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder getTokenFinishCreateOrBuilder(); + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - * @return Whether the tokenRevokeCreate field is set. - */ - boolean hasTokenRevokeCreate(); - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - * @return The tokenRevokeCreate. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getTokenRevokeCreate(); - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder getTokenRevokeCreateOrBuilder(); + /** + * string returnAddress = 3; + * + * @return The returnAddress. + */ + java.lang.String getReturnAddress(); - /** - * .AssetsTransfer transfer = 4; - * @return Whether the transfer field is set. - */ - boolean hasTransfer(); - /** - * .AssetsTransfer transfer = 4; - * @return The transfer. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getTransfer(); - /** - * .AssetsTransfer transfer = 4; - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder getTransferOrBuilder(); + /** + * string returnAddress = 3; + * + * @return The bytes for returnAddress. + */ + com.google.protobuf.ByteString getReturnAddressBytes(); + } /** - * .AssetsWithdraw withdraw = 5; - * @return Whether the withdraw field is set. - */ - boolean hasWithdraw(); - /** - * .AssetsWithdraw withdraw = 5; - * @return The withdraw. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getWithdraw(); - /** - * .AssetsWithdraw withdraw = 5; + * Protobuf type {@code AssetsGenesis} */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder(); + public static final class AssetsGenesis extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsGenesis) + AssetsGenesisOrBuilder { + private static final long serialVersionUID = 0L; - /** - * .AssetsGenesis genesis = 6; - * @return Whether the genesis field is set. - */ - boolean hasGenesis(); - /** - * .AssetsGenesis genesis = 6; - * @return The genesis. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getGenesis(); - /** - * .AssetsGenesis genesis = 6; - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder getGenesisOrBuilder(); + // Use AssetsGenesis.newBuilder() to construct. + private AssetsGenesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AssetsGenesis() { + returnAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsGenesis(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AssetsGenesis(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + returnAddress_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder.class); + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + public static final int RETURNADDRESS_FIELD_NUMBER = 3; + private volatile java.lang.Object returnAddress_; + + /** + * string returnAddress = 3; + * + * @return The returnAddress. + */ + public java.lang.String getReturnAddress() { + java.lang.Object ref = returnAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + returnAddress_ = s; + return s; + } + } + + /** + * string returnAddress = 3; + * + * @return The bytes for returnAddress. + */ + public com.google.protobuf.ByteString getReturnAddressBytes() { + java.lang.Object ref = returnAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + returnAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!getReturnAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, returnAddress_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!getReturnAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, returnAddress_); + } + 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 cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) obj; + + if (getAmount() != other.getAmount()) + return false; + if (!getReturnAddress().equals(other.getReturnAddress())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + RETURNADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getReturnAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 AssetsGenesis} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsGenesis) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + amount_ = 0L; + + returnAddress_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis( + this); + result.amount_ = amount_; + result.returnAddress_ = returnAddress_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance()) + return this; + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getReturnAddress().isEmpty()) { + returnAddress_ = other.returnAddress_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object returnAddress_ = ""; + + /** + * string returnAddress = 3; + * + * @return The returnAddress. + */ + public java.lang.String getReturnAddress() { + java.lang.Object ref = returnAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + returnAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string returnAddress = 3; + * + * @return The bytes for returnAddress. + */ + public com.google.protobuf.ByteString getReturnAddressBytes() { + java.lang.Object ref = returnAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + returnAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string returnAddress = 3; + * + * @param value + * The returnAddress to set. + * + * @return This builder for chaining. + */ + public Builder setReturnAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + returnAddress_ = value; + onChanged(); + return this; + } + + /** + * string returnAddress = 3; + * + * @return This builder for chaining. + */ + public Builder clearReturnAddress() { + + returnAddress_ = getDefaultInstance().getReturnAddress(); + onChanged(); + return this; + } + + /** + * string returnAddress = 3; + * + * @param value + * The bytes for returnAddress to set. + * + * @return This builder for chaining. + */ + public Builder setReturnAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + returnAddress_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:AssetsGenesis) + } + + // @@protoc_insertion_point(class_scope:AssetsGenesis) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis(); + } + + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsGenesis parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsGenesis(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AssetsTransferToExecOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsTransferToExec) + com.google.protobuf.MessageOrBuilder { + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + java.lang.String getCointoken(); + + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + com.google.protobuf.ByteString getCointokenBytes(); + + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); + + /** + * bytes note = 3; + * + * @return The note. + */ + com.google.protobuf.ByteString getNote(); + + /** + * string execName = 4; + * + * @return The execName. + */ + java.lang.String getExecName(); + + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + com.google.protobuf.ByteString getExecNameBytes(); + + /** + * string to = 5; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + * string to = 5; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + } /** - * .AssetsTransferToExec transferToExec = 8; - * @return Whether the transferToExec field is set. - */ - boolean hasTransferToExec(); - /** - * .AssetsTransferToExec transferToExec = 8; - * @return The transferToExec. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getTransferToExec(); - /** - * .AssetsTransferToExec transferToExec = 8; + * Protobuf type {@code AssetsTransferToExec} */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder(); + public static final class AssetsTransferToExec extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsTransferToExec) + AssetsTransferToExecOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AssetsTransferToExec.newBuilder() to construct. + private AssetsTransferToExec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AssetsTransferToExec() { + cointoken_ = ""; + note_ = com.google.protobuf.ByteString.EMPTY; + execName_ = ""; + to_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsTransferToExec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AssetsTransferToExec(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cointoken_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + + note_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + execName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder.class); + } + + public static final int COINTOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object cointoken_; + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } + } + + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + public static final int NOTE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString note_; + + /** + * bytes note = 3; + * + * @return The note. + */ + public com.google.protobuf.ByteString getNote() { + return note_; + } + + public static final int EXECNAME_FIELD_NUMBER = 4; + private volatile java.lang.Object execName_; + + /** + * string execName = 4; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } + } + + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TO_FIELD_NUMBER = 5; + private volatile java.lang.Object to_; + + /** + * string to = 5; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + + /** + * string to = 5; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCointokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!note_.isEmpty()) { + output.writeBytes(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); + } + unknownFields.writeTo(output); + } - /** - * .TokenMint tokenMint = 9; - * @return Whether the tokenMint field is set. - */ - boolean hasTokenMint(); - /** - * .TokenMint tokenMint = 9; - * @return The tokenMint. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getTokenMint(); - /** - * .TokenMint tokenMint = 9; - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder getTokenMintOrBuilder(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * .TokenBurn tokenBurn = 10; - * @return Whether the tokenBurn field is set. - */ - boolean hasTokenBurn(); - /** - * .TokenBurn tokenBurn = 10; - * @return The tokenBurn. - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getTokenBurn(); - /** - * .TokenBurn tokenBurn = 10; - */ - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder getTokenBurnOrBuilder(); + size = 0; + if (!getCointokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!note_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * int32 Ty = 7; - * @return The ty. - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.ValueCase getValueCase(); - } - /** - *
-   * action
-   * 
- * - * Protobuf type {@code TokenAction} - */ - public static final class TokenAction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TokenAction) - TokenActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TokenAction.newBuilder() to construct. - private TokenAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TokenAction() { - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) obj; + + if (!getCointoken().equals(other.getCointoken())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getExecName().equals(other.getExecName())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getCointoken().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + EXECNAME_FIELD_NUMBER; + hash = (53 * hash) + getExecName().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TokenAction(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TokenAction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 56: { - - ty_ = input.readInt32(); - break; - } - case 66: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder subBuilder = null; - if (valueCase_ == 8) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 8; - break; - } - case 74: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder subBuilder = null; - if (valueCase_ == 9) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 9; - break; - } - case 82: { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder subBuilder = null; - if (valueCase_ == 10) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 10; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TOKENPRECREATE(1), - TOKENFINISHCREATE(2), - TOKENREVOKECREATE(3), - TRANSFER(4), - WITHDRAW(5), - GENESIS(6), - TRANSFERTOEXEC(8), - TOKENMINT(9), - TOKENBURN(10), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return TOKENPRECREATE; - case 2: return TOKENFINISHCREATE; - case 3: return TOKENREVOKECREATE; - case 4: return TRANSFER; - case 5: return WITHDRAW; - case 6: return GENESIS; - case 8: return TRANSFERTOEXEC; - case 9: return TOKENMINT; - case 10: return TOKENBURN; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int TOKENPRECREATE_FIELD_NUMBER = 1; - /** - * .TokenPreCreate tokenPreCreate = 1; - * @return Whether the tokenPreCreate field is set. - */ - public boolean hasTokenPreCreate() { - return valueCase_ == 1; - } - /** - * .TokenPreCreate tokenPreCreate = 1; - * @return The tokenPreCreate. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getTokenPreCreate() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder getTokenPreCreateOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TOKENFINISHCREATE_FIELD_NUMBER = 2; - /** - * .TokenFinishCreate tokenFinishCreate = 2; - * @return Whether the tokenFinishCreate field is set. - */ - public boolean hasTokenFinishCreate() { - return valueCase_ == 2; - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - * @return The tokenFinishCreate. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getTokenFinishCreate() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder getTokenFinishCreateOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int TOKENREVOKECREATE_FIELD_NUMBER = 3; - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - * @return Whether the tokenRevokeCreate field is set. - */ - public boolean hasTokenRevokeCreate() { - return valueCase_ == 3; - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - * @return The tokenRevokeCreate. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getTokenRevokeCreate() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder getTokenRevokeCreateOrBuilder() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int TRANSFER_FIELD_NUMBER = 4; - /** - * .AssetsTransfer transfer = 4; - * @return Whether the transfer field is set. - */ - public boolean hasTransfer() { - return valueCase_ == 4; - } - /** - * .AssetsTransfer transfer = 4; - * @return The transfer. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getTransfer() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); - } - /** - * .AssetsTransfer transfer = 4; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder getTransferOrBuilder() { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int WITHDRAW_FIELD_NUMBER = 5; - /** - * .AssetsWithdraw withdraw = 5; - * @return Whether the withdraw field is set. - */ - public boolean hasWithdraw() { - return valueCase_ == 5; - } - /** - * .AssetsWithdraw withdraw = 5; - * @return The withdraw. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getWithdraw() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); - } - /** - * .AssetsWithdraw withdraw = 5; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int GENESIS_FIELD_NUMBER = 6; - /** - * .AssetsGenesis genesis = 6; - * @return Whether the genesis field is set. - */ - public boolean hasGenesis() { - return valueCase_ == 6; - } - /** - * .AssetsGenesis genesis = 6; - * @return The genesis. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getGenesis() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); - } - /** - * .AssetsGenesis genesis = 6; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int TRANSFERTOEXEC_FIELD_NUMBER = 8; - /** - * .AssetsTransferToExec transferToExec = 8; - * @return Whether the transferToExec field is set. - */ - public boolean hasTransferToExec() { - return valueCase_ == 8; - } - /** - * .AssetsTransferToExec transferToExec = 8; - * @return The transferToExec. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getTransferToExec() { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int TOKENMINT_FIELD_NUMBER = 9; - /** - * .TokenMint tokenMint = 9; - * @return Whether the tokenMint field is set. - */ - public boolean hasTokenMint() { - return valueCase_ == 9; - } - /** - * .TokenMint tokenMint = 9; - * @return The tokenMint. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getTokenMint() { - if (valueCase_ == 9) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); - } - /** - * .TokenMint tokenMint = 9; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder getTokenMintOrBuilder() { - if (valueCase_ == 9) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int TOKENBURN_FIELD_NUMBER = 10; - /** - * .TokenBurn tokenBurn = 10; - * @return Whether the tokenBurn field is set. - */ - public boolean hasTokenBurn() { - return valueCase_ == 10; - } - /** - * .TokenBurn tokenBurn = 10; - * @return The tokenBurn. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getTokenBurn() { - if (valueCase_ == 10) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); - } - /** - * .TokenBurn tokenBurn = 10; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder getTokenBurnOrBuilder() { - if (valueCase_ == 10) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int TY_FIELD_NUMBER = 7; - private int ty_; - /** - * int32 Ty = 7; - * @return The ty. - */ - public int getTy() { - return ty_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_); - } - if (ty_ != 0) { - output.writeInt32(7, ty_); - } - if (valueCase_ == 8) { - output.writeMessage(8, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_); - } - if (valueCase_ == 9) { - output.writeMessage(9, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_); - } - if (valueCase_ == 10) { - output.writeMessage(10, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, ty_); - } - if (valueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_); - } - if (valueCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_); - } - if (valueCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * Protobuf type {@code AssetsTransferToExec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsTransferToExec) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction) obj; - - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getTokenPreCreate() - .equals(other.getTokenPreCreate())) return false; - break; - case 2: - if (!getTokenFinishCreate() - .equals(other.getTokenFinishCreate())) return false; - break; - case 3: - if (!getTokenRevokeCreate() - .equals(other.getTokenRevokeCreate())) return false; - break; - case 4: - if (!getTransfer() - .equals(other.getTransfer())) return false; - break; - case 5: - if (!getWithdraw() - .equals(other.getWithdraw())) return false; - break; - case 6: - if (!getGenesis() - .equals(other.getGenesis())) return false; - break; - case 8: - if (!getTransferToExec() - .equals(other.getTransferToExec())) return false; - break; - case 9: - if (!getTokenMint() - .equals(other.getTokenMint())) return false; - break; - case 10: - if (!getTokenBurn() - .equals(other.getTokenBurn())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + TOKENPRECREATE_FIELD_NUMBER; - hash = (53 * hash) + getTokenPreCreate().hashCode(); - break; - case 2: - hash = (37 * hash) + TOKENFINISHCREATE_FIELD_NUMBER; - hash = (53 * hash) + getTokenFinishCreate().hashCode(); - break; - case 3: - hash = (37 * hash) + TOKENREVOKECREATE_FIELD_NUMBER; - hash = (53 * hash) + getTokenRevokeCreate().hashCode(); - break; - case 4: - hash = (37 * hash) + TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + getTransfer().hashCode(); - break; - case 5: - hash = (37 * hash) + WITHDRAW_FIELD_NUMBER; - hash = (53 * hash) + getWithdraw().hashCode(); - break; - case 6: - hash = (37 * hash) + GENESIS_FIELD_NUMBER; - hash = (53 * hash) + getGenesis().hashCode(); - break; - case 8: - hash = (37 * hash) + TRANSFERTOEXEC_FIELD_NUMBER; - hash = (53 * hash) + getTransferToExec().hashCode(); - break; - case 9: - hash = (37 * hash) + TOKENMINT_FIELD_NUMBER; - hash = (53 * hash) + getTokenMint().hashCode(); - break; - case 10: - hash = (37 * hash) + TOKENBURN_FIELD_NUMBER; - hash = (53 * hash) + getTokenBurn().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * action
-     * 
- * - * Protobuf type {@code TokenAction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TokenAction) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenAction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction(this); - if (valueCase_ == 1) { - if (tokenPreCreateBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tokenPreCreateBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (tokenFinishCreateBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tokenFinishCreateBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (tokenRevokeCreateBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tokenRevokeCreateBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (transferBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = transferBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (withdrawBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = withdrawBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (genesisBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = genesisBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (transferToExecBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = transferToExecBuilder_.build(); - } - } - if (valueCase_ == 9) { - if (tokenMintBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tokenMintBuilder_.build(); - } - } - if (valueCase_ == 10) { - if (tokenBurnBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tokenBurnBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case TOKENPRECREATE: { - mergeTokenPreCreate(other.getTokenPreCreate()); - break; - } - case TOKENFINISHCREATE: { - mergeTokenFinishCreate(other.getTokenFinishCreate()); - break; - } - case TOKENREVOKECREATE: { - mergeTokenRevokeCreate(other.getTokenRevokeCreate()); - break; - } - case TRANSFER: { - mergeTransfer(other.getTransfer()); - break; - } - case WITHDRAW: { - mergeWithdraw(other.getWithdraw()); - break; - } - case GENESIS: { - mergeGenesis(other.getGenesis()); - break; - } - case TRANSFERTOEXEC: { - mergeTransferToExec(other.getTransferToExec()); - break; - } - case TOKENMINT: { - mergeTokenMint(other.getTokenMint()); - break; - } - case TOKENBURN: { - mergeTokenBurn(other.getTokenBurn()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder> tokenPreCreateBuilder_; - /** - * .TokenPreCreate tokenPreCreate = 1; - * @return Whether the tokenPreCreate field is set. - */ - public boolean hasTokenPreCreate() { - return valueCase_ == 1; - } - /** - * .TokenPreCreate tokenPreCreate = 1; - * @return The tokenPreCreate. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getTokenPreCreate() { - if (tokenPreCreateBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return tokenPreCreateBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); - } - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - public Builder setTokenPreCreate(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate value) { - if (tokenPreCreateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - tokenPreCreateBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - public Builder setTokenPreCreate( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder builderForValue) { - if (tokenPreCreateBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - tokenPreCreateBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - public Builder mergeTokenPreCreate(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate value) { - if (tokenPreCreateBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - tokenPreCreateBuilder_.mergeFrom(value); - } - tokenPreCreateBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - public Builder clearTokenPreCreate() { - if (tokenPreCreateBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - tokenPreCreateBuilder_.clear(); - } - return this; - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder getTokenPreCreateBuilder() { - return getTokenPreCreateFieldBuilder().getBuilder(); - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder getTokenPreCreateOrBuilder() { - if ((valueCase_ == 1) && (tokenPreCreateBuilder_ != null)) { - return tokenPreCreateBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); - } - } - /** - * .TokenPreCreate tokenPreCreate = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder> - getTokenPreCreateFieldBuilder() { - if (tokenPreCreateBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); - } - tokenPreCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return tokenPreCreateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder> tokenFinishCreateBuilder_; - /** - * .TokenFinishCreate tokenFinishCreate = 2; - * @return Whether the tokenFinishCreate field is set. - */ - public boolean hasTokenFinishCreate() { - return valueCase_ == 2; - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - * @return The tokenFinishCreate. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getTokenFinishCreate() { - if (tokenFinishCreateBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return tokenFinishCreateBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); - } - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - public Builder setTokenFinishCreate(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate value) { - if (tokenFinishCreateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - tokenFinishCreateBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - public Builder setTokenFinishCreate( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder builderForValue) { - if (tokenFinishCreateBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - tokenFinishCreateBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - public Builder mergeTokenFinishCreate(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate value) { - if (tokenFinishCreateBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - tokenFinishCreateBuilder_.mergeFrom(value); - } - tokenFinishCreateBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - public Builder clearTokenFinishCreate() { - if (tokenFinishCreateBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - tokenFinishCreateBuilder_.clear(); - } - return this; - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder getTokenFinishCreateBuilder() { - return getTokenFinishCreateFieldBuilder().getBuilder(); - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder getTokenFinishCreateOrBuilder() { - if ((valueCase_ == 2) && (tokenFinishCreateBuilder_ != null)) { - return tokenFinishCreateBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); - } - } - /** - * .TokenFinishCreate tokenFinishCreate = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder> - getTokenFinishCreateFieldBuilder() { - if (tokenFinishCreateBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); - } - tokenFinishCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return tokenFinishCreateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder> tokenRevokeCreateBuilder_; - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - * @return Whether the tokenRevokeCreate field is set. - */ - public boolean hasTokenRevokeCreate() { - return valueCase_ == 3; - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - * @return The tokenRevokeCreate. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getTokenRevokeCreate() { - if (tokenRevokeCreateBuilder_ == null) { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return tokenRevokeCreateBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); - } - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - public Builder setTokenRevokeCreate(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate value) { - if (tokenRevokeCreateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - tokenRevokeCreateBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - public Builder setTokenRevokeCreate( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder builderForValue) { - if (tokenRevokeCreateBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - tokenRevokeCreateBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - public Builder mergeTokenRevokeCreate(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate value) { - if (tokenRevokeCreateBuilder_ == null) { - if (valueCase_ == 3 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - tokenRevokeCreateBuilder_.mergeFrom(value); - } - tokenRevokeCreateBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - public Builder clearTokenRevokeCreate() { - if (tokenRevokeCreateBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - tokenRevokeCreateBuilder_.clear(); - } - return this; - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder getTokenRevokeCreateBuilder() { - return getTokenRevokeCreateFieldBuilder().getBuilder(); - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder getTokenRevokeCreateOrBuilder() { - if ((valueCase_ == 3) && (tokenRevokeCreateBuilder_ != null)) { - return tokenRevokeCreateBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); - } - } - /** - * .TokenRevokeCreate tokenRevokeCreate = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder> - getTokenRevokeCreateFieldBuilder() { - if (tokenRevokeCreateBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); - } - tokenRevokeCreateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return tokenRevokeCreateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder> transferBuilder_; - /** - * .AssetsTransfer transfer = 4; - * @return Whether the transfer field is set. - */ - public boolean hasTransfer() { - return valueCase_ == 4; - } - /** - * .AssetsTransfer transfer = 4; - * @return The transfer. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getTransfer() { - if (transferBuilder_ == null) { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return transferBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); - } - } - /** - * .AssetsTransfer transfer = 4; - */ - public Builder setTransfer(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer value) { - if (transferBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - transferBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .AssetsTransfer transfer = 4; - */ - public Builder setTransfer( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder builderForValue) { - if (transferBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - transferBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .AssetsTransfer transfer = 4; - */ - public Builder mergeTransfer(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer value) { - if (transferBuilder_ == null) { - if (valueCase_ == 4 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - transferBuilder_.mergeFrom(value); - } - transferBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .AssetsTransfer transfer = 4; - */ - public Builder clearTransfer() { - if (transferBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - transferBuilder_.clear(); - } - return this; - } - /** - * .AssetsTransfer transfer = 4; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder getTransferBuilder() { - return getTransferFieldBuilder().getBuilder(); - } - /** - * .AssetsTransfer transfer = 4; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder getTransferOrBuilder() { - if ((valueCase_ == 4) && (transferBuilder_ != null)) { - return transferBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); - } - } - /** - * .AssetsTransfer transfer = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder> - getTransferFieldBuilder() { - if (transferBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); - } - transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return transferBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder> withdrawBuilder_; - /** - * .AssetsWithdraw withdraw = 5; - * @return Whether the withdraw field is set. - */ - public boolean hasWithdraw() { - return valueCase_ == 5; - } - /** - * .AssetsWithdraw withdraw = 5; - * @return The withdraw. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getWithdraw() { - if (withdrawBuilder_ == null) { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return withdrawBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); - } - } - /** - * .AssetsWithdraw withdraw = 5; - */ - public Builder setWithdraw(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw value) { - if (withdrawBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - withdrawBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .AssetsWithdraw withdraw = 5; - */ - public Builder setWithdraw( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder builderForValue) { - if (withdrawBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - withdrawBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .AssetsWithdraw withdraw = 5; - */ - public Builder mergeWithdraw(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw value) { - if (withdrawBuilder_ == null) { - if (valueCase_ == 5 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - withdrawBuilder_.mergeFrom(value); - } - withdrawBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .AssetsWithdraw withdraw = 5; - */ - public Builder clearWithdraw() { - if (withdrawBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - withdrawBuilder_.clear(); - } - return this; - } - /** - * .AssetsWithdraw withdraw = 5; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder getWithdrawBuilder() { - return getWithdrawFieldBuilder().getBuilder(); - } - /** - * .AssetsWithdraw withdraw = 5; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder getWithdrawOrBuilder() { - if ((valueCase_ == 5) && (withdrawBuilder_ != null)) { - return withdrawBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); - } - } - /** - * .AssetsWithdraw withdraw = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder> - getWithdrawFieldBuilder() { - if (withdrawBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); - } - withdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return withdrawBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder> genesisBuilder_; - /** - * .AssetsGenesis genesis = 6; - * @return Whether the genesis field is set. - */ - public boolean hasGenesis() { - return valueCase_ == 6; - } - /** - * .AssetsGenesis genesis = 6; - * @return The genesis. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getGenesis() { - if (genesisBuilder_ == null) { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return genesisBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); - } - } - /** - * .AssetsGenesis genesis = 6; - */ - public Builder setGenesis(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis value) { - if (genesisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - genesisBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .AssetsGenesis genesis = 6; - */ - public Builder setGenesis( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder builderForValue) { - if (genesisBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - genesisBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .AssetsGenesis genesis = 6; - */ - public Builder mergeGenesis(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis value) { - if (genesisBuilder_ == null) { - if (valueCase_ == 6 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - genesisBuilder_.mergeFrom(value); - } - genesisBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .AssetsGenesis genesis = 6; - */ - public Builder clearGenesis() { - if (genesisBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - genesisBuilder_.clear(); - } - return this; - } - /** - * .AssetsGenesis genesis = 6; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder getGenesisBuilder() { - return getGenesisFieldBuilder().getBuilder(); - } - /** - * .AssetsGenesis genesis = 6; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder getGenesisOrBuilder() { - if ((valueCase_ == 6) && (genesisBuilder_ != null)) { - return genesisBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); - } - } - /** - * .AssetsGenesis genesis = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder> - getGenesisFieldBuilder() { - if (genesisBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); - } - genesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return genesisBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder> transferToExecBuilder_; - /** - * .AssetsTransferToExec transferToExec = 8; - * @return Whether the transferToExec field is set. - */ - public boolean hasTransferToExec() { - return valueCase_ == 8; - } - /** - * .AssetsTransferToExec transferToExec = 8; - * @return The transferToExec. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getTransferToExec() { - if (transferToExecBuilder_ == null) { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); - } else { - if (valueCase_ == 8) { - return transferToExecBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); - } - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - public Builder setTransferToExec(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec value) { - if (transferToExecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - transferToExecBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - public Builder setTransferToExec( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder builderForValue) { - if (transferToExecBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - transferToExecBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 8; - return this; - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - public Builder mergeTransferToExec(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec value) { - if (transferToExecBuilder_ == null) { - if (valueCase_ == 8 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 8) { - transferToExecBuilder_.mergeFrom(value); - } - transferToExecBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - public Builder clearTransferToExec() { - if (transferToExecBuilder_ == null) { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - } - transferToExecBuilder_.clear(); - } - return this; - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder getTransferToExecBuilder() { - return getTransferToExecFieldBuilder().getBuilder(); - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder getTransferToExecOrBuilder() { - if ((valueCase_ == 8) && (transferToExecBuilder_ != null)) { - return transferToExecBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 8) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); - } - } - /** - * .AssetsTransferToExec transferToExec = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder> - getTransferToExecFieldBuilder() { - if (transferToExecBuilder_ == null) { - if (!(valueCase_ == 8)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); - } - transferToExecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 8; - onChanged();; - return transferToExecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder> tokenMintBuilder_; - /** - * .TokenMint tokenMint = 9; - * @return Whether the tokenMint field is set. - */ - public boolean hasTokenMint() { - return valueCase_ == 9; - } - /** - * .TokenMint tokenMint = 9; - * @return The tokenMint. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getTokenMint() { - if (tokenMintBuilder_ == null) { - if (valueCase_ == 9) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); - } else { - if (valueCase_ == 9) { - return tokenMintBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); - } - } - /** - * .TokenMint tokenMint = 9; - */ - public Builder setTokenMint(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint value) { - if (tokenMintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - tokenMintBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .TokenMint tokenMint = 9; - */ - public Builder setTokenMint( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder builderForValue) { - if (tokenMintBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - tokenMintBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 9; - return this; - } - /** - * .TokenMint tokenMint = 9; - */ - public Builder mergeTokenMint(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint value) { - if (tokenMintBuilder_ == null) { - if (valueCase_ == 9 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 9) { - tokenMintBuilder_.mergeFrom(value); - } - tokenMintBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .TokenMint tokenMint = 9; - */ - public Builder clearTokenMint() { - if (tokenMintBuilder_ == null) { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - } - tokenMintBuilder_.clear(); - } - return this; - } - /** - * .TokenMint tokenMint = 9; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder getTokenMintBuilder() { - return getTokenMintFieldBuilder().getBuilder(); - } - /** - * .TokenMint tokenMint = 9; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder getTokenMintOrBuilder() { - if ((valueCase_ == 9) && (tokenMintBuilder_ != null)) { - return tokenMintBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 9) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); - } - } - /** - * .TokenMint tokenMint = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder> - getTokenMintFieldBuilder() { - if (tokenMintBuilder_ == null) { - if (!(valueCase_ == 9)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); - } - tokenMintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 9; - onChanged();; - return tokenMintBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder> tokenBurnBuilder_; - /** - * .TokenBurn tokenBurn = 10; - * @return Whether the tokenBurn field is set. - */ - public boolean hasTokenBurn() { - return valueCase_ == 10; - } - /** - * .TokenBurn tokenBurn = 10; - * @return The tokenBurn. - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getTokenBurn() { - if (tokenBurnBuilder_ == null) { - if (valueCase_ == 10) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); - } else { - if (valueCase_ == 10) { - return tokenBurnBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); - } - } - /** - * .TokenBurn tokenBurn = 10; - */ - public Builder setTokenBurn(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn value) { - if (tokenBurnBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - tokenBurnBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - * .TokenBurn tokenBurn = 10; - */ - public Builder setTokenBurn( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder builderForValue) { - if (tokenBurnBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - tokenBurnBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 10; - return this; - } - /** - * .TokenBurn tokenBurn = 10; - */ - public Builder mergeTokenBurn(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn value) { - if (tokenBurnBuilder_ == null) { - if (valueCase_ == 10 && - value_ != cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.newBuilder((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 10) { - tokenBurnBuilder_.mergeFrom(value); - } - tokenBurnBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - * .TokenBurn tokenBurn = 10; - */ - public Builder clearTokenBurn() { - if (tokenBurnBuilder_ == null) { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - } - tokenBurnBuilder_.clear(); - } - return this; - } - /** - * .TokenBurn tokenBurn = 10; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder getTokenBurnBuilder() { - return getTokenBurnFieldBuilder().getBuilder(); - } - /** - * .TokenBurn tokenBurn = 10; - */ - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder getTokenBurnOrBuilder() { - if ((valueCase_ == 10) && (tokenBurnBuilder_ != null)) { - return tokenBurnBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 10) { - return (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_; - } - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); - } - } - /** - * .TokenBurn tokenBurn = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder> - getTokenBurnFieldBuilder() { - if (tokenBurnBuilder_ == null) { - if (!(valueCase_ == 10)) { - value_ = cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); - } - tokenBurnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder>( - (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 10; - onChanged();; - return tokenBurnBuilder_; - } - - private int ty_ ; - /** - * int32 Ty = 7; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 Ty = 7; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 Ty = 7; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TokenAction) - } + @java.lang.Override + public Builder clear() { + super.clear(); + cointoken_ = ""; - // @@protoc_insertion_point(class_scope:TokenAction) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction(); - } + amount_ = 0L; - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + note_ = com.google.protobuf.ByteString.EMPTY; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TokenAction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + execName_ = ""; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + to_ = ""; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + return this; + } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_descriptor; + } - public interface TokenPreCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:TokenPreCreate) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * string symbol = 2; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec( + this); + result.cointoken_ = cointoken_; + result.amount_ = amount_; + result.note_ = note_; + result.execName_ = execName_; + result.to_ = to_; + onBuilt(); + return result; + } - /** - * string introduction = 3; - * @return The introduction. - */ - java.lang.String getIntroduction(); - /** - * string introduction = 3; - * @return The bytes for introduction. - */ - com.google.protobuf.ByteString - getIntroductionBytes(); + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - * int64 total = 4; - * @return The total. - */ - long getTotal(); + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * int64 price = 5; - * @return The price. - */ - long getPrice(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - * string owner = 6; - * @return The owner. - */ - java.lang.String getOwner(); - /** - * string owner = 6; - * @return The bytes for owner. - */ - com.google.protobuf.ByteString - getOwnerBytes(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * int32 category = 7; - * @return The category. - */ - int getCategory(); - } - /** - *
-   *创建token,支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍
-   * 
- * - * Protobuf type {@code TokenPreCreate} - */ - public static final class TokenPreCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TokenPreCreate) - TokenPreCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TokenPreCreate.newBuilder() to construct. - private TokenPreCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TokenPreCreate() { - name_ = ""; - symbol_ = ""; - introduction_ = ""; - owner_ = ""; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TokenPreCreate(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TokenPreCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) other); + } else { + super.mergeFrom(other); + return this; + } + } - name_ = s; - break; + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec + .getDefaultInstance()) + return this; + if (!other.getCointoken().isEmpty()) { + cointoken_ = other.cointoken_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { + setNote(other.getNote()); + } + if (!other.getExecName().isEmpty()) { + execName_ = other.execName_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - symbol_ = s; - break; + @java.lang.Override + public final boolean isInitialized() { + return true; } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - introduction_ = s; - break; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - case 32: { - total_ = input.readInt64(); - break; + private java.lang.Object cointoken_ = ""; + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - case 40: { - price_ = input.readInt64(); - break; + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - owner_ = s; - break; + /** + * string cointoken = 1; + * + * @param value + * The cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointoken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cointoken_ = value; + onChanged(); + return this; } - case 56: { - category_ = input.readInt32(); - break; + /** + * string cointoken = 1; + * + * @return This builder for chaining. + */ + public Builder clearCointoken() { + + cointoken_ = getDefaultInstance().getCointoken(); + onChanged(); + return this; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + /** + * string cointoken = 1; + * + * @param value + * The bytes for cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cointoken_ = value; + onChanged(); + return this; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder.class); - } + private long amount_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } - public static final int SYMBOL_FIELD_NUMBER = 2; - private volatile java.lang.Object symbol_; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - public static final int INTRODUCTION_FIELD_NUMBER = 3; - private volatile java.lang.Object introduction_; - /** - * string introduction = 3; - * @return The introduction. - */ - public java.lang.String getIntroduction() { - java.lang.Object ref = introduction_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - introduction_ = s; - return s; - } - } - /** - * string introduction = 3; - * @return The bytes for introduction. - */ - public com.google.protobuf.ByteString - getIntroductionBytes() { - java.lang.Object ref = introduction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - introduction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - public static final int TOTAL_FIELD_NUMBER = 4; - private long total_; - /** - * int64 total = 4; - * @return The total. - */ - public long getTotal() { - return total_; - } + amount_ = 0L; + onChanged(); + return this; + } - public static final int PRICE_FIELD_NUMBER = 5; - private long price_; - /** - * int64 price = 5; - * @return The price. - */ - public long getPrice() { - return price_; - } + private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - public static final int OWNER_FIELD_NUMBER = 6; - private volatile java.lang.Object owner_; - /** - * string owner = 6; - * @return The owner. - */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } - } - /** - * string owner = 6; - * @return The bytes for owner. - */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * bytes note = 3; + * + * @return The note. + */ + public com.google.protobuf.ByteString getNote() { + return note_; + } + + /** + * bytes note = 3; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } - public static final int CATEGORY_FIELD_NUMBER = 7; - private int category_; - /** - * int32 category = 7; - * @return The category. - */ - public int getCategory() { - return category_; - } + /** + * bytes note = 3; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private java.lang.Object execName_ = ""; + + /** + * string execName = 4; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); - } - if (!getIntroductionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, introduction_); - } - if (total_ != 0L) { - output.writeInt64(4, total_); - } - if (price_ != 0L) { - output.writeInt64(5, price_); - } - if (!getOwnerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, owner_); - } - if (category_ != 0) { - output.writeInt32(7, category_); - } - unknownFields.writeTo(output); - } + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); - } - if (!getIntroductionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, introduction_); - } - if (total_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, total_); - } - if (price_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, price_); - } - if (!getOwnerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, owner_); - } - if (category_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, category_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string execName = 4; + * + * @param value + * The execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execName_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (!getIntroduction() - .equals(other.getIntroduction())) return false; - if (getTotal() - != other.getTotal()) return false; - if (getPrice() - != other.getPrice()) return false; - if (!getOwner() - .equals(other.getOwner())) return false; - if (getCategory() - != other.getCategory()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string execName = 4; + * + * @return This builder for chaining. + */ + public Builder clearExecName() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + INTRODUCTION_FIELD_NUMBER; - hash = (53 * hash) + getIntroduction().hashCode(); - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotal()); - hash = (37 * hash) + PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrice()); - hash = (37 * hash) + OWNER_FIELD_NUMBER; - hash = (53 * hash) + getOwner().hashCode(); - hash = (37 * hash) + CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + getCategory(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + execName_ = getDefaultInstance().getExecName(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string execName = 4; + * + * @param value + * The bytes for execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execName_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object to_ = ""; + + /** + * string to = 5; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *创建token,支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍
-     * 
- * - * Protobuf type {@code TokenPreCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TokenPreCreate) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - symbol_ = ""; - - introduction_ = ""; - - total_ = 0L; - - price_ = 0L; - - owner_ = ""; - - category_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenPreCreate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate(this); - result.name_ = name_; - result.symbol_ = symbol_; - result.introduction_ = introduction_; - result.total_ = total_; - result.price_ = price_; - result.owner_ = owner_; - result.category_ = category_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (!other.getIntroduction().isEmpty()) { - introduction_ = other.introduction_; - onChanged(); - } - if (other.getTotal() != 0L) { - setTotal(other.getTotal()); - } - if (other.getPrice() != 0L) { - setPrice(other.getPrice()); - } - if (!other.getOwner().isEmpty()) { - owner_ = other.owner_; - onChanged(); - } - if (other.getCategory() != 0) { - setCategory(other.getCategory()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 2; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 2; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 2; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private java.lang.Object introduction_ = ""; - /** - * string introduction = 3; - * @return The introduction. - */ - public java.lang.String getIntroduction() { - java.lang.Object ref = introduction_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - introduction_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string introduction = 3; - * @return The bytes for introduction. - */ - public com.google.protobuf.ByteString - getIntroductionBytes() { - java.lang.Object ref = introduction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - introduction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string introduction = 3; - * @param value The introduction to set. - * @return This builder for chaining. - */ - public Builder setIntroduction( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - introduction_ = value; - onChanged(); - return this; - } - /** - * string introduction = 3; - * @return This builder for chaining. - */ - public Builder clearIntroduction() { - - introduction_ = getDefaultInstance().getIntroduction(); - onChanged(); - return this; - } - /** - * string introduction = 3; - * @param value The bytes for introduction to set. - * @return This builder for chaining. - */ - public Builder setIntroductionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - introduction_ = value; - onChanged(); - return this; - } - - private long total_ ; - /** - * int64 total = 4; - * @return The total. - */ - public long getTotal() { - return total_; - } - /** - * int64 total = 4; - * @param value The total to set. - * @return This builder for chaining. - */ - public Builder setTotal(long value) { - - total_ = value; - onChanged(); - return this; - } - /** - * int64 total = 4; - * @return This builder for chaining. - */ - public Builder clearTotal() { - - total_ = 0L; - onChanged(); - return this; - } - - private long price_ ; - /** - * int64 price = 5; - * @return The price. - */ - public long getPrice() { - return price_; - } - /** - * int64 price = 5; - * @param value The price to set. - * @return This builder for chaining. - */ - public Builder setPrice(long value) { - - price_ = value; - onChanged(); - return this; - } - /** - * int64 price = 5; - * @return This builder for chaining. - */ - public Builder clearPrice() { - - price_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object owner_ = ""; - /** - * string owner = 6; - * @return The owner. - */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner = 6; - * @return The bytes for owner. - */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner = 6; - * @param value The owner to set. - * @return This builder for chaining. - */ - public Builder setOwner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - owner_ = value; - onChanged(); - return this; - } - /** - * string owner = 6; - * @return This builder for chaining. - */ - public Builder clearOwner() { - - owner_ = getDefaultInstance().getOwner(); - onChanged(); - return this; - } - /** - * string owner = 6; - * @param value The bytes for owner to set. - * @return This builder for chaining. - */ - public Builder setOwnerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - owner_ = value; - onChanged(); - return this; - } - - private int category_ ; - /** - * int32 category = 7; - * @return The category. - */ - public int getCategory() { - return category_; - } - /** - * int32 category = 7; - * @param value The category to set. - * @return This builder for chaining. - */ - public Builder setCategory(int value) { - - category_ = value; - onChanged(); - return this; - } - /** - * int32 category = 7; - * @return This builder for chaining. - */ - public Builder clearCategory() { - - category_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TokenPreCreate) - } + /** + * string to = 5; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:TokenPreCreate) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate(); - } + /** + * string to = 5; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string to = 5; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenPreCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TokenPreCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string to = 5; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenPreCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public interface TokenFinishCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:TokenFinishCreate) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:AssetsTransferToExec) + } - /** - * string symbol = 1; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + // @@protoc_insertion_point(class_scope:AssetsTransferToExec) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec(); + } - /** - * string owner = 2; - * @return The owner. - */ - java.lang.String getOwner(); - /** - * string owner = 2; - * @return The bytes for owner. - */ - com.google.protobuf.ByteString - getOwnerBytes(); - } - /** - * Protobuf type {@code TokenFinishCreate} - */ - public static final class TokenFinishCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TokenFinishCreate) - TokenFinishCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TokenFinishCreate.newBuilder() to construct. - private TokenFinishCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TokenFinishCreate() { - symbol_ = ""; - owner_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TokenFinishCreate(); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsTransferToExec parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsTransferToExec(input, extensionRegistry); + } + }; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TokenFinishCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - owner_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int SYMBOL_FIELD_NUMBER = 1; - private volatile java.lang.Object symbol_; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int OWNER_FIELD_NUMBER = 2; - private volatile java.lang.Object owner_; - /** - * string owner = 2; - * @return The owner. - */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } - } - /** - * string owner = 2; - * @return The bytes for owner. - */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public interface AssetsWithdrawOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsWithdraw) + com.google.protobuf.MessageOrBuilder { - memoizedIsInitialized = 1; - return true; - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + java.lang.String getCointoken(); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); - } - if (!getOwnerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_); - } - unknownFields.writeTo(output); - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + com.google.protobuf.ByteString getCointokenBytes(); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); - } - if (!getOwnerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) obj; - - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (!getOwner() - .equals(other.getOwner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * bytes note = 3; + * + * @return The note. + */ + com.google.protobuf.ByteString getNote(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + OWNER_FIELD_NUMBER; - hash = (53 * hash) + getOwner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string execName = 4; + * + * @return The execName. + */ + java.lang.String getExecName(); - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + com.google.protobuf.ByteString getExecNameBytes(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string to = 5; + * + * @return The to. + */ + java.lang.String getTo(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string to = 5; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); } + /** - * Protobuf type {@code TokenFinishCreate} + * Protobuf type {@code AssetsWithdraw} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TokenFinishCreate) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - symbol_ = ""; - - owner_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenFinishCreate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate(this); - result.symbol_ = symbol_; - result.owner_ = owner_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate.getDefaultInstance()) return this; - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (!other.getOwner().isEmpty()) { - owner_ = other.owner_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 1; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 1; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 1; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private java.lang.Object owner_ = ""; - /** - * string owner = 2; - * @return The owner. - */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner = 2; - * @return The bytes for owner. - */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner = 2; - * @param value The owner to set. - * @return This builder for chaining. - */ - public Builder setOwner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - owner_ = value; - onChanged(); - return this; - } - /** - * string owner = 2; - * @return This builder for chaining. - */ - public Builder clearOwner() { - - owner_ = getDefaultInstance().getOwner(); - onChanged(); - return this; - } - /** - * string owner = 2; - * @param value The bytes for owner to set. - * @return This builder for chaining. - */ - public Builder setOwnerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - owner_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TokenFinishCreate) - } + public static final class AssetsWithdraw extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsWithdraw) + AssetsWithdrawOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:TokenFinishCreate) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate(); - } + // Use AssetsWithdraw.newBuilder() to construct. + private AssetsWithdraw(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private AssetsWithdraw() { + cointoken_ = ""; + note_ = com.google.protobuf.ByteString.EMPTY; + execName_ = ""; + to_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenFinishCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TokenFinishCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsWithdraw(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenFinishCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private AssetsWithdraw(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cointoken_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + + note_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + execName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_descriptor; + } - public interface TokenRevokeCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:TokenRevokeCreate) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder.class); + } - /** - * string symbol = 1; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + public static final int COINTOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object cointoken_; - /** - * string owner = 2; - * @return The owner. - */ - java.lang.String getOwner(); - /** - * string owner = 2; - * @return The bytes for owner. - */ - com.google.protobuf.ByteString - getOwnerBytes(); - } - /** - * Protobuf type {@code TokenRevokeCreate} - */ - public static final class TokenRevokeCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TokenRevokeCreate) - TokenRevokeCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TokenRevokeCreate.newBuilder() to construct. - private TokenRevokeCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TokenRevokeCreate() { - symbol_ = ""; - owner_ = ""; - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TokenRevokeCreate(); - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TokenRevokeCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - owner_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_descriptor; - } + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + public static final int NOTE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString note_; + + /** + * bytes note = 3; + * + * @return The note. + */ + public com.google.protobuf.ByteString getNote() { + return note_; + } + + public static final int EXECNAME_FIELD_NUMBER = 4; + private volatile java.lang.Object execName_; + + /** + * string execName = 4; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder.class); - } + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int SYMBOL_FIELD_NUMBER = 1; - private volatile java.lang.Object symbol_; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int TO_FIELD_NUMBER = 5; + private volatile java.lang.Object to_; + + /** + * string to = 5; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } - public static final int OWNER_FIELD_NUMBER = 2; - private volatile java.lang.Object owner_; - /** - * string owner = 2; - * @return The owner. - */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } - } - /** - * string owner = 2; - * @return The bytes for owner. - */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 5; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); - } - if (!getOwnerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owner_); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); - } - if (!getOwnerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, owner_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCointokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!note_.isEmpty()) { + output.writeBytes(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) obj; - - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (!getOwner() - .equals(other.getOwner())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + OWNER_FIELD_NUMBER; - hash = (53 * hash) + getOwner().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (!getCointokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!note_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) obj; + + if (!getCointoken().equals(other.getCointoken())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getExecName().equals(other.getExecName())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getCointoken().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + EXECNAME_FIELD_NUMBER; + hash = (53 * hash) + getExecName().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TokenRevokeCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TokenRevokeCreate) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - symbol_ = ""; - - owner_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenRevokeCreate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate(this); - result.symbol_ = symbol_; - result.owner_ = owner_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate.getDefaultInstance()) return this; - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (!other.getOwner().isEmpty()) { - owner_ = other.owner_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 1; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 1; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 1; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private java.lang.Object owner_ = ""; - /** - * string owner = 2; - * @return The owner. - */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner = 2; - * @return The bytes for owner. - */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner = 2; - * @param value The owner to set. - * @return This builder for chaining. - */ - public Builder setOwner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - owner_ = value; - onChanged(); - return this; - } - /** - * string owner = 2; - * @return This builder for chaining. - */ - public Builder clearOwner() { - - owner_ = getDefaultInstance().getOwner(); - onChanged(); - return this; - } - /** - * string owner = 2; - * @param value The bytes for owner to set. - * @return This builder for chaining. - */ - public Builder setOwnerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - owner_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TokenRevokeCreate) - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:TokenRevokeCreate) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenRevokeCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TokenRevokeCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenRevokeCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface TokenMintOrBuilder extends - // @@protoc_insertion_point(interface_extends:TokenMint) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * string symbol = 1; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); - } - /** - * Protobuf type {@code TokenMint} - */ - public static final class TokenMint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TokenMint) - TokenMintOrBuilder { - private static final long serialVersionUID = 0L; - // Use TokenMint.newBuilder() to construct. - private TokenMint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TokenMint() { - symbol_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TokenMint(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TokenMint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_descriptor; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder.class); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int SYMBOL_FIELD_NUMBER = 1; - private volatile java.lang.Object symbol_; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 AssetsWithdraw} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsWithdraw) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder.class); + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clear() { + super.clear(); + cointoken_ = ""; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + amount_ = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) obj; - - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + note_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + execName_ = ""; - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + to_ = ""; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TokenMint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TokenMint) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - symbol_ = ""; - - amount_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenMint_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint(this); - result.symbol_ = symbol_; - result.amount_ = amount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint.getDefaultInstance()) return this; - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 1; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 1; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 1; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TokenMint) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_descriptor; + } - // @@protoc_insertion_point(class_scope:TokenMint) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenMint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TokenMint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw( + this); + result.cointoken_ = cointoken_; + result.amount_ = amount_; + result.note_ = note_; + result.execName_ = execName_; + result.to_ = to_; + onBuilt(); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenMint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public interface TokenBurnOrBuilder extends - // @@protoc_insertion_point(interface_extends:TokenBurn) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * string symbol = 1; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); - } - /** - * Protobuf type {@code TokenBurn} - */ - public static final class TokenBurn extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TokenBurn) - TokenBurnOrBuilder { - private static final long serialVersionUID = 0L; - // Use TokenBurn.newBuilder() to construct. - private TokenBurn(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TokenBurn() { - symbol_ = ""; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TokenBurn(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TokenBurn( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_descriptor; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance()) + return this; + if (!other.getCointoken().isEmpty()) { + cointoken_ = other.cointoken_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { + setNote(other.getNote()); + } + if (!other.getExecName().isEmpty()) { + execName_ = other.execName_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int SYMBOL_FIELD_NUMBER = 1; - private volatile java.lang.Object symbol_; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + private java.lang.Object cointoken_ = ""; + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string cointoken = 1; + * + * @param value + * The cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointoken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cointoken_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - unknownFields.writeTo(output); - } + /** + * string cointoken = 1; + * + * @return This builder for chaining. + */ + public Builder clearCointoken() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + cointoken_ = getDefaultInstance().getCointoken(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) obj; - - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string cointoken = 1; + * + * @param value + * The bytes for cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cointoken_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private long amount_; - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TokenBurn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TokenBurn) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - symbol_ = ""; - - amount_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_TokenBurn_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn(this); - result.symbol_ = symbol_; - result.amount_ = amount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn.getDefaultInstance()) return this; - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 1; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 1; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 1; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 1; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 1; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TokenBurn) - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - // @@protoc_insertion_point(class_scope:TokenBurn) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn(); - } + amount_ = 0L; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenBurn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TokenBurn(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * bytes note = 3; + * + * @return The note. + */ + public com.google.protobuf.ByteString getNote() { + return note_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * bytes note = 3; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.TokenBurn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bytes note = 3; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - } + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - public interface AssetsGenesisOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsGenesis) - com.google.protobuf.MessageOrBuilder { + private java.lang.Object execName_ = ""; + + /** + * string execName = 4; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string returnAddress = 3; - * @return The returnAddress. - */ - java.lang.String getReturnAddress(); - /** - * string returnAddress = 3; - * @return The bytes for returnAddress. - */ - com.google.protobuf.ByteString - getReturnAddressBytes(); - } - /** - * Protobuf type {@code AssetsGenesis} - */ - public static final class AssetsGenesis extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsGenesis) - AssetsGenesisOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsGenesis.newBuilder() to construct. - private AssetsGenesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsGenesis() { - returnAddress_ = ""; - } + /** + * string execName = 4; + * + * @param value + * The execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execName_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsGenesis(); - } + /** + * string execName = 4; + * + * @return This builder for chaining. + */ + public Builder clearExecName() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsGenesis( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - amount_ = input.readInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - returnAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_descriptor; - } + execName_ = getDefaultInstance().getExecName(); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder.class); - } + /** + * string execName = 4; + * + * @param value + * The bytes for execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execName_ = value; + onChanged(); + return this; + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + private java.lang.Object to_ = ""; + + /** + * string to = 5; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int RETURNADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object returnAddress_; - /** - * string returnAddress = 3; - * @return The returnAddress. - */ - public java.lang.String getReturnAddress() { - java.lang.Object ref = returnAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - returnAddress_ = s; - return s; - } - } - /** - * string returnAddress = 3; - * @return The bytes for returnAddress. - */ - public com.google.protobuf.ByteString - getReturnAddressBytes() { - java.lang.Object ref = returnAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - returnAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 5; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string to = 5; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string to = 5; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!getReturnAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, returnAddress_); - } - unknownFields.writeTo(output); - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!getReturnAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, returnAddress_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string to = 5; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) obj; - - if (getAmount() - != other.getAmount()) return false; - if (!getReturnAddress() - .equals(other.getReturnAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + RETURNADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getReturnAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(builder_scope:AssetsWithdraw) + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(class_scope:AssetsWithdraw) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AssetsGenesis} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsGenesis) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - amount_ = 0L; - - returnAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsGenesis_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis(this); - result.amount_ = amount_; - result.returnAddress_ = returnAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis.getDefaultInstance()) return this; - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getReturnAddress().isEmpty()) { - returnAddress_ = other.returnAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object returnAddress_ = ""; - /** - * string returnAddress = 3; - * @return The returnAddress. - */ - public java.lang.String getReturnAddress() { - java.lang.Object ref = returnAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - returnAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string returnAddress = 3; - * @return The bytes for returnAddress. - */ - public com.google.protobuf.ByteString - getReturnAddressBytes() { - java.lang.Object ref = returnAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - returnAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string returnAddress = 3; - * @param value The returnAddress to set. - * @return This builder for chaining. - */ - public Builder setReturnAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - returnAddress_ = value; - onChanged(); - return this; - } - /** - * string returnAddress = 3; - * @return This builder for chaining. - */ - public Builder clearReturnAddress() { - - returnAddress_ = getDefaultInstance().getReturnAddress(); - onChanged(); - return this; - } - /** - * string returnAddress = 3; - * @param value The bytes for returnAddress to set. - * @return This builder for chaining. - */ - public Builder setReturnAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - returnAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsGenesis) - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:AssetsGenesis) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis(); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsWithdraw parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsWithdraw(input, extensionRegistry); + } + }; - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsGenesis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsGenesis(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsGenesis getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - } + public interface AssetsTransferOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsTransfer) + com.google.protobuf.MessageOrBuilder { - public interface AssetsTransferToExecOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsTransferToExec) - com.google.protobuf.MessageOrBuilder { + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + java.lang.String getCointoken(); - /** - * string cointoken = 1; - * @return The cointoken. - */ - java.lang.String getCointoken(); - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - com.google.protobuf.ByteString - getCointokenBytes(); + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + com.google.protobuf.ByteString getCointokenBytes(); - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); - /** - * bytes note = 3; - * @return The note. - */ - com.google.protobuf.ByteString getNote(); + /** + * bytes note = 3; + * + * @return The note. + */ + com.google.protobuf.ByteString getNote(); - /** - * string execName = 4; - * @return The execName. - */ - java.lang.String getExecName(); - /** - * string execName = 4; - * @return The bytes for execName. - */ - com.google.protobuf.ByteString - getExecNameBytes(); + /** + * string to = 4; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + * string to = 4; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + } /** - * string to = 5; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 5; - * @return The bytes for to. + * Protobuf type {@code AssetsTransfer} */ - com.google.protobuf.ByteString - getToBytes(); - } - /** - * Protobuf type {@code AssetsTransferToExec} - */ - public static final class AssetsTransferToExec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsTransferToExec) - AssetsTransferToExecOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsTransferToExec.newBuilder() to construct. - private AssetsTransferToExec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsTransferToExec() { - cointoken_ = ""; - note_ = com.google.protobuf.ByteString.EMPTY; - execName_ = ""; - to_ = ""; - } + public static final class AssetsTransfer extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsTransfer) + AssetsTransferOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsTransferToExec(); - } + // Use AssetsTransfer.newBuilder() to construct. + private AssetsTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsTransferToExec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + private AssetsTransfer() { + cointoken_ = ""; + note_ = com.google.protobuf.ByteString.EMPTY; + to_ = ""; + } - cointoken_ = s; - break; - } - case 16: { + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsTransfer(); + } - amount_ = input.readInt64(); - break; - } - case 26: { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - note_ = input.readBytes(); - break; + private AssetsTransfer(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - execName_ = s; - break; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cointoken_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + + note_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + } - to_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_descriptor; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder.class); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder.class); + } - public static final int COINTOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object cointoken_; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int COINTOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object cointoken_; - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } + } - public static final int NOTE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString note_; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int EXECNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object execName_; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; + } + + public static final int NOTE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString note_; + + /** + * bytes note = 3; + * + * @return The note. + */ + public com.google.protobuf.ByteString getNote() { + return note_; + } + + public static final int TO_FIELD_NUMBER = 4; + private volatile java.lang.Object to_; + + /** + * string to = 4; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } - public static final int TO_FIELD_NUMBER = 5; - private volatile java.lang.Object to_; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 4; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCointokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!note_.isEmpty()) { - output.writeBytes(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCointokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!note_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCointokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!note_.isEmpty()) { + output.writeBytes(3, note_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, to_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) obj; - - if (!getCointoken() - .equals(other.getCointoken())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getExecName() - .equals(other.getExecName())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getCointoken().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + EXECNAME_FIELD_NUMBER; - hash = (53 * hash) + getExecName().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (!getCointokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!note_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, note_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, to_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) obj; + + if (!getCointoken().equals(other.getCointoken())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getCointoken().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AssetsTransferToExec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsTransferToExec) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cointoken_ = ""; - - amount_ = 0L; - - note_ = com.google.protobuf.ByteString.EMPTY; - - execName_ = ""; - - to_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransferToExec_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec(this); - result.cointoken_ = cointoken_; - result.amount_ = amount_; - result.note_ = note_; - result.execName_ = execName_; - result.to_ = to_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec.getDefaultInstance()) return this; - if (!other.getCointoken().isEmpty()) { - cointoken_ = other.cointoken_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { - setNote(other.getNote()); - } - if (!other.getExecName().isEmpty()) { - execName_ = other.execName_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cointoken_ = ""; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cointoken = 1; - * @param value The cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointoken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cointoken_ = value; - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @return This builder for chaining. - */ - public Builder clearCointoken() { - - cointoken_ = getDefaultInstance().getCointoken(); - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @param value The bytes for cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cointoken_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } - /** - * bytes note = 3; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * bytes note = 3; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - - private java.lang.Object execName_ = ""; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execName = 4; - * @param value The execName to set. - * @return This builder for chaining. - */ - public Builder setExecName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execName_ = value; - onChanged(); - return this; - } - /** - * string execName = 4; - * @return This builder for chaining. - */ - public Builder clearExecName() { - - execName_ = getDefaultInstance().getExecName(); - onChanged(); - return this; - } - /** - * string execName = 4; - * @param value The bytes for execName to set. - * @return This builder for chaining. - */ - public Builder setExecNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execName_ = value; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 5; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 5; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 5; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsTransferToExec) - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:AssetsTransferToExec) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec(); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsTransferToExec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsTransferToExec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferToExec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface AssetsWithdrawOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsWithdraw) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * string cointoken = 1; - * @return The cointoken. - */ - java.lang.String getCointoken(); - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - com.google.protobuf.ByteString - getCointokenBytes(); + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * bytes note = 3; - * @return The note. - */ - com.google.protobuf.ByteString getNote(); + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string execName = 4; - * @return The execName. - */ - java.lang.String getExecName(); - /** - * string execName = 4; - * @return The bytes for execName. - */ - com.google.protobuf.ByteString - getExecNameBytes(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * string to = 5; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 5; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); - } - /** - * Protobuf type {@code AssetsWithdraw} - */ - public static final class AssetsWithdraw extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsWithdraw) - AssetsWithdrawOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsWithdraw.newBuilder() to construct. - private AssetsWithdraw(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsWithdraw() { - cointoken_ = ""; - note_ = com.google.protobuf.ByteString.EMPTY; - execName_ = ""; - to_ = ""; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsWithdraw(); - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsWithdraw( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - cointoken_ = s; - break; - } - case 16: { + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - amount_ = input.readInt64(); - break; + /** + * Protobuf type {@code AssetsTransfer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsTransfer) + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_descriptor; } - case 26: { - note_ = input.readBytes(); - break; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.class, + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder.class); } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - execName_ = s; - break; + // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - to_ = s; - break; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder.class); - } - public static final int COINTOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object cointoken_; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + @java.lang.Override + public Builder clear() { + super.clear(); + cointoken_ = ""; - public static final int NOTE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString note_; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } + amount_ = 0L; - public static final int EXECNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object execName_; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + note_ = com.google.protobuf.ByteString.EMPTY; - public static final int TO_FIELD_NUMBER = 5; - private volatile java.lang.Object to_; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + to_ = ""; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCointokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!note_.isEmpty()) { - output.writeBytes(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCointokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!note_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer build() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) obj; - - if (!getCointoken() - .equals(other.getCointoken())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getExecName() - .equals(other.getExecName())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer buildPartial() { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer( + this); + result.cointoken_ = cointoken_; + result.amount_ = amount_; + result.note_ = note_; + result.to_ = to_; + onBuilt(); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getCointoken().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + EXECNAME_FIELD_NUMBER; - hash = (53 * hash) + getExecName().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AssetsWithdraw} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsWithdraw) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdrawOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cointoken_ = ""; - - amount_ = 0L; - - note_ = com.google.protobuf.ByteString.EMPTY; - - execName_ = ""; - - to_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsWithdraw_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw(this); - result.cointoken_ = cointoken_; - result.amount_ = amount_; - result.note_ = note_; - result.execName_ = execName_; - result.to_ = to_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw.getDefaultInstance()) return this; - if (!other.getCointoken().isEmpty()) { - cointoken_ = other.cointoken_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { - setNote(other.getNote()); - } - if (!other.getExecName().isEmpty()) { - execName_ = other.execName_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cointoken_ = ""; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cointoken = 1; - * @param value The cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointoken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cointoken_ = value; - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @return This builder for chaining. - */ - public Builder clearCointoken() { - - cointoken_ = getDefaultInstance().getCointoken(); - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @param value The bytes for cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cointoken_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } - /** - * bytes note = 3; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * bytes note = 3; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - - private java.lang.Object execName_ = ""; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execName = 4; - * @param value The execName to set. - * @return This builder for chaining. - */ - public Builder setExecName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execName_ = value; - onChanged(); - return this; - } - /** - * string execName = 4; - * @return This builder for chaining. - */ - public Builder clearExecName() { - - execName_ = getDefaultInstance().getExecName(); - onChanged(); - return this; - } - /** - * string execName = 4; - * @param value The bytes for execName to set. - * @return This builder for chaining. - */ - public Builder setExecNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execName_ = value; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 5; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 5; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 5; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsWithdraw) - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - // @@protoc_insertion_point(class_scope:AssetsWithdraw) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw(); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsWithdraw parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsWithdraw(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer other) { + if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance()) + return this; + if (!other.getCointoken().isEmpty()) { + cointoken_ = other.cointoken_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { + setNote(other.getNote()); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsWithdraw getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public interface AssetsTransferOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsTransfer) - com.google.protobuf.MessageOrBuilder { + private java.lang.Object cointoken_ = ""; + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * string cointoken = 1; - * @return The cointoken. - */ - java.lang.String getCointoken(); - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - com.google.protobuf.ByteString - getCointokenBytes(); + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + /** + * string cointoken = 1; + * + * @param value + * The cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointoken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cointoken_ = value; + onChanged(); + return this; + } - /** - * bytes note = 3; - * @return The note. - */ - com.google.protobuf.ByteString getNote(); + /** + * string cointoken = 1; + * + * @return This builder for chaining. + */ + public Builder clearCointoken() { - /** - * string to = 4; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 4; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); - } - /** - * Protobuf type {@code AssetsTransfer} - */ - public static final class AssetsTransfer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsTransfer) - AssetsTransferOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsTransfer.newBuilder() to construct. - private AssetsTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsTransfer() { - cointoken_ = ""; - note_ = com.google.protobuf.ByteString.EMPTY; - to_ = ""; - } + cointoken_ = getDefaultInstance().getCointoken(); + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsTransfer(); - } + /** + * string cointoken = 1; + * + * @param value + * The bytes for cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cointoken_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsTransfer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + private long amount_; - cointoken_ = s; - break; + /** + * int64 amount = 2; + * + * @return The amount. + */ + public long getAmount() { + return amount_; } - case 16: { - amount_ = input.readInt64(); - break; + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; } - case 26: { - note_ = input.readBytes(); - break; + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - to_ = s; - break; + private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes note = 3; + * + * @return The note. + */ + public com.google.protobuf.ByteString getNote() { + return note_; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + /** + * bytes note = 3; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder.class); - } + /** + * bytes note = 3; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - public static final int COINTOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object cointoken_; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + private java.lang.Object to_ = ""; + + /** + * string to = 4; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int NOTE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString note_; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } + /** + * string to = 4; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int TO_FIELD_NUMBER = 4; - private volatile java.lang.Object to_; - /** - * string to = 4; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 4; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 4; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string to = 4; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - memoizedIsInitialized = 1; - return true; - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCointokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!note_.isEmpty()) { - output.writeBytes(3, note_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, to_); - } - unknownFields.writeTo(output); - } + /** + * string to = 4; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCointokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!note_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, note_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, to_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer other = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) obj; - - if (!getCointoken() - .equals(other.getCointoken())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getCointoken().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(builder_scope:AssetsTransfer) + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:AssetsTransfer) + private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AssetsTransfer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsTransfer) - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransferOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.class, cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cointoken_ = ""; - - amount_ = 0L; - - note_ = com.google.protobuf.ByteString.EMPTY; - - to_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.internal_static_AssetsTransfer_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer build() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer buildPartial() { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer result = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer(this); - result.cointoken_ = cointoken_; - result.amount_ = amount_; - result.note_ = note_; - result.to_ = to_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer other) { - if (other == cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer.getDefaultInstance()) return this; - if (!other.getCointoken().isEmpty()) { - cointoken_ = other.cointoken_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { - setNote(other.getNote()); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cointoken_ = ""; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cointoken = 1; - * @param value The cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointoken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cointoken_ = value; - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @return This builder for chaining. - */ - public Builder clearCointoken() { - - cointoken_ = getDefaultInstance().getCointoken(); - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @param value The bytes for cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cointoken_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } - /** - * bytes note = 3; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * bytes note = 3; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 4; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 4; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 4; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 4; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 4; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsTransfer) - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsTransfer parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsTransfer(input, extensionRegistry); + } + }; - // @@protoc_insertion_point(class_scope:AssetsTransfer) - private static final cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsTransfer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsTransfer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TokenAction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TokenAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TokenPreCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TokenPreCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TokenFinishCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TokenFinishCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TokenRevokeCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TokenRevokeCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TokenMint_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TokenMint_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TokenBurn_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TokenBurn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsGenesis_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsGenesis_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsTransferToExec_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsTransferToExec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsWithdraw_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsWithdraw_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsTransfer_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsTransfer_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TokenAction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TokenAction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TokenPreCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TokenPreCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TokenFinishCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TokenFinishCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TokenRevokeCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TokenRevokeCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TokenMint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TokenMint_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TokenBurn_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TokenBurn_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsGenesis_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsGenesis_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsTransferToExec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsTransferToExec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsWithdraw_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsWithdraw_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsTransfer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsTransfer_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\013token.proto\"\217\003\n\013TokenAction\022)\n\016tokenPr" + - "eCreate\030\001 \001(\0132\017.TokenPreCreateH\000\022/\n\021toke" + - "nFinishCreate\030\002 \001(\0132\022.TokenFinishCreateH" + - "\000\022/\n\021tokenRevokeCreate\030\003 \001(\0132\022.TokenRevo" + - "keCreateH\000\022#\n\010transfer\030\004 \001(\0132\017.AssetsTra" + - "nsferH\000\022#\n\010withdraw\030\005 \001(\0132\017.AssetsWithdr" + - "awH\000\022!\n\007genesis\030\006 \001(\0132\016.AssetsGenesisH\000\022" + - "/\n\016transferToExec\030\010 \001(\0132\025.AssetsTransfer" + - "ToExecH\000\022\037\n\ttokenMint\030\t \001(\0132\n.TokenMintH" + - "\000\022\037\n\ttokenBurn\030\n \001(\0132\n.TokenBurnH\000\022\n\n\002Ty" + - "\030\007 \001(\005B\007\n\005value\"\203\001\n\016TokenPreCreate\022\014\n\004na" + - "me\030\001 \001(\t\022\016\n\006symbol\030\002 \001(\t\022\024\n\014introduction" + - "\030\003 \001(\t\022\r\n\005total\030\004 \001(\003\022\r\n\005price\030\005 \001(\003\022\r\n\005" + - "owner\030\006 \001(\t\022\020\n\010category\030\007 \001(\005\"2\n\021TokenFi" + - "nishCreate\022\016\n\006symbol\030\001 \001(\t\022\r\n\005owner\030\002 \001(" + - "\t\"2\n\021TokenRevokeCreate\022\016\n\006symbol\030\001 \001(\t\022\r" + - "\n\005owner\030\002 \001(\t\"+\n\tTokenMint\022\016\n\006symbol\030\001 \001" + - "(\t\022\016\n\006amount\030\002 \001(\003\"+\n\tTokenBurn\022\016\n\006symbo" + - "l\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\"6\n\rAssetsGenesis" + - "\022\016\n\006amount\030\002 \001(\003\022\025\n\rreturnAddress\030\003 \001(\t\"" + - "e\n\024AssetsTransferToExec\022\021\n\tcointoken\030\001 \001" + - "(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\020\n\010exec" + - "Name\030\004 \001(\t\022\n\n\002to\030\005 \001(\t\"_\n\016AssetsWithdraw" + - "\022\021\n\tcointoken\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004n" + - "ote\030\003 \001(\014\022\020\n\010execName\030\004 \001(\t\022\n\n\002to\030\005 \001(\t\"" + - "M\n\016AssetsTransfer\022\021\n\tcointoken\030\001 \001(\t\022\016\n\006" + - "amount\030\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\n\n\002to\030\004 \001(\tB8" + - "\n!cn.chain33.javasdk.model.protobufB\023Tok" + - "enActionProtoBufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TokenAction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TokenAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TokenAction_descriptor, - new java.lang.String[] { "TokenPreCreate", "TokenFinishCreate", "TokenRevokeCreate", "Transfer", "Withdraw", "Genesis", "TransferToExec", "TokenMint", "TokenBurn", "Ty", "Value", }); - internal_static_TokenPreCreate_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_TokenPreCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TokenPreCreate_descriptor, - new java.lang.String[] { "Name", "Symbol", "Introduction", "Total", "Price", "Owner", "Category", }); - internal_static_TokenFinishCreate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_TokenFinishCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TokenFinishCreate_descriptor, - new java.lang.String[] { "Symbol", "Owner", }); - internal_static_TokenRevokeCreate_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_TokenRevokeCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TokenRevokeCreate_descriptor, - new java.lang.String[] { "Symbol", "Owner", }); - internal_static_TokenMint_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_TokenMint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TokenMint_descriptor, - new java.lang.String[] { "Symbol", "Amount", }); - internal_static_TokenBurn_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_TokenBurn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TokenBurn_descriptor, - new java.lang.String[] { "Symbol", "Amount", }); - internal_static_AssetsGenesis_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_AssetsGenesis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsGenesis_descriptor, - new java.lang.String[] { "Amount", "ReturnAddress", }); - internal_static_AssetsTransferToExec_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_AssetsTransferToExec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsTransferToExec_descriptor, - new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); - internal_static_AssetsWithdraw_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_AssetsWithdraw_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsWithdraw_descriptor, - new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); - internal_static_AssetsTransfer_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_AssetsTransfer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsTransfer_descriptor, - new java.lang.String[] { "Cointoken", "Amount", "Note", "To", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\013token.proto\"\217\003\n\013TokenAction\022)\n\016tokenPr" + + "eCreate\030\001 \001(\0132\017.TokenPreCreateH\000\022/\n\021toke" + + "nFinishCreate\030\002 \001(\0132\022.TokenFinishCreateH" + + "\000\022/\n\021tokenRevokeCreate\030\003 \001(\0132\022.TokenRevo" + + "keCreateH\000\022#\n\010transfer\030\004 \001(\0132\017.AssetsTra" + + "nsferH\000\022#\n\010withdraw\030\005 \001(\0132\017.AssetsWithdr" + + "awH\000\022!\n\007genesis\030\006 \001(\0132\016.AssetsGenesisH\000\022" + + "/\n\016transferToExec\030\010 \001(\0132\025.AssetsTransfer" + + "ToExecH\000\022\037\n\ttokenMint\030\t \001(\0132\n.TokenMintH" + + "\000\022\037\n\ttokenBurn\030\n \001(\0132\n.TokenBurnH\000\022\n\n\002Ty" + + "\030\007 \001(\005B\007\n\005value\"\203\001\n\016TokenPreCreate\022\014\n\004na" + + "me\030\001 \001(\t\022\016\n\006symbol\030\002 \001(\t\022\024\n\014introduction" + + "\030\003 \001(\t\022\r\n\005total\030\004 \001(\003\022\r\n\005price\030\005 \001(\003\022\r\n\005" + + "owner\030\006 \001(\t\022\020\n\010category\030\007 \001(\005\"2\n\021TokenFi" + + "nishCreate\022\016\n\006symbol\030\001 \001(\t\022\r\n\005owner\030\002 \001(" + + "\t\"2\n\021TokenRevokeCreate\022\016\n\006symbol\030\001 \001(\t\022\r" + + "\n\005owner\030\002 \001(\t\"+\n\tTokenMint\022\016\n\006symbol\030\001 \001" + + "(\t\022\016\n\006amount\030\002 \001(\003\"+\n\tTokenBurn\022\016\n\006symbo" + + "l\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\"6\n\rAssetsGenesis" + + "\022\016\n\006amount\030\002 \001(\003\022\025\n\rreturnAddress\030\003 \001(\t\"" + + "e\n\024AssetsTransferToExec\022\021\n\tcointoken\030\001 \001" + + "(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\020\n\010exec" + + "Name\030\004 \001(\t\022\n\n\002to\030\005 \001(\t\"_\n\016AssetsWithdraw" + + "\022\021\n\tcointoken\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004n" + + "ote\030\003 \001(\014\022\020\n\010execName\030\004 \001(\t\022\n\n\002to\030\005 \001(\t\"" + + "M\n\016AssetsTransfer\022\021\n\tcointoken\030\001 \001(\t\022\016\n\006" + + "amount\030\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\n\n\002to\030\004 \001(\tB8" + + "\n!cn.chain33.javasdk.model.protobufB\023Tok" + "enActionProtoBufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_TokenAction_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_TokenAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TokenAction_descriptor, + new java.lang.String[] { "TokenPreCreate", "TokenFinishCreate", "TokenRevokeCreate", "Transfer", + "Withdraw", "Genesis", "TransferToExec", "TokenMint", "TokenBurn", "Ty", "Value", }); + internal_static_TokenPreCreate_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_TokenPreCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TokenPreCreate_descriptor, + new java.lang.String[] { "Name", "Symbol", "Introduction", "Total", "Price", "Owner", "Category", }); + internal_static_TokenFinishCreate_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_TokenFinishCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TokenFinishCreate_descriptor, new java.lang.String[] { "Symbol", "Owner", }); + internal_static_TokenRevokeCreate_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_TokenRevokeCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TokenRevokeCreate_descriptor, new java.lang.String[] { "Symbol", "Owner", }); + internal_static_TokenMint_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_TokenMint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TokenMint_descriptor, new java.lang.String[] { "Symbol", "Amount", }); + internal_static_TokenBurn_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_TokenBurn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TokenBurn_descriptor, new java.lang.String[] { "Symbol", "Amount", }); + internal_static_AssetsGenesis_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_AssetsGenesis_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsGenesis_descriptor, new java.lang.String[] { "Amount", "ReturnAddress", }); + internal_static_AssetsTransferToExec_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_AssetsTransferToExec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsTransferToExec_descriptor, + new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); + internal_static_AssetsWithdraw_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_AssetsWithdraw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsWithdraw_descriptor, + new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); + internal_static_AssetsTransfer_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_AssetsTransfer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsTransfer_descriptor, + new java.lang.String[] { "Cointoken", "Amount", "Note", "To", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/TransactionAllProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/TransactionAllProtobuf.java index 8ffe6e9..31d71d6 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/TransactionAllProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/TransactionAllProtobuf.java @@ -4,34952 +4,36616 @@ package cn.chain33.javasdk.model.protobuf; public final class TransactionAllProtobuf { - private TransactionAllProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AssetsGenesisOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsGenesis) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); - - /** - * string returnAddress = 3; - * @return The returnAddress. - */ - java.lang.String getReturnAddress(); - /** - * string returnAddress = 3; - * @return The bytes for returnAddress. - */ - com.google.protobuf.ByteString - getReturnAddressBytes(); - } - /** - *
-   * assert transfer struct
-   * 
- * - * Protobuf type {@code AssetsGenesis} - */ - public static final class AssetsGenesis extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsGenesis) - AssetsGenesisOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsGenesis.newBuilder() to construct. - private AssetsGenesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsGenesis() { - returnAddress_ = ""; + private TransactionAllProtobuf() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsGenesis(); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsGenesis( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - amount_ = input.readInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - returnAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_descriptor; + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder.class); - } + public interface AssetsGenesisOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsGenesis) + com.google.protobuf.MessageOrBuilder { - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); - public static final int RETURNADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object returnAddress_; - /** - * string returnAddress = 3; - * @return The returnAddress. - */ - public java.lang.String getReturnAddress() { - java.lang.Object ref = returnAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - returnAddress_ = s; - return s; - } + /** + * string returnAddress = 3; + * + * @return The returnAddress. + */ + java.lang.String getReturnAddress(); + + /** + * string returnAddress = 3; + * + * @return The bytes for returnAddress. + */ + com.google.protobuf.ByteString getReturnAddressBytes(); } + /** - * string returnAddress = 3; - * @return The bytes for returnAddress. + *
+     * assert transfer struct
+     * 
+ * + * Protobuf type {@code AssetsGenesis} */ - public com.google.protobuf.ByteString - getReturnAddressBytes() { - java.lang.Object ref = returnAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - returnAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class AssetsGenesis extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsGenesis) + AssetsGenesisOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use AssetsGenesis.newBuilder() to construct. + private AssetsGenesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private AssetsGenesis() { + returnAddress_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!getReturnAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, returnAddress_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsGenesis(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!getReturnAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, returnAddress_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) obj; - - if (getAmount() - != other.getAmount()) return false; - if (!getReturnAddress() - .equals(other.getReturnAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private AssetsGenesis(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + returnAddress_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + RETURNADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getReturnAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * assert transfer struct
-     * 
- * - * Protobuf type {@code AssetsGenesis} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsGenesis) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - amount_ = 0L; - - returnAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis(this); - result.amount_ = amount_; - result.returnAddress_ = returnAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance()) return this; - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getReturnAddress().isEmpty()) { - returnAddress_ = other.returnAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object returnAddress_ = ""; - /** - * string returnAddress = 3; - * @return The returnAddress. - */ - public java.lang.String getReturnAddress() { - java.lang.Object ref = returnAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - returnAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string returnAddress = 3; - * @return The bytes for returnAddress. - */ - public com.google.protobuf.ByteString - getReturnAddressBytes() { - java.lang.Object ref = returnAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - returnAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string returnAddress = 3; - * @param value The returnAddress to set. - * @return This builder for chaining. - */ - public Builder setReturnAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - returnAddress_ = value; - onChanged(); - return this; - } - /** - * string returnAddress = 3; - * @return This builder for chaining. - */ - public Builder clearReturnAddress() { - - returnAddress_ = getDefaultInstance().getReturnAddress(); - onChanged(); - return this; - } - /** - * string returnAddress = 3; - * @param value The bytes for returnAddress to set. - * @return This builder for chaining. - */ - public Builder setReturnAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - returnAddress_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsGenesis) - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - // @@protoc_insertion_point(class_scope:AssetsGenesis) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis(); - } + public static final int RETURNADDRESS_FIELD_NUMBER = 3; + private volatile java.lang.Object returnAddress_; - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string returnAddress = 3; + * + * @return The returnAddress. + */ + @java.lang.Override + public java.lang.String getReturnAddress() { + java.lang.Object ref = returnAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + returnAddress_ = s; + return s; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsGenesis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsGenesis(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string returnAddress = 3; + * + * @return The bytes for returnAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReturnAddressBytes() { + java.lang.Object ref = returnAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + returnAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - } + memoizedIsInitialized = 1; + return true; + } - public interface AssetsTransferToExecOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsTransferToExec) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!getReturnAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, returnAddress_); + } + unknownFields.writeTo(output); + } - /** - * string cointoken = 1; - * @return The cointoken. - */ - java.lang.String getCointoken(); - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - com.google.protobuf.ByteString - getCointokenBytes(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + size = 0; + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!getReturnAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, returnAddress_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * bytes note = 3; - * @return The note. - */ - com.google.protobuf.ByteString getNote(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) obj; - /** - * string execName = 4; - * @return The execName. - */ - java.lang.String getExecName(); - /** - * string execName = 4; - * @return The bytes for execName. - */ - com.google.protobuf.ByteString - getExecNameBytes(); + if (getAmount() != other.getAmount()) + return false; + if (!getReturnAddress().equals(other.getReturnAddress())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - * string to = 5; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 5; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); - } - /** - * Protobuf type {@code AssetsTransferToExec} - */ - public static final class AssetsTransferToExec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsTransferToExec) - AssetsTransferToExecOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsTransferToExec.newBuilder() to construct. - private AssetsTransferToExec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsTransferToExec() { - cointoken_ = ""; - note_ = com.google.protobuf.ByteString.EMPTY; - execName_ = ""; - to_ = ""; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + RETURNADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getReturnAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsTransferToExec(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsTransferToExec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - cointoken_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - case 26: { - - note_ = input.readBytes(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - execName_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int COINTOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object cointoken_; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int NOTE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString note_; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int EXECNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object execName_; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int TO_FIELD_NUMBER = 5; - private volatile java.lang.Object to_; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCointokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!note_.isEmpty()) { - output.writeBytes(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCointokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!note_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) obj; - - if (!getCointoken() - .equals(other.getCointoken())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getExecName() - .equals(other.getExecName())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getCointoken().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + EXECNAME_FIELD_NUMBER; - hash = (53 * hash) + getExecName().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + 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 AssetsTransferToExec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsTransferToExec) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cointoken_ = ""; - - amount_ = 0L; - - note_ = com.google.protobuf.ByteString.EMPTY; - - execName_ = ""; - - to_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec(this); - result.cointoken_ = cointoken_; - result.amount_ = amount_; - result.note_ = note_; - result.execName_ = execName_; - result.to_ = to_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.getDefaultInstance()) return this; - if (!other.getCointoken().isEmpty()) { - cointoken_ = other.cointoken_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { - setNote(other.getNote()); - } - if (!other.getExecName().isEmpty()) { - execName_ = other.execName_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cointoken_ = ""; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cointoken = 1; - * @param value The cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointoken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cointoken_ = value; - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @return This builder for chaining. - */ - public Builder clearCointoken() { - - cointoken_ = getDefaultInstance().getCointoken(); - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @param value The bytes for cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cointoken_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } - /** - * bytes note = 3; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * bytes note = 3; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - - private java.lang.Object execName_ = ""; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execName = 4; - * @param value The execName to set. - * @return This builder for chaining. - */ - public Builder setExecName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execName_ = value; - onChanged(); - return this; - } - /** - * string execName = 4; - * @return This builder for chaining. - */ - public Builder clearExecName() { - - execName_ = getDefaultInstance().getExecName(); - onChanged(); - return this; - } - /** - * string execName = 4; - * @param value The bytes for execName to set. - * @return This builder for chaining. - */ - public Builder setExecNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execName_ = value; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 5; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 5; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 5; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsTransferToExec) - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - // @@protoc_insertion_point(class_scope:AssetsTransferToExec) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec(); - } + /** + *
+         * assert transfer struct
+         * 
+ * + * Protobuf type {@code AssetsGenesis} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsGenesis) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesisOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.Builder.class); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsTransferToExec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsTransferToExec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - } + @java.lang.Override + public Builder clear() { + super.clear(); + amount_ = 0L; - public interface AssetsWithdrawOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsWithdraw) - com.google.protobuf.MessageOrBuilder { + returnAddress_ = ""; - /** - * string cointoken = 1; - * @return The cointoken. - */ - java.lang.String getCointoken(); - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - com.google.protobuf.ByteString - getCointokenBytes(); + return this; + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsGenesis_descriptor; + } - /** - * bytes note = 3; - * @return The note. - */ - com.google.protobuf.ByteString getNote(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis.getDefaultInstance(); + } - /** - * string execName = 4; - * @return The execName. - */ - java.lang.String getExecName(); - /** - * string execName = 4; - * @return The bytes for execName. - */ - com.google.protobuf.ByteString - getExecNameBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * string to = 5; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 5; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); - } - /** - * Protobuf type {@code AssetsWithdraw} - */ - public static final class AssetsWithdraw extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsWithdraw) - AssetsWithdrawOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsWithdraw.newBuilder() to construct. - private AssetsWithdraw(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsWithdraw() { - cointoken_ = ""; - note_ = com.google.protobuf.ByteString.EMPTY; - execName_ = ""; - to_ = ""; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis( + this); + result.amount_ = amount_; + result.returnAddress_ = returnAddress_; + onBuilt(); + return result; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsWithdraw(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsWithdraw( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - cointoken_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - case 26: { - - note_ = input.readBytes(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - execName_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_descriptor; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder.class); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int COINTOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object cointoken_; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int NOTE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString note_; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int EXECNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object execName_; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int TO_FIELD_NUMBER = 5; - private volatile java.lang.Object to_; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis + .getDefaultInstance()) + return this; + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getReturnAddress().isEmpty()) { + returnAddress_ = other.returnAddress_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCointokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!note_.isEmpty()) { - output.writeBytes(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); - } - unknownFields.writeTo(output); - } + private long amount_; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCointokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!note_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, note_); - } - if (!getExecNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) obj; - - if (!getCointoken() - .equals(other.getCointoken())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getExecName() - .equals(other.getExecName())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getCointoken().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + EXECNAME_FIELD_NUMBER; - hash = (53 * hash) + getExecName().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + amount_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object returnAddress_ = ""; + + /** + * string returnAddress = 3; + * + * @return The returnAddress. + */ + public java.lang.String getReturnAddress() { + java.lang.Object ref = returnAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + returnAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AssetsWithdraw} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsWithdraw) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cointoken_ = ""; - - amount_ = 0L; - - note_ = com.google.protobuf.ByteString.EMPTY; - - execName_ = ""; - - to_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw(this); - result.cointoken_ = cointoken_; - result.amount_ = amount_; - result.note_ = note_; - result.execName_ = execName_; - result.to_ = to_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance()) return this; - if (!other.getCointoken().isEmpty()) { - cointoken_ = other.cointoken_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { - setNote(other.getNote()); - } - if (!other.getExecName().isEmpty()) { - execName_ = other.execName_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cointoken_ = ""; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cointoken = 1; - * @param value The cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointoken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cointoken_ = value; - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @return This builder for chaining. - */ - public Builder clearCointoken() { - - cointoken_ = getDefaultInstance().getCointoken(); - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @param value The bytes for cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cointoken_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } - /** - * bytes note = 3; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * bytes note = 3; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - - private java.lang.Object execName_ = ""; - /** - * string execName = 4; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execName = 4; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execName = 4; - * @param value The execName to set. - * @return This builder for chaining. - */ - public Builder setExecName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execName_ = value; - onChanged(); - return this; - } - /** - * string execName = 4; - * @return This builder for chaining. - */ - public Builder clearExecName() { - - execName_ = getDefaultInstance().getExecName(); - onChanged(); - return this; - } - /** - * string execName = 4; - * @param value The bytes for execName to set. - * @return This builder for chaining. - */ - public Builder setExecNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execName_ = value; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 5; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 5; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 5; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 5; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 5; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsWithdraw) - } + /** + * string returnAddress = 3; + * + * @return The bytes for returnAddress. + */ + public com.google.protobuf.ByteString getReturnAddressBytes() { + java.lang.Object ref = returnAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + returnAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:AssetsWithdraw) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw(); - } + /** + * string returnAddress = 3; + * + * @param value + * The returnAddress to set. + * + * @return This builder for chaining. + */ + public Builder setReturnAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + returnAddress_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string returnAddress = 3; + * + * @return This builder for chaining. + */ + public Builder clearReturnAddress() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsWithdraw parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsWithdraw(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + returnAddress_ = getDefaultInstance().getReturnAddress(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string returnAddress = 3; + * + * @param value + * The bytes for returnAddress to set. + * + * @return This builder for chaining. + */ + public Builder setReturnAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + returnAddress_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public interface AssetsTransferOrBuilder extends - // @@protoc_insertion_point(interface_extends:AssetsTransfer) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:AssetsGenesis) + } - /** - * string cointoken = 1; - * @return The cointoken. - */ - java.lang.String getCointoken(); - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - com.google.protobuf.ByteString - getCointokenBytes(); + // @@protoc_insertion_point(class_scope:AssetsGenesis) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis(); + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * bytes note = 3; - * @return The note. - */ - com.google.protobuf.ByteString getNote(); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsGenesis parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsGenesis(input, extensionRegistry); + } + }; - /** - * string to = 4; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 4; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); - } - /** - * Protobuf type {@code AssetsTransfer} - */ - public static final class AssetsTransfer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AssetsTransfer) - AssetsTransferOrBuilder { - private static final long serialVersionUID = 0L; - // Use AssetsTransfer.newBuilder() to construct. - private AssetsTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetsTransfer() { - cointoken_ = ""; - note_ = com.google.protobuf.ByteString.EMPTY; - to_ = ""; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetsTransfer(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetsTransfer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - cointoken_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - case 26: { - - note_ = input.readBytes(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsGenesis getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder.class); } - public static final int COINTOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object cointoken_; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public interface AssetsTransferToExecOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsTransferToExec) + com.google.protobuf.MessageOrBuilder { - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + java.lang.String getCointoken(); - public static final int NOTE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString note_; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + com.google.protobuf.ByteString getCointokenBytes(); - public static final int TO_FIELD_NUMBER = 4; - private volatile java.lang.Object to_; - /** - * string to = 4; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); + + /** + * bytes note = 3; + * + * @return The note. + */ + com.google.protobuf.ByteString getNote(); + + /** + * string execName = 4; + * + * @return The execName. + */ + java.lang.String getExecName(); + + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + com.google.protobuf.ByteString getExecNameBytes(); + + /** + * string to = 5; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + * string to = 5; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); } + /** - * string to = 4; - * @return The bytes for to. + * Protobuf type {@code AssetsTransferToExec} */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class AssetsTransferToExec extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsTransferToExec) + AssetsTransferToExecOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use AssetsTransferToExec.newBuilder() to construct. + private AssetsTransferToExec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private AssetsTransferToExec() { + cointoken_ = ""; + note_ = com.google.protobuf.ByteString.EMPTY; + execName_ = ""; + to_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCointokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (!note_.isEmpty()) { - output.writeBytes(3, note_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, to_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsTransferToExec(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCointokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (!note_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, note_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, to_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) obj; - - if (!getCointoken() - .equals(other.getCointoken())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private AssetsTransferToExec(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cointoken_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + + note_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + execName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getCointoken().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int COINTOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object cointoken_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AssetsTransfer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AssetsTransfer) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cointoken_ = ""; - - amount_ = 0L; - - note_ = com.google.protobuf.ByteString.EMPTY; - - to_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer(this); - result.cointoken_ = cointoken_; - result.amount_ = amount_; - result.note_ = note_; - result.to_ = to_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance()) return this; - if (!other.getCointoken().isEmpty()) { - cointoken_ = other.cointoken_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { - setNote(other.getNote()); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cointoken_ = ""; - /** - * string cointoken = 1; - * @return The cointoken. - */ - public java.lang.String getCointoken() { - java.lang.Object ref = cointoken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cointoken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cointoken = 1; - * @return The bytes for cointoken. - */ - public com.google.protobuf.ByteString - getCointokenBytes() { - java.lang.Object ref = cointoken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cointoken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cointoken = 1; - * @param value The cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointoken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cointoken_ = value; - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @return This builder for chaining. - */ - public Builder clearCointoken() { - - cointoken_ = getDefaultInstance().getCointoken(); - onChanged(); - return this; - } - /** - * string cointoken = 1; - * @param value The bytes for cointoken to set. - * @return This builder for chaining. - */ - public Builder setCointokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cointoken_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes note = 3; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } - /** - * bytes note = 3; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * bytes note = 3; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 4; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 4; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 4; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 4; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 4; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AssetsTransfer) - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + @java.lang.Override + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:AssetsTransfer) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer(); - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int NOTE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString note_; + + /** + * bytes note = 3; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } + + public static final int EXECNAME_FIELD_NUMBER = 4; + private volatile java.lang.Object execName_; + + /** + * string execName = 4; + * + * @return The execName. + */ + @java.lang.Override + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetsTransfer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetsTransfer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int TO_FIELD_NUMBER = 5; + private volatile java.lang.Object to_; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string to = 5; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } - } + /** + * string to = 5; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface AssetOrBuilder extends - // @@protoc_insertion_point(interface_extends:Asset) - com.google.protobuf.MessageOrBuilder { + private byte memoizedIsInitialized = -1; - /** - * string exec = 1; - * @return The exec. - */ - java.lang.String getExec(); - /** - * string exec = 1; - * @return The bytes for exec. - */ - com.google.protobuf.ByteString - getExecBytes(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - /** - * string symbol = 2; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + memoizedIsInitialized = 1; + return true; + } - /** - * int64 amount = 3; - * @return The amount. - */ - long getAmount(); - } - /** - * Protobuf type {@code Asset} - */ - public static final class Asset extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Asset) - AssetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Asset.newBuilder() to construct. - private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Asset() { - exec_ = ""; - symbol_ = ""; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCointokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!note_.isEmpty()) { + output.writeBytes(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Asset(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Asset( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - exec_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 24: { - - amount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_descriptor; - } + size = 0; + if (!getCointokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!note_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) obj; + + if (!getCointoken().equals(other.getCointoken())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getExecName().equals(other.getExecName())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getCointoken().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + EXECNAME_FIELD_NUMBER; + hash = (53 * hash) + getExecName().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int EXEC_FIELD_NUMBER = 1; - private volatile java.lang.Object exec_; - /** - * string exec = 1; - * @return The exec. - */ - public java.lang.String getExec() { - java.lang.Object ref = exec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - exec_ = s; - return s; - } - } - /** - * string exec = 1; - * @return The bytes for exec. - */ - public com.google.protobuf.ByteString - getExecBytes() { - java.lang.Object ref = exec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - exec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int SYMBOL_FIELD_NUMBER = 2; - private volatile java.lang.Object symbol_; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int AMOUNT_FIELD_NUMBER = 3; - private long amount_; - /** - * int64 amount = 3; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getExecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, exec_); - } - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); - } - if (amount_ != 0L) { - output.writeInt64(3, amount_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, exec_); - } - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, amount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset) obj; - - if (!getExec() - .equals(other.getExec())) return false; - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXEC_FIELD_NUMBER; - hash = (53 * hash) + getExec().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Asset} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Asset) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - exec_ = ""; - - symbol_ = ""; - - amount_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset(this); - result.exec_ = exec_; - result.symbol_ = symbol_; - result.amount_ = amount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()) return this; - if (!other.getExec().isEmpty()) { - exec_ = other.exec_; - onChanged(); - } - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object exec_ = ""; - /** - * string exec = 1; - * @return The exec. - */ - public java.lang.String getExec() { - java.lang.Object ref = exec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - exec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string exec = 1; - * @return The bytes for exec. - */ - public com.google.protobuf.ByteString - getExecBytes() { - java.lang.Object ref = exec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - exec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string exec = 1; - * @param value The exec to set. - * @return This builder for chaining. - */ - public Builder setExec( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - exec_ = value; - onChanged(); - return this; - } - /** - * string exec = 1; - * @return This builder for chaining. - */ - public Builder clearExec() { - - exec_ = getDefaultInstance().getExec(); - onChanged(); - return this; - } - /** - * string exec = 1; - * @param value The bytes for exec to set. - * @return This builder for chaining. - */ - public Builder setExecBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - exec_ = value; - onChanged(); - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 2; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 2; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 2; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 3; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 3; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 3; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Asset) - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:Asset) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - } + /** + * Protobuf type {@code AssetsTransferToExec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsTransferToExec) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_descriptor; + } - public interface CreateTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:CreateTx) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.Builder.class); + } - /** - * string to = 1; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 1; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); + // Construct using + // cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * int64 fee = 3; - * @return The fee. - */ - long getFee(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * bytes note = 4; - * @return The note. - */ - com.google.protobuf.ByteString getNote(); + @java.lang.Override + public Builder clear() { + super.clear(); + cointoken_ = ""; - /** - * bool isWithdraw = 5; - * @return The isWithdraw. - */ - boolean getIsWithdraw(); + amount_ = 0L; - /** - * bool isToken = 6; - * @return The isToken. - */ - boolean getIsToken(); + note_ = com.google.protobuf.ByteString.EMPTY; - /** - * string tokenSymbol = 7; - * @return The tokenSymbol. - */ - java.lang.String getTokenSymbol(); - /** - * string tokenSymbol = 7; - * @return The bytes for tokenSymbol. - */ - com.google.protobuf.ByteString - getTokenSymbolBytes(); + execName_ = ""; - /** - * string execName = 8; - * @return The execName. - */ - java.lang.String getExecName(); - /** - * string execName = 8; - * @return The bytes for execName. - */ - com.google.protobuf.ByteString - getExecNameBytes(); + to_ = ""; - /** - * string execer = 9; - * @return The execer. - */ - java.lang.String getExecer(); - /** - * string execer = 9; - * @return The bytes for execer. - */ - com.google.protobuf.ByteString - getExecerBytes(); - } - /** - * Protobuf type {@code CreateTx} - */ - public static final class CreateTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CreateTx) - CreateTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTx.newBuilder() to construct. - private CreateTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTx() { - to_ = ""; - note_ = com.google.protobuf.ByteString.EMPTY; - tokenSymbol_ = ""; - execName_ = ""; - execer_ = ""; - } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTx(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransferToExec_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - case 24: { - - fee_ = input.readInt64(); - break; - } - case 34: { - - note_ = input.readBytes(); - break; - } - case 40: { - - isWithdraw_ = input.readBool(); - break; - } - case 48: { - - isToken_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - tokenSymbol_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - execName_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - execer_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .getDefaultInstance(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int TO_FIELD_NUMBER = 1; - private volatile java.lang.Object to_; - /** - * string to = 1; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 1; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec( + this); + result.cointoken_ = cointoken_; + result.amount_ = amount_; + result.note_ = note_; + result.execName_ = execName_; + result.to_ = to_; + onBuilt(); + return result; + } - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int FEE_FIELD_NUMBER = 3; - private long fee_; - /** - * int64 fee = 3; - * @return The fee. - */ - public long getFee() { - return fee_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int NOTE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString note_; - /** - * bytes note = 4; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int ISWITHDRAW_FIELD_NUMBER = 5; - private boolean isWithdraw_; - /** - * bool isWithdraw = 5; - * @return The isWithdraw. - */ - public boolean getIsWithdraw() { - return isWithdraw_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int ISTOKEN_FIELD_NUMBER = 6; - private boolean isToken_; - /** - * bool isToken = 6; - * @return The isToken. - */ - public boolean getIsToken() { - return isToken_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int TOKENSYMBOL_FIELD_NUMBER = 7; - private volatile java.lang.Object tokenSymbol_; - /** - * string tokenSymbol = 7; - * @return The tokenSymbol. - */ - public java.lang.String getTokenSymbol() { - java.lang.Object ref = tokenSymbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenSymbol_ = s; - return s; - } - } - /** - * string tokenSymbol = 7; - * @return The bytes for tokenSymbol. - */ - public com.google.protobuf.ByteString - getTokenSymbolBytes() { - java.lang.Object ref = tokenSymbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int EXECNAME_FIELD_NUMBER = 8; - private volatile java.lang.Object execName_; - /** - * string execName = 8; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } - } - /** - * string execName = 8; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int EXECER_FIELD_NUMBER = 9; - private volatile java.lang.Object execer_; - /** - * string execer = 9; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } - } - /** - * string execer = 9; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder mergeFrom( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec + .getDefaultInstance()) + return this; + if (!other.getCointoken().isEmpty()) { + cointoken_ = other.cointoken_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { + setNote(other.getNote()); + } + if (!other.getExecName().isEmpty()) { + execName_ = other.execName_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, to_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - if (fee_ != 0L) { - output.writeInt64(3, fee_); - } - if (!note_.isEmpty()) { - output.writeBytes(4, note_); - } - if (isWithdraw_ != false) { - output.writeBool(5, isWithdraw_); - } - if (isToken_ != false) { - output.writeBool(6, isToken_); - } - if (!getTokenSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tokenSymbol_); - } - if (!getExecNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, execName_); - } - if (!getExecerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, execer_); - } - unknownFields.writeTo(output); - } + private java.lang.Object cointoken_ = ""; + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, to_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - if (fee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, fee_); - } - if (!note_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, note_); - } - if (isWithdraw_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isWithdraw_); - } - if (isToken_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isToken_); - } - if (!getTokenSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tokenSymbol_); - } - if (!getExecNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, execName_); - } - if (!getExecerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, execer_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) obj; - - if (!getTo() - .equals(other.getTo())) return false; - if (getAmount() - != other.getAmount()) return false; - if (getFee() - != other.getFee()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (getIsWithdraw() - != other.getIsWithdraw()) return false; - if (getIsToken() - != other.getIsToken()) return false; - if (!getTokenSymbol() - .equals(other.getTokenSymbol())) return false; - if (!getExecName() - .equals(other.getExecName())) return false; - if (!getExecer() - .equals(other.getExecer())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string cointoken = 1; + * + * @param value + * The cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointoken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cointoken_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFee()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + ISWITHDRAW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsWithdraw()); - hash = (37 * hash) + ISTOKEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsToken()); - hash = (37 * hash) + TOKENSYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getTokenSymbol().hashCode(); - hash = (37 * hash) + EXECNAME_FIELD_NUMBER; - hash = (53 * hash) + getExecName().hashCode(); - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string cointoken = 1; + * + * @return This builder for chaining. + */ + public Builder clearCointoken() { - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + cointoken_ = getDefaultInstance().getCointoken(); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string cointoken = 1; + * + * @param value + * The bytes for cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cointoken_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CreateTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CreateTx) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - to_ = ""; - - amount_ = 0L; - - fee_ = 0L; - - note_ = com.google.protobuf.ByteString.EMPTY; - - isWithdraw_ = false; - - isToken_ = false; - - tokenSymbol_ = ""; - - execName_ = ""; - - execer_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx(this); - result.to_ = to_; - result.amount_ = amount_; - result.fee_ = fee_; - result.note_ = note_; - result.isWithdraw_ = isWithdraw_; - result.isToken_ = isToken_; - result.tokenSymbol_ = tokenSymbol_; - result.execName_ = execName_; - result.execer_ = execer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.getDefaultInstance()) return this; - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getFee() != 0L) { - setFee(other.getFee()); - } - if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { - setNote(other.getNote()); - } - if (other.getIsWithdraw() != false) { - setIsWithdraw(other.getIsWithdraw()); - } - if (other.getIsToken() != false) { - setIsToken(other.getIsToken()); - } - if (!other.getTokenSymbol().isEmpty()) { - tokenSymbol_ = other.tokenSymbol_; - onChanged(); - } - if (!other.getExecName().isEmpty()) { - execName_ = other.execName_; - onChanged(); - } - if (!other.getExecer().isEmpty()) { - execer_ = other.execer_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 1; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 1; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 1; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 1; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 1; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private long fee_ ; - /** - * int64 fee = 3; - * @return The fee. - */ - public long getFee() { - return fee_; - } - /** - * int64 fee = 3; - * @param value The fee to set. - * @return This builder for chaining. - */ - public Builder setFee(long value) { - - fee_ = value; - onChanged(); - return this; - } - /** - * int64 fee = 3; - * @return This builder for chaining. - */ - public Builder clearFee() { - - fee_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes note = 4; - * @return The note. - */ - public com.google.protobuf.ByteString getNote() { - return note_; - } - /** - * bytes note = 4; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * bytes note = 4; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - - private boolean isWithdraw_ ; - /** - * bool isWithdraw = 5; - * @return The isWithdraw. - */ - public boolean getIsWithdraw() { - return isWithdraw_; - } - /** - * bool isWithdraw = 5; - * @param value The isWithdraw to set. - * @return This builder for chaining. - */ - public Builder setIsWithdraw(boolean value) { - - isWithdraw_ = value; - onChanged(); - return this; - } - /** - * bool isWithdraw = 5; - * @return This builder for chaining. - */ - public Builder clearIsWithdraw() { - - isWithdraw_ = false; - onChanged(); - return this; - } - - private boolean isToken_ ; - /** - * bool isToken = 6; - * @return The isToken. - */ - public boolean getIsToken() { - return isToken_; - } - /** - * bool isToken = 6; - * @param value The isToken to set. - * @return This builder for chaining. - */ - public Builder setIsToken(boolean value) { - - isToken_ = value; - onChanged(); - return this; - } - /** - * bool isToken = 6; - * @return This builder for chaining. - */ - public Builder clearIsToken() { - - isToken_ = false; - onChanged(); - return this; - } - - private java.lang.Object tokenSymbol_ = ""; - /** - * string tokenSymbol = 7; - * @return The tokenSymbol. - */ - public java.lang.String getTokenSymbol() { - java.lang.Object ref = tokenSymbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenSymbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tokenSymbol = 7; - * @return The bytes for tokenSymbol. - */ - public com.google.protobuf.ByteString - getTokenSymbolBytes() { - java.lang.Object ref = tokenSymbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tokenSymbol = 7; - * @param value The tokenSymbol to set. - * @return This builder for chaining. - */ - public Builder setTokenSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tokenSymbol_ = value; - onChanged(); - return this; - } - /** - * string tokenSymbol = 7; - * @return This builder for chaining. - */ - public Builder clearTokenSymbol() { - - tokenSymbol_ = getDefaultInstance().getTokenSymbol(); - onChanged(); - return this; - } - /** - * string tokenSymbol = 7; - * @param value The bytes for tokenSymbol to set. - * @return This builder for chaining. - */ - public Builder setTokenSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tokenSymbol_ = value; - onChanged(); - return this; - } - - private java.lang.Object execName_ = ""; - /** - * string execName = 8; - * @return The execName. - */ - public java.lang.String getExecName() { - java.lang.Object ref = execName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execName = 8; - * @return The bytes for execName. - */ - public com.google.protobuf.ByteString - getExecNameBytes() { - java.lang.Object ref = execName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execName = 8; - * @param value The execName to set. - * @return This builder for chaining. - */ - public Builder setExecName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execName_ = value; - onChanged(); - return this; - } - /** - * string execName = 8; - * @return This builder for chaining. - */ - public Builder clearExecName() { - - execName_ = getDefaultInstance().getExecName(); - onChanged(); - return this; - } - /** - * string execName = 8; - * @param value The bytes for execName to set. - * @return This builder for chaining. - */ - public Builder setExecNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execName_ = value; - onChanged(); - return this; - } - - private java.lang.Object execer_ = ""; - /** - * string execer = 9; - * @return The execer. - */ - public java.lang.String getExecer() { - java.lang.Object ref = execer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - execer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string execer = 9; - * @return The bytes for execer. - */ - public com.google.protobuf.ByteString - getExecerBytes() { - java.lang.Object ref = execer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - execer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string execer = 9; - * @param value The execer to set. - * @return This builder for chaining. - */ - public Builder setExecer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - * string execer = 9; - * @return This builder for chaining. - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - /** - * string execer = 9; - * @param value The bytes for execer to set. - * @return This builder for chaining. - */ - public Builder setExecerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - execer_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CreateTx) - } + private long amount_; - // @@protoc_insertion_point(class_scope:CreateTx) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx(); - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + amount_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * bytes note = 3; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } - public interface ReWriteRawTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReWriteRawTx) - com.google.protobuf.MessageOrBuilder { + /** + * bytes note = 3; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } - /** - * string tx = 1; - * @return The tx. - */ - java.lang.String getTx(); - /** - * string tx = 1; - * @return The bytes for tx. - */ - com.google.protobuf.ByteString - getTxBytes(); + /** + * bytes note = 3; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - /** - *
-     * bytes  execer = 2;
-     * 
- * - * string to = 3; - * @return The to. - */ - java.lang.String getTo(); - /** - *
-     * bytes  execer = 2;
-     * 
- * - * string to = 3; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - /** - * string expire = 4; - * @return The expire. - */ - java.lang.String getExpire(); - /** - * string expire = 4; - * @return The bytes for expire. - */ - com.google.protobuf.ByteString - getExpireBytes(); + private java.lang.Object execName_ = ""; + + /** + * string execName = 4; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * int64 fee = 5; - * @return The fee. - */ - long getFee(); + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int32 index = 6; - * @return The index. - */ - int getIndex(); - } - /** - * Protobuf type {@code ReWriteRawTx} - */ - public static final class ReWriteRawTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReWriteRawTx) - ReWriteRawTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReWriteRawTx.newBuilder() to construct. - private ReWriteRawTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReWriteRawTx() { - tx_ = ""; - to_ = ""; - expire_ = ""; - } + /** + * string execName = 4; + * + * @param value + * The execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execName_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReWriteRawTx(); - } + /** + * string execName = 4; + * + * @return This builder for chaining. + */ + public Builder clearExecName() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReWriteRawTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - tx_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - expire_ = s; - break; - } - case 40: { - - fee_ = input.readInt64(); - break; - } - case 48: { - - index_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_descriptor; - } + execName_ = getDefaultInstance().getExecName(); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.Builder.class); - } + /** + * string execName = 4; + * + * @param value + * The bytes for execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execName_ = value; + onChanged(); + return this; + } - public static final int TX_FIELD_NUMBER = 1; - private volatile java.lang.Object tx_; - /** - * string tx = 1; - * @return The tx. - */ - public java.lang.String getTx() { - java.lang.Object ref = tx_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tx_ = s; - return s; - } - } - /** - * string tx = 1; - * @return The bytes for tx. - */ - public com.google.protobuf.ByteString - getTxBytes() { - java.lang.Object ref = tx_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tx_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private java.lang.Object to_ = ""; + + /** + * string to = 5; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int TO_FIELD_NUMBER = 3; - private volatile java.lang.Object to_; - /** - *
-     * bytes  execer = 2;
-     * 
- * - * string to = 3; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - *
-     * bytes  execer = 2;
-     * 
- * - * string to = 3; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 5; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int EXPIRE_FIELD_NUMBER = 4; - private volatile java.lang.Object expire_; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string to = 5; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - public static final int FEE_FIELD_NUMBER = 5; - private long fee_; - /** - * int64 fee = 5; - * @return The fee. - */ - public long getFee() { - return fee_; - } + /** + * string to = 5; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - public static final int INDEX_FIELD_NUMBER = 6; - private int index_; - /** - * int32 index = 6; - * @return The index. - */ - public int getIndex() { - return index_; - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string to = 5; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tx_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, to_); - } - if (!getExpireBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); - } - if (fee_ != 0L) { - output.writeInt64(5, fee_); - } - if (index_ != 0) { - output.writeInt32(6, index_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tx_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, to_); - } - if (!getExpireBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); - } - if (fee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, fee_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, index_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // @@protoc_insertion_point(builder_scope:AssetsTransferToExec) + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx) obj; - - if (!getTx() - .equals(other.getTx())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (!getExpire() - .equals(other.getExpire())) return false; - if (getFee() - != other.getFee()) return false; - if (getIndex() - != other.getIndex()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(class_scope:AssetsTransferToExec) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + getExpire().hashCode(); - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFee()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsTransferToExec parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsTransferToExec(input, extensionRegistry); + } + }; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReWriteRawTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReWriteRawTx) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tx_ = ""; - - to_ = ""; - - expire_ = ""; - - fee_ = 0L; - - index_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx(this); - result.tx_ = tx_; - result.to_ = to_; - result.expire_ = expire_; - result.fee_ = fee_; - result.index_ = index_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.getDefaultInstance()) return this; - if (!other.getTx().isEmpty()) { - tx_ = other.tx_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (!other.getExpire().isEmpty()) { - expire_ = other.expire_; - onChanged(); - } - if (other.getFee() != 0L) { - setFee(other.getFee()); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object tx_ = ""; - /** - * string tx = 1; - * @return The tx. - */ - public java.lang.String getTx() { - java.lang.Object ref = tx_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tx_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tx = 1; - * @return The bytes for tx. - */ - public com.google.protobuf.ByteString - getTxBytes() { - java.lang.Object ref = tx_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tx_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx = 1; - * @param value The tx to set. - * @return This builder for chaining. - */ - public Builder setTx( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tx_ = value; - onChanged(); - return this; - } - /** - * string tx = 1; - * @return This builder for chaining. - */ - public Builder clearTx() { - - tx_ = getDefaultInstance().getTx(); - onChanged(); - return this; - } - /** - * string tx = 1; - * @param value The bytes for tx to set. - * @return This builder for chaining. - */ - public Builder setTxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tx_ = value; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - *
-       * bytes  execer = 2;
-       * 
- * - * string to = 3; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * bytes  execer = 2;
-       * 
- * - * string to = 3; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * bytes  execer = 2;
-       * 
- * - * string to = 3; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - *
-       * bytes  execer = 2;
-       * 
- * - * string to = 3; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - *
-       * bytes  execer = 2;
-       * 
- * - * string to = 3; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - - private java.lang.Object expire_ = ""; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expire = 4; - * @param value The expire to set. - * @return This builder for chaining. - */ - public Builder setExpire( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expire_ = value; - onChanged(); - return this; - } - /** - * string expire = 4; - * @return This builder for chaining. - */ - public Builder clearExpire() { - - expire_ = getDefaultInstance().getExpire(); - onChanged(); - return this; - } - /** - * string expire = 4; - * @param value The bytes for expire to set. - * @return This builder for chaining. - */ - public Builder setExpireBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expire_ = value; - onChanged(); - return this; - } - - private long fee_ ; - /** - * int64 fee = 5; - * @return The fee. - */ - public long getFee() { - return fee_; - } - /** - * int64 fee = 5; - * @param value The fee to set. - * @return This builder for chaining. - */ - public Builder setFee(long value) { - - fee_ = value; - onChanged(); - return this; - } - /** - * int64 fee = 5; - * @return This builder for chaining. - */ - public Builder clearFee() { - - fee_ = 0L; - onChanged(); - return this; - } - - private int index_ ; - /** - * int32 index = 6; - * @return The index. - */ - public int getIndex() { - return index_; - } - /** - * int32 index = 6; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int32 index = 6; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReWriteRawTx) - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:ReWriteRawTx) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferToExec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx getDefaultInstance() { - return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReWriteRawTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReWriteRawTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public interface AssetsWithdrawOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsWithdraw) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + java.lang.String getCointoken(); - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + com.google.protobuf.ByteString getCointokenBytes(); - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); - public interface CreateTransactionGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:CreateTransactionGroup) - com.google.protobuf.MessageOrBuilder { + /** + * bytes note = 3; + * + * @return The note. + */ + com.google.protobuf.ByteString getNote(); - /** - * repeated string txs = 1; - * @return A list containing the txs. - */ - java.util.List - getTxsList(); - /** - * repeated string txs = 1; - * @return The count of txs. - */ - int getTxsCount(); - /** - * repeated string txs = 1; - * @param index The index of the element to return. - * @return The txs at the given index. - */ - java.lang.String getTxs(int index); - /** - * repeated string txs = 1; - * @param index The index of the value to return. - * @return The bytes of the txs at the given index. - */ - com.google.protobuf.ByteString - getTxsBytes(int index); - } - /** - * Protobuf type {@code CreateTransactionGroup} - */ - public static final class CreateTransactionGroup extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CreateTransactionGroup) - CreateTransactionGroupOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTransactionGroup.newBuilder() to construct. - private CreateTransactionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTransactionGroup() { - txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + /** + * string execName = 4; + * + * @return The execName. + */ + java.lang.String getExecName(); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTransactionGroup(); - } + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + com.google.protobuf.ByteString getExecNameBytes(); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTransactionGroup( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = txs_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_descriptor; - } + /** + * string to = 5; + * + * @return The to. + */ + java.lang.String getTo(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.Builder.class); + /** + * string to = 5; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); } - public static final int TXS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList txs_; - /** - * repeated string txs = 1; - * @return A list containing the txs. - */ - public com.google.protobuf.ProtocolStringList - getTxsList() { - return txs_; - } /** - * repeated string txs = 1; - * @return The count of txs. - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated string txs = 1; - * @param index The index of the element to return. - * @return The txs at the given index. - */ - public java.lang.String getTxs(int index) { - return txs_.get(index); - } - /** - * repeated string txs = 1; - * @param index The index of the value to return. - * @return The bytes of the txs at the given index. + * Protobuf type {@code AssetsWithdraw} */ - public com.google.protobuf.ByteString - getTxsBytes(int index) { - return txs_.getByteString(index); - } + public static final class AssetsWithdraw extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsWithdraw) + AssetsWithdrawOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use AssetsWithdraw.newBuilder() to construct. + private AssetsWithdraw(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private AssetsWithdraw() { + cointoken_ = ""; + note_ = com.google.protobuf.ByteString.EMPTY; + execName_ = ""; + to_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txs_.getRaw(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsWithdraw(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < txs_.size(); i++) { - dataSize += computeStringSizeNoTag(txs_.getRaw(i)); - } - size += dataSize; - size += 1 * getTxsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) obj; - - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private AssetsWithdraw(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cointoken_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + + note_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + execName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int COINTOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object cointoken_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CreateTransactionGroup} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CreateTransactionGroup) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = txs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.getDefaultInstance()) return this; - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new com.google.protobuf.LazyStringArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string txs = 1; - * @return A list containing the txs. - */ - public com.google.protobuf.ProtocolStringList - getTxsList() { - return txs_.getUnmodifiableView(); - } - /** - * repeated string txs = 1; - * @return The count of txs. - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated string txs = 1; - * @param index The index of the element to return. - * @return The txs at the given index. - */ - public java.lang.String getTxs(int index) { - return txs_.get(index); - } - /** - * repeated string txs = 1; - * @param index The index of the value to return. - * @return The bytes of the txs at the given index. - */ - public com.google.protobuf.ByteString - getTxsBytes(int index) { - return txs_.getByteString(index); - } - /** - * repeated string txs = 1; - * @param index The index to set the value at. - * @param value The txs to set. - * @return This builder for chaining. - */ - public Builder setTxs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string txs = 1; - * @param value The txs to add. - * @return This builder for chaining. - */ - public Builder addTxs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - return this; - } - /** - * repeated string txs = 1; - * @param values The txs to add. - * @return This builder for chaining. - */ - public Builder addAllTxs( - java.lang.Iterable values) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - return this; - } - /** - * repeated string txs = 1; - * @return This builder for chaining. - */ - public Builder clearTxs() { - txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string txs = 1; - * @param value The bytes of the txs to add. - * @return This builder for chaining. - */ - public Builder addTxsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CreateTransactionGroup) - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + @java.lang.Override + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:CreateTransactionGroup) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup(); - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int NOTE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString note_; + + /** + * bytes note = 3; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } + + public static final int EXECNAME_FIELD_NUMBER = 4; + private volatile java.lang.Object execName_; + + /** + * string execName = 4; + * + * @return The execName. + */ + @java.lang.Override + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTransactionGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTransactionGroup(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int TO_FIELD_NUMBER = 5; + private volatile java.lang.Object to_; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string to = 5; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } - } + /** + * string to = 5; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface UnsignTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:UnsignTx) - com.google.protobuf.MessageOrBuilder { + private byte memoizedIsInitialized = -1; - /** - * bytes data = 1; - * @return The data. - */ - com.google.protobuf.ByteString getData(); - } - /** - * Protobuf type {@code UnsignTx} - */ - public static final class UnsignTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UnsignTx) - UnsignTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnsignTx.newBuilder() to construct. - private UnsignTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnsignTx() { - data_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnsignTx(); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnsignTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - data_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_descriptor; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCointokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!note_.isEmpty()) { + output.writeBytes(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, execName_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, to_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.Builder.class); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - * @return The data. - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + size = 0; + if (!getCointokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!note_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, note_); + } + if (!getExecNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, execName_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, to_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) obj; + + if (!getCointoken().equals(other.getCointoken())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getExecName().equals(other.getExecName())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getCointoken().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + EXECNAME_FIELD_NUMBER; + hash = (53 * hash) + getExecName().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx) obj; - - if (!getData() - .equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UnsignTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:UnsignTx) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx(this); - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - * @return The data. - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - * @param value The data to set. - * @return This builder for chaining. - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - * @return This builder for chaining. - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UnsignTx) - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:UnsignTx) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnsignTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnsignTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public interface NoBalanceTxsOrBuilder extends - // @@protoc_insertion_point(interface_extends:NoBalanceTxs) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * repeated string txHexs = 1; - * @return A list containing the txHexs. - */ - java.util.List - getTxHexsList(); - /** - * repeated string txHexs = 1; - * @return The count of txHexs. - */ - int getTxHexsCount(); - /** - * repeated string txHexs = 1; - * @param index The index of the element to return. - * @return The txHexs at the given index. - */ - java.lang.String getTxHexs(int index); - /** - * repeated string txHexs = 1; - * @param index The index of the value to return. - * @return The bytes of the txHexs at the given index. - */ - com.google.protobuf.ByteString - getTxHexsBytes(int index); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * string payAddr = 2; - * @return The payAddr. - */ - java.lang.String getPayAddr(); - /** - * string payAddr = 2; - * @return The bytes for payAddr. - */ - com.google.protobuf.ByteString - getPayAddrBytes(); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * string privkey = 3; - * @return The privkey. - */ - java.lang.String getPrivkey(); - /** - * string privkey = 3; - * @return The bytes for privkey. - */ - com.google.protobuf.ByteString - getPrivkeyBytes(); + /** + * Protobuf type {@code AssetsWithdraw} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsWithdraw) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdrawOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_descriptor; + } - /** - * string expire = 4; - * @return The expire. - */ - java.lang.String getExpire(); - /** - * string expire = 4; - * @return The bytes for expire. - */ - com.google.protobuf.ByteString - getExpireBytes(); - } - /** - *
-   * 支持构造多笔nobalance的交易 payAddr 可以支持 1. 地址 2. 私钥
-   * 
- * - * Protobuf type {@code NoBalanceTxs} - */ - public static final class NoBalanceTxs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:NoBalanceTxs) - NoBalanceTxsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NoBalanceTxs.newBuilder() to construct. - private NoBalanceTxs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NoBalanceTxs() { - txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - payAddr_ = ""; - privkey_ = ""; - expire_ = ""; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.Builder.class); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NoBalanceTxs(); - } + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NoBalanceTxs( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txHexs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txHexs_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - payAddr_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - privkey_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - expire_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txHexs_ = txHexs_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_descriptor; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.Builder.class); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static final int TXHEXS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList txHexs_; - /** - * repeated string txHexs = 1; - * @return A list containing the txHexs. - */ - public com.google.protobuf.ProtocolStringList - getTxHexsList() { - return txHexs_; - } - /** - * repeated string txHexs = 1; - * @return The count of txHexs. - */ - public int getTxHexsCount() { - return txHexs_.size(); - } - /** - * repeated string txHexs = 1; - * @param index The index of the element to return. - * @return The txHexs at the given index. - */ - public java.lang.String getTxHexs(int index) { - return txHexs_.get(index); - } - /** - * repeated string txHexs = 1; - * @param index The index of the value to return. - * @return The bytes of the txHexs at the given index. - */ - public com.google.protobuf.ByteString - getTxHexsBytes(int index) { - return txHexs_.getByteString(index); - } + @java.lang.Override + public Builder clear() { + super.clear(); + cointoken_ = ""; - public static final int PAYADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object payAddr_; - /** - * string payAddr = 2; - * @return The payAddr. - */ - public java.lang.String getPayAddr() { - java.lang.Object ref = payAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payAddr_ = s; - return s; - } - } - /** - * string payAddr = 2; - * @return The bytes for payAddr. - */ - public com.google.protobuf.ByteString - getPayAddrBytes() { - java.lang.Object ref = payAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + amount_ = 0L; - public static final int PRIVKEY_FIELD_NUMBER = 3; - private volatile java.lang.Object privkey_; - /** - * string privkey = 3; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } - } - /** - * string privkey = 3; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + note_ = com.google.protobuf.ByteString.EMPTY; - public static final int EXPIRE_FIELD_NUMBER = 4; - private volatile java.lang.Object expire_; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + execName_ = ""; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + to_ = ""; - memoizedIsInitialized = 1; - return true; - } + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txHexs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHexs_.getRaw(i)); - } - if (!getPayAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payAddr_); - } - if (!getPrivkeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, privkey_); - } - if (!getExpireBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsWithdraw_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < txHexs_.size(); i++) { - dataSize += computeStringSizeNoTag(txHexs_.getRaw(i)); - } - size += dataSize; - size += 1 * getTxHexsList().size(); - } - if (!getPayAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payAddr_); - } - if (!getPrivkeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, privkey_); - } - if (!getExpireBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) obj; - - if (!getTxHexsList() - .equals(other.getTxHexsList())) return false; - if (!getPayAddr() - .equals(other.getPayAddr())) return false; - if (!getPrivkey() - .equals(other.getPrivkey())) return false; - if (!getExpire() - .equals(other.getExpire())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxHexsCount() > 0) { - hash = (37 * hash) + TXHEXS_FIELD_NUMBER; - hash = (53 * hash) + getTxHexsList().hashCode(); - } - hash = (37 * hash) + PAYADDR_FIELD_NUMBER; - hash = (53 * hash) + getPayAddr().hashCode(); - hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivkey().hashCode(); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + getExpire().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw( + this); + result.cointoken_ = cointoken_; + result.amount_ = amount_; + result.note_ = note_; + result.execName_ = execName_; + result.to_ = to_; + onBuilt(); + return result; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 支持构造多笔nobalance的交易 payAddr 可以支持 1. 地址 2. 私钥
-     * 
- * - * Protobuf type {@code NoBalanceTxs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:NoBalanceTxs) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - payAddr_ = ""; - - privkey_ = ""; - - expire_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - txHexs_ = txHexs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txHexs_ = txHexs_; - result.payAddr_ = payAddr_; - result.privkey_ = privkey_; - result.expire_ = expire_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.getDefaultInstance()) return this; - if (!other.txHexs_.isEmpty()) { - if (txHexs_.isEmpty()) { - txHexs_ = other.txHexs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxHexsIsMutable(); - txHexs_.addAll(other.txHexs_); - } - onChanged(); - } - if (!other.getPayAddr().isEmpty()) { - payAddr_ = other.payAddr_; - onChanged(); - } - if (!other.getPrivkey().isEmpty()) { - privkey_ = other.privkey_; - onChanged(); - } - if (!other.getExpire().isEmpty()) { - expire_ = other.expire_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTxHexsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txHexs_ = new com.google.protobuf.LazyStringArrayList(txHexs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string txHexs = 1; - * @return A list containing the txHexs. - */ - public com.google.protobuf.ProtocolStringList - getTxHexsList() { - return txHexs_.getUnmodifiableView(); - } - /** - * repeated string txHexs = 1; - * @return The count of txHexs. - */ - public int getTxHexsCount() { - return txHexs_.size(); - } - /** - * repeated string txHexs = 1; - * @param index The index of the element to return. - * @return The txHexs at the given index. - */ - public java.lang.String getTxHexs(int index) { - return txHexs_.get(index); - } - /** - * repeated string txHexs = 1; - * @param index The index of the value to return. - * @return The bytes of the txHexs at the given index. - */ - public com.google.protobuf.ByteString - getTxHexsBytes(int index) { - return txHexs_.getByteString(index); - } - /** - * repeated string txHexs = 1; - * @param index The index to set the value at. - * @param value The txHexs to set. - * @return This builder for chaining. - */ - public Builder setTxHexs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHexsIsMutable(); - txHexs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string txHexs = 1; - * @param value The txHexs to add. - * @return This builder for chaining. - */ - public Builder addTxHexs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHexsIsMutable(); - txHexs_.add(value); - onChanged(); - return this; - } - /** - * repeated string txHexs = 1; - * @param values The txHexs to add. - * @return This builder for chaining. - */ - public Builder addAllTxHexs( - java.lang.Iterable values) { - ensureTxHexsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txHexs_); - onChanged(); - return this; - } - /** - * repeated string txHexs = 1; - * @return This builder for chaining. - */ - public Builder clearTxHexs() { - txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string txHexs = 1; - * @param value The bytes of the txHexs to add. - * @return This builder for chaining. - */ - public Builder addTxHexsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTxHexsIsMutable(); - txHexs_.add(value); - onChanged(); - return this; - } - - private java.lang.Object payAddr_ = ""; - /** - * string payAddr = 2; - * @return The payAddr. - */ - public java.lang.String getPayAddr() { - java.lang.Object ref = payAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string payAddr = 2; - * @return The bytes for payAddr. - */ - public com.google.protobuf.ByteString - getPayAddrBytes() { - java.lang.Object ref = payAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string payAddr = 2; - * @param value The payAddr to set. - * @return This builder for chaining. - */ - public Builder setPayAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - payAddr_ = value; - onChanged(); - return this; - } - /** - * string payAddr = 2; - * @return This builder for chaining. - */ - public Builder clearPayAddr() { - - payAddr_ = getDefaultInstance().getPayAddr(); - onChanged(); - return this; - } - /** - * string payAddr = 2; - * @param value The bytes for payAddr to set. - * @return This builder for chaining. - */ - public Builder setPayAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - payAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object privkey_ = ""; - /** - * string privkey = 3; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string privkey = 3; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string privkey = 3; - * @param value The privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privkey_ = value; - onChanged(); - return this; - } - /** - * string privkey = 3; - * @return This builder for chaining. - */ - public Builder clearPrivkey() { - - privkey_ = getDefaultInstance().getPrivkey(); - onChanged(); - return this; - } - /** - * string privkey = 3; - * @param value The bytes for privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privkey_ = value; - onChanged(); - return this; - } - - private java.lang.Object expire_ = ""; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expire = 4; - * @param value The expire to set. - * @return This builder for chaining. - */ - public Builder setExpire( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expire_ = value; - onChanged(); - return this; - } - /** - * string expire = 4; - * @return This builder for chaining. - */ - public Builder clearExpire() { - - expire_ = getDefaultInstance().getExpire(); - onChanged(); - return this; - } - /** - * string expire = 4; - * @param value The bytes for expire to set. - * @return This builder for chaining. - */ - public Builder setExpireBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expire_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:NoBalanceTxs) - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - // @@protoc_insertion_point(class_scope:NoBalanceTxs) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs(); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoBalanceTxs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NoBalanceTxs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw + .getDefaultInstance()) + return this; + if (!other.getCointoken().isEmpty()) { + cointoken_ = other.cointoken_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { + setNote(other.getNote()); + } + if (!other.getExecName().isEmpty()) { + execName_ = other.execName_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public interface NoBalanceTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:NoBalanceTx) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - * string txHex = 1; - * @return The txHex. - */ - java.lang.String getTxHex(); - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - com.google.protobuf.ByteString - getTxHexBytes(); + private java.lang.Object cointoken_ = ""; + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * string payAddr = 2; - * @return The payAddr. - */ - java.lang.String getPayAddr(); - /** - * string payAddr = 2; - * @return The bytes for payAddr. - */ - com.google.protobuf.ByteString - getPayAddrBytes(); + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string privkey = 3; - * @return The privkey. - */ - java.lang.String getPrivkey(); - /** - * string privkey = 3; - * @return The bytes for privkey. - */ - com.google.protobuf.ByteString - getPrivkeyBytes(); + /** + * string cointoken = 1; + * + * @param value + * The cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointoken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cointoken_ = value; + onChanged(); + return this; + } - /** - * string expire = 4; - * @return The expire. - */ - java.lang.String getExpire(); - /** - * string expire = 4; - * @return The bytes for expire. - */ - com.google.protobuf.ByteString - getExpireBytes(); - } - /** - *
-   * payAddr 可以支持 1. 地址 2. 私钥
-   * 
- * - * Protobuf type {@code NoBalanceTx} - */ - public static final class NoBalanceTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:NoBalanceTx) - NoBalanceTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use NoBalanceTx.newBuilder() to construct. - private NoBalanceTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NoBalanceTx() { - txHex_ = ""; - payAddr_ = ""; - privkey_ = ""; - expire_ = ""; - } + /** + * string cointoken = 1; + * + * @return This builder for chaining. + */ + public Builder clearCointoken() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NoBalanceTx(); - } + cointoken_ = getDefaultInstance().getCointoken(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NoBalanceTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - txHex_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - payAddr_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - privkey_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - expire_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_descriptor; - } + /** + * string cointoken = 1; + * + * @param value + * The bytes for cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cointoken_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.Builder.class); - } + private long amount_; - public static final int TXHEX_FIELD_NUMBER = 1; - private volatile java.lang.Object txHex_; - /** - * string txHex = 1; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } - } - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - public static final int PAYADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object payAddr_; - /** - * string payAddr = 2; - * @return The payAddr. - */ - public java.lang.String getPayAddr() { - java.lang.Object ref = payAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payAddr_ = s; - return s; - } - } - /** - * string payAddr = 2; - * @return The bytes for payAddr. - */ - public com.google.protobuf.ByteString - getPayAddrBytes() { - java.lang.Object ref = payAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - public static final int PRIVKEY_FIELD_NUMBER = 3; - private volatile java.lang.Object privkey_; - /** - * string privkey = 3; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } - } - /** - * string privkey = 3; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - public static final int EXPIRE_FIELD_NUMBER = 4; - private volatile java.lang.Object expire_; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + amount_ = 0L; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + /** + * bytes note = 3; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHex_); - } - if (!getPayAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payAddr_); - } - if (!getPrivkeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, privkey_); - } - if (!getExpireBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); - } - unknownFields.writeTo(output); - } + /** + * bytes note = 3; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHex_); - } - if (!getPayAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payAddr_); - } - if (!getPrivkeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, privkey_); - } - if (!getExpireBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * bytes note = 3; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) obj; - - if (!getTxHex() - .equals(other.getTxHex())) return false; - if (!getPayAddr() - .equals(other.getPayAddr())) return false; - if (!getPrivkey() - .equals(other.getPrivkey())) return false; - if (!getExpire() - .equals(other.getExpire())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHEX_FIELD_NUMBER; - hash = (53 * hash) + getTxHex().hashCode(); - hash = (37 * hash) + PAYADDR_FIELD_NUMBER; - hash = (53 * hash) + getPayAddr().hashCode(); - hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivkey().hashCode(); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + getExpire().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object execName_ = ""; + + /** + * string execName = 4; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string execName = 4; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string execName = 4; + * + * @param value + * The execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execName_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * payAddr 可以支持 1. 地址 2. 私钥
-     * 
- * - * Protobuf type {@code NoBalanceTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:NoBalanceTx) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHex_ = ""; - - payAddr_ = ""; - - privkey_ = ""; - - expire_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx(this); - result.txHex_ = txHex_; - result.payAddr_ = payAddr_; - result.privkey_ = privkey_; - result.expire_ = expire_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.getDefaultInstance()) return this; - if (!other.getTxHex().isEmpty()) { - txHex_ = other.txHex_; - onChanged(); - } - if (!other.getPayAddr().isEmpty()) { - payAddr_ = other.payAddr_; - onChanged(); - } - if (!other.getPrivkey().isEmpty()) { - privkey_ = other.privkey_; - onChanged(); - } - if (!other.getExpire().isEmpty()) { - expire_ = other.expire_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object txHex_ = ""; - /** - * string txHex = 1; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string txHex = 1; - * @param value The txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txHex_ = value; - onChanged(); - return this; - } - /** - * string txHex = 1; - * @return This builder for chaining. - */ - public Builder clearTxHex() { - - txHex_ = getDefaultInstance().getTxHex(); - onChanged(); - return this; - } - /** - * string txHex = 1; - * @param value The bytes for txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txHex_ = value; - onChanged(); - return this; - } - - private java.lang.Object payAddr_ = ""; - /** - * string payAddr = 2; - * @return The payAddr. - */ - public java.lang.String getPayAddr() { - java.lang.Object ref = payAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string payAddr = 2; - * @return The bytes for payAddr. - */ - public com.google.protobuf.ByteString - getPayAddrBytes() { - java.lang.Object ref = payAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string payAddr = 2; - * @param value The payAddr to set. - * @return This builder for chaining. - */ - public Builder setPayAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - payAddr_ = value; - onChanged(); - return this; - } - /** - * string payAddr = 2; - * @return This builder for chaining. - */ - public Builder clearPayAddr() { - - payAddr_ = getDefaultInstance().getPayAddr(); - onChanged(); - return this; - } - /** - * string payAddr = 2; - * @param value The bytes for payAddr to set. - * @return This builder for chaining. - */ - public Builder setPayAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - payAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object privkey_ = ""; - /** - * string privkey = 3; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string privkey = 3; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string privkey = 3; - * @param value The privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privkey_ = value; - onChanged(); - return this; - } - /** - * string privkey = 3; - * @return This builder for chaining. - */ - public Builder clearPrivkey() { - - privkey_ = getDefaultInstance().getPrivkey(); - onChanged(); - return this; - } - /** - * string privkey = 3; - * @param value The bytes for privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privkey_ = value; - onChanged(); - return this; - } - - private java.lang.Object expire_ = ""; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expire = 4; - * @param value The expire to set. - * @return This builder for chaining. - */ - public Builder setExpire( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expire_ = value; - onChanged(); - return this; - } - /** - * string expire = 4; - * @return This builder for chaining. - */ - public Builder clearExpire() { - - expire_ = getDefaultInstance().getExpire(); - onChanged(); - return this; - } - /** - * string expire = 4; - * @param value The bytes for expire to set. - * @return This builder for chaining. - */ - public Builder setExpireBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expire_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:NoBalanceTx) - } + /** + * string execName = 4; + * + * @return This builder for chaining. + */ + public Builder clearExecName() { - // @@protoc_insertion_point(class_scope:NoBalanceTx) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx(); - } + execName_ = getDefaultInstance().getExecName(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string execName = 4; + * + * @param value + * The bytes for execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execName_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoBalanceTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NoBalanceTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object to_ = ""; + + /** + * string to = 5; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string to = 5; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string to = 5; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - } + /** + * string to = 5; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - public interface TransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:Transaction) - com.google.protobuf.MessageOrBuilder { + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - /** - * bytes execer = 1; - * @return The execer. - */ - com.google.protobuf.ByteString getExecer(); + /** + * string to = 5; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - /** - * bytes payload = 2; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * .Signature signature = 3; - * @return Whether the signature field is set. - */ - boolean hasSignature(); - /** - * .Signature signature = 3; - * @return The signature. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature(); - /** - * .Signature signature = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - * int64 fee = 4; - * @return The fee. - */ - long getFee(); + // @@protoc_insertion_point(builder_scope:AssetsWithdraw) + } - /** - * int64 expire = 5; - * @return The expire. - */ - long getExpire(); + // @@protoc_insertion_point(class_scope:AssetsWithdraw) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw(); + } - /** - *
-     *随机ID,可以防止payload 相同的时候,交易重复
-     * 
- * - * int64 nonce = 6; - * @return The nonce. - */ - long getNonce(); + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - * @return The to. - */ - java.lang.String getTo(); - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsWithdraw parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsWithdraw(input, extensionRegistry); + } + }; - /** - * int32 groupCount = 8; - * @return The groupCount. - */ - int getGroupCount(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * bytes header = 9; - * @return The header. - */ - com.google.protobuf.ByteString getHeader(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * bytes next = 10; - * @return The next. - */ - com.google.protobuf.ByteString getNext(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsWithdraw getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** - * int32 chainID = 11; - * @return The chainID. - */ - int getChainID(); - } - /** - * Protobuf type {@code Transaction} - */ - public static final class Transaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Transaction) - TransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Transaction.newBuilder() to construct. - private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Transaction() { - execer_ = com.google.protobuf.ByteString.EMPTY; - payload_ = com.google.protobuf.ByteString.EMPTY; - to_ = ""; - header_ = com.google.protobuf.ByteString.EMPTY; - next_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Transaction(); - } + public interface AssetsTransferOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssetsTransfer) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Transaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - execer_ = input.readBytes(); - break; - } - case 18: { - - payload_ = input.readBytes(); - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null; - if (signature_ != null) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - fee_ = input.readInt64(); - break; - } - case 40: { - - expire_ = input.readInt64(); - break; - } - case 48: { - - nonce_ = input.readInt64(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 64: { - - groupCount_ = input.readInt32(); - break; - } - case 74: { - - header_ = input.readBytes(); - break; - } - case 82: { - - next_ = input.readBytes(); - break; - } - case 88: { - - chainID_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_descriptor; - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + java.lang.String getCointoken(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder.class); - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + com.google.protobuf.ByteString getCointokenBytes(); - public static final int EXECER_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString execer_; - /** - * bytes execer = 1; - * @return The execer. - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); - public static final int PAYLOAD_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString payload_; - /** - * bytes payload = 2; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } + /** + * bytes note = 3; + * + * @return The note. + */ + com.google.protobuf.ByteString getNote(); - public static final int SIGNATURE_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; - /** - * .Signature signature = 3; - * @return Whether the signature field is set. - */ - public boolean hasSignature() { - return signature_ != null; - } - /** - * .Signature signature = 3; - * @return The signature. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - return getSignature(); - } + /** + * string to = 4; + * + * @return The to. + */ + java.lang.String getTo(); - public static final int FEE_FIELD_NUMBER = 4; - private long fee_; - /** - * int64 fee = 4; - * @return The fee. - */ - public long getFee() { - return fee_; + /** + * string to = 4; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); } - public static final int EXPIRE_FIELD_NUMBER = 5; - private long expire_; /** - * int64 expire = 5; - * @return The expire. + * Protobuf type {@code AssetsTransfer} */ - public long getExpire() { - return expire_; - } + public static final class AssetsTransfer extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssetsTransfer) + AssetsTransferOrBuilder { + private static final long serialVersionUID = 0L; - public static final int NONCE_FIELD_NUMBER = 6; - private long nonce_; - /** - *
-     *随机ID,可以防止payload 相同的时候,交易重复
-     * 
- * - * int64 nonce = 6; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } + // Use AssetsTransfer.newBuilder() to construct. + private AssetsTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int TO_FIELD_NUMBER = 7; - private volatile java.lang.Object to_; - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - *
-     *对方地址,如果没有对方地址,可以为空
-     * 
- * - * string to = 7; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private AssetsTransfer() { + cointoken_ = ""; + note_ = com.google.protobuf.ByteString.EMPTY; + to_ = ""; + } - public static final int GROUPCOUNT_FIELD_NUMBER = 8; - private int groupCount_; - /** - * int32 groupCount = 8; - * @return The groupCount. - */ - public int getGroupCount() { - return groupCount_; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetsTransfer(); + } - public static final int HEADER_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString header_; - /** - * bytes header = 9; - * @return The header. - */ - public com.google.protobuf.ByteString getHeader() { - return header_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int NEXT_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString next_; - /** - * bytes next = 10; - * @return The next. - */ - public com.google.protobuf.ByteString getNext() { - return next_; - } + private AssetsTransfer(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cointoken_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 26: { + + note_ = input.readBytes(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int CHAINID_FIELD_NUMBER = 11; - private int chainID_; - /** - * int32 chainID = 11; - * @return The chainID. - */ - public int getChainID() { - return chainID_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + public static final int COINTOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object cointoken_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!execer_.isEmpty()) { - output.writeBytes(1, execer_); - } - if (!payload_.isEmpty()) { - output.writeBytes(2, payload_); - } - if (signature_ != null) { - output.writeMessage(3, getSignature()); - } - if (fee_ != 0L) { - output.writeInt64(4, fee_); - } - if (expire_ != 0L) { - output.writeInt64(5, expire_); - } - if (nonce_ != 0L) { - output.writeInt64(6, nonce_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, to_); - } - if (groupCount_ != 0) { - output.writeInt32(8, groupCount_); - } - if (!header_.isEmpty()) { - output.writeBytes(9, header_); - } - if (!next_.isEmpty()) { - output.writeBytes(10, next_); - } - if (chainID_ != 0) { - output.writeInt32(11, chainID_); - } - unknownFields.writeTo(output); - } + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + @java.lang.Override + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!execer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, execer_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, payload_); - } - if (signature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSignature()); - } - if (fee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, fee_); - } - if (expire_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, expire_); - } - if (nonce_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, nonce_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, to_); - } - if (groupCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, groupCount_); - } - if (!header_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, header_); - } - if (!next_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, next_); - } - if (chainID_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, chainID_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) obj; - - if (!getExecer() - .equals(other.getExecer())) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (hasSignature() != other.hasSignature()) return false; - if (hasSignature()) { - if (!getSignature() - .equals(other.getSignature())) return false; - } - if (getFee() - != other.getFee()) return false; - if (getExpire() - != other.getExpire()) return false; - if (getNonce() - != other.getNonce()) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (getGroupCount() - != other.getGroupCount()) return false; - if (!getHeader() - .equals(other.getHeader())) return false; - if (!getNext() - .equals(other.getNext())) return false; - if (getChainID() - != other.getChainID()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int NOTE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString note_; + + /** + * bytes note = 3; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } + + public static final int TO_FIELD_NUMBER = 4; + private volatile java.lang.Object to_; + + /** + * string to = 4; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECER_FIELD_NUMBER; - hash = (53 * hash) + getExecer().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - if (hasSignature()) { - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - } - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFee()); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExpire()); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNonce()); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + GROUPCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getGroupCount(); - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - hash = (37 * hash) + NEXT_FIELD_NUMBER; - hash = (53 * hash) + getNext().hashCode(); - hash = (37 * hash) + CHAINID_FIELD_NUMBER; - hash = (53 * hash) + getChainID(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string to = 4; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Transaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Transaction) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - execer_ = com.google.protobuf.ByteString.EMPTY; - - payload_ = com.google.protobuf.ByteString.EMPTY; - - if (signatureBuilder_ == null) { - signature_ = null; - } else { - signature_ = null; - signatureBuilder_ = null; - } - fee_ = 0L; - - expire_ = 0L; - - nonce_ = 0L; - - to_ = ""; - - groupCount_ = 0; - - header_ = com.google.protobuf.ByteString.EMPTY; - - next_ = com.google.protobuf.ByteString.EMPTY; - - chainID_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction(this); - result.execer_ = execer_; - result.payload_ = payload_; - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - result.fee_ = fee_; - result.expire_ = expire_; - result.nonce_ = nonce_; - result.to_ = to_; - result.groupCount_ = groupCount_; - result.header_ = header_; - result.next_ = next_; - result.chainID_ = chainID_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()) return this; - if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { - setExecer(other.getExecer()); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - if (other.hasSignature()) { - mergeSignature(other.getSignature()); - } - if (other.getFee() != 0L) { - setFee(other.getFee()); - } - if (other.getExpire() != 0L) { - setExpire(other.getExpire()); - } - if (other.getNonce() != 0L) { - setNonce(other.getNonce()); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (other.getGroupCount() != 0) { - setGroupCount(other.getGroupCount()); - } - if (other.getHeader() != com.google.protobuf.ByteString.EMPTY) { - setHeader(other.getHeader()); - } - if (other.getNext() != com.google.protobuf.ByteString.EMPTY) { - setNext(other.getNext()); - } - if (other.getChainID() != 0) { - setChainID(other.getChainID()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes execer = 1; - * @return The execer. - */ - public com.google.protobuf.ByteString getExecer() { - return execer_; - } - /** - * bytes execer = 1; - * @param value The execer to set. - * @return This builder for chaining. - */ - public Builder setExecer(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - execer_ = value; - onChanged(); - return this; - } - /** - * bytes execer = 1; - * @return This builder for chaining. - */ - public Builder clearExecer() { - - execer_ = getDefaultInstance().getExecer(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 2; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 2; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * bytes payload = 2; - * @return This builder for chaining. - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> signatureBuilder_; - /** - * .Signature signature = 3; - * @return Whether the signature field is set. - */ - public boolean hasSignature() { - return signatureBuilder_ != null || signature_ != null; - } - /** - * .Signature signature = 3; - * @return The signature. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { - if (signatureBuilder_ == null) { - return signature_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } else { - return signatureBuilder_.getMessage(); - } - } - /** - * .Signature signature = 3; - */ - public Builder setSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - onChanged(); - } else { - signatureBuilder_.setMessage(value); - } - - return this; - } - /** - * .Signature signature = 3; - */ - public Builder setSignature( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { - if (signatureBuilder_ == null) { - signature_ = builderForValue.build(); - onChanged(); - } else { - signatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Signature signature = 3; - */ - public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { - if (signatureBuilder_ == null) { - if (signature_ != null) { - signature_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); - } else { - signature_ = value; - } - onChanged(); - } else { - signatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Signature signature = 3; - */ - public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = null; - onChanged(); - } else { - signature_ = null; - signatureBuilder_ = null; - } - - return this; - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignatureBuilder() { - - onChanged(); - return getSignatureFieldBuilder().getBuilder(); - } - /** - * .Signature signature = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { - if (signatureBuilder_ != null) { - return signatureBuilder_.getMessageOrBuilder(); - } else { - return signature_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() : signature_; - } - } - /** - * .Signature signature = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder> - getSignatureFieldBuilder() { - if (signatureBuilder_ == null) { - signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder>( - getSignature(), - getParentForChildren(), - isClean()); - signature_ = null; - } - return signatureBuilder_; - } - - private long fee_ ; - /** - * int64 fee = 4; - * @return The fee. - */ - public long getFee() { - return fee_; - } - /** - * int64 fee = 4; - * @param value The fee to set. - * @return This builder for chaining. - */ - public Builder setFee(long value) { - - fee_ = value; - onChanged(); - return this; - } - /** - * int64 fee = 4; - * @return This builder for chaining. - */ - public Builder clearFee() { - - fee_ = 0L; - onChanged(); - return this; - } - - private long expire_ ; - /** - * int64 expire = 5; - * @return The expire. - */ - public long getExpire() { - return expire_; - } - /** - * int64 expire = 5; - * @param value The expire to set. - * @return This builder for chaining. - */ - public Builder setExpire(long value) { - - expire_ = value; - onChanged(); - return this; - } - /** - * int64 expire = 5; - * @return This builder for chaining. - */ - public Builder clearExpire() { - - expire_ = 0L; - onChanged(); - return this; - } - - private long nonce_ ; - /** - *
-       *随机ID,可以防止payload 相同的时候,交易重复
-       * 
- * - * int64 nonce = 6; - * @return The nonce. - */ - public long getNonce() { - return nonce_; - } - /** - *
-       *随机ID,可以防止payload 相同的时候,交易重复
-       * 
- * - * int64 nonce = 6; - * @param value The nonce to set. - * @return This builder for chaining. - */ - public Builder setNonce(long value) { - - nonce_ = value; - onChanged(); - return this; - } - /** - *
-       *随机ID,可以防止payload 相同的时候,交易重复
-       * 
- * - * int64 nonce = 6; - * @return This builder for chaining. - */ - public Builder clearNonce() { - - nonce_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - *
-       *对方地址,如果没有对方地址,可以为空
-       * 
- * - * string to = 7; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - - private int groupCount_ ; - /** - * int32 groupCount = 8; - * @return The groupCount. - */ - public int getGroupCount() { - return groupCount_; - } - /** - * int32 groupCount = 8; - * @param value The groupCount to set. - * @return This builder for chaining. - */ - public Builder setGroupCount(int value) { - - groupCount_ = value; - onChanged(); - return this; - } - /** - * int32 groupCount = 8; - * @return This builder for chaining. - */ - public Builder clearGroupCount() { - - groupCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString header_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes header = 9; - * @return The header. - */ - public com.google.protobuf.ByteString getHeader() { - return header_; - } - /** - * bytes header = 9; - * @param value The header to set. - * @return This builder for chaining. - */ - public Builder setHeader(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - header_ = value; - onChanged(); - return this; - } - /** - * bytes header = 9; - * @return This builder for chaining. - */ - public Builder clearHeader() { - - header_ = getDefaultInstance().getHeader(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString next_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes next = 10; - * @return The next. - */ - public com.google.protobuf.ByteString getNext() { - return next_; - } - /** - * bytes next = 10; - * @param value The next to set. - * @return This builder for chaining. - */ - public Builder setNext(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - next_ = value; - onChanged(); - return this; - } - /** - * bytes next = 10; - * @return This builder for chaining. - */ - public Builder clearNext() { - - next_ = getDefaultInstance().getNext(); - onChanged(); - return this; - } - - private int chainID_ ; - /** - * int32 chainID = 11; - * @return The chainID. - */ - public int getChainID() { - return chainID_; - } - /** - * int32 chainID = 11; - * @param value The chainID to set. - * @return This builder for chaining. - */ - public Builder setChainID(int value) { - - chainID_ = value; - onChanged(); - return this; - } - /** - * int32 chainID = 11; - * @return This builder for chaining. - */ - public Builder clearChainID() { - - chainID_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Transaction) - } + memoizedIsInitialized = 1; + return true; + } - // @@protoc_insertion_point(class_scope:Transaction) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCointokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cointoken_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (!note_.isEmpty()) { + output.writeBytes(3, note_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, to_); + } + unknownFields.writeTo(output); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Transaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Transaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + size = 0; + if (!getCointokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cointoken_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (!note_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, note_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, to_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) obj; + + if (!getCointoken().equals(other.getCointoken())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COINTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getCointoken().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface TransactionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Transactions) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); - /** - * repeated .Transaction txs = 1; - */ - int getTxsCount(); - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsOrBuilderList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index); - } - /** - * Protobuf type {@code Transactions} - */ - public static final class Transactions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Transactions) - TransactionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Transactions.newBuilder() to construct. - private Transactions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Transactions() { - txs_ = java.util.Collections.emptyList(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Transactions(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Transactions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int TXS_FIELD_NUMBER = 1; - private java.util.List txs_; - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(1, txs_.get(i)); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions) obj; - - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + 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 Transactions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Transactions) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions(this); - int from_bitField0_ = bitField0_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.getDefaultInstance()) return this; - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txsBuilder_; - - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Transactions) - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - // @@protoc_insertion_point(class_scope:Transactions) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions(); - } + /** + * Protobuf type {@code AssetsTransfer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssetsTransfer) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.Builder.class); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Transactions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Transactions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - } + @java.lang.Override + public Builder clear() { + super.clear(); + cointoken_ = ""; - public interface RingSignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:RingSignature) - com.google.protobuf.MessageOrBuilder { + amount_ = 0L; - /** - * repeated .RingSignatureItem items = 1; - */ - java.util.List - getItemsList(); - /** - * repeated .RingSignatureItem items = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getItems(int index); - /** - * repeated .RingSignatureItem items = 1; - */ - int getItemsCount(); - /** - * repeated .RingSignatureItem items = 1; - */ - java.util.List - getItemsOrBuilderList(); - /** - * repeated .RingSignatureItem items = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder getItemsOrBuilder( - int index); - } - /** - *
-   * 环签名类型时,签名字段存储的环签名信息
-   * 
- * - * Protobuf type {@code RingSignature} - */ - public static final class RingSignature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RingSignature) - RingSignatureOrBuilder { - private static final long serialVersionUID = 0L; - // Use RingSignature.newBuilder() to construct. - private RingSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RingSignature() { - items_ = java.util.Collections.emptyList(); - } + note_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RingSignature(); - } + to_ = ""; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RingSignature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - items_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_descriptor; - } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AssetsTransfer_descriptor; + } - public static final int ITEMS_FIELD_NUMBER = 1; - private java.util.List items_; - /** - * repeated .RingSignatureItem items = 1; - */ - public java.util.List getItemsList() { - return items_; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - return items_; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public int getItemsCount() { - return items_.size(); - } - /** - * repeated .RingSignatureItem items = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getItems(int index) { - return items_.get(index); - } - /** - * repeated .RingSignatureItem items = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer.getDefaultInstance(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer( + this); + result.cointoken_ = cointoken_; + result.amount_ = amount_; + result.note_ = note_; + result.to_ = to_; + onBuilt(); + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(1, items_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature) obj; - - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 环签名类型时,签名字段存储的环签名信息
-     * 
- * - * Protobuf type {@code RingSignature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:RingSignature) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature(this); - int from_bitField0_ = bitField0_; - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.items_ = items_; - } else { - result.items_ = itemsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.getDefaultInstance()) return this; - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000001); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder> itemsBuilder_; - - /** - * repeated .RingSignatureItem items = 1; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); - } else { - return itemsBuilder_.getMessageList(); - } - } - /** - * repeated .RingSignatureItem items = 1; - */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); - } else { - return itemsBuilder_.getCount(); - } - } - /** - * repeated .RingSignatureItem items = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); - } else { - return itemsBuilder_.getMessage(index); - } - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.set(index, value); - onChanged(); - } else { - itemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder setItems( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder addItems(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); - } else { - itemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder addItems( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder addItems( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); - } else { - itemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemsBuilder_.clear(); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); - onChanged(); - } else { - itemsBuilder_.remove(index); - } - return this; - } - /** - * repeated .RingSignatureItem items = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - * repeated .RingSignatureItem items = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .RingSignatureItem items = 1; - */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(items_); - } - } - /** - * repeated .RingSignatureItem items = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.getDefaultInstance()); - } - /** - * repeated .RingSignatureItem items = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.getDefaultInstance()); - } - /** - * repeated .RingSignatureItem items = 1; - */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RingSignature) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) other); + } else { + super.mergeFrom(other); + return this; + } + } - // @@protoc_insertion_point(class_scope:RingSignature) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature(); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer + .getDefaultInstance()) + return this; + if (!other.getCointoken().isEmpty()) { + cointoken_ = other.cointoken_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { + setNote(other.getNote()); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RingSignature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RingSignature(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object cointoken_ = ""; + + /** + * string cointoken = 1; + * + * @return The cointoken. + */ + public java.lang.String getCointoken() { + java.lang.Object ref = cointoken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cointoken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string cointoken = 1; + * + * @return The bytes for cointoken. + */ + public com.google.protobuf.ByteString getCointokenBytes() { + java.lang.Object ref = cointoken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + cointoken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } + /** + * string cointoken = 1; + * + * @param value + * The cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointoken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cointoken_ = value; + onChanged(); + return this; + } - public interface RingSignatureItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:RingSignatureItem) - com.google.protobuf.MessageOrBuilder { + /** + * string cointoken = 1; + * + * @return This builder for chaining. + */ + public Builder clearCointoken() { - /** - * repeated bytes pubkey = 1; - * @return A list containing the pubkey. - */ - java.util.List getPubkeyList(); - /** - * repeated bytes pubkey = 1; - * @return The count of pubkey. - */ - int getPubkeyCount(); - /** - * repeated bytes pubkey = 1; - * @param index The index of the element to return. - * @return The pubkey at the given index. - */ - com.google.protobuf.ByteString getPubkey(int index); + cointoken_ = getDefaultInstance().getCointoken(); + onChanged(); + return this; + } - /** - * repeated bytes signature = 2; - * @return A list containing the signature. - */ - java.util.List getSignatureList(); - /** - * repeated bytes signature = 2; - * @return The count of signature. - */ - int getSignatureCount(); - /** - * repeated bytes signature = 2; - * @param index The index of the element to return. - * @return The signature at the given index. - */ - com.google.protobuf.ByteString getSignature(int index); - } - /** - *
-   * 环签名中的一组签名数据
-   * 
- * - * Protobuf type {@code RingSignatureItem} - */ - public static final class RingSignatureItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RingSignatureItem) - RingSignatureItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use RingSignatureItem.newBuilder() to construct. - private RingSignatureItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RingSignatureItem() { - pubkey_ = java.util.Collections.emptyList(); - signature_ = java.util.Collections.emptyList(); - } + /** + * string cointoken = 1; + * + * @param value + * The bytes for cointoken to set. + * + * @return This builder for chaining. + */ + public Builder setCointokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cointoken_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RingSignatureItem(); - } + private long amount_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RingSignatureItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pubkey_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pubkey_.add(input.readBytes()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - signature_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - signature_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pubkey_ = java.util.Collections.unmodifiableList(pubkey_); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - signature_ = java.util.Collections.unmodifiableList(signature_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_descriptor; - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder.class); - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - public static final int PUBKEY_FIELD_NUMBER = 1; - private java.util.List pubkey_; - /** - * repeated bytes pubkey = 1; - * @return A list containing the pubkey. - */ - public java.util.List - getPubkeyList() { - return pubkey_; - } - /** - * repeated bytes pubkey = 1; - * @return The count of pubkey. - */ - public int getPubkeyCount() { - return pubkey_.size(); - } - /** - * repeated bytes pubkey = 1; - * @param index The index of the element to return. - * @return The pubkey at the given index. - */ - public com.google.protobuf.ByteString getPubkey(int index) { - return pubkey_.get(index); - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - public static final int SIGNATURE_FIELD_NUMBER = 2; - private java.util.List signature_; - /** - * repeated bytes signature = 2; - * @return A list containing the signature. - */ - public java.util.List - getSignatureList() { - return signature_; - } - /** - * repeated bytes signature = 2; - * @return The count of signature. - */ - public int getSignatureCount() { - return signature_.size(); - } - /** - * repeated bytes signature = 2; - * @param index The index of the element to return. - * @return The signature at the given index. - */ - public com.google.protobuf.ByteString getSignature(int index) { - return signature_.get(index); - } + amount_ = 0L; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + /** + * bytes note = 3; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pubkey_.size(); i++) { - output.writeBytes(1, pubkey_.get(i)); - } - for (int i = 0; i < signature_.size(); i++) { - output.writeBytes(2, signature_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * bytes note = 3; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < pubkey_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(pubkey_.get(i)); - } - size += dataSize; - size += 1 * getPubkeyList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < signature_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(signature_.get(i)); - } - size += dataSize; - size += 1 * getSignatureList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * bytes note = 3; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem) obj; - - if (!getPubkeyList() - .equals(other.getPubkeyList())) return false; - if (!getSignatureList() - .equals(other.getSignatureList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPubkeyCount() > 0) { - hash = (37 * hash) + PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getPubkeyList().hashCode(); - } - if (getSignatureCount() > 0) { - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignatureList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object to_ = ""; + + /** + * string to = 4; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string to = 4; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string to = 4; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 环签名中的一组签名数据
-     * 
- * - * Protobuf type {@code RingSignatureItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:RingSignatureItem) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - pubkey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - signature_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - pubkey_ = java.util.Collections.unmodifiableList(pubkey_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pubkey_ = pubkey_; - if (((bitField0_ & 0x00000002) != 0)) { - signature_ = java.util.Collections.unmodifiableList(signature_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.getDefaultInstance()) return this; - if (!other.pubkey_.isEmpty()) { - if (pubkey_.isEmpty()) { - pubkey_ = other.pubkey_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePubkeyIsMutable(); - pubkey_.addAll(other.pubkey_); - } - onChanged(); - } - if (!other.signature_.isEmpty()) { - if (signature_.isEmpty()) { - signature_ = other.signature_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSignatureIsMutable(); - signature_.addAll(other.signature_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List pubkey_ = java.util.Collections.emptyList(); - private void ensurePubkeyIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pubkey_ = new java.util.ArrayList(pubkey_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes pubkey = 1; - * @return A list containing the pubkey. - */ - public java.util.List - getPubkeyList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(pubkey_) : pubkey_; - } - /** - * repeated bytes pubkey = 1; - * @return The count of pubkey. - */ - public int getPubkeyCount() { - return pubkey_.size(); - } - /** - * repeated bytes pubkey = 1; - * @param index The index of the element to return. - * @return The pubkey at the given index. - */ - public com.google.protobuf.ByteString getPubkey(int index) { - return pubkey_.get(index); - } - /** - * repeated bytes pubkey = 1; - * @param index The index to set the value at. - * @param value The pubkey to set. - * @return This builder for chaining. - */ - public Builder setPubkey( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePubkeyIsMutable(); - pubkey_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes pubkey = 1; - * @param value The pubkey to add. - * @return This builder for chaining. - */ - public Builder addPubkey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePubkeyIsMutable(); - pubkey_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes pubkey = 1; - * @param values The pubkey to add. - * @return This builder for chaining. - */ - public Builder addAllPubkey( - java.lang.Iterable values) { - ensurePubkeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pubkey_); - onChanged(); - return this; - } - /** - * repeated bytes pubkey = 1; - * @return This builder for chaining. - */ - public Builder clearPubkey() { - pubkey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List signature_ = java.util.Collections.emptyList(); - private void ensureSignatureIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - signature_ = new java.util.ArrayList(signature_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated bytes signature = 2; - * @return A list containing the signature. - */ - public java.util.List - getSignatureList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(signature_) : signature_; - } - /** - * repeated bytes signature = 2; - * @return The count of signature. - */ - public int getSignatureCount() { - return signature_.size(); - } - /** - * repeated bytes signature = 2; - * @param index The index of the element to return. - * @return The signature at the given index. - */ - public com.google.protobuf.ByteString getSignature(int index) { - return signature_.get(index); - } - /** - * repeated bytes signature = 2; - * @param index The index to set the value at. - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignatureIsMutable(); - signature_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes signature = 2; - * @param value The signature to add. - * @return This builder for chaining. - */ - public Builder addSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignatureIsMutable(); - signature_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes signature = 2; - * @param values The signature to add. - * @return This builder for chaining. - */ - public Builder addAllSignature( - java.lang.Iterable values) { - ensureSignatureIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signature_); - onChanged(); - return this; - } - /** - * repeated bytes signature = 2; - * @return This builder for chaining. - */ - public Builder clearSignature() { - signature_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RingSignatureItem) - } + /** + * string to = 4; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - // @@protoc_insertion_point(class_scope:RingSignatureItem) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem(); - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string to = 4; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RingSignatureItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RingSignatureItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:AssetsTransfer) + } - } + // @@protoc_insertion_point(class_scope:AssetsTransfer) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer(); + } - public interface SignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:Signature) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * int32 ty = 1; - * @return The ty. - */ - int getTy(); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetsTransfer parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetsTransfer(input, extensionRegistry); + } + }; - /** - * bytes pubkey = 2; - * @return The pubkey. - */ - com.google.protobuf.ByteString getPubkey(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - *
-     *当ty为5时,格式应该用RingSignature去解析
-     * 
- * - * bytes signature = 3; - * @return The signature. - */ - com.google.protobuf.ByteString getSignature(); - } - /** - *
-   *对于一个交易组中的交易,要么全部成功,要么全部失败
-   *这个要好好设计一下
-   *最好交易构成一个链条[prevhash].独立的交易构成链条
-   *只要这个组中有一个执行是出错的,那么就执行不成功
-   *三种签名支持
-   * ty = 1 -> secp256k1
-   * ty = 2 -> ed25519
-   * ty = 3 -> sm2
-   * ty = 4 -> OnetimeED25519
-   * ty = 5 -> RingBaseonED25519
-   * 
- * - * Protobuf type {@code Signature} - */ - public static final class Signature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Signature) - SignatureOrBuilder { - private static final long serialVersionUID = 0L; - // Use Signature.newBuilder() to construct. - private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Signature() { - pubkey_ = com.google.protobuf.ByteString.EMPTY; - signature_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Signature(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetsTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Signature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - ty_ = input.readInt32(); - break; - } - case 18: { - - pubkey_ = input.readBytes(); - break; - } - case 26: { - - signature_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_descriptor; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder.class); - } + public interface AssetOrBuilder extends + // @@protoc_insertion_point(interface_extends:Asset) + com.google.protobuf.MessageOrBuilder { - public static final int TY_FIELD_NUMBER = 1; - private int ty_; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } + /** + * string exec = 1; + * + * @return The exec. + */ + java.lang.String getExec(); - public static final int PUBKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString pubkey_; - /** - * bytes pubkey = 2; - * @return The pubkey. - */ - public com.google.protobuf.ByteString getPubkey() { - return pubkey_; + /** + * string exec = 1; + * + * @return The bytes for exec. + */ + com.google.protobuf.ByteString getExecBytes(); + + /** + * string symbol = 2; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * int64 amount = 3; + * + * @return The amount. + */ + long getAmount(); } - public static final int SIGNATURE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString signature_; /** - *
-     *当ty为5时,格式应该用RingSignature去解析
-     * 
- * - * bytes signature = 3; - * @return The signature. + * Protobuf type {@code Asset} */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } + public static final class Asset extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Asset) + AssetOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use Asset.newBuilder() to construct. + private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private Asset() { + exec_ = ""; + symbol_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (ty_ != 0) { - output.writeInt32(1, ty_); - } - if (!pubkey_.isEmpty()) { - output.writeBytes(2, pubkey_); - } - if (!signature_.isEmpty()) { - output.writeBytes(3, signature_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Asset(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ty_); - } - if (!pubkey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, pubkey_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, signature_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature) obj; - - if (getTy() - != other.getTy()) return false; - if (!getPubkey() - .equals(other.getPubkey())) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private Asset(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + exec_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 24: { + + amount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - hash = (37 * hash) + PUBKEY_FIELD_NUMBER; - hash = (53 * hash) + getPubkey().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int EXEC_FIELD_NUMBER = 1; + private volatile java.lang.Object exec_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *对于一个交易组中的交易,要么全部成功,要么全部失败
-     *这个要好好设计一下
-     *最好交易构成一个链条[prevhash].独立的交易构成链条
-     *只要这个组中有一个执行是出错的,那么就执行不成功
-     *三种签名支持
-     * ty = 1 -> secp256k1
-     * ty = 2 -> ed25519
-     * ty = 3 -> sm2
-     * ty = 4 -> OnetimeED25519
-     * ty = 5 -> RingBaseonED25519
-     * 
- * - * Protobuf type {@code Signature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Signature) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - pubkey_ = com.google.protobuf.ByteString.EMPTY; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature(this); - result.ty_ = ty_; - result.pubkey_ = pubkey_; - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - if (other.getPubkey() != com.google.protobuf.ByteString.EMPTY) { - setPubkey(other.getPubkey()); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int ty_ ; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 1; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 1; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString pubkey_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes pubkey = 2; - * @return The pubkey. - */ - public com.google.protobuf.ByteString getPubkey() { - return pubkey_; - } - /** - * bytes pubkey = 2; - * @param value The pubkey to set. - * @return This builder for chaining. - */ - public Builder setPubkey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - pubkey_ = value; - onChanged(); - return this; - } - /** - * bytes pubkey = 2; - * @return This builder for chaining. - */ - public Builder clearPubkey() { - - pubkey_ = getDefaultInstance().getPubkey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *当ty为5时,格式应该用RingSignature去解析
-       * 
- * - * bytes signature = 3; - * @return The signature. - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - *
-       *当ty为5时,格式应该用RingSignature去解析
-       * 
- * - * bytes signature = 3; - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - *
-       *当ty为5时,格式应该用RingSignature去解析
-       * 
- * - * bytes signature = 3; - * @return This builder for chaining. - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Signature) - } + /** + * string exec = 1; + * + * @return The exec. + */ + @java.lang.Override + public java.lang.String getExec() { + java.lang.Object ref = exec_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exec_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:Signature) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature(); - } + /** + * string exec = 1; + * + * @return The bytes for exec. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecBytes() { + java.lang.Object ref = exec_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int SYMBOL_FIELD_NUMBER = 2; + private volatile java.lang.Object symbol_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Signature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Signature(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string symbol = 2; + * + * @return The symbol. + */ + @java.lang.Override + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int AMOUNT_FIELD_NUMBER = 3; + private long amount_; - } + /** + * int64 amount = 3; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - public interface AddrOverviewOrBuilder extends - // @@protoc_insertion_point(interface_extends:AddrOverview) - com.google.protobuf.MessageOrBuilder { + private byte memoizedIsInitialized = -1; - /** - * int64 reciver = 1; - * @return The reciver. - */ - long getReciver(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - /** - * int64 balance = 2; - * @return The balance. - */ - long getBalance(); + memoizedIsInitialized = 1; + return true; + } - /** - * int64 txCount = 3; - * @return The txCount. - */ - long getTxCount(); - } - /** - * Protobuf type {@code AddrOverview} - */ - public static final class AddrOverview extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AddrOverview) - AddrOverviewOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddrOverview.newBuilder() to construct. - private AddrOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddrOverview() { - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getExecBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, exec_); + } + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); + } + if (amount_ != 0L) { + output.writeInt64(3, amount_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AddrOverview(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddrOverview( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - reciver_ = input.readInt64(); - break; - } - case 16: { - - balance_ = input.readInt64(); - break; - } - case 24: { - - txCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_descriptor; - } + size = 0; + if (!getExecBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, exec_); + } + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, amount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset) obj; + + if (!getExec().equals(other.getExec())) + return false; + if (!getSymbol().equals(other.getSymbol())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXEC_FIELD_NUMBER; + hash = (53 * hash) + getExec().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int RECIVER_FIELD_NUMBER = 1; - private long reciver_; - /** - * int64 reciver = 1; - * @return The reciver. - */ - public long getReciver() { - return reciver_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int BALANCE_FIELD_NUMBER = 2; - private long balance_; - /** - * int64 balance = 2; - * @return The balance. - */ - public long getBalance() { - return balance_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int TXCOUNT_FIELD_NUMBER = 3; - private long txCount_; - /** - * int64 txCount = 3; - * @return The txCount. - */ - public long getTxCount() { - return txCount_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reciver_ != 0L) { - output.writeInt64(1, reciver_); - } - if (balance_ != 0L) { - output.writeInt64(2, balance_); - } - if (txCount_ != 0L) { - output.writeInt64(3, txCount_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reciver_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, reciver_); - } - if (balance_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, balance_); - } - if (txCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, txCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview) obj; - - if (getReciver() - != other.getReciver()) return false; - if (getBalance() - != other.getBalance()) return false; - if (getTxCount() - != other.getTxCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RECIVER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReciver()); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBalance()); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTxCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AddrOverview} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AddrOverview) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverviewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - reciver_ = 0L; - - balance_ = 0L; - - txCount_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview(this); - result.reciver_ = reciver_; - result.balance_ = balance_; - result.txCount_ = txCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.getDefaultInstance()) return this; - if (other.getReciver() != 0L) { - setReciver(other.getReciver()); - } - if (other.getBalance() != 0L) { - setBalance(other.getBalance()); - } - if (other.getTxCount() != 0L) { - setTxCount(other.getTxCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long reciver_ ; - /** - * int64 reciver = 1; - * @return The reciver. - */ - public long getReciver() { - return reciver_; - } - /** - * int64 reciver = 1; - * @param value The reciver to set. - * @return This builder for chaining. - */ - public Builder setReciver(long value) { - - reciver_ = value; - onChanged(); - return this; - } - /** - * int64 reciver = 1; - * @return This builder for chaining. - */ - public Builder clearReciver() { - - reciver_ = 0L; - onChanged(); - return this; - } - - private long balance_ ; - /** - * int64 balance = 2; - * @return The balance. - */ - public long getBalance() { - return balance_; - } - /** - * int64 balance = 2; - * @param value The balance to set. - * @return This builder for chaining. - */ - public Builder setBalance(long value) { - - balance_ = value; - onChanged(); - return this; - } - /** - * int64 balance = 2; - * @return This builder for chaining. - */ - public Builder clearBalance() { - - balance_ = 0L; - onChanged(); - return this; - } - - private long txCount_ ; - /** - * int64 txCount = 3; - * @return The txCount. - */ - public long getTxCount() { - return txCount_; - } - /** - * int64 txCount = 3; - * @param value The txCount to set. - * @return This builder for chaining. - */ - public Builder setTxCount(long value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * int64 txCount = 3; - * @return This builder for chaining. - */ - public Builder clearTxCount() { - - txCount_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AddrOverview) - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:AddrOverview) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddrOverview parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddrOverview(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - } + /** + * Protobuf type {@code Asset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Asset) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_descriptor; + } - public interface ReqAddrOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqAddr) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder.class); + } - /** - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - *
-     *表示取所有/from/to/其他的hash列表
-     * 
- * - * int32 flag = 2; - * @return The flag. - */ - int getFlag(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * int32 count = 3; - * @return The count. - */ - int getCount(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * int32 direction = 4; - * @return The direction. - */ - int getDirection(); + @java.lang.Override + public Builder clear() { + super.clear(); + exec_ = ""; - /** - * int64 height = 5; - * @return The height. - */ - long getHeight(); + symbol_ = ""; - /** - * int64 index = 6; - * @return The index. - */ - long getIndex(); - } - /** - * Protobuf type {@code ReqAddr} - */ - public static final class ReqAddr extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqAddr) - ReqAddrOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqAddr.newBuilder() to construct. - private ReqAddr(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqAddr() { - addr_ = ""; - } + amount_ = 0L; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqAddr(); - } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqAddr( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 16: { - - flag_ = input.readInt32(); - break; - } - case 24: { - - count_ = input.readInt32(); - break; - } - case 32: { - - direction_ = input.readInt32(); - break; - } - case 40: { - - height_ = input.readInt64(); - break; - } - case 48: { - - index_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_descriptor; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Asset_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance(); + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int FLAG_FIELD_NUMBER = 2; - private int flag_; - /** - *
-     *表示取所有/from/to/其他的hash列表
-     * 
- * - * int32 flag = 2; - * @return The flag. - */ - public int getFlag() { - return flag_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset( + this); + result.exec_ = exec_; + result.symbol_ = symbol_; + result.amount_ = amount_; + onBuilt(); + return result; + } - public static final int COUNT_FIELD_NUMBER = 3; - private int count_; - /** - * int32 count = 3; - * @return The count. - */ - public int getCount() { - return count_; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int DIRECTION_FIELD_NUMBER = 4; - private int direction_; - /** - * int32 direction = 4; - * @return The direction. - */ - public int getDirection() { - return direction_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int HEIGHT_FIELD_NUMBER = 5; - private long height_; - /** - * int64 height = 5; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int INDEX_FIELD_NUMBER = 6; - private long index_; - /** - * int64 index = 6; - * @return The index. - */ - public long getIndex() { - return index_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (flag_ != 0) { - output.writeInt32(2, flag_); - } - if (count_ != 0) { - output.writeInt32(3, count_); - } - if (direction_ != 0) { - output.writeInt32(4, direction_); - } - if (height_ != 0L) { - output.writeInt64(5, height_); - } - if (index_ != 0L) { - output.writeInt64(6, index_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (flag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, flag_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, count_); - } - if (direction_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, direction_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, height_); - } - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, index_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()) + return this; + if (!other.getExec().isEmpty()) { + exec_ = other.exec_; + onChanged(); + } + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (getFlag() - != other.getFlag()) return false; - if (getCount() - != other.getCount()) return false; - if (getDirection() - != other.getDirection()) return false; - if (getHeight() - != other.getHeight()) return false; - if (getIndex() - != other.getIndex()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + FLAG_FIELD_NUMBER; - hash = (53 * hash) + getFlag(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + getDirection(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private java.lang.Object exec_ = ""; + + /** + * string exec = 1; + * + * @return The exec. + */ + public java.lang.String getExec() { + java.lang.Object ref = exec_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exec_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string exec = 1; + * + * @return The bytes for exec. + */ + public com.google.protobuf.ByteString getExecBytes() { + java.lang.Object ref = exec_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + exec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqAddr} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqAddr) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - flag_ = 0; - - count_ = 0; - - direction_ = 0; - - height_ = 0L; - - index_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr(this); - result.addr_ = addr_; - result.flag_ = flag_; - result.count_ = count_; - result.direction_ = direction_; - result.height_ = height_; - result.index_ = index_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (other.getFlag() != 0) { - setFlag(other.getFlag()); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.getDirection() != 0) { - setDirection(other.getDirection()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private int flag_ ; - /** - *
-       *表示取所有/from/to/其他的hash列表
-       * 
- * - * int32 flag = 2; - * @return The flag. - */ - public int getFlag() { - return flag_; - } - /** - *
-       *表示取所有/from/to/其他的hash列表
-       * 
- * - * int32 flag = 2; - * @param value The flag to set. - * @return This builder for chaining. - */ - public Builder setFlag(int value) { - - flag_ = value; - onChanged(); - return this; - } - /** - *
-       *表示取所有/from/to/其他的hash列表
-       * 
- * - * int32 flag = 2; - * @return This builder for chaining. - */ - public Builder clearFlag() { - - flag_ = 0; - onChanged(); - return this; - } - - private int count_ ; - /** - * int32 count = 3; - * @return The count. - */ - public int getCount() { - return count_; - } - /** - * int32 count = 3; - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * int32 count = 3; - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private int direction_ ; - /** - * int32 direction = 4; - * @return The direction. - */ - public int getDirection() { - return direction_; - } - /** - * int32 direction = 4; - * @param value The direction to set. - * @return This builder for chaining. - */ - public Builder setDirection(int value) { - - direction_ = value; - onChanged(); - return this; - } - /** - * int32 direction = 4; - * @return This builder for chaining. - */ - public Builder clearDirection() { - - direction_ = 0; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 5; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 5; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 5; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long index_ ; - /** - * int64 index = 6; - * @return The index. - */ - public long getIndex() { - return index_; - } - /** - * int64 index = 6; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int64 index = 6; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqAddr) - } + /** + * string exec = 1; + * + * @param value + * The exec to set. + * + * @return This builder for chaining. + */ + public Builder setExec(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + exec_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReqAddr) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr(); - } + /** + * string exec = 1; + * + * @return This builder for chaining. + */ + public Builder clearExec() { - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr getDefaultInstance() { - return DEFAULT_INSTANCE; - } + exec_ = getDefaultInstance().getExec(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqAddr parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqAddr(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string exec = 1; + * + * @param value + * The bytes for exec to set. + * + * @return This builder for chaining. + */ + public Builder setExecBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + exec_ = value; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 2; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } + /** + * string symbol = 2; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } - public interface HexTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:HexTx) - com.google.protobuf.MessageOrBuilder { + /** + * string symbol = 2; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { - /** - * string tx = 1; - * @return The tx. - */ - java.lang.String getTx(); - /** - * string tx = 1; - * @return The bytes for tx. - */ - com.google.protobuf.ByteString - getTxBytes(); - } - /** - * Protobuf type {@code HexTx} - */ - public static final class HexTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HexTx) - HexTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use HexTx.newBuilder() to construct. - private HexTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HexTx() { - tx_ = ""; - } + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HexTx(); - } + /** + * string symbol = 2; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HexTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - tx_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_descriptor; - } + private long amount_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.Builder.class); - } + /** + * int64 amount = 3; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - public static final int TX_FIELD_NUMBER = 1; - private volatile java.lang.Object tx_; - /** - * string tx = 1; - * @return The tx. - */ - public java.lang.String getTx() { - java.lang.Object ref = tx_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tx_ = s; - return s; - } - } - /** - * string tx = 1; - * @return The bytes for tx. - */ - public com.google.protobuf.ByteString - getTxBytes() { - java.lang.Object ref = tx_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tx_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * int64 amount = 3; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * int64 amount = 3; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - memoizedIsInitialized = 1; - return true; - } + amount_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tx_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tx_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx) obj; - - if (!getTx() - .equals(other.getTx())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:Asset) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:Asset) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Asset(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateTx) + com.google.protobuf.MessageOrBuilder { + + /** + * string to = 1; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + * string to = 1; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + + /** + * int64 amount = 2; + * + * @return The amount. + */ + long getAmount(); + + /** + * int64 fee = 3; + * + * @return The fee. + */ + long getFee(); + + /** + * bytes note = 4; + * + * @return The note. + */ + com.google.protobuf.ByteString getNote(); + + /** + * bool isWithdraw = 5; + * + * @return The isWithdraw. + */ + boolean getIsWithdraw(); + + /** + * bool isToken = 6; + * + * @return The isToken. + */ + boolean getIsToken(); + + /** + * string tokenSymbol = 7; + * + * @return The tokenSymbol. + */ + java.lang.String getTokenSymbol(); + + /** + * string tokenSymbol = 7; + * + * @return The bytes for tokenSymbol. + */ + com.google.protobuf.ByteString getTokenSymbolBytes(); + + /** + * string execName = 8; + * + * @return The execName. + */ + java.lang.String getExecName(); + + /** + * string execName = 8; + * + * @return The bytes for execName. + */ + com.google.protobuf.ByteString getExecNameBytes(); + + /** + * string execer = 9; + * + * @return The execer. + */ + java.lang.String getExecer(); + + /** + * string execer = 9; + * + * @return The bytes for execer. + */ + com.google.protobuf.ByteString getExecerBytes(); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** - * Protobuf type {@code HexTx} + * Protobuf type {@code CreateTx} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:HexTx) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tx_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx(this); - result.tx_ = tx_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.getDefaultInstance()) return this; - if (!other.getTx().isEmpty()) { - tx_ = other.tx_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object tx_ = ""; - /** - * string tx = 1; - * @return The tx. - */ - public java.lang.String getTx() { - java.lang.Object ref = tx_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tx_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tx = 1; - * @return The bytes for tx. - */ - public com.google.protobuf.ByteString - getTxBytes() { - java.lang.Object ref = tx_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tx_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx = 1; - * @param value The tx to set. - * @return This builder for chaining. - */ - public Builder setTx( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tx_ = value; - onChanged(); - return this; - } - /** - * string tx = 1; - * @return This builder for chaining. - */ - public Builder clearTx() { - - tx_ = getDefaultInstance().getTx(); - onChanged(); - return this; - } - /** - * string tx = 1; - * @param value The bytes for tx to set. - * @return This builder for chaining. - */ - public Builder setTxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tx_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HexTx) - } + public static final class CreateTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateTx) + CreateTxOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:HexTx) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx(); - } + // Use CreateTx.newBuilder() to construct. + private CreateTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private CreateTx() { + to_ = ""; + note_ = com.google.protobuf.ByteString.EMPTY; + tokenSymbol_ = ""; + execName_ = ""; + execer_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HexTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HexTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTx(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private CreateTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 16: { + + amount_ = input.readInt64(); + break; + } + case 24: { + + fee_ = input.readInt64(); + break; + } + case 34: { + + note_ = input.readBytes(); + break; + } + case 40: { + + isWithdraw_ = input.readBool(); + break; + } + case 48: { + + isToken_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + tokenSymbol_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + execName_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + execer_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_descriptor; + } - public interface ReplyTxInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyTxInfo) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.Builder.class); + } - /** - * bytes hash = 1; - * @return The hash. - */ - com.google.protobuf.ByteString getHash(); + public static final int TO_FIELD_NUMBER = 1; + private volatile java.lang.Object to_; - /** - * int64 height = 2; - * @return The height. - */ - long getHeight(); + /** + * string to = 1; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } - /** - * int64 index = 3; - * @return The index. - */ - long getIndex(); + /** + * string to = 1; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * repeated .Asset assets = 4; - */ - java.util.List - getAssetsList(); - /** - * repeated .Asset assets = 4; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index); - /** - * repeated .Asset assets = 4; - */ - int getAssetsCount(); - /** - * repeated .Asset assets = 4; - */ - java.util.List - getAssetsOrBuilderList(); - /** - * repeated .Asset assets = 4; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( - int index); - } - /** - * Protobuf type {@code ReplyTxInfo} - */ - public static final class ReplyTxInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyTxInfo) - ReplyTxInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyTxInfo.newBuilder() to construct. - private ReplyTxInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyTxInfo() { - hash_ = com.google.protobuf.ByteString.EMPTY; - assets_ = java.util.Collections.emptyList(); - } + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int FEE_FIELD_NUMBER = 3; + private long fee_; + + /** + * int64 fee = 3; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int NOTE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString note_; + + /** + * bytes note = 4; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } + + public static final int ISWITHDRAW_FIELD_NUMBER = 5; + private boolean isWithdraw_; + + /** + * bool isWithdraw = 5; + * + * @return The isWithdraw. + */ + @java.lang.Override + public boolean getIsWithdraw() { + return isWithdraw_; + } + + public static final int ISTOKEN_FIELD_NUMBER = 6; + private boolean isToken_; + + /** + * bool isToken = 6; + * + * @return The isToken. + */ + @java.lang.Override + public boolean getIsToken() { + return isToken_; + } + + public static final int TOKENSYMBOL_FIELD_NUMBER = 7; + private volatile java.lang.Object tokenSymbol_; + + /** + * string tokenSymbol = 7; + * + * @return The tokenSymbol. + */ + @java.lang.Override + public java.lang.String getTokenSymbol() { + java.lang.Object ref = tokenSymbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenSymbol_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyTxInfo(); - } + /** + * string tokenSymbol = 7; + * + * @return The bytes for tokenSymbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenSymbolBytes() { + java.lang.Object ref = tokenSymbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenSymbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyTxInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - hash_ = input.readBytes(); - break; - } - case 16: { - - height_ = input.readInt64(); - break; - } - case 24: { - - index_ = input.readInt64(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_descriptor; - } + public static final int EXECNAME_FIELD_NUMBER = 8; + private volatile java.lang.Object execName_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder.class); - } + /** + * string execName = 8; + * + * @return The execName. + */ + @java.lang.Override + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } + } - public static final int HASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + /** + * string execName = 8; + * + * @return The bytes for execName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int HEIGHT_FIELD_NUMBER = 2; - private long height_; - /** - * int64 height = 2; - * @return The height. - */ - public long getHeight() { - return height_; - } + public static final int EXECER_FIELD_NUMBER = 9; + private volatile java.lang.Object execer_; - public static final int INDEX_FIELD_NUMBER = 3; - private long index_; - /** - * int64 index = 3; - * @return The index. - */ - public long getIndex() { - return index_; - } + /** + * string execer = 9; + * + * @return The execer. + */ + @java.lang.Override + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } + } - public static final int ASSETS_FIELD_NUMBER = 4; - private java.util.List assets_; - /** - * repeated .Asset assets = 4; - */ - public java.util.List getAssetsList() { - return assets_; - } - /** - * repeated .Asset assets = 4; - */ - public java.util.List - getAssetsOrBuilderList() { - return assets_; - } - /** - * repeated .Asset assets = 4; - */ - public int getAssetsCount() { - return assets_.size(); - } - /** - * repeated .Asset assets = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { - return assets_.get(index); - } - /** - * repeated .Asset assets = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( - int index) { - return assets_.get(index); - } + /** + * string execer = 9; + * + * @return The bytes for execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!hash_.isEmpty()) { - output.writeBytes(1, hash_); - } - if (height_ != 0L) { - output.writeInt64(2, height_); - } - if (index_ != 0L) { - output.writeInt64(3, index_); - } - for (int i = 0; i < assets_.size(); i++) { - output.writeMessage(4, assets_.get(i)); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, hash_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, height_); - } - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, index_); - } - for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, assets_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, to_); + } + if (amount_ != 0L) { + output.writeInt64(2, amount_); + } + if (fee_ != 0L) { + output.writeInt64(3, fee_); + } + if (!note_.isEmpty()) { + output.writeBytes(4, note_); + } + if (isWithdraw_ != false) { + output.writeBool(5, isWithdraw_); + } + if (isToken_ != false) { + output.writeBool(6, isToken_); + } + if (!getTokenSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tokenSymbol_); + } + if (!getExecNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, execName_); + } + if (!getExecerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, execer_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getAssetsList() - .equals(other.getAssetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - if (getAssetsCount() > 0) { - hash = (37 * hash) + ASSETS_FIELD_NUMBER; - hash = (53 * hash) + getAssetsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, to_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, fee_); + } + if (!note_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, note_); + } + if (isWithdraw_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isWithdraw_); + } + if (isToken_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isToken_); + } + if (!getTokenSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tokenSymbol_); + } + if (!getExecNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, execName_); + } + if (!getExecerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, execer_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) obj; + + if (!getTo().equals(other.getTo())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (getFee() != other.getFee()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (getIsWithdraw() != other.getIsWithdraw()) + return false; + if (getIsToken() != other.getIsToken()) + return false; + if (!getTokenSymbol().equals(other.getTokenSymbol())) + return false; + if (!getExecName().equals(other.getExecName())) + return false; + if (!getExecer().equals(other.getExecer())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFee()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + ISWITHDRAW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsWithdraw()); + hash = (37 * hash) + ISTOKEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsToken()); + hash = (37 * hash) + TOKENSYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getTokenSymbol().hashCode(); + hash = (37 * hash) + EXECNAME_FIELD_NUMBER; + hash = (53 * hash) + getExecName().hashCode(); + hash = (37 * hash) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyTxInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyTxInfo) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hash_ = com.google.protobuf.ByteString.EMPTY; - - height_ = 0L; - - index_ = 0L; - - if (assetsBuilder_ == null) { - assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - assetsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo(this); - int from_bitField0_ = bitField0_; - result.hash_ = hash_; - result.height_ = height_; - result.index_ = index_; - if (assetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.assets_ = assets_; - } else { - result.assets_ = assetsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance()) return this; - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (assetsBuilder_ == null) { - if (!other.assets_.isEmpty()) { - if (assets_.isEmpty()) { - assets_ = other.assets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAssetsIsMutable(); - assets_.addAll(other.assets_); - } - onChanged(); - } - } else { - if (!other.assets_.isEmpty()) { - if (assetsBuilder_.isEmpty()) { - assetsBuilder_.dispose(); - assetsBuilder_ = null; - assets_ = other.assets_; - bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssetsFieldBuilder() : null; - } else { - assetsBuilder_.addAllMessages(other.assets_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 1; - * @return The hash. - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 1; - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 1; - * @return This builder for chaining. - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 2; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 2; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 2; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long index_ ; - /** - * int64 index = 3; - * @return The index. - */ - public long getIndex() { - return index_; - } - /** - * int64 index = 3; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int64 index = 3; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private java.util.List assets_ = - java.util.Collections.emptyList(); - private void ensureAssetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(assets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder> assetsBuilder_; - - /** - * repeated .Asset assets = 4; - */ - public java.util.List getAssetsList() { - if (assetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(assets_); - } else { - return assetsBuilder_.getMessageList(); - } - } - /** - * repeated .Asset assets = 4; - */ - public int getAssetsCount() { - if (assetsBuilder_ == null) { - return assets_.size(); - } else { - return assetsBuilder_.getCount(); - } - } - /** - * repeated .Asset assets = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { - if (assetsBuilder_ == null) { - return assets_.get(index); - } else { - return assetsBuilder_.getMessage(index); - } - } - /** - * repeated .Asset assets = 4; - */ - public Builder setAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.set(index, value); - onChanged(); - } else { - assetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder setAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.set(index, builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder addAssets(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.add(value); - onChanged(); - } else { - assetsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder addAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.add(index, value); - onChanged(); - } else { - assetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder addAssets( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder addAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(index, builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder addAllAssets( - java.lang.Iterable values) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); - onChanged(); - } else { - assetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder clearAssets() { - if (assetsBuilder_ == null) { - assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - assetsBuilder_.clear(); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public Builder removeAssets(int index) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.remove(index); - onChanged(); - } else { - assetsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Asset assets = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder getAssetsBuilder( - int index) { - return getAssetsFieldBuilder().getBuilder(index); - } - /** - * repeated .Asset assets = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( - int index) { - if (assetsBuilder_ == null) { - return assets_.get(index); } else { - return assetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Asset assets = 4; - */ - public java.util.List - getAssetsOrBuilderList() { - if (assetsBuilder_ != null) { - return assetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(assets_); - } - } - /** - * repeated .Asset assets = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); - } - /** - * repeated .Asset assets = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); - } - /** - * repeated .Asset assets = 4; - */ - public java.util.List - getAssetsBuilderList() { - return getAssetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder> - getAssetsFieldBuilder() { - if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - assets_ = null; - } - return assetsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyTxInfo) - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:ReplyTxInfo) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyTxInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyTxInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public interface ReqTxListOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqTxList) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * int64 count = 1; - * @return The count. - */ - long getCount(); - } - /** - * Protobuf type {@code ReqTxList} - */ - public static final class ReqTxList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqTxList) - ReqTxListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqTxList.newBuilder() to construct. - private ReqTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqTxList() { - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqTxList(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqTxList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - count_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.Builder.class); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int COUNT_FIELD_NUMBER = 1; - private long count_; - /** - * int64 count = 1; - * @return The count. - */ - public long getCount() { - return count_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (count_ != 0L) { - output.writeInt64(1, count_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * Protobuf type {@code CreateTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateTx) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList) obj; - - if (getCount() - != other.getCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqTxList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqTxList) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - count_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList(this); - result.count_ = count_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.getDefaultInstance()) return this; - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long count_ ; - /** - * int64 count = 1; - * @return The count. - */ - public long getCount() { - return count_; - } - /** - * int64 count = 1; - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(long value) { - - count_ = value; - onChanged(); - return this; - } - /** - * int64 count = 1; - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqTxList) - } + @java.lang.Override + public Builder clear() { + super.clear(); + to_ = ""; - // @@protoc_insertion_point(class_scope:ReqTxList) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList(); - } + amount_ = 0L; - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + fee_ = 0L; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqTxList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqTxList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + note_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + isWithdraw_ = false; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + isToken_ = false; - } + tokenSymbol_ = ""; - public interface ReplyTxListOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyTxList) - com.google.protobuf.MessageOrBuilder { + execName_ = ""; - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); - /** - * repeated .Transaction txs = 1; - */ - int getTxsCount(); - /** - * repeated .Transaction txs = 1; - */ - java.util.List - getTxsOrBuilderList(); - /** - * repeated .Transaction txs = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index); - } - /** - * Protobuf type {@code ReplyTxList} - */ - public static final class ReplyTxList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyTxList) - ReplyTxListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyTxList.newBuilder() to construct. - private ReplyTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyTxList() { - txs_ = java.util.Collections.emptyList(); - } + execer_ = ""; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyTxList(); - } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyTxList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_descriptor; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTx_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.getDefaultInstance(); + } - public static final int TXS_FIELD_NUMBER = 1; - private java.util.List txs_; - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx( + this); + result.to_ = to_; + result.amount_ = amount_; + result.fee_ = fee_; + result.note_ = note_; + result.isWithdraw_ = isWithdraw_; + result.isToken_ = isToken_; + result.tokenSymbol_ = tokenSymbol_; + result.execName_ = execName_; + result.execer_ = execer_; + onBuilt(); + return result; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(1, txs_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList) obj; - - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyTxList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyTxList) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList(this); - int from_bitField0_ = bitField0_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.getDefaultInstance()) return this; - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txsBuilder_; - - /** - * repeated .Transaction txs = 1; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); - } - /** - * repeated .Transaction txs = 1; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyTxList) - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.getDefaultInstance()) + return this; + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { + setNote(other.getNote()); + } + if (other.getIsWithdraw() != false) { + setIsWithdraw(other.getIsWithdraw()); + } + if (other.getIsToken() != false) { + setIsToken(other.getIsToken()); + } + if (!other.getTokenSymbol().isEmpty()) { + tokenSymbol_ = other.tokenSymbol_; + onChanged(); + } + if (!other.getExecName().isEmpty()) { + execName_ = other.execName_; + onChanged(); + } + if (!other.getExecer().isEmpty()) { + execer_ = other.execer_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReplyTxList) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyTxList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyTxList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object to_ = ""; + + /** + * string to = 1; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string to = 1; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string to = 1; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - } + /** + * string to = 1; + * + * @return This builder for chaining. + */ + public Builder clearTo() { - public interface ReqGetMempoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqGetMempool) - com.google.protobuf.MessageOrBuilder { + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - /** - * bool isAll = 1; - * @return The isAll. - */ - boolean getIsAll(); - } - /** - * Protobuf type {@code ReqGetMempool} - */ - public static final class ReqGetMempool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqGetMempool) - ReqGetMempoolOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqGetMempool.newBuilder() to construct. - private ReqGetMempool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqGetMempool() { - } + /** + * string to = 1; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqGetMempool(); - } + private long amount_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqGetMempool( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isAll_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_descriptor; - } + /** + * int64 amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.Builder.class); - } + /** + * int64 amount = 2; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } - public static final int ISALL_FIELD_NUMBER = 1; - private boolean isAll_; - /** - * bool isAll = 1; - * @return The isAll. - */ - public boolean getIsAll() { - return isAll_; - } + /** + * int64 amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + amount_ = 0L; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private long fee_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isAll_ != false) { - output.writeBool(1, isAll_); - } - unknownFields.writeTo(output); - } + /** + * int64 fee = 3; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isAll_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isAll_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int64 fee = 3; + * + * @param value + * The fee to set. + * + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) obj; - - if (getIsAll() - != other.getIsAll()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int64 fee = 3; + * + * @return This builder for chaining. + */ + public Builder clearFee() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAll()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + fee_ = 0L; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * bytes note = 4; + * + * @return The note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNote() { + return note_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqGetMempool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqGetMempool) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isAll_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool(this); - result.isAll_ = isAll_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.getDefaultInstance()) return this; - if (other.getIsAll() != false) { - setIsAll(other.getIsAll()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isAll_ ; - /** - * bool isAll = 1; - * @return The isAll. - */ - public boolean getIsAll() { - return isAll_; - } - /** - * bool isAll = 1; - * @param value The isAll to set. - * @return This builder for chaining. - */ - public Builder setIsAll(boolean value) { - - isAll_ = value; - onChanged(); - return this; - } - /** - * bool isAll = 1; - * @return This builder for chaining. - */ - public Builder clearIsAll() { - - isAll_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqGetMempool) - } + /** + * bytes note = 4; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReqGetMempool) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool(); - } + /** + * bytes note = 4; + * + * @return This builder for chaining. + */ + public Builder clearNote() { - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool getDefaultInstance() { - return DEFAULT_INSTANCE; - } + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqGetMempool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqGetMempool(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private boolean isWithdraw_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * bool isWithdraw = 5; + * + * @return The isWithdraw. + */ + @java.lang.Override + public boolean getIsWithdraw() { + return isWithdraw_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bool isWithdraw = 5; + * + * @param value + * The isWithdraw to set. + * + * @return This builder for chaining. + */ + public Builder setIsWithdraw(boolean value) { + + isWithdraw_ = value; + onChanged(); + return this; + } - } + /** + * bool isWithdraw = 5; + * + * @return This builder for chaining. + */ + public Builder clearIsWithdraw() { - public interface ReqProperFeeOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqProperFee) - com.google.protobuf.MessageOrBuilder { + isWithdraw_ = false; + onChanged(); + return this; + } - /** - * int32 txCount = 1; - * @return The txCount. - */ - int getTxCount(); + private boolean isToken_; - /** - * int32 txSize = 2; - * @return The txSize. - */ - int getTxSize(); - } - /** - * Protobuf type {@code ReqProperFee} - */ - public static final class ReqProperFee extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqProperFee) - ReqProperFeeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqProperFee.newBuilder() to construct. - private ReqProperFee(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqProperFee() { - } + /** + * bool isToken = 6; + * + * @return The isToken. + */ + @java.lang.Override + public boolean getIsToken() { + return isToken_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqProperFee(); - } + /** + * bool isToken = 6; + * + * @param value + * The isToken to set. + * + * @return This builder for chaining. + */ + public Builder setIsToken(boolean value) { + + isToken_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqProperFee( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - txCount_ = input.readInt32(); - break; - } - case 16: { - - txSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_descriptor; - } + /** + * bool isToken = 6; + * + * @return This builder for chaining. + */ + public Builder clearIsToken() { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.Builder.class); - } + isToken_ = false; + onChanged(); + return this; + } - public static final int TXCOUNT_FIELD_NUMBER = 1; - private int txCount_; - /** - * int32 txCount = 1; - * @return The txCount. - */ - public int getTxCount() { - return txCount_; - } + private java.lang.Object tokenSymbol_ = ""; + + /** + * string tokenSymbol = 7; + * + * @return The tokenSymbol. + */ + public java.lang.String getTokenSymbol() { + java.lang.Object ref = tokenSymbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenSymbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int TXSIZE_FIELD_NUMBER = 2; - private int txSize_; - /** - * int32 txSize = 2; - * @return The txSize. - */ - public int getTxSize() { - return txSize_; - } + /** + * string tokenSymbol = 7; + * + * @return The bytes for tokenSymbol. + */ + public com.google.protobuf.ByteString getTokenSymbolBytes() { + java.lang.Object ref = tokenSymbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tokenSymbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string tokenSymbol = 7; + * + * @param value + * The tokenSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setTokenSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tokenSymbol_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string tokenSymbol = 7; + * + * @return This builder for chaining. + */ + public Builder clearTokenSymbol() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txCount_ != 0) { - output.writeInt32(1, txCount_); - } - if (txSize_ != 0) { - output.writeInt32(2, txSize_); - } - unknownFields.writeTo(output); - } + tokenSymbol_ = getDefaultInstance().getTokenSymbol(); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, txCount_); - } - if (txSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, txSize_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string tokenSymbol = 7; + * + * @param value + * The bytes for tokenSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setTokenSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tokenSymbol_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) obj; - - if (getTxCount() - != other.getTxCount()) return false; - if (getTxSize() - != other.getTxSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private java.lang.Object execName_ = ""; + + /** + * string execName = 8; + * + * @return The execName. + */ + public java.lang.String getExecName() { + java.lang.Object ref = execName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getTxCount(); - hash = (37 * hash) + TXSIZE_FIELD_NUMBER; - hash = (53 * hash) + getTxSize(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string execName = 8; + * + * @return The bytes for execName. + */ + public com.google.protobuf.ByteString getExecNameBytes() { + java.lang.Object ref = execName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string execName = 8; + * + * @param value + * The execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execName_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string execName = 8; + * + * @return This builder for chaining. + */ + public Builder clearExecName() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqProperFee} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqProperFee) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFeeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txCount_ = 0; - - txSize_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee(this); - result.txCount_ = txCount_; - result.txSize_ = txSize_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.getDefaultInstance()) return this; - if (other.getTxCount() != 0) { - setTxCount(other.getTxCount()); - } - if (other.getTxSize() != 0) { - setTxSize(other.getTxSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int txCount_ ; - /** - * int32 txCount = 1; - * @return The txCount. - */ - public int getTxCount() { - return txCount_; - } - /** - * int32 txCount = 1; - * @param value The txCount to set. - * @return This builder for chaining. - */ - public Builder setTxCount(int value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * int32 txCount = 1; - * @return This builder for chaining. - */ - public Builder clearTxCount() { - - txCount_ = 0; - onChanged(); - return this; - } - - private int txSize_ ; - /** - * int32 txSize = 2; - * @return The txSize. - */ - public int getTxSize() { - return txSize_; - } - /** - * int32 txSize = 2; - * @param value The txSize to set. - * @return This builder for chaining. - */ - public Builder setTxSize(int value) { - - txSize_ = value; - onChanged(); - return this; - } - /** - * int32 txSize = 2; - * @return This builder for chaining. - */ - public Builder clearTxSize() { - - txSize_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqProperFee) - } + execName_ = getDefaultInstance().getExecName(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReqProperFee) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee(); - } + /** + * string execName = 8; + * + * @param value + * The bytes for execName to set. + * + * @return This builder for chaining. + */ + public Builder setExecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execName_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.lang.Object execer_ = ""; + + /** + * string execer = 9; + * + * @return The execer. + */ + public java.lang.String getExecer() { + java.lang.Object ref = execer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqProperFee parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqProperFee(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string execer = 9; + * + * @return The bytes for execer. + */ + public com.google.protobuf.ByteString getExecerBytes() { + java.lang.Object ref = execer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + execer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string execer = 9; + * + * @param value + * The execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string execer = 9; + * + * @return This builder for chaining. + */ + public Builder clearExecer() { - } + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } - public interface ReplyProperFeeOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyProperFee) - com.google.protobuf.MessageOrBuilder { + /** + * string execer = 9; + * + * @param value + * The bytes for execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execer_ = value; + onChanged(); + return this; + } - /** - * int64 properFee = 1; - * @return The properFee. - */ - long getProperFee(); - } - /** - * Protobuf type {@code ReplyProperFee} - */ - public static final class ReplyProperFee extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyProperFee) - ReplyProperFeeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyProperFee.newBuilder() to construct. - private ReplyProperFee(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyProperFee() { - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyProperFee(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyProperFee( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - properFee_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_descriptor; - } + // @@protoc_insertion_point(builder_scope:CreateTx) + } + + // @@protoc_insertion_point(class_scope:CreateTx) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.Builder.class); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTx(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReWriteRawTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReWriteRawTx) + com.google.protobuf.MessageOrBuilder { + + /** + * string tx = 1; + * + * @return The tx. + */ + java.lang.String getTx(); + + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + com.google.protobuf.ByteString getTxBytes(); + + /** + *
+         * bytes execer = 2;
+         * 
+ * + * string to = 3; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + *
+         * bytes execer = 2;
+         * 
+ * + * string to = 3; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + + /** + * string expire = 4; + * + * @return The expire. + */ + java.lang.String getExpire(); + + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + com.google.protobuf.ByteString getExpireBytes(); + + /** + * int64 fee = 5; + * + * @return The fee. + */ + long getFee(); + + /** + * int32 index = 6; + * + * @return The index. + */ + int getIndex(); } - public static final int PROPERFEE_FIELD_NUMBER = 1; - private long properFee_; /** - * int64 properFee = 1; - * @return The properFee. + * Protobuf type {@code ReWriteRawTx} */ - public long getProperFee() { - return properFee_; - } + public static final class ReWriteRawTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReWriteRawTx) + ReWriteRawTxOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use ReWriteRawTx.newBuilder() to construct. + private ReWriteRawTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private ReWriteRawTx() { + tx_ = ""; + to_ = ""; + expire_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (properFee_ != 0L) { - output.writeInt64(1, properFee_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReWriteRawTx(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (properFee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, properFee_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee) obj; - - if (getProperFee() - != other.getProperFee()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private ReWriteRawTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + tx_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + expire_ = s; + break; + } + case 40: { + + fee_ = input.readInt64(); + break; + } + case 48: { + + index_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERFEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProperFee()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int TX_FIELD_NUMBER = 1; + private volatile java.lang.Object tx_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyProperFee} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyProperFee) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFeeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - properFee_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee(this); - result.properFee_ = properFee_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.getDefaultInstance()) return this; - if (other.getProperFee() != 0L) { - setProperFee(other.getProperFee()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long properFee_ ; - /** - * int64 properFee = 1; - * @return The properFee. - */ - public long getProperFee() { - return properFee_; - } - /** - * int64 properFee = 1; - * @param value The properFee to set. - * @return This builder for chaining. - */ - public Builder setProperFee(long value) { - - properFee_ = value; - onChanged(); - return this; - } - /** - * int64 properFee = 1; - * @return This builder for chaining. - */ - public Builder clearProperFee() { - - properFee_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyProperFee) - } + /** + * string tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public java.lang.String getTx() { + java.lang.Object ref = tx_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tx_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:ReplyProperFee) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee(); - } + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxBytes() { + java.lang.Object ref = tx_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tx_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int TO_FIELD_NUMBER = 3; + private volatile java.lang.Object to_; + + /** + *
+         * bytes execer = 2;
+         * 
+ * + * string to = 3; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyProperFee parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyProperFee(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+         * bytes execer = 2;
+         * 
+ * + * string to = 3; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int EXPIRE_FIELD_NUMBER = 4; + private volatile java.lang.Object expire_; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string expire = 4; + * + * @return The expire. + */ + @java.lang.Override + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } + } - } + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface TxHashListOrBuilder extends - // @@protoc_insertion_point(interface_extends:TxHashList) - com.google.protobuf.MessageOrBuilder { + public static final int FEE_FIELD_NUMBER = 5; + private long fee_; - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - java.util.List getHashesList(); - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - int getHashesCount(); - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - com.google.protobuf.ByteString getHashes(int index); + /** + * int64 fee = 5; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } - /** - * int64 count = 2; - * @return The count. - */ - long getCount(); + public static final int INDEX_FIELD_NUMBER = 6; + private int index_; - /** - * repeated int64 expire = 3; - * @return A list containing the expire. - */ - java.util.List getExpireList(); - /** - * repeated int64 expire = 3; - * @return The count of expire. - */ - int getExpireCount(); - /** - * repeated int64 expire = 3; - * @param index The index of the element to return. - * @return The expire at the given index. - */ - long getExpire(int index); - } - /** - * Protobuf type {@code TxHashList} - */ - public static final class TxHashList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TxHashList) - TxHashListOrBuilder { - private static final long serialVersionUID = 0L; - // Use TxHashList.newBuilder() to construct. - private TxHashList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxHashList() { - hashes_ = java.util.Collections.emptyList(); - expire_ = emptyLongList(); - } + /** + * int32 index = 6; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TxHashList(); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxHashList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - hashes_.add(input.readBytes()); - break; - } - case 16: { - - count_ = input.readInt64(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - expire_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - expire_.addLong(input.readInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - expire_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - expire_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = java.util.Collections.unmodifiableList(hashes_); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - expire_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.Builder.class); - } + memoizedIsInitialized = 1; + return true; + } - public static final int HASHES_FIELD_NUMBER = 1; - private java.util.List hashes_; - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - public java.util.List - getHashesList() { - return hashes_; - } - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public com.google.protobuf.ByteString getHashes(int index) { - return hashes_.get(index); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTxBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tx_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, to_); + } + if (!getExpireBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); + } + if (fee_ != 0L) { + output.writeInt64(5, fee_); + } + if (index_ != 0) { + output.writeInt32(6, index_); + } + unknownFields.writeTo(output); + } - public static final int COUNT_FIELD_NUMBER = 2; - private long count_; - /** - * int64 count = 2; - * @return The count. - */ - public long getCount() { - return count_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int EXPIRE_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.LongList expire_; - /** - * repeated int64 expire = 3; - * @return A list containing the expire. - */ - public java.util.List - getExpireList() { - return expire_; - } - /** - * repeated int64 expire = 3; - * @return The count of expire. - */ - public int getExpireCount() { - return expire_.size(); - } - /** - * repeated int64 expire = 3; - * @param index The index of the element to return. - * @return The expire at the given index. - */ - public long getExpire(int index) { - return expire_.getLong(index); - } - private int expireMemoizedSerializedSize = -1; + size = 0; + if (!getTxBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tx_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, to_); + } + if (!getExpireBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, fee_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, index_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx) obj; + + if (!getTx().equals(other.getTx())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (!getExpire().equals(other.getExpire())) + return false; + if (getFee() != other.getFee()) + return false; + if (getIndex() != other.getIndex()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + getExpire().hashCode(); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFee()); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < hashes_.size(); i++) { - output.writeBytes(1, hashes_.get(i)); - } - if (count_ != 0L) { - output.writeInt64(2, count_); - } - if (getExpireList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(expireMemoizedSerializedSize); - } - for (int i = 0; i < expire_.size(); i++) { - output.writeInt64NoTag(expire_.getLong(i)); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < hashes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(hashes_.get(i)); - } - size += dataSize; - size += 1 * getHashesList().size(); - } - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); - } - { - int dataSize = 0; - for (int i = 0; i < expire_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(expire_.getLong(i)); - } - size += dataSize; - if (!getExpireList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - expireMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList) obj; - - if (!getHashesList() - .equals(other.getHashesList())) return false; - if (getCount() - != other.getCount()) return false; - if (!getExpireList() - .equals(other.getExpireList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getHashesCount() > 0) { - hash = (37 * hash) + HASHES_FIELD_NUMBER; - hash = (53 * hash) + getHashesList().hashCode(); - } - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); - if (getExpireCount() > 0) { - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + getExpireList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TxHashList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TxHashList) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - count_ = 0L; - - expire_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - hashes_ = java.util.Collections.unmodifiableList(hashes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.hashes_ = hashes_; - result.count_ = count_; - if (((bitField0_ & 0x00000002) != 0)) { - expire_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.expire_ = expire_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.getDefaultInstance()) return this; - if (!other.hashes_.isEmpty()) { - if (hashes_.isEmpty()) { - hashes_ = other.hashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHashesIsMutable(); - hashes_.addAll(other.hashes_); - } - onChanged(); - } - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - if (!other.expire_.isEmpty()) { - if (expire_.isEmpty()) { - expire_ = other.expire_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureExpireIsMutable(); - expire_.addAll(other.expire_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List hashes_ = java.util.Collections.emptyList(); - private void ensureHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - hashes_ = new java.util.ArrayList(hashes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes hashes = 1; - * @return A list containing the hashes. - */ - public java.util.List - getHashesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(hashes_) : hashes_; - } - /** - * repeated bytes hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated bytes hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public com.google.protobuf.ByteString getHashes(int index) { - return hashes_.get(index); - } - /** - * repeated bytes hashes = 1; - * @param index The index to set the value at. - * @param value The hashes to set. - * @return This builder for chaining. - */ - public Builder setHashes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @param value The hashes to add. - * @return This builder for chaining. - */ - public Builder addHashes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @param values The hashes to add. - * @return This builder for chaining. - */ - public Builder addAllHashes( - java.lang.Iterable values) { - ensureHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hashes_); - onChanged(); - return this; - } - /** - * repeated bytes hashes = 1; - * @return This builder for chaining. - */ - public Builder clearHashes() { - hashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long count_ ; - /** - * int64 count = 2; - * @return The count. - */ - public long getCount() { - return count_; - } - /** - * int64 count = 2; - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(long value) { - - count_ = value; - onChanged(); - return this; - } - /** - * int64 count = 2; - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList expire_ = emptyLongList(); - private void ensureExpireIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - expire_ = mutableCopy(expire_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated int64 expire = 3; - * @return A list containing the expire. - */ - public java.util.List - getExpireList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(expire_) : expire_; - } - /** - * repeated int64 expire = 3; - * @return The count of expire. - */ - public int getExpireCount() { - return expire_.size(); - } - /** - * repeated int64 expire = 3; - * @param index The index of the element to return. - * @return The expire at the given index. - */ - public long getExpire(int index) { - return expire_.getLong(index); - } - /** - * repeated int64 expire = 3; - * @param index The index to set the value at. - * @param value The expire to set. - * @return This builder for chaining. - */ - public Builder setExpire( - int index, long value) { - ensureExpireIsMutable(); - expire_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 expire = 3; - * @param value The expire to add. - * @return This builder for chaining. - */ - public Builder addExpire(long value) { - ensureExpireIsMutable(); - expire_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 expire = 3; - * @param values The expire to add. - * @return This builder for chaining. - */ - public Builder addAllExpire( - java.lang.Iterable values) { - ensureExpireIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, expire_); - onChanged(); - return this; - } - /** - * repeated int64 expire = 3; - * @return This builder for chaining. - */ - public Builder clearExpire() { - expire_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TxHashList) - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:TxHashList) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxHashList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxHashList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public interface ReplyTxInfosOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyTxInfos) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - java.util.List - getTxInfosList(); - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getTxInfos(int index); - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - int getTxInfosCount(); - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - java.util.List - getTxInfosOrBuilderList(); - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder getTxInfosOrBuilder( - int index); - } - /** - * Protobuf type {@code ReplyTxInfos} - */ - public static final class ReplyTxInfos extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyTxInfos) - ReplyTxInfosOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyTxInfos.newBuilder() to construct. - private ReplyTxInfos(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyTxInfos() { - txInfos_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyTxInfos(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyTxInfos( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txInfos_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txInfos_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txInfos_ = java.util.Collections.unmodifiableList(txInfos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_descriptor; - } + /** + * Protobuf type {@code ReWriteRawTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReWriteRawTx) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.Builder.class); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.Builder.class); + } - public static final int TXINFOS_FIELD_NUMBER = 1; - private java.util.List txInfos_; - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public java.util.List getTxInfosList() { - return txInfos_; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public java.util.List - getTxInfosOrBuilderList() { - return txInfos_; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public int getTxInfosCount() { - return txInfos_.size(); - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getTxInfos(int index) { - return txInfos_.get(index); - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder getTxInfosOrBuilder( - int index) { - return txInfos_.get(index); - } + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txInfos_.size(); i++) { - output.writeMessage(1, txInfos_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clear() { + super.clear(); + tx_ = ""; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txInfos_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + to_ = ""; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos) obj; - - if (!getTxInfosList() - .equals(other.getTxInfosList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + expire_ = ""; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxInfosCount() > 0) { - hash = (37 * hash) + TXINFOS_FIELD_NUMBER; - hash = (53 * hash) + getTxInfosList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + fee_ = 0L; - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + index_ = 0; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyTxInfos} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyTxInfos) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfosOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxInfosFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txInfosBuilder_ == null) { - txInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txInfosBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos(this); - int from_bitField0_ = bitField0_; - if (txInfosBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txInfos_ = java.util.Collections.unmodifiableList(txInfos_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txInfos_ = txInfos_; - } else { - result.txInfos_ = txInfosBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.getDefaultInstance()) return this; - if (txInfosBuilder_ == null) { - if (!other.txInfos_.isEmpty()) { - if (txInfos_.isEmpty()) { - txInfos_ = other.txInfos_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxInfosIsMutable(); - txInfos_.addAll(other.txInfos_); - } - onChanged(); - } - } else { - if (!other.txInfos_.isEmpty()) { - if (txInfosBuilder_.isEmpty()) { - txInfosBuilder_.dispose(); - txInfosBuilder_ = null; - txInfos_ = other.txInfos_; - bitField0_ = (bitField0_ & ~0x00000001); - txInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxInfosFieldBuilder() : null; - } else { - txInfosBuilder_.addAllMessages(other.txInfos_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txInfos_ = - java.util.Collections.emptyList(); - private void ensureTxInfosIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txInfos_ = new java.util.ArrayList(txInfos_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder> txInfosBuilder_; - - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public java.util.List getTxInfosList() { - if (txInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(txInfos_); - } else { - return txInfosBuilder_.getMessageList(); - } - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public int getTxInfosCount() { - if (txInfosBuilder_ == null) { - return txInfos_.size(); - } else { - return txInfosBuilder_.getCount(); - } - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getTxInfos(int index) { - if (txInfosBuilder_ == null) { - return txInfos_.get(index); - } else { - return txInfosBuilder_.getMessage(index); - } - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder setTxInfos( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo value) { - if (txInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxInfosIsMutable(); - txInfos_.set(index, value); - onChanged(); - } else { - txInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder setTxInfos( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder builderForValue) { - if (txInfosBuilder_ == null) { - ensureTxInfosIsMutable(); - txInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - txInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder addTxInfos(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo value) { - if (txInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxInfosIsMutable(); - txInfos_.add(value); - onChanged(); - } else { - txInfosBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder addTxInfos( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo value) { - if (txInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxInfosIsMutable(); - txInfos_.add(index, value); - onChanged(); - } else { - txInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder addTxInfos( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder builderForValue) { - if (txInfosBuilder_ == null) { - ensureTxInfosIsMutable(); - txInfos_.add(builderForValue.build()); - onChanged(); - } else { - txInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder addTxInfos( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder builderForValue) { - if (txInfosBuilder_ == null) { - ensureTxInfosIsMutable(); - txInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - txInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder addAllTxInfos( - java.lang.Iterable values) { - if (txInfosBuilder_ == null) { - ensureTxInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txInfos_); - onChanged(); - } else { - txInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder clearTxInfos() { - if (txInfosBuilder_ == null) { - txInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txInfosBuilder_.clear(); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public Builder removeTxInfos(int index) { - if (txInfosBuilder_ == null) { - ensureTxInfosIsMutable(); - txInfos_.remove(index); - onChanged(); - } else { - txInfosBuilder_.remove(index); - } - return this; - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder getTxInfosBuilder( - int index) { - return getTxInfosFieldBuilder().getBuilder(index); - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder getTxInfosOrBuilder( - int index) { - if (txInfosBuilder_ == null) { - return txInfos_.get(index); } else { - return txInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public java.util.List - getTxInfosOrBuilderList() { - if (txInfosBuilder_ != null) { - return txInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txInfos_); - } - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder addTxInfosBuilder() { - return getTxInfosFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance()); - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder addTxInfosBuilder( - int index) { - return getTxInfosFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance()); - } - /** - * repeated .ReplyTxInfo txInfos = 1; - */ - public java.util.List - getTxInfosBuilderList() { - return getTxInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder> - getTxInfosFieldBuilder() { - if (txInfosBuilder_ == null) { - txInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder>( - txInfos_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txInfos_ = null; - } - return txInfosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyTxInfos) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReWriteRawTx_descriptor; + } - // @@protoc_insertion_point(class_scope:ReplyTxInfos) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.getDefaultInstance(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyTxInfos parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyTxInfos(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx( + this); + result.tx_ = tx_; + result.to_ = to_; + result.expire_ = expire_; + result.fee_ = fee_; + result.index_ = index_; + onBuilt(); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public interface ReceiptLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptLog) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * int32 ty = 1; - * @return The ty. - */ - int getTy(); + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * bytes log = 2; - * @return The log. - */ - com.google.protobuf.ByteString getLog(); - } - /** - * Protobuf type {@code ReceiptLog} - */ - public static final class ReceiptLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptLog) - ReceiptLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptLog.newBuilder() to construct. - private ReceiptLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptLog() { - log_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptLog(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - ty_ = input.readInt32(); - break; - } - case 18: { - - log_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_descriptor; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx.getDefaultInstance()) + return this; + if (!other.getTx().isEmpty()) { + tx_ = other.tx_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (!other.getExpire().isEmpty()) { + expire_ = other.expire_; + onChanged(); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int TY_FIELD_NUMBER = 1; - private int ty_; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int LOG_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString log_; - /** - * bytes log = 2; - * @return The log. - */ - public com.google.protobuf.ByteString getLog() { - return log_; - } + private java.lang.Object tx_ = ""; + + /** + * string tx = 1; + * + * @return The tx. + */ + public java.lang.String getTx() { + java.lang.Object ref = tx_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tx_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + public com.google.protobuf.ByteString getTxBytes() { + java.lang.Object ref = tx_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tx_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string tx = 1; + * + * @param value + * The tx to set. + * + * @return This builder for chaining. + */ + public Builder setTx(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tx_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (ty_ != 0) { - output.writeInt32(1, ty_); - } - if (!log_.isEmpty()) { - output.writeBytes(2, log_); - } - unknownFields.writeTo(output); - } + /** + * string tx = 1; + * + * @return This builder for chaining. + */ + public Builder clearTx() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ty_); - } - if (!log_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, log_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + tx_ = getDefaultInstance().getTx(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog) obj; - - if (getTy() - != other.getTy()) return false; - if (!getLog() - .equals(other.getLog())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string tx = 1; + * + * @param value + * The bytes for tx to set. + * + * @return This builder for chaining. + */ + public Builder setTxBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tx_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object to_ = ""; + + /** + *
+             * bytes execer = 2;
+             * 
+ * + * string to = 3; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + *
+             * bytes execer = 2;
+             * 
+ * + * string to = 3; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+             * bytes execer = 2;
+             * 
+ * + * string to = 3; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReceiptLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptLog) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - log_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog(this); - result.ty_ = ty_; - result.log_ = log_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - if (other.getLog() != com.google.protobuf.ByteString.EMPTY) { - setLog(other.getLog()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int ty_ ; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 1; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 1; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString log_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes log = 2; - * @return The log. - */ - public com.google.protobuf.ByteString getLog() { - return log_; - } - /** - * bytes log = 2; - * @param value The log to set. - * @return This builder for chaining. - */ - public Builder setLog(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - log_ = value; - onChanged(); - return this; - } - /** - * bytes log = 2; - * @return This builder for chaining. - */ - public Builder clearLog() { - - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptLog) - } + /** + *
+             * bytes execer = 2;
+             * 
+ * + * string to = 3; + * + * @return This builder for chaining. + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReceiptLog) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog(); - } + /** + *
+             * bytes execer = 2;
+             * 
+ * + * string to = 3; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.lang.Object expire_ = ""; + + /** + * string expire = 4; + * + * @return The expire. + */ + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptLog(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string expire = 4; + * + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expire_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string expire = 4; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { - } + expire_ = getDefaultInstance().getExpire(); + onChanged(); + return this; + } - public interface ReceiptOrBuilder extends - // @@protoc_insertion_point(interface_extends:Receipt) - com.google.protobuf.MessageOrBuilder { + /** + * string expire = 4; + * + * @param value + * The bytes for expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpireBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expire_ = value; + onChanged(); + return this; + } - /** - * int32 ty = 1; - * @return The ty. - */ - int getTy(); + private long fee_; - /** - * repeated .KeyValue KV = 2; - */ - java.util.List - getKVList(); - /** - * repeated .KeyValue KV = 2; - */ - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index); - /** - * repeated .KeyValue KV = 2; - */ - int getKVCount(); - /** - * repeated .KeyValue KV = 2; - */ - java.util.List - getKVOrBuilderList(); - /** - * repeated .KeyValue KV = 2; - */ - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder( - int index); + /** + * int64 fee = 5; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } - /** - * repeated .ReceiptLog logs = 3; - */ - java.util.List - getLogsList(); - /** - * repeated .ReceiptLog logs = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index); - /** - * repeated .ReceiptLog logs = 3; - */ - int getLogsCount(); - /** - * repeated .ReceiptLog logs = 3; - */ - java.util.List - getLogsOrBuilderList(); - /** - * repeated .ReceiptLog logs = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( - int index); - } - /** - *
-   * ty = 0 -> error Receipt
-   * ty = 1 -> CutFee //cut fee ,bug exec not ok
-   * ty = 2 -> exec ok
-   * 
- * - * Protobuf type {@code Receipt} - */ - public static final class Receipt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Receipt) - ReceiptOrBuilder { - private static final long serialVersionUID = 0L; - // Use Receipt.newBuilder() to construct. - private Receipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Receipt() { - kV_ = java.util.Collections.emptyList(); - logs_ = java.util.Collections.emptyList(); - } + /** + * int64 fee = 5; + * + * @param value + * The fee to set. + * + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Receipt(); - } + /** + * int64 fee = 5; + * + * @return This builder for chaining. + */ + public Builder clearFee() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Receipt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - ty_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - kV_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - kV_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - logs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - kV_ = java.util.Collections.unmodifiableList(kV_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_descriptor; - } + fee_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder.class); - } + private int index_; - public static final int TY_FIELD_NUMBER = 1; - private int ty_; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } + /** + * int32 index = 6; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } - public static final int KV_FIELD_NUMBER = 2; - private java.util.List kV_; - /** - * repeated .KeyValue KV = 2; - */ - public java.util.List getKVList() { - return kV_; - } - /** - * repeated .KeyValue KV = 2; - */ - public java.util.List - getKVOrBuilderList() { - return kV_; - } - /** - * repeated .KeyValue KV = 2; - */ - public int getKVCount() { - return kV_.size(); - } - /** - * repeated .KeyValue KV = 2; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { - return kV_.get(index); - } - /** - * repeated .KeyValue KV = 2; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder( - int index) { - return kV_.get(index); - } + /** + * int32 index = 6; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } - public static final int LOGS_FIELD_NUMBER = 3; - private java.util.List logs_; - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { - return logs_.get(index); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } + /** + * int32 index = 6; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + index_ = 0; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (ty_ != 0) { - output.writeInt32(1, ty_); - } - for (int i = 0; i < kV_.size(); i++) { - output.writeMessage(2, kV_.get(i)); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(3, logs_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ty_); - } - for (int i = 0; i < kV_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, kV_.get(i)); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, logs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // @@protoc_insertion_point(builder_scope:ReWriteRawTx) + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt) obj; - - if (getTy() - != other.getTy()) return false; - if (!getKVList() - .equals(other.getKVList())) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(class_scope:ReWriteRawTx) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - if (getKVCount() > 0) { - hash = (37 * hash) + KV_FIELD_NUMBER; - hash = (53 * hash) + getKVList().hashCode(); - } - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReWriteRawTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReWriteRawTx(input, extensionRegistry); + } + }; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * ty = 0 -> error Receipt
-     * ty = 1 -> CutFee //cut fee ,bug exec not ok
-     * ty = 2 -> exec ok
-     * 
- * - * Protobuf type {@code Receipt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Receipt) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getKVFieldBuilder(); - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - if (kVBuilder_ == null) { - kV_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - kVBuilder_.clear(); - } - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - logsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt(this); - int from_bitField0_ = bitField0_; - result.ty_ = ty_; - if (kVBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - kV_ = java.util.Collections.unmodifiableList(kV_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.kV_ = kV_; - } else { - result.kV_ = kVBuilder_.build(); - } - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - if (kVBuilder_ == null) { - if (!other.kV_.isEmpty()) { - if (kV_.isEmpty()) { - kV_ = other.kV_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKVIsMutable(); - kV_.addAll(other.kV_); - } - onChanged(); - } - } else { - if (!other.kV_.isEmpty()) { - if (kVBuilder_.isEmpty()) { - kVBuilder_.dispose(); - kVBuilder_ = null; - kV_ = other.kV_; - bitField0_ = (bitField0_ & ~0x00000001); - kVBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKVFieldBuilder() : null; - } else { - kVBuilder_.addAllMessages(other.kV_); - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000002); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int ty_ ; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 1; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 1; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - - private java.util.List kV_ = - java.util.Collections.emptyList(); - private void ensureKVIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - kV_ = new java.util.ArrayList(kV_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder> kVBuilder_; - - /** - * repeated .KeyValue KV = 2; - */ - public java.util.List getKVList() { - if (kVBuilder_ == null) { - return java.util.Collections.unmodifiableList(kV_); - } else { - return kVBuilder_.getMessageList(); - } - } - /** - * repeated .KeyValue KV = 2; - */ - public int getKVCount() { - if (kVBuilder_ == null) { - return kV_.size(); - } else { - return kVBuilder_.getCount(); - } - } - /** - * repeated .KeyValue KV = 2; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { - if (kVBuilder_ == null) { - return kV_.get(index); - } else { - return kVBuilder_.getMessage(index); - } - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder setKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { - if (kVBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKVIsMutable(); - kV_.set(index, value); - onChanged(); - } else { - kVBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder setKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.set(index, builderForValue.build()); - onChanged(); - } else { - kVBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder addKV(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { - if (kVBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKVIsMutable(); - kV_.add(value); - onChanged(); - } else { - kVBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder addKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { - if (kVBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKVIsMutable(); - kV_.add(index, value); - onChanged(); - } else { - kVBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder addKV( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.add(builderForValue.build()); - onChanged(); - } else { - kVBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder addKV( - int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.add(index, builderForValue.build()); - onChanged(); - } else { - kVBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder addAllKV( - java.lang.Iterable values) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, kV_); - onChanged(); - } else { - kVBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder clearKV() { - if (kVBuilder_ == null) { - kV_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - kVBuilder_.clear(); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public Builder removeKV(int index) { - if (kVBuilder_ == null) { - ensureKVIsMutable(); - kV_.remove(index); - onChanged(); - } else { - kVBuilder_.remove(index); - } - return this; - } - /** - * repeated .KeyValue KV = 2; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder getKVBuilder( - int index) { - return getKVFieldBuilder().getBuilder(index); - } - /** - * repeated .KeyValue KV = 2; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder( - int index) { - if (kVBuilder_ == null) { - return kV_.get(index); } else { - return kVBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .KeyValue KV = 2; - */ - public java.util.List - getKVOrBuilderList() { - if (kVBuilder_ != null) { - return kVBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(kV_); - } - } - /** - * repeated .KeyValue KV = 2; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder() { - return getKVFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); - } - /** - * repeated .KeyValue KV = 2; - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder( - int index) { - return getKVFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); - } - /** - * repeated .KeyValue KV = 2; - */ - public java.util.List - getKVBuilderList() { - return getKVFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder> - getKVFieldBuilder() { - if (kVBuilder_ == null) { - kVBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder>( - kV_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - kV_ = null; - } - return kVBuilder_; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder> logsBuilder_; - - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder setLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder setLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Receipt) - } - // @@protoc_insertion_point(class_scope:Receipt) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReWriteRawTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getDefaultInstance() { - return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Receipt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Receipt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public interface CreateTransactionGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateTransactionGroup) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated string txs = 1; + * + * @return A list containing the txs. + */ + java.util.List getTxsList(); - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated string txs = 1; + * + * @return The count of txs. + */ + int getTxsCount(); - } + /** + * repeated string txs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txs at the given index. + */ + java.lang.String getTxs(int index); - public interface ReceiptDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReceiptData) - com.google.protobuf.MessageOrBuilder { + /** + * repeated string txs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txs at the given index. + */ + com.google.protobuf.ByteString getTxsBytes(int index); + } /** - * int32 ty = 1; - * @return The ty. + * Protobuf type {@code CreateTransactionGroup} */ - int getTy(); + public static final class CreateTransactionGroup extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateTransactionGroup) + CreateTransactionGroupOrBuilder { + private static final long serialVersionUID = 0L; - /** - * repeated .ReceiptLog logs = 3; - */ - java.util.List - getLogsList(); - /** - * repeated .ReceiptLog logs = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index); - /** - * repeated .ReceiptLog logs = 3; - */ - int getLogsCount(); - /** - * repeated .ReceiptLog logs = 3; - */ - java.util.List - getLogsOrBuilderList(); - /** - * repeated .ReceiptLog logs = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( - int index); - } - /** - * Protobuf type {@code ReceiptData} - */ - public static final class ReceiptData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReceiptData) - ReceiptDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReceiptData.newBuilder() to construct. - private ReceiptData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReceiptData() { - logs_ = java.util.Collections.emptyList(); - } + // Use CreateTransactionGroup.newBuilder() to construct. + private CreateTransactionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReceiptData(); - } + private CreateTransactionGroup() { + txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReceiptData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - ty_ = input.readInt32(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - logs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_descriptor; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTransactionGroup(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder.class); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int TY_FIELD_NUMBER = 1; - private int ty_; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } + private CreateTransactionGroup(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = txs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int LOGS_FIELD_NUMBER = 3; - private java.util.List logs_; - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { - return logs_.get(index); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + public static final int TXS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList txs_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (ty_ != 0) { - output.writeInt32(1, ty_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(3, logs_.get(i)); - } - unknownFields.writeTo(output); - } + /** + * repeated string txs = 1; + * + * @return A list containing the txs. + */ + public com.google.protobuf.ProtocolStringList getTxsList() { + return txs_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ty_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, logs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * repeated string txs = 1; + * + * @return The count of txs. + */ + public int getTxsCount() { + return txs_.size(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData) obj; - - if (getTy() - != other.getTy()) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * repeated string txs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txs at the given index. + */ + public java.lang.String getTxs(int index) { + return txs_.get(index); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * repeated string txs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txs at the given index. + */ + public com.google.protobuf.ByteString getTxsBytes(int index) { + return txs_.getByteString(index); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReceiptData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReceiptData) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - logsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData(this); - int from_bitField0_ = bitField0_; - result.ty_ = ty_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000001); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int ty_ ; - /** - * int32 ty = 1; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 1; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 1; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder> logsBuilder_; - - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder setLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder setLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addLogs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); - } - /** - * repeated .ReceiptLog logs = 3; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReceiptData) - } + memoizedIsInitialized = 1; + return true; + } - // @@protoc_insertion_point(class_scope:ReceiptData) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < txs_.size(); i++) { + dataSize += computeStringSizeNoTag(txs_.getRaw(i)); + } + size += dataSize; + size += 1 * getTxsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) obj; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceiptData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface TxResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:TxResult) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * int64 height = 1; - * @return The height. - */ - long getHeight(); + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * int32 index = 2; - * @return The index. - */ - int getIndex(); + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * .Transaction tx = 3; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - * .Transaction tx = 3; - * @return The tx. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); - /** - * .Transaction tx = 3; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * .ReceiptData receiptdate = 4; - * @return Whether the receiptdate field is set. - */ - boolean hasReceiptdate(); - /** - * .ReceiptData receiptdate = 4; - * @return The receiptdate. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceiptdate(); - /** - * .ReceiptData receiptdate = 4; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptdateOrBuilder(); + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * int64 blocktime = 5; - * @return The blocktime. - */ - long getBlocktime(); + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string actionName = 6; - * @return The actionName. - */ - java.lang.String getActionName(); - /** - * string actionName = 6; - * @return The bytes for actionName. - */ - com.google.protobuf.ByteString - getActionNameBytes(); - } - /** - * Protobuf type {@code TxResult} - */ - public static final class TxResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TxResult) - TxResultOrBuilder { - private static final long serialVersionUID = 0L; - // Use TxResult.newBuilder() to construct. - private TxResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxResult() { - actionName_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TxResult(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt64(); - break; - } - case 16: { - - index_ = input.readInt32(); - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; - if (receiptdate_ != null) { - subBuilder = receiptdate_.toBuilder(); - } - receiptdate_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptdate_); - receiptdate_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - blocktime_ = input.readInt64(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - actionName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int HEIGHT_FIELD_NUMBER = 1; - private long height_; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int INDEX_FIELD_NUMBER = 2; - private int index_; - /** - * int32 index = 2; - * @return The index. - */ - public int getIndex() { - return index_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int TX_FIELD_NUMBER = 3; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - /** - * .Transaction tx = 3; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return tx_ != null; - } - /** - * .Transaction tx = 3; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - /** - * .Transaction tx = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - return getTx(); - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int RECEIPTDATE_FIELD_NUMBER = 4; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receiptdate_; - /** - * .ReceiptData receiptdate = 4; - * @return Whether the receiptdate field is set. - */ - public boolean hasReceiptdate() { - return receiptdate_ != null; - } - /** - * .ReceiptData receiptdate = 4; - * @return The receiptdate. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceiptdate() { - return receiptdate_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receiptdate_; - } - /** - * .ReceiptData receiptdate = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptdateOrBuilder() { - return getReceiptdate(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int BLOCKTIME_FIELD_NUMBER = 5; - private long blocktime_; - /** - * int64 blocktime = 5; - * @return The blocktime. - */ - public long getBlocktime() { - return blocktime_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int ACTIONNAME_FIELD_NUMBER = 6; - private volatile java.lang.Object actionName_; - /** - * string actionName = 6; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } - } - /** - * string actionName = 6; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * Protobuf type {@code CreateTransactionGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateTransactionGroup) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + // Construct using + // cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (height_ != 0L) { - output.writeInt64(1, height_); - } - if (index_ != 0) { - output.writeInt32(2, index_); - } - if (tx_ != null) { - output.writeMessage(3, getTx()); - } - if (receiptdate_ != null) { - output.writeMessage(4, getReceiptdate()); - } - if (blocktime_ != 0L) { - output.writeInt64(5, blocktime_); - } - if (!getActionNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, actionName_); - } - unknownFields.writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, height_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, index_); - } - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTx()); - } - if (receiptdate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReceiptdate()); - } - if (blocktime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, blocktime_); - } - if (!getActionNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, actionName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult) obj; - - if (getHeight() - != other.getHeight()) return false; - if (getIndex() - != other.getIndex()) return false; - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (hasReceiptdate() != other.hasReceiptdate()) return false; - if (hasReceiptdate()) { - if (!getReceiptdate() - .equals(other.getReceiptdate())) return false; - } - if (getBlocktime() - != other.getBlocktime()) return false; - if (!getActionName() - .equals(other.getActionName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - if (hasReceiptdate()) { - hash = (37 * hash) + RECEIPTDATE_FIELD_NUMBER; - hash = (53 * hash) + getReceiptdate().hashCode(); - } - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocktime()); - hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; - hash = (53 * hash) + getActionName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_CreateTransactionGroup_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup + .getDefaultInstance(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TxResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TxResult) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0L; - - index_ = 0; - - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - if (receiptdateBuilder_ == null) { - receiptdate_ = null; - } else { - receiptdate_ = null; - receiptdateBuilder_ = null; - } - blocktime_ = 0L; - - actionName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult(this); - result.height_ = height_; - result.index_ = index_; - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - if (receiptdateBuilder_ == null) { - result.receiptdate_ = receiptdate_; - } else { - result.receiptdate_ = receiptdateBuilder_.build(); - } - result.blocktime_ = blocktime_; - result.actionName_ = actionName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.getDefaultInstance()) return this; - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (other.hasReceiptdate()) { - mergeReceiptdate(other.getReceiptdate()); - } - if (other.getBlocktime() != 0L) { - setBlocktime(other.getBlocktime()); - } - if (!other.getActionName().isEmpty()) { - actionName_ = other.actionName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long height_ ; - /** - * int64 height = 1; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 1; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 1; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private int index_ ; - /** - * int32 index = 2; - * @return The index. - */ - public int getIndex() { - return index_; - } - /** - * int32 index = 2; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int32 index = 2; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txBuilder_; - /** - * .Transaction tx = 3; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - * .Transaction tx = 3; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - if (txBuilder_ == null) { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - * .Transaction tx = 3; - */ - public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - * .Transaction tx = 3; - */ - public Builder setTx( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Transaction tx = 3; - */ - public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Transaction tx = 3; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - * .Transaction tx = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - * .Transaction tx = 3; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - } - /** - * .Transaction tx = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receiptdate_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> receiptdateBuilder_; - /** - * .ReceiptData receiptdate = 4; - * @return Whether the receiptdate field is set. - */ - public boolean hasReceiptdate() { - return receiptdateBuilder_ != null || receiptdate_ != null; - } - /** - * .ReceiptData receiptdate = 4; - * @return The receiptdate. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceiptdate() { - if (receiptdateBuilder_ == null) { - return receiptdate_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receiptdate_; - } else { - return receiptdateBuilder_.getMessage(); - } - } - /** - * .ReceiptData receiptdate = 4; - */ - public Builder setReceiptdate(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - receiptdate_ = value; - onChanged(); - } else { - receiptdateBuilder_.setMessage(value); - } - - return this; - } - /** - * .ReceiptData receiptdate = 4; - */ - public Builder setReceiptdate( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptdateBuilder_ == null) { - receiptdate_ = builderForValue.build(); - onChanged(); - } else { - receiptdateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ReceiptData receiptdate = 4; - */ - public Builder mergeReceiptdate(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptdateBuilder_ == null) { - if (receiptdate_ != null) { - receiptdate_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.newBuilder(receiptdate_).mergeFrom(value).buildPartial(); - } else { - receiptdate_ = value; - } - onChanged(); - } else { - receiptdateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ReceiptData receiptdate = 4; - */ - public Builder clearReceiptdate() { - if (receiptdateBuilder_ == null) { - receiptdate_ = null; - onChanged(); - } else { - receiptdate_ = null; - receiptdateBuilder_ = null; - } - - return this; - } - /** - * .ReceiptData receiptdate = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptdateBuilder() { - - onChanged(); - return getReceiptdateFieldBuilder().getBuilder(); - } - /** - * .ReceiptData receiptdate = 4; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptdateOrBuilder() { - if (receiptdateBuilder_ != null) { - return receiptdateBuilder_.getMessageOrBuilder(); - } else { - return receiptdate_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receiptdate_; - } - } - /** - * .ReceiptData receiptdate = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> - getReceiptdateFieldBuilder() { - if (receiptdateBuilder_ == null) { - receiptdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder>( - getReceiptdate(), - getParentForChildren(), - isClean()); - receiptdate_ = null; - } - return receiptdateBuilder_; - } - - private long blocktime_ ; - /** - * int64 blocktime = 5; - * @return The blocktime. - */ - public long getBlocktime() { - return blocktime_; - } - /** - * int64 blocktime = 5; - * @param value The blocktime to set. - * @return This builder for chaining. - */ - public Builder setBlocktime(long value) { - - blocktime_ = value; - onChanged(); - return this; - } - /** - * int64 blocktime = 5; - * @return This builder for chaining. - */ - public Builder clearBlocktime() { - - blocktime_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object actionName_ = ""; - /** - * string actionName = 6; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string actionName = 6; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string actionName = 6; - * @param value The actionName to set. - * @return This builder for chaining. - */ - public Builder setActionName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - actionName_ = value; - onChanged(); - return this; - } - /** - * string actionName = 6; - * @return This builder for chaining. - */ - public Builder clearActionName() { - - actionName_ = getDefaultInstance().getActionName(); - onChanged(); - return this; - } - /** - * string actionName = 6; - * @param value The bytes for actionName to set. - * @return This builder for chaining. - */ - public Builder setActionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - actionName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TxResult) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + txs_ = txs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + onBuilt(); + return result; + } - // @@protoc_insertion_point(class_scope:TxResult) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public interface TransactionDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:TransactionDetail) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - * .Transaction tx = 1; - * @return The tx. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); - /** - * .Transaction tx = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + public Builder mergeFrom( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup + .getDefaultInstance()) + return this; + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * .ReceiptData receipt = 2; - * @return Whether the receipt field is set. - */ - boolean hasReceipt(); - /** - * .ReceiptData receipt = 2; - * @return The receipt. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt(); - /** - * .ReceiptData receipt = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * repeated bytes proofs = 3; - * @return A list containing the proofs. - */ - java.util.List getProofsList(); - /** - * repeated bytes proofs = 3; - * @return The count of proofs. - */ - int getProofsCount(); - /** - * repeated bytes proofs = 3; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - com.google.protobuf.ByteString getProofs(int index); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - * int64 height = 4; - * @return The height. - */ - long getHeight(); + private int bitField0_; - /** - * int64 index = 5; - * @return The index. - */ - long getIndex(); + private com.google.protobuf.LazyStringList txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - /** - * int64 blocktime = 6; - * @return The blocktime. - */ - long getBlocktime(); + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txs_ = new com.google.protobuf.LazyStringArrayList(txs_); + bitField0_ |= 0x00000001; + } + } - /** - * int64 amount = 7; - * @return The amount. - */ - long getAmount(); + /** + * repeated string txs = 1; + * + * @return A list containing the txs. + */ + public com.google.protobuf.ProtocolStringList getTxsList() { + return txs_.getUnmodifiableView(); + } - /** - * string fromaddr = 8; - * @return The fromaddr. - */ - java.lang.String getFromaddr(); - /** - * string fromaddr = 8; - * @return The bytes for fromaddr. - */ - com.google.protobuf.ByteString - getFromaddrBytes(); + /** + * repeated string txs = 1; + * + * @return The count of txs. + */ + public int getTxsCount() { + return txs_.size(); + } - /** - * string actionName = 9; - * @return The actionName. - */ - java.lang.String getActionName(); - /** - * string actionName = 9; - * @return The bytes for actionName. - */ - com.google.protobuf.ByteString - getActionNameBytes(); + /** + * repeated string txs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txs at the given index. + */ + public java.lang.String getTxs(int index) { + return txs_.get(index); + } - /** - * repeated .Asset assets = 10; - */ - java.util.List - getAssetsList(); - /** - * repeated .Asset assets = 10; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index); - /** - * repeated .Asset assets = 10; - */ - int getAssetsCount(); - /** - * repeated .Asset assets = 10; - */ - java.util.List - getAssetsOrBuilderList(); - /** - * repeated .Asset assets = 10; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( - int index); + /** + * repeated string txs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txs at the given index. + */ + public com.google.protobuf.ByteString getTxsBytes(int index) { + return txs_.getByteString(index); + } - /** - * repeated .TxProof txProofs = 11; - */ - java.util.List - getTxProofsList(); - /** - * repeated .TxProof txProofs = 11; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getTxProofs(int index); - /** - * repeated .TxProof txProofs = 11; - */ - int getTxProofsCount(); - /** - * repeated .TxProof txProofs = 11; - */ - java.util.List - getTxProofsOrBuilderList(); - /** - * repeated .TxProof txProofs = 11; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder getTxProofsOrBuilder( - int index); + /** + * repeated string txs = 1; + * + * @param index + * The index to set the value at. + * @param value + * The txs to set. + * + * @return This builder for chaining. + */ + public Builder setTxs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + return this; + } - /** - * bytes fullHash = 12; - * @return The fullHash. - */ - com.google.protobuf.ByteString getFullHash(); - } - /** - * Protobuf type {@code TransactionDetail} - */ - public static final class TransactionDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TransactionDetail) - TransactionDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransactionDetail.newBuilder() to construct. - private TransactionDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransactionDetail() { - proofs_ = java.util.Collections.emptyList(); - fromaddr_ = ""; - actionName_ = ""; - assets_ = java.util.Collections.emptyList(); - txProofs_ = java.util.Collections.emptyList(); - fullHash_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * repeated string txs = 1; + * + * @param value + * The txs to add. + * + * @return This builder for chaining. + */ + public Builder addTxs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransactionDetail(); - } + /** + * repeated string txs = 1; + * + * @param values + * The txs to add. + * + * @return This builder for chaining. + */ + public Builder addAllTxs(java.lang.Iterable values) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransactionDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; - if (receipt_ != null) { - subBuilder = receipt_.toBuilder(); - } - receipt_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receipt_); - receipt_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - proofs_.add(input.readBytes()); - break; - } - case 32: { - - height_ = input.readInt64(); - break; - } - case 40: { - - index_ = input.readInt64(); - break; - } - case 48: { - - blocktime_ = input.readInt64(); - break; - } - case 56: { - - amount_ = input.readInt64(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - fromaddr_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - actionName_ = s; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - assets_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.parser(), extensionRegistry)); - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - txProofs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - txProofs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.parser(), extensionRegistry)); - break; - } - case 98: { - - fullHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); + /** + * repeated string txs = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxs() { + txs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string txs = 1; + * + * @param value + * The bytes of the txs to add. + * + * @return This builder for chaining. + */ + public Builder addTxsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:CreateTransactionGroup) } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - txProofs_ = java.util.Collections.unmodifiableList(txProofs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder.class); - } + // @@protoc_insertion_point(class_scope:CreateTransactionGroup) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTransactionGroup parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTransactionGroup(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int TX_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return tx_ != null; - } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - return getTx(); } - public static final int RECEIPT_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; - /** - * .ReceiptData receipt = 2; - * @return Whether the receipt field is set. - */ - public boolean hasReceipt() { - return receipt_ != null; + public interface UnsignTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:UnsignTx) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + * + * @return The data. + */ + com.google.protobuf.ByteString getData(); } + /** - * .ReceiptData receipt = 2; - * @return The receipt. + * Protobuf type {@code UnsignTx} */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { - return receipt_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } - /** - * .ReceiptData receipt = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { - return getReceipt(); - } + public static final class UnsignTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:UnsignTx) + UnsignTxOrBuilder { + private static final long serialVersionUID = 0L; - public static final int PROOFS_FIELD_NUMBER = 3; - private java.util.List proofs_; - /** - * repeated bytes proofs = 3; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return proofs_; - } - /** - * repeated bytes proofs = 3; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 3; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } + // Use UnsignTx.newBuilder() to construct. + private UnsignTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int HEIGHT_FIELD_NUMBER = 4; - private long height_; - /** - * int64 height = 4; - * @return The height. - */ - public long getHeight() { - return height_; - } + private UnsignTx() { + data_ = com.google.protobuf.ByteString.EMPTY; + } - public static final int INDEX_FIELD_NUMBER = 5; - private long index_; - /** - * int64 index = 5; - * @return The index. - */ - public long getIndex() { - return index_; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnsignTx(); + } - public static final int BLOCKTIME_FIELD_NUMBER = 6; - private long blocktime_; - /** - * int64 blocktime = 6; - * @return The blocktime. - */ - public long getBlocktime() { - return blocktime_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int AMOUNT_FIELD_NUMBER = 7; - private long amount_; - /** - * int64 amount = 7; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + private UnsignTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + data_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int FROMADDR_FIELD_NUMBER = 8; - private volatile java.lang.Object fromaddr_; - /** - * string fromaddr = 8; - * @return The fromaddr. - */ - public java.lang.String getFromaddr() { - java.lang.Object ref = fromaddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromaddr_ = s; - return s; - } - } - /** - * string fromaddr = 8; - * @return The bytes for fromaddr. - */ - public com.google.protobuf.ByteString - getFromaddrBytes() { - java.lang.Object ref = fromaddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromaddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_descriptor; + } - public static final int ACTIONNAME_FIELD_NUMBER = 9; - private volatile java.lang.Object actionName_; - /** - * string actionName = 9; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } - } - /** - * string actionName = 9; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.Builder.class); + } - public static final int ASSETS_FIELD_NUMBER = 10; - private java.util.List assets_; - /** - * repeated .Asset assets = 10; - */ - public java.util.List getAssetsList() { - return assets_; - } - /** - * repeated .Asset assets = 10; - */ - public java.util.List - getAssetsOrBuilderList() { - return assets_; - } - /** - * repeated .Asset assets = 10; - */ - public int getAssetsCount() { - return assets_.size(); - } - /** - * repeated .Asset assets = 10; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { - return assets_.get(index); - } - /** - * repeated .Asset assets = 10; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( - int index) { - return assets_.get(index); - } + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; - public static final int TXPROOFS_FIELD_NUMBER = 11; - private java.util.List txProofs_; - /** - * repeated .TxProof txProofs = 11; - */ - public java.util.List getTxProofsList() { - return txProofs_; - } - /** - * repeated .TxProof txProofs = 11; - */ - public java.util.List - getTxProofsOrBuilderList() { - return txProofs_; - } - /** - * repeated .TxProof txProofs = 11; - */ - public int getTxProofsCount() { - return txProofs_.size(); - } - /** - * repeated .TxProof txProofs = 11; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getTxProofs(int index) { - return txProofs_.get(index); - } - /** - * repeated .TxProof txProofs = 11; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder getTxProofsOrBuilder( - int index) { - return txProofs_.get(index); - } + /** + * bytes data = 1; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } - public static final int FULLHASH_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString fullHash_; - /** - * bytes fullHash = 12; - * @return The fullHash. - */ - public com.google.protobuf.ByteString getFullHash() { - return fullHash_; - } + private byte memoizedIsInitialized = -1; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - memoizedIsInitialized = 1; - return true; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tx_ != null) { - output.writeMessage(1, getTx()); - } - if (receipt_ != null) { - output.writeMessage(2, getReceipt()); - } - for (int i = 0; i < proofs_.size(); i++) { - output.writeBytes(3, proofs_.get(i)); - } - if (height_ != 0L) { - output.writeInt64(4, height_); - } - if (index_ != 0L) { - output.writeInt64(5, index_); - } - if (blocktime_ != 0L) { - output.writeInt64(6, blocktime_); - } - if (amount_ != 0L) { - output.writeInt64(7, amount_); - } - if (!getFromaddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fromaddr_); - } - if (!getActionNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, actionName_); - } - for (int i = 0; i < assets_.size(); i++) { - output.writeMessage(10, assets_.get(i)); - } - for (int i = 0; i < txProofs_.size(); i++) { - output.writeMessage(11, txProofs_.get(i)); - } - if (!fullHash_.isEmpty()) { - output.writeBytes(12, fullHash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTx()); - } - if (receipt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReceipt()); - } - { - int dataSize = 0; - for (int i = 0; i < proofs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(proofs_.get(i)); - } - size += dataSize; - size += 1 * getProofsList().size(); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, height_); - } - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, index_); - } - if (blocktime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, blocktime_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, amount_); - } - if (!getFromaddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fromaddr_); - } - if (!getActionNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, actionName_); - } - for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, assets_.get(i)); - } - for (int i = 0; i < txProofs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, txProofs_.get(i)); - } - if (!fullHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, fullHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail) obj; - - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (hasReceipt() != other.hasReceipt()) return false; - if (hasReceipt()) { - if (!getReceipt() - .equals(other.getReceipt())) return false; - } - if (!getProofsList() - .equals(other.getProofsList())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getIndex() - != other.getIndex()) return false; - if (getBlocktime() - != other.getBlocktime()) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getFromaddr() - .equals(other.getFromaddr())) return false; - if (!getActionName() - .equals(other.getActionName())) return false; - if (!getAssetsList() - .equals(other.getAssetsList())) return false; - if (!getTxProofsList() - .equals(other.getTxProofsList())) return false; - if (!getFullHash() - .equals(other.getFullHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - if (hasReceipt()) { - hash = (37 * hash) + RECEIPT_FIELD_NUMBER; - hash = (53 * hash) + getReceipt().hashCode(); - } - if (getProofsCount() > 0) { - hash = (37 * hash) + PROOFS_FIELD_NUMBER; - hash = (53 * hash) + getProofsList().hashCode(); - } - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocktime()); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + FROMADDR_FIELD_NUMBER; - hash = (53 * hash) + getFromaddr().hashCode(); - hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; - hash = (53 * hash) + getActionName().hashCode(); - if (getAssetsCount() > 0) { - hash = (37 * hash) + ASSETS_FIELD_NUMBER; - hash = (53 * hash) + getAssetsList().hashCode(); - } - if (getTxProofsCount() > 0) { - hash = (37 * hash) + TXPROOFS_FIELD_NUMBER; - hash = (53 * hash) + getTxProofsList().hashCode(); - } - hash = (37 * hash) + FULLHASH_FIELD_NUMBER; - hash = (53 * hash) + getFullHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx) obj; - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + if (!getData().equals(other.getData())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 UnsignTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:UnsignTx) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UnsignTx_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx( + this); + result.data_ = data_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.getDefaultInstance()) + return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes data = 1; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + /** + * bytes data = 1; + * + * @param value + * The data to set. + * + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + + /** + * bytes data = 1; + * + * @return This builder for chaining. + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:UnsignTx) + } + + // @@protoc_insertion_point(class_scope:UnsignTx) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnsignTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnsignTx(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NoBalanceTxsOrBuilder extends + // @@protoc_insertion_point(interface_extends:NoBalanceTxs) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string txHexs = 1; + * + * @return A list containing the txHexs. + */ + java.util.List getTxHexsList(); + + /** + * repeated string txHexs = 1; + * + * @return The count of txHexs. + */ + int getTxHexsCount(); + + /** + * repeated string txHexs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHexs at the given index. + */ + java.lang.String getTxHexs(int index); + + /** + * repeated string txHexs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txHexs at the given index. + */ + com.google.protobuf.ByteString getTxHexsBytes(int index); + + /** + * string payAddr = 2; + * + * @return The payAddr. + */ + java.lang.String getPayAddr(); + + /** + * string payAddr = 2; + * + * @return The bytes for payAddr. + */ + com.google.protobuf.ByteString getPayAddrBytes(); + + /** + * string privkey = 3; + * + * @return The privkey. + */ + java.lang.String getPrivkey(); + + /** + * string privkey = 3; + * + * @return The bytes for privkey. + */ + com.google.protobuf.ByteString getPrivkeyBytes(); + + /** + * string expire = 4; + * + * @return The expire. + */ + java.lang.String getExpire(); + + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + com.google.protobuf.ByteString getExpireBytes(); } + /** - * Protobuf type {@code TransactionDetail} + *
+     * 支持构造多笔nobalance的交易 payAddr 可以支持 1. 地址 2. 私钥
+     * 
+ * + * Protobuf type {@code NoBalanceTxs} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TransactionDetail) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - getTxProofsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - if (receiptBuilder_ == null) { - receipt_ = null; - } else { - receipt_ = null; - receiptBuilder_ = null; - } - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - height_ = 0L; - - index_ = 0L; - - blocktime_ = 0L; - - amount_ = 0L; - - fromaddr_ = ""; - - actionName_ = ""; - - if (assetsBuilder_ == null) { - assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - assetsBuilder_.clear(); - } - if (txProofsBuilder_ == null) { - txProofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - txProofsBuilder_.clear(); - } - fullHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail(this); - int from_bitField0_ = bitField0_; - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - if (receiptBuilder_ == null) { - result.receipt_ = receipt_; - } else { - result.receipt_ = receiptBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.proofs_ = proofs_; - result.height_ = height_; - result.index_ = index_; - result.blocktime_ = blocktime_; - result.amount_ = amount_; - result.fromaddr_ = fromaddr_; - result.actionName_ = actionName_; - if (assetsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.assets_ = assets_; - } else { - result.assets_ = assetsBuilder_.build(); - } - if (txProofsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - txProofs_ = java.util.Collections.unmodifiableList(txProofs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.txProofs_ = txProofs_; - } else { - result.txProofs_ = txProofsBuilder_.build(); - } - result.fullHash_ = fullHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.getDefaultInstance()) return this; - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (other.hasReceipt()) { - mergeReceipt(other.getReceipt()); - } - if (!other.proofs_.isEmpty()) { - if (proofs_.isEmpty()) { - proofs_ = other.proofs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProofsIsMutable(); - proofs_.addAll(other.proofs_); - } - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (other.getBlocktime() != 0L) { - setBlocktime(other.getBlocktime()); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getFromaddr().isEmpty()) { - fromaddr_ = other.fromaddr_; - onChanged(); - } - if (!other.getActionName().isEmpty()) { - actionName_ = other.actionName_; - onChanged(); - } - if (assetsBuilder_ == null) { - if (!other.assets_.isEmpty()) { - if (assets_.isEmpty()) { - assets_ = other.assets_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAssetsIsMutable(); - assets_.addAll(other.assets_); - } - onChanged(); - } - } else { - if (!other.assets_.isEmpty()) { - if (assetsBuilder_.isEmpty()) { - assetsBuilder_.dispose(); - assetsBuilder_ = null; - assets_ = other.assets_; - bitField0_ = (bitField0_ & ~0x00000002); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssetsFieldBuilder() : null; + public static final class NoBalanceTxs extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:NoBalanceTxs) + NoBalanceTxsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use NoBalanceTxs.newBuilder() to construct. + private NoBalanceTxs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NoBalanceTxs() { + txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + payAddr_ = ""; + privkey_ = ""; + expire_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NoBalanceTxs(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NoBalanceTxs(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txHexs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txHexs_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + payAddr_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + privkey_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + expire_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txHexs_ = txHexs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.Builder.class); + } + + public static final int TXHEXS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList txHexs_; + + /** + * repeated string txHexs = 1; + * + * @return A list containing the txHexs. + */ + public com.google.protobuf.ProtocolStringList getTxHexsList() { + return txHexs_; + } + + /** + * repeated string txHexs = 1; + * + * @return The count of txHexs. + */ + public int getTxHexsCount() { + return txHexs_.size(); + } + + /** + * repeated string txHexs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHexs at the given index. + */ + public java.lang.String getTxHexs(int index) { + return txHexs_.get(index); + } + + /** + * repeated string txHexs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txHexs at the given index. + */ + public com.google.protobuf.ByteString getTxHexsBytes(int index) { + return txHexs_.getByteString(index); + } + + public static final int PAYADDR_FIELD_NUMBER = 2; + private volatile java.lang.Object payAddr_; + + /** + * string payAddr = 2; + * + * @return The payAddr. + */ + @java.lang.Override + public java.lang.String getPayAddr() { + java.lang.Object ref = payAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - assetsBuilder_.addAllMessages(other.assets_); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payAddr_ = s; + return s; } - } } - if (txProofsBuilder_ == null) { - if (!other.txProofs_.isEmpty()) { - if (txProofs_.isEmpty()) { - txProofs_ = other.txProofs_; - bitField0_ = (bitField0_ & ~0x00000004); + + /** + * string payAddr = 2; + * + * @return The bytes for payAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayAddrBytes() { + java.lang.Object ref = payAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + payAddr_ = b; + return b; } else { - ensureTxProofsIsMutable(); - txProofs_.addAll(other.txProofs_); - } - onChanged(); - } - } else { - if (!other.txProofs_.isEmpty()) { - if (txProofsBuilder_.isEmpty()) { - txProofsBuilder_.dispose(); - txProofsBuilder_ = null; - txProofs_ = other.txProofs_; - bitField0_ = (bitField0_ & ~0x00000004); - txProofsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxProofsFieldBuilder() : null; + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVKEY_FIELD_NUMBER = 3; + private volatile java.lang.Object privkey_; + + /** + * string privkey = 3; + * + * @return The privkey. + */ + @java.lang.Override + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - txProofsBuilder_.addAllMessages(other.txProofs_); - } - } - } - if (other.getFullHash() != com.google.protobuf.ByteString.EMPTY) { - setFullHash(other.getFullHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txBuilder_; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - if (txBuilder_ == null) { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - * .Transaction tx = 1; - */ - public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder setTx( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - } - /** - * .Transaction tx = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> receiptBuilder_; - /** - * .ReceiptData receipt = 2; - * @return Whether the receipt field is set. - */ - public boolean hasReceipt() { - return receiptBuilder_ != null || receipt_ != null; - } - /** - * .ReceiptData receipt = 2; - * @return The receipt. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { - if (receiptBuilder_ == null) { - return receipt_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } else { - return receiptBuilder_.getMessage(); - } - } - /** - * .ReceiptData receipt = 2; - */ - public Builder setReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - receipt_ = value; - onChanged(); - } else { - receiptBuilder_.setMessage(value); - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public Builder setReceipt( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptBuilder_ == null) { - receipt_ = builderForValue.build(); - onChanged(); - } else { - receiptBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public Builder mergeReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptBuilder_ == null) { - if (receipt_ != null) { - receipt_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.newBuilder(receipt_).mergeFrom(value).buildPartial(); - } else { - receipt_ = value; - } - onChanged(); - } else { - receiptBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public Builder clearReceipt() { - if (receiptBuilder_ == null) { - receipt_ = null; - onChanged(); - } else { - receipt_ = null; - receiptBuilder_ = null; - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptBuilder() { - - onChanged(); - return getReceiptFieldBuilder().getBuilder(); - } - /** - * .ReceiptData receipt = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { - if (receiptBuilder_ != null) { - return receiptBuilder_.getMessageOrBuilder(); - } else { - return receipt_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } - } - /** - * .ReceiptData receipt = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> - getReceiptFieldBuilder() { - if (receiptBuilder_ == null) { - receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder>( - getReceipt(), - getParentForChildren(), - isClean()); - receipt_ = null; - } - return receiptBuilder_; - } - - private java.util.List proofs_ = java.util.Collections.emptyList(); - private void ensureProofsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(proofs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes proofs = 3; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(proofs_) : proofs_; - } - /** - * repeated bytes proofs = 3; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 3; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } - /** - * repeated bytes proofs = 3; - * @param index The index to set the value at. - * @param value The proofs to set. - * @return This builder for chaining. - */ - public Builder setProofs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 3; - * @param value The proofs to add. - * @return This builder for chaining. - */ - public Builder addProofs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 3; - * @param values The proofs to add. - * @return This builder for chaining. - */ - public Builder addAllProofs( - java.lang.Iterable values) { - ensureProofsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proofs_); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 3; - * @return This builder for chaining. - */ - public Builder clearProofs() { - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 4; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 4; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 4; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long index_ ; - /** - * int64 index = 5; - * @return The index. - */ - public long getIndex() { - return index_; - } - /** - * int64 index = 5; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int64 index = 5; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private long blocktime_ ; - /** - * int64 blocktime = 6; - * @return The blocktime. - */ - public long getBlocktime() { - return blocktime_; - } - /** - * int64 blocktime = 6; - * @param value The blocktime to set. - * @return This builder for chaining. - */ - public Builder setBlocktime(long value) { - - blocktime_ = value; - onChanged(); - return this; - } - /** - * int64 blocktime = 6; - * @return This builder for chaining. - */ - public Builder clearBlocktime() { - - blocktime_ = 0L; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 7; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 7; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 7; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object fromaddr_ = ""; - /** - * string fromaddr = 8; - * @return The fromaddr. - */ - public java.lang.String getFromaddr() { - java.lang.Object ref = fromaddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromaddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string fromaddr = 8; - * @return The bytes for fromaddr. - */ - public com.google.protobuf.ByteString - getFromaddrBytes() { - java.lang.Object ref = fromaddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromaddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string fromaddr = 8; - * @param value The fromaddr to set. - * @return This builder for chaining. - */ - public Builder setFromaddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fromaddr_ = value; - onChanged(); - return this; - } - /** - * string fromaddr = 8; - * @return This builder for chaining. - */ - public Builder clearFromaddr() { - - fromaddr_ = getDefaultInstance().getFromaddr(); - onChanged(); - return this; - } - /** - * string fromaddr = 8; - * @param value The bytes for fromaddr to set. - * @return This builder for chaining. - */ - public Builder setFromaddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fromaddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object actionName_ = ""; - /** - * string actionName = 9; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string actionName = 9; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string actionName = 9; - * @param value The actionName to set. - * @return This builder for chaining. - */ - public Builder setActionName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - actionName_ = value; - onChanged(); - return this; - } - /** - * string actionName = 9; - * @return This builder for chaining. - */ - public Builder clearActionName() { - - actionName_ = getDefaultInstance().getActionName(); - onChanged(); - return this; - } - /** - * string actionName = 9; - * @param value The bytes for actionName to set. - * @return This builder for chaining. - */ - public Builder setActionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - actionName_ = value; - onChanged(); - return this; - } - - private java.util.List assets_ = - java.util.Collections.emptyList(); - private void ensureAssetsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - assets_ = new java.util.ArrayList(assets_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder> assetsBuilder_; - - /** - * repeated .Asset assets = 10; - */ - public java.util.List getAssetsList() { - if (assetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(assets_); - } else { - return assetsBuilder_.getMessageList(); - } - } - /** - * repeated .Asset assets = 10; - */ - public int getAssetsCount() { - if (assetsBuilder_ == null) { - return assets_.size(); - } else { - return assetsBuilder_.getCount(); - } - } - /** - * repeated .Asset assets = 10; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { - if (assetsBuilder_ == null) { - return assets_.get(index); - } else { - return assetsBuilder_.getMessage(index); - } - } - /** - * repeated .Asset assets = 10; - */ - public Builder setAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.set(index, value); - onChanged(); - } else { - assetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder setAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.set(index, builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder addAssets(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.add(value); - onChanged(); - } else { - assetsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder addAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { - if (assetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssetsIsMutable(); - assets_.add(index, value); - onChanged(); - } else { - assetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder addAssets( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder addAssets( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(index, builderForValue.build()); - onChanged(); - } else { - assetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder addAllAssets( - java.lang.Iterable values) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); - onChanged(); - } else { - assetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder clearAssets() { - if (assetsBuilder_ == null) { - assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - assetsBuilder_.clear(); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public Builder removeAssets(int index) { - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.remove(index); - onChanged(); - } else { - assetsBuilder_.remove(index); - } - return this; - } - /** - * repeated .Asset assets = 10; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder getAssetsBuilder( - int index) { - return getAssetsFieldBuilder().getBuilder(index); - } - /** - * repeated .Asset assets = 10; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( - int index) { - if (assetsBuilder_ == null) { - return assets_.get(index); } else { - return assetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Asset assets = 10; - */ - public java.util.List - getAssetsOrBuilderList() { - if (assetsBuilder_ != null) { - return assetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(assets_); - } - } - /** - * repeated .Asset assets = 10; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); - } - /** - * repeated .Asset assets = 10; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); - } - /** - * repeated .Asset assets = 10; - */ - public java.util.List - getAssetsBuilderList() { - return getAssetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder> - getAssetsFieldBuilder() { - if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - assets_ = null; - } - return assetsBuilder_; - } - - private java.util.List txProofs_ = - java.util.Collections.emptyList(); - private void ensureTxProofsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - txProofs_ = new java.util.ArrayList(txProofs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder> txProofsBuilder_; - - /** - * repeated .TxProof txProofs = 11; - */ - public java.util.List getTxProofsList() { - if (txProofsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txProofs_); - } else { - return txProofsBuilder_.getMessageList(); - } - } - /** - * repeated .TxProof txProofs = 11; - */ - public int getTxProofsCount() { - if (txProofsBuilder_ == null) { - return txProofs_.size(); - } else { - return txProofsBuilder_.getCount(); - } - } - /** - * repeated .TxProof txProofs = 11; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getTxProofs(int index) { - if (txProofsBuilder_ == null) { - return txProofs_.get(index); - } else { - return txProofsBuilder_.getMessage(index); - } - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder setTxProofs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof value) { - if (txProofsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxProofsIsMutable(); - txProofs_.set(index, value); - onChanged(); - } else { - txProofsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder setTxProofs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder builderForValue) { - if (txProofsBuilder_ == null) { - ensureTxProofsIsMutable(); - txProofs_.set(index, builderForValue.build()); - onChanged(); - } else { - txProofsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder addTxProofs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof value) { - if (txProofsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxProofsIsMutable(); - txProofs_.add(value); - onChanged(); - } else { - txProofsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder addTxProofs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof value) { - if (txProofsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxProofsIsMutable(); - txProofs_.add(index, value); - onChanged(); - } else { - txProofsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder addTxProofs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder builderForValue) { - if (txProofsBuilder_ == null) { - ensureTxProofsIsMutable(); - txProofs_.add(builderForValue.build()); - onChanged(); - } else { - txProofsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder addTxProofs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder builderForValue) { - if (txProofsBuilder_ == null) { - ensureTxProofsIsMutable(); - txProofs_.add(index, builderForValue.build()); - onChanged(); - } else { - txProofsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder addAllTxProofs( - java.lang.Iterable values) { - if (txProofsBuilder_ == null) { - ensureTxProofsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txProofs_); - onChanged(); - } else { - txProofsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder clearTxProofs() { - if (txProofsBuilder_ == null) { - txProofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - txProofsBuilder_.clear(); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public Builder removeTxProofs(int index) { - if (txProofsBuilder_ == null) { - ensureTxProofsIsMutable(); - txProofs_.remove(index); - onChanged(); - } else { - txProofsBuilder_.remove(index); - } - return this; - } - /** - * repeated .TxProof txProofs = 11; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder getTxProofsBuilder( - int index) { - return getTxProofsFieldBuilder().getBuilder(index); - } - /** - * repeated .TxProof txProofs = 11; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder getTxProofsOrBuilder( - int index) { - if (txProofsBuilder_ == null) { - return txProofs_.get(index); } else { - return txProofsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .TxProof txProofs = 11; - */ - public java.util.List - getTxProofsOrBuilderList() { - if (txProofsBuilder_ != null) { - return txProofsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txProofs_); - } - } - /** - * repeated .TxProof txProofs = 11; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder addTxProofsBuilder() { - return getTxProofsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance()); - } - /** - * repeated .TxProof txProofs = 11; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder addTxProofsBuilder( - int index) { - return getTxProofsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance()); - } - /** - * repeated .TxProof txProofs = 11; - */ - public java.util.List - getTxProofsBuilderList() { - return getTxProofsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder> - getTxProofsFieldBuilder() { - if (txProofsBuilder_ == null) { - txProofsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder>( - txProofs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - txProofs_ = null; - } - return txProofsBuilder_; - } - - private com.google.protobuf.ByteString fullHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes fullHash = 12; - * @return The fullHash. - */ - public com.google.protobuf.ByteString getFullHash() { - return fullHash_; - } - /** - * bytes fullHash = 12; - * @param value The fullHash to set. - * @return This builder for chaining. - */ - public Builder setFullHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - fullHash_ = value; - onChanged(); - return this; - } - /** - * bytes fullHash = 12; - * @return This builder for chaining. - */ - public Builder clearFullHash() { - - fullHash_ = getDefaultInstance().getFullHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TransactionDetail) - } + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:TransactionDetail) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail(); - } + /** + * string privkey = 3; + * + * @return The bytes for privkey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int EXPIRE_FIELD_NUMBER = 4; + private volatile java.lang.Object expire_; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string expire = 4; + * + * @return The expire. + */ + @java.lang.Override + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public interface TransactionDetailsOrBuilder extends - // @@protoc_insertion_point(interface_extends:TransactionDetails) - com.google.protobuf.MessageOrBuilder { + memoizedIsInitialized = 1; + return true; + } - /** - * repeated .TransactionDetail txs = 1; - */ - java.util.List - getTxsList(); - /** - * repeated .TransactionDetail txs = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getTxs(int index); - /** - * repeated .TransactionDetail txs = 1; - */ - int getTxsCount(); - /** - * repeated .TransactionDetail txs = 1; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txHexs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHexs_.getRaw(i)); + } + if (!getPayAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payAddr_); + } + if (!getPrivkeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, privkey_); + } + if (!getExpireBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < txHexs_.size(); i++) { + dataSize += computeStringSizeNoTag(txHexs_.getRaw(i)); + } + size += dataSize; + size += 1 * getTxHexsList().size(); + } + if (!getPayAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payAddr_); + } + if (!getPrivkeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, privkey_); + } + if (!getExpireBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) obj; + + if (!getTxHexsList().equals(other.getTxHexsList())) + return false; + if (!getPayAddr().equals(other.getPayAddr())) + return false; + if (!getPrivkey().equals(other.getPrivkey())) + return false; + if (!getExpire().equals(other.getExpire())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxHexsCount() > 0) { + hash = (37 * hash) + TXHEXS_FIELD_NUMBER; + hash = (53 * hash) + getTxHexsList().hashCode(); + } + hash = (37 * hash) + PAYADDR_FIELD_NUMBER; + hash = (53 * hash) + getPayAddr().hashCode(); + hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivkey().hashCode(); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + getExpire().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 支持构造多笔nobalance的交易 payAddr 可以支持 1. 地址 2. 私钥
+         * 
+ * + * Protobuf type {@code NoBalanceTxs} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:NoBalanceTxs) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + payAddr_ = ""; + + privkey_ = ""; + + expire_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTxs_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + txHexs_ = txHexs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txHexs_ = txHexs_; + result.payAddr_ = payAddr_; + result.privkey_ = privkey_; + result.expire_ = expire_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.getDefaultInstance()) + return this; + if (!other.txHexs_.isEmpty()) { + if (txHexs_.isEmpty()) { + txHexs_ = other.txHexs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxHexsIsMutable(); + txHexs_.addAll(other.txHexs_); + } + onChanged(); + } + if (!other.getPayAddr().isEmpty()) { + payAddr_ = other.payAddr_; + onChanged(); + } + if (!other.getPrivkey().isEmpty()) { + privkey_ = other.privkey_; + onChanged(); + } + if (!other.getExpire().isEmpty()) { + expire_ = other.expire_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTxHexsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txHexs_ = new com.google.protobuf.LazyStringArrayList(txHexs_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string txHexs = 1; + * + * @return A list containing the txHexs. + */ + public com.google.protobuf.ProtocolStringList getTxHexsList() { + return txHexs_.getUnmodifiableView(); + } + + /** + * repeated string txHexs = 1; + * + * @return The count of txHexs. + */ + public int getTxHexsCount() { + return txHexs_.size(); + } + + /** + * repeated string txHexs = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHexs at the given index. + */ + public java.lang.String getTxHexs(int index) { + return txHexs_.get(index); + } + + /** + * repeated string txHexs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the txHexs at the given index. + */ + public com.google.protobuf.ByteString getTxHexsBytes(int index) { + return txHexs_.getByteString(index); + } + + /** + * repeated string txHexs = 1; + * + * @param index + * The index to set the value at. + * @param value + * The txHexs to set. + * + * @return This builder for chaining. + */ + public Builder setTxHexs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHexsIsMutable(); + txHexs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string txHexs = 1; + * + * @param value + * The txHexs to add. + * + * @return This builder for chaining. + */ + public Builder addTxHexs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHexsIsMutable(); + txHexs_.add(value); + onChanged(); + return this; + } + + /** + * repeated string txHexs = 1; + * + * @param values + * The txHexs to add. + * + * @return This builder for chaining. + */ + public Builder addAllTxHexs(java.lang.Iterable values) { + ensureTxHexsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHexs_); + onChanged(); + return this; + } + + /** + * repeated string txHexs = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHexs() { + txHexs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string txHexs = 1; + * + * @param value + * The bytes of the txHexs to add. + * + * @return This builder for chaining. + */ + public Builder addTxHexsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTxHexsIsMutable(); + txHexs_.add(value); + onChanged(); + return this; + } + + private java.lang.Object payAddr_ = ""; + + /** + * string payAddr = 2; + * + * @return The payAddr. + */ + public java.lang.String getPayAddr() { + java.lang.Object ref = payAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string payAddr = 2; + * + * @return The bytes for payAddr. + */ + public com.google.protobuf.ByteString getPayAddrBytes() { + java.lang.Object ref = payAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + payAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string payAddr = 2; + * + * @param value + * The payAddr to set. + * + * @return This builder for chaining. + */ + public Builder setPayAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + payAddr_ = value; + onChanged(); + return this; + } + + /** + * string payAddr = 2; + * + * @return This builder for chaining. + */ + public Builder clearPayAddr() { + + payAddr_ = getDefaultInstance().getPayAddr(); + onChanged(); + return this; + } + + /** + * string payAddr = 2; + * + * @param value + * The bytes for payAddr to set. + * + * @return This builder for chaining. + */ + public Builder setPayAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + payAddr_ = value; + onChanged(); + return this; + } + + private java.lang.Object privkey_ = ""; + + /** + * string privkey = 3; + * + * @return The privkey. + */ + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string privkey = 3; + * + * @return The bytes for privkey. + */ + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string privkey = 3; + * + * @param value + * The privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privkey_ = value; + onChanged(); + return this; + } + + /** + * string privkey = 3; + * + * @return This builder for chaining. + */ + public Builder clearPrivkey() { + + privkey_ = getDefaultInstance().getPrivkey(); + onChanged(); + return this; + } + + /** + * string privkey = 3; + * + * @param value + * The bytes for privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privkey_ = value; + onChanged(); + return this; + } + + private java.lang.Object expire_ = ""; + + /** + * string expire = 4; + * + * @return The expire. + */ + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string expire = 4; + * + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expire_ = value; + onChanged(); + return this; + } + + /** + * string expire = 4; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { + + expire_ = getDefaultInstance().getExpire(); + onChanged(); + return this; + } + + /** + * string expire = 4; + * + * @param value + * The bytes for expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpireBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expire_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:NoBalanceTxs) + } + + // @@protoc_insertion_point(class_scope:NoBalanceTxs) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NoBalanceTxs parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NoBalanceTxs(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NoBalanceTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:NoBalanceTx) + com.google.protobuf.MessageOrBuilder { + + /** + * string txHex = 1; + * + * @return The txHex. + */ + java.lang.String getTxHex(); + + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + com.google.protobuf.ByteString getTxHexBytes(); + + /** + * string payAddr = 2; + * + * @return The payAddr. + */ + java.lang.String getPayAddr(); + + /** + * string payAddr = 2; + * + * @return The bytes for payAddr. + */ + com.google.protobuf.ByteString getPayAddrBytes(); + + /** + * string privkey = 3; + * + * @return The privkey. + */ + java.lang.String getPrivkey(); + + /** + * string privkey = 3; + * + * @return The bytes for privkey. + */ + com.google.protobuf.ByteString getPrivkeyBytes(); + + /** + * string expire = 4; + * + * @return The expire. + */ + java.lang.String getExpire(); + + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + com.google.protobuf.ByteString getExpireBytes(); + } + + /** + *
+     * payAddr 可以支持 1. 地址 2. 私钥
+     * 
+ * + * Protobuf type {@code NoBalanceTx} + */ + public static final class NoBalanceTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:NoBalanceTx) + NoBalanceTxOrBuilder { + private static final long serialVersionUID = 0L; + + // Use NoBalanceTx.newBuilder() to construct. + private NoBalanceTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NoBalanceTx() { + txHex_ = ""; + payAddr_ = ""; + privkey_ = ""; + expire_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NoBalanceTx(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NoBalanceTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + txHex_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + payAddr_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + privkey_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + expire_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.Builder.class); + } + + public static final int TXHEX_FIELD_NUMBER = 1; + private volatile java.lang.Object txHex_; + + /** + * string txHex = 1; + * + * @return The txHex. + */ + @java.lang.Override + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } + } + + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYADDR_FIELD_NUMBER = 2; + private volatile java.lang.Object payAddr_; + + /** + * string payAddr = 2; + * + * @return The payAddr. + */ + @java.lang.Override + public java.lang.String getPayAddr() { + java.lang.Object ref = payAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payAddr_ = s; + return s; + } + } + + /** + * string payAddr = 2; + * + * @return The bytes for payAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayAddrBytes() { + java.lang.Object ref = payAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + payAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVKEY_FIELD_NUMBER = 3; + private volatile java.lang.Object privkey_; + + /** + * string privkey = 3; + * + * @return The privkey. + */ + @java.lang.Override + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } + } + + /** + * string privkey = 3; + * + * @return The bytes for privkey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_FIELD_NUMBER = 4; + private volatile java.lang.Object expire_; + + /** + * string expire = 4; + * + * @return The expire. + */ + @java.lang.Override + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } + } + + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTxHexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHex_); + } + if (!getPayAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payAddr_); + } + if (!getPrivkeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, privkey_); + } + if (!getExpireBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTxHexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHex_); + } + if (!getPayAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payAddr_); + } + if (!getPrivkeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, privkey_); + } + if (!getExpireBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) obj; + + if (!getTxHex().equals(other.getTxHex())) + return false; + if (!getPayAddr().equals(other.getPayAddr())) + return false; + if (!getPrivkey().equals(other.getPrivkey())) + return false; + if (!getExpire().equals(other.getExpire())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHEX_FIELD_NUMBER; + hash = (53 * hash) + getTxHex().hashCode(); + hash = (37 * hash) + PAYADDR_FIELD_NUMBER; + hash = (53 * hash) + getPayAddr().hashCode(); + hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivkey().hashCode(); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + getExpire().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * payAddr 可以支持 1. 地址 2. 私钥
+         * 
+ * + * Protobuf type {@code NoBalanceTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:NoBalanceTx) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + txHex_ = ""; + + payAddr_ = ""; + + privkey_ = ""; + + expire_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_NoBalanceTx_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx( + this); + result.txHex_ = txHex_; + result.payAddr_ = payAddr_; + result.privkey_ = privkey_; + result.expire_ = expire_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.getDefaultInstance()) + return this; + if (!other.getTxHex().isEmpty()) { + txHex_ = other.txHex_; + onChanged(); + } + if (!other.getPayAddr().isEmpty()) { + payAddr_ = other.payAddr_; + onChanged(); + } + if (!other.getPrivkey().isEmpty()) { + privkey_ = other.privkey_; + onChanged(); + } + if (!other.getExpire().isEmpty()) { + expire_ = other.expire_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object txHex_ = ""; + + /** + * string txHex = 1; + * + * @return The txHex. + */ + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string txHex = 1; + * + * @param value + * The txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txHex_ = value; + onChanged(); + return this; + } + + /** + * string txHex = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHex() { + + txHex_ = getDefaultInstance().getTxHex(); + onChanged(); + return this; + } + + /** + * string txHex = 1; + * + * @param value + * The bytes for txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txHex_ = value; + onChanged(); + return this; + } + + private java.lang.Object payAddr_ = ""; + + /** + * string payAddr = 2; + * + * @return The payAddr. + */ + public java.lang.String getPayAddr() { + java.lang.Object ref = payAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string payAddr = 2; + * + * @return The bytes for payAddr. + */ + public com.google.protobuf.ByteString getPayAddrBytes() { + java.lang.Object ref = payAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + payAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string payAddr = 2; + * + * @param value + * The payAddr to set. + * + * @return This builder for chaining. + */ + public Builder setPayAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + payAddr_ = value; + onChanged(); + return this; + } + + /** + * string payAddr = 2; + * + * @return This builder for chaining. + */ + public Builder clearPayAddr() { + + payAddr_ = getDefaultInstance().getPayAddr(); + onChanged(); + return this; + } + + /** + * string payAddr = 2; + * + * @param value + * The bytes for payAddr to set. + * + * @return This builder for chaining. + */ + public Builder setPayAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + payAddr_ = value; + onChanged(); + return this; + } + + private java.lang.Object privkey_ = ""; + + /** + * string privkey = 3; + * + * @return The privkey. + */ + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string privkey = 3; + * + * @return The bytes for privkey. + */ + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string privkey = 3; + * + * @param value + * The privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privkey_ = value; + onChanged(); + return this; + } + + /** + * string privkey = 3; + * + * @return This builder for chaining. + */ + public Builder clearPrivkey() { + + privkey_ = getDefaultInstance().getPrivkey(); + onChanged(); + return this; + } + + /** + * string privkey = 3; + * + * @param value + * The bytes for privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privkey_ = value; + onChanged(); + return this; + } + + private java.lang.Object expire_ = ""; + + /** + * string expire = 4; + * + * @return The expire. + */ + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string expire = 4; + * + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expire_ = value; + onChanged(); + return this; + } + + /** + * string expire = 4; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { + + expire_ = getDefaultInstance().getExpire(); + onChanged(); + return this; + } + + /** + * string expire = 4; + * + * @param value + * The bytes for expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpireBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expire_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:NoBalanceTx) + } + + // @@protoc_insertion_point(class_scope:NoBalanceTx) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NoBalanceTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NoBalanceTx(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransactionOrBuilder extends + // @@protoc_insertion_point(interface_extends:Transaction) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes execer = 1; + * + * @return The execer. + */ + com.google.protobuf.ByteString getExecer(); + + /** + * bytes payload = 2; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); + + /** + * .Signature signature = 3; + * + * @return Whether the signature field is set. + */ + boolean hasSignature(); + + /** + * .Signature signature = 3; + * + * @return The signature. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature(); + + /** + * .Signature signature = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder(); + + /** + * int64 fee = 4; + * + * @return The fee. + */ + long getFee(); + + /** + * int64 expire = 5; + * + * @return The expire. + */ + long getExpire(); + + /** + *
+         *随机ID,可以防止payload 相同的时候,交易重复
+         * 
+ * + * int64 nonce = 6; + * + * @return The nonce. + */ + long getNonce(); + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + + /** + * int32 groupCount = 8; + * + * @return The groupCount. + */ + int getGroupCount(); + + /** + * bytes header = 9; + * + * @return The header. + */ + com.google.protobuf.ByteString getHeader(); + + /** + * bytes next = 10; + * + * @return The next. + */ + com.google.protobuf.ByteString getNext(); + + /** + * int32 chainID = 11; + * + * @return The chainID. + */ + int getChainID(); + } + + /** + * Protobuf type {@code Transaction} + */ + public static final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Transaction) + TransactionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Transaction.newBuilder() to construct. + private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Transaction() { + execer_ = com.google.protobuf.ByteString.EMPTY; + payload_ = com.google.protobuf.ByteString.EMPTY; + to_ = ""; + header_ = com.google.protobuf.ByteString.EMPTY; + next_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Transaction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Transaction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + execer_ = input.readBytes(); + break; + } + case 18: { + + payload_ = input.readBytes(); + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder subBuilder = null; + if (signature_ != null) { + subBuilder = signature_.toBuilder(); + } + signature_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signature_); + signature_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + fee_ = input.readInt64(); + break; + } + case 40: { + + expire_ = input.readInt64(); + break; + } + case 48: { + + nonce_ = input.readInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 64: { + + groupCount_ = input.readInt32(); + break; + } + case 74: { + + header_ = input.readBytes(); + break; + } + case 82: { + + next_ = input.readBytes(); + break; + } + case 88: { + + chainID_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder.class); + } + + public static final int EXECER_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString execer_; + + /** + * bytes execer = 1; + * + * @return The execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecer() { + return execer_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString payload_; + + /** + * bytes payload = 2; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + public static final int SIGNATURE_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; + + /** + * .Signature signature = 3; + * + * @return Whether the signature field is set. + */ + @java.lang.Override + public boolean hasSignature() { + return signature_ != null; + } + + /** + * .Signature signature = 3; + * + * @return The signature. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } + + /** + * .Signature signature = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + return getSignature(); + } + + public static final int FEE_FIELD_NUMBER = 4; + private long fee_; + + /** + * int64 fee = 4; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int EXPIRE_FIELD_NUMBER = 5; + private long expire_; + + /** + * int64 expire = 5; + * + * @return The expire. + */ + @java.lang.Override + public long getExpire() { + return expire_; + } + + public static final int NONCE_FIELD_NUMBER = 6; + private long nonce_; + + /** + *
+         *随机ID,可以防止payload 相同的时候,交易重复
+         * 
+ * + * int64 nonce = 6; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + public static final int TO_FIELD_NUMBER = 7; + private volatile java.lang.Object to_; + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + + /** + *
+         *对方地址,如果没有对方地址,可以为空
+         * 
+ * + * string to = 7; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUPCOUNT_FIELD_NUMBER = 8; + private int groupCount_; + + /** + * int32 groupCount = 8; + * + * @return The groupCount. + */ + @java.lang.Override + public int getGroupCount() { + return groupCount_; + } + + public static final int HEADER_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString header_; + + /** + * bytes header = 9; + * + * @return The header. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHeader() { + return header_; + } + + public static final int NEXT_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString next_; + + /** + * bytes next = 10; + * + * @return The next. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNext() { + return next_; + } + + public static final int CHAINID_FIELD_NUMBER = 11; + private int chainID_; + + /** + * int32 chainID = 11; + * + * @return The chainID. + */ + @java.lang.Override + public int getChainID() { + return chainID_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!execer_.isEmpty()) { + output.writeBytes(1, execer_); + } + if (!payload_.isEmpty()) { + output.writeBytes(2, payload_); + } + if (signature_ != null) { + output.writeMessage(3, getSignature()); + } + if (fee_ != 0L) { + output.writeInt64(4, fee_); + } + if (expire_ != 0L) { + output.writeInt64(5, expire_); + } + if (nonce_ != 0L) { + output.writeInt64(6, nonce_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, to_); + } + if (groupCount_ != 0) { + output.writeInt32(8, groupCount_); + } + if (!header_.isEmpty()) { + output.writeBytes(9, header_); + } + if (!next_.isEmpty()) { + output.writeBytes(10, next_); + } + if (chainID_ != 0) { + output.writeInt32(11, chainID_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!execer_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, execer_); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, payload_); + } + if (signature_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSignature()); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, fee_); + } + if (expire_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, expire_); + } + if (nonce_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, nonce_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, to_); + } + if (groupCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, groupCount_); + } + if (!header_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, header_); + } + if (!next_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, next_); + } + if (chainID_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, chainID_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) obj; + + if (!getExecer().equals(other.getExecer())) + return false; + if (!getPayload().equals(other.getPayload())) + return false; + if (hasSignature() != other.hasSignature()) + return false; + if (hasSignature()) { + if (!getSignature().equals(other.getSignature())) + return false; + } + if (getFee() != other.getFee()) + return false; + if (getExpire() != other.getExpire()) + return false; + if (getNonce() != other.getNonce()) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (getGroupCount() != other.getGroupCount()) + return false; + if (!getHeader().equals(other.getHeader())) + return false; + if (!getNext().equals(other.getNext())) + return false; + if (getChainID() != other.getChainID()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECER_FIELD_NUMBER; + hash = (53 * hash) + getExecer().hashCode(); + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFee()); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpire()); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNonce()); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + GROUPCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGroupCount(); + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + hash = (37 * hash) + NEXT_FIELD_NUMBER; + hash = (53 * hash) + getNext().hashCode(); + hash = (37 * hash) + CHAINID_FIELD_NUMBER; + hash = (53 * hash) + getChainID(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Transaction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Transaction) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + execer_ = com.google.protobuf.ByteString.EMPTY; + + payload_ = com.google.protobuf.ByteString.EMPTY; + + if (signatureBuilder_ == null) { + signature_ = null; + } else { + signature_ = null; + signatureBuilder_ = null; + } + fee_ = 0L; + + expire_ = 0L; + + nonce_ = 0L; + + to_ = ""; + + groupCount_ = 0; + + header_ = com.google.protobuf.ByteString.EMPTY; + + next_ = com.google.protobuf.ByteString.EMPTY; + + chainID_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transaction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction( + this); + result.execer_ = execer_; + result.payload_ = payload_; + if (signatureBuilder_ == null) { + result.signature_ = signature_; + } else { + result.signature_ = signatureBuilder_.build(); + } + result.fee_ = fee_; + result.expire_ = expire_; + result.nonce_ = nonce_; + result.to_ = to_; + result.groupCount_ = groupCount_; + result.header_ = header_; + result.next_ = next_; + result.chainID_ = chainID_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()) + return this; + if (other.getExecer() != com.google.protobuf.ByteString.EMPTY) { + setExecer(other.getExecer()); + } + if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { + setPayload(other.getPayload()); + } + if (other.hasSignature()) { + mergeSignature(other.getSignature()); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (other.getExpire() != 0L) { + setExpire(other.getExpire()); + } + if (other.getNonce() != 0L) { + setNonce(other.getNonce()); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (other.getGroupCount() != 0) { + setGroupCount(other.getGroupCount()); + } + if (other.getHeader() != com.google.protobuf.ByteString.EMPTY) { + setHeader(other.getHeader()); + } + if (other.getNext() != com.google.protobuf.ByteString.EMPTY) { + setNext(other.getNext()); + } + if (other.getChainID() != 0) { + setChainID(other.getChainID()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString execer_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes execer = 1; + * + * @return The execer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecer() { + return execer_; + } + + /** + * bytes execer = 1; + * + * @param value + * The execer to set. + * + * @return This builder for chaining. + */ + public Builder setExecer(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + execer_ = value; + onChanged(); + return this; + } + + /** + * bytes execer = 1; + * + * @return This builder for chaining. + */ + public Builder clearExecer() { + + execer_ = getDefaultInstance().getExecer(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes payload = 2; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * bytes payload = 2; + * + * @param value + * The payload to set. + * + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + payload_ = value; + onChanged(); + return this; + } + + /** + * bytes payload = 2; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature signature_; + private com.google.protobuf.SingleFieldBuilderV3 signatureBuilder_; + + /** + * .Signature signature = 3; + * + * @return Whether the signature field is set. + */ + public boolean hasSignature() { + return signatureBuilder_ != null || signature_ != null; + } + + /** + * .Signature signature = 3; + * + * @return The signature. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getSignature() { + if (signatureBuilder_ == null) { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } else { + return signatureBuilder_.getMessage(); + } + } + + /** + * .Signature signature = 3; + */ + public Builder setSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + signature_ = value; + onChanged(); + } else { + signatureBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public Builder setSignature( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder builderForValue) { + if (signatureBuilder_ == null) { + signature_ = builderForValue.build(); + onChanged(); + } else { + signatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public Builder mergeSignature(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature value) { + if (signatureBuilder_ == null) { + if (signature_ != null) { + signature_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature + .newBuilder(signature_).mergeFrom(value).buildPartial(); + } else { + signature_ = value; + } + onChanged(); + } else { + signatureBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public Builder clearSignature() { + if (signatureBuilder_ == null) { + signature_ = null; + onChanged(); + } else { + signature_ = null; + signatureBuilder_ = null; + } + + return this; + } + + /** + * .Signature signature = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder getSignatureBuilder() { + + onChanged(); + return getSignatureFieldBuilder().getBuilder(); + } + + /** + * .Signature signature = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder getSignatureOrBuilder() { + if (signatureBuilder_ != null) { + return signatureBuilder_.getMessageOrBuilder(); + } else { + return signature_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance() + : signature_; + } + } + + /** + * .Signature signature = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getSignatureFieldBuilder() { + if (signatureBuilder_ == null) { + signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getSignature(), getParentForChildren(), isClean()); + signature_ = null; + } + return signatureBuilder_; + } + + private long fee_; + + /** + * int64 fee = 4; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + /** + * int64 fee = 4; + * + * @param value + * The fee to set. + * + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } + + /** + * int64 fee = 4; + * + * @return This builder for chaining. + */ + public Builder clearFee() { + + fee_ = 0L; + onChanged(); + return this; + } + + private long expire_; + + /** + * int64 expire = 5; + * + * @return The expire. + */ + @java.lang.Override + public long getExpire() { + return expire_; + } + + /** + * int64 expire = 5; + * + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(long value) { + + expire_ = value; + onChanged(); + return this; + } + + /** + * int64 expire = 5; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { + + expire_ = 0L; + onChanged(); + return this; + } + + private long nonce_; + + /** + *
+             *随机ID,可以防止payload 相同的时候,交易重复
+             * 
+ * + * int64 nonce = 6; + * + * @return The nonce. + */ + @java.lang.Override + public long getNonce() { + return nonce_; + } + + /** + *
+             *随机ID,可以防止payload 相同的时候,交易重复
+             * 
+ * + * int64 nonce = 6; + * + * @param value + * The nonce to set. + * + * @return This builder for chaining. + */ + public Builder setNonce(long value) { + + nonce_ = value; + onChanged(); + return this; + } + + /** + *
+             *随机ID,可以防止payload 相同的时候,交易重复
+             * 
+ * + * int64 nonce = 6; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + + nonce_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object to_ = ""; + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + * + * @return This builder for chaining. + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + /** + *
+             *对方地址,如果没有对方地址,可以为空
+             * 
+ * + * string to = 7; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } + + private int groupCount_; + + /** + * int32 groupCount = 8; + * + * @return The groupCount. + */ + @java.lang.Override + public int getGroupCount() { + return groupCount_; + } + + /** + * int32 groupCount = 8; + * + * @param value + * The groupCount to set. + * + * @return This builder for chaining. + */ + public Builder setGroupCount(int value) { + + groupCount_ = value; + onChanged(); + return this; + } + + /** + * int32 groupCount = 8; + * + * @return This builder for chaining. + */ + public Builder clearGroupCount() { + + groupCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString header_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes header = 9; + * + * @return The header. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHeader() { + return header_; + } + + /** + * bytes header = 9; + * + * @param value + * The header to set. + * + * @return This builder for chaining. + */ + public Builder setHeader(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + header_ = value; + onChanged(); + return this; + } + + /** + * bytes header = 9; + * + * @return This builder for chaining. + */ + public Builder clearHeader() { + + header_ = getDefaultInstance().getHeader(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString next_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes next = 10; + * + * @return The next. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNext() { + return next_; + } + + /** + * bytes next = 10; + * + * @param value + * The next to set. + * + * @return This builder for chaining. + */ + public Builder setNext(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + next_ = value; + onChanged(); + return this; + } + + /** + * bytes next = 10; + * + * @return This builder for chaining. + */ + public Builder clearNext() { + + next_ = getDefaultInstance().getNext(); + onChanged(); + return this; + } + + private int chainID_; + + /** + * int32 chainID = 11; + * + * @return The chainID. + */ + @java.lang.Override + public int getChainID() { + return chainID_; + } + + /** + * int32 chainID = 11; + * + * @param value + * The chainID to set. + * + * @return This builder for chaining. + */ + public Builder setChainID(int value) { + + chainID_ = value; + onChanged(); + return this; + } + + /** + * int32 chainID = 11; + * + * @return This builder for chaining. + */ + public Builder clearChainID() { + + chainID_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Transaction) + } + + // @@protoc_insertion_point(class_scope:Transaction) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Transaction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Transaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransactionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Transactions) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); + + /** + * repeated .Transaction txs = 1; + */ + int getTxsCount(); + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder(int index); + } + + /** + * Protobuf type {@code Transactions} + */ + public static final class Transactions extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Transactions) + TransactionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Transactions.newBuilder() to construct. + private Transactions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Transactions() { + txs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Transactions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Transactions(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.Builder.class); + } + + public static final int TXS_FIELD_NUMBER = 1; + private java.util.List txs_; + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(1, txs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, txs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions) obj; + + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 Transactions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Transactions) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Transactions_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions( + this); + int from_bitField0_ = bitField0_; + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions.getDefaultInstance()) + return this; + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List txs_ = java.util.Collections + .emptyList(); + + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { + return getTxsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Transactions) + } + + // @@protoc_insertion_point(class_scope:Transactions) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Transactions parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Transactions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transactions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RingSignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:RingSignature) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .RingSignatureItem items = 1; + */ + java.util.List getItemsList(); + + /** + * repeated .RingSignatureItem items = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getItems(int index); + + /** + * repeated .RingSignatureItem items = 1; + */ + int getItemsCount(); + + /** + * repeated .RingSignatureItem items = 1; + */ + java.util.List getItemsOrBuilderList(); + + /** + * repeated .RingSignatureItem items = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder getItemsOrBuilder( + int index); + } + + /** + *
+     * 环签名类型时,签名字段存储的环签名信息
+     * 
+ * + * Protobuf type {@code RingSignature} + */ + public static final class RingSignature extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:RingSignature) + RingSignatureOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RingSignature.newBuilder() to construct. + private RingSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RingSignature() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RingSignature(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RingSignature(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; + + /** + * repeated .RingSignatureItem items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + @java.lang.Override + public java.util.List getItemsOrBuilderList() { + return items_; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * repeated .RingSignatureItem items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getItems(int index) { + return items_.get(index); + } + + /** + * repeated .RingSignatureItem items = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature) obj; + + if (!getItemsList().equals(other.getItemsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 RingSignature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:RingSignature) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignature_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature( + this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature + .getDefaultInstance()) + return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List items_ = java.util.Collections + .emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList( + items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 itemsBuilder_; + + /** + * repeated .RingSignatureItem items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder setItems(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder addItems(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder addItems( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder addItems(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public java.util.List getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder addItemsBuilder() { + return getItemsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem + .getDefaultInstance()); + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem + .getDefaultInstance()); + } + + /** + * repeated .RingSignatureItem items = 1; + */ + public java.util.List getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:RingSignature) + } + + // @@protoc_insertion_point(class_scope:RingSignature) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RingSignature parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RingSignature(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RingSignatureItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:RingSignatureItem) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes pubkey = 1; + * + * @return A list containing the pubkey. + */ + java.util.List getPubkeyList(); + + /** + * repeated bytes pubkey = 1; + * + * @return The count of pubkey. + */ + int getPubkeyCount(); + + /** + * repeated bytes pubkey = 1; + * + * @param index + * The index of the element to return. + * + * @return The pubkey at the given index. + */ + com.google.protobuf.ByteString getPubkey(int index); + + /** + * repeated bytes signature = 2; + * + * @return A list containing the signature. + */ + java.util.List getSignatureList(); + + /** + * repeated bytes signature = 2; + * + * @return The count of signature. + */ + int getSignatureCount(); + + /** + * repeated bytes signature = 2; + * + * @param index + * The index of the element to return. + * + * @return The signature at the given index. + */ + com.google.protobuf.ByteString getSignature(int index); + } + + /** + *
+     * 环签名中的一组签名数据
+     * 
+ * + * Protobuf type {@code RingSignatureItem} + */ + public static final class RingSignatureItem extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:RingSignatureItem) + RingSignatureItemOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RingSignatureItem.newBuilder() to construct. + private RingSignatureItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RingSignatureItem() { + pubkey_ = java.util.Collections.emptyList(); + signature_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RingSignatureItem(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RingSignatureItem(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pubkey_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pubkey_.add(input.readBytes()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + signature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + signature_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + pubkey_ = java.util.Collections.unmodifiableList(pubkey_); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + signature_ = java.util.Collections.unmodifiableList(signature_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder.class); + } + + public static final int PUBKEY_FIELD_NUMBER = 1; + private java.util.List pubkey_; + + /** + * repeated bytes pubkey = 1; + * + * @return A list containing the pubkey. + */ + @java.lang.Override + public java.util.List getPubkeyList() { + return pubkey_; + } + + /** + * repeated bytes pubkey = 1; + * + * @return The count of pubkey. + */ + public int getPubkeyCount() { + return pubkey_.size(); + } + + /** + * repeated bytes pubkey = 1; + * + * @param index + * The index of the element to return. + * + * @return The pubkey at the given index. + */ + public com.google.protobuf.ByteString getPubkey(int index) { + return pubkey_.get(index); + } + + public static final int SIGNATURE_FIELD_NUMBER = 2; + private java.util.List signature_; + + /** + * repeated bytes signature = 2; + * + * @return A list containing the signature. + */ + @java.lang.Override + public java.util.List getSignatureList() { + return signature_; + } + + /** + * repeated bytes signature = 2; + * + * @return The count of signature. + */ + public int getSignatureCount() { + return signature_.size(); + } + + /** + * repeated bytes signature = 2; + * + * @param index + * The index of the element to return. + * + * @return The signature at the given index. + */ + public com.google.protobuf.ByteString getSignature(int index) { + return signature_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < pubkey_.size(); i++) { + output.writeBytes(1, pubkey_.get(i)); + } + for (int i = 0; i < signature_.size(); i++) { + output.writeBytes(2, signature_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < pubkey_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(pubkey_.get(i)); + } + size += dataSize; + size += 1 * getPubkeyList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < signature_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(signature_.get(i)); + } + size += dataSize; + size += 1 * getSignatureList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem) obj; + + if (!getPubkeyList().equals(other.getPubkeyList())) + return false; + if (!getSignatureList().equals(other.getSignatureList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPubkeyCount() > 0) { + hash = (37 * hash) + PUBKEY_FIELD_NUMBER; + hash = (53 * hash) + getPubkeyList().hashCode(); + } + if (getSignatureCount() > 0) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignatureList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 RingSignatureItem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:RingSignatureItem) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + pubkey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + signature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_RingSignatureItem_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + pubkey_ = java.util.Collections.unmodifiableList(pubkey_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pubkey_ = pubkey_; + if (((bitField0_ & 0x00000002) != 0)) { + signature_ = java.util.Collections.unmodifiableList(signature_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.signature_ = signature_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem + .getDefaultInstance()) + return this; + if (!other.pubkey_.isEmpty()) { + if (pubkey_.isEmpty()) { + pubkey_ = other.pubkey_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePubkeyIsMutable(); + pubkey_.addAll(other.pubkey_); + } + onChanged(); + } + if (!other.signature_.isEmpty()) { + if (signature_.isEmpty()) { + signature_ = other.signature_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSignatureIsMutable(); + signature_.addAll(other.signature_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List pubkey_ = java.util.Collections.emptyList(); + + private void ensurePubkeyIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pubkey_ = new java.util.ArrayList(pubkey_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated bytes pubkey = 1; + * + * @return A list containing the pubkey. + */ + public java.util.List getPubkeyList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(pubkey_) : pubkey_; + } + + /** + * repeated bytes pubkey = 1; + * + * @return The count of pubkey. + */ + public int getPubkeyCount() { + return pubkey_.size(); + } + + /** + * repeated bytes pubkey = 1; + * + * @param index + * The index of the element to return. + * + * @return The pubkey at the given index. + */ + public com.google.protobuf.ByteString getPubkey(int index) { + return pubkey_.get(index); + } + + /** + * repeated bytes pubkey = 1; + * + * @param index + * The index to set the value at. + * @param value + * The pubkey to set. + * + * @return This builder for chaining. + */ + public Builder setPubkey(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePubkeyIsMutable(); + pubkey_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes pubkey = 1; + * + * @param value + * The pubkey to add. + * + * @return This builder for chaining. + */ + public Builder addPubkey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePubkeyIsMutable(); + pubkey_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes pubkey = 1; + * + * @param values + * The pubkey to add. + * + * @return This builder for chaining. + */ + public Builder addAllPubkey(java.lang.Iterable values) { + ensurePubkeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pubkey_); + onChanged(); + return this; + } + + /** + * repeated bytes pubkey = 1; + * + * @return This builder for chaining. + */ + public Builder clearPubkey() { + pubkey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List signature_ = java.util.Collections.emptyList(); + + private void ensureSignatureIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + signature_ = new java.util.ArrayList(signature_); + bitField0_ |= 0x00000002; + } + } + + /** + * repeated bytes signature = 2; + * + * @return A list containing the signature. + */ + public java.util.List getSignatureList() { + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(signature_) + : signature_; + } + + /** + * repeated bytes signature = 2; + * + * @return The count of signature. + */ + public int getSignatureCount() { + return signature_.size(); + } + + /** + * repeated bytes signature = 2; + * + * @param index + * The index of the element to return. + * + * @return The signature at the given index. + */ + public com.google.protobuf.ByteString getSignature(int index) { + return signature_.get(index); + } + + /** + * repeated bytes signature = 2; + * + * @param index + * The index to set the value at. + * @param value + * The signature to set. + * + * @return This builder for chaining. + */ + public Builder setSignature(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignatureIsMutable(); + signature_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes signature = 2; + * + * @param value + * The signature to add. + * + * @return This builder for chaining. + */ + public Builder addSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignatureIsMutable(); + signature_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes signature = 2; + * + * @param values + * The signature to add. + * + * @return This builder for chaining. + */ + public Builder addAllSignature(java.lang.Iterable values) { + ensureSignatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signature_); + onChanged(); + return this; + } + + /** + * repeated bytes signature = 2; + * + * @return This builder for chaining. + */ + public Builder clearSignature() { + signature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:RingSignatureItem) + } + + // @@protoc_insertion_point(class_scope:RingSignatureItem) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RingSignatureItem parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RingSignatureItem(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.RingSignatureItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:Signature) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 ty = 1; + * + * @return The ty. + */ + int getTy(); + + /** + * bytes pubkey = 2; + * + * @return The pubkey. + */ + com.google.protobuf.ByteString getPubkey(); + + /** + *
+         *当ty为5时,格式应该用RingSignature去解析
+         * 
+ * + * bytes signature = 3; + * + * @return The signature. + */ + com.google.protobuf.ByteString getSignature(); + } + + /** + *
+     *对于一个交易组中的交易,要么全部成功,要么全部失败
+     *这个要好好设计一下
+     *最好交易构成一个链条[prevhash].独立的交易构成链条
+     *只要这个组中有一个执行是出错的,那么就执行不成功
+     *三种签名支持
+     * ty = 1 -> secp256k1
+     * ty = 2 -> ed25519
+     * ty = 3 -> sm2
+     * ty = 4 -> OnetimeED25519
+     * ty = 5 -> RingBaseonED25519
+     * 
+ * + * Protobuf type {@code Signature} + */ + public static final class Signature extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Signature) + SignatureOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Signature.newBuilder() to construct. + private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Signature() { + pubkey_ = com.google.protobuf.ByteString.EMPTY; + signature_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Signature(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Signature(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + ty_ = input.readInt32(); + break; + } + case 18: { + + pubkey_ = input.readBytes(); + break; + } + case 26: { + + signature_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder.class); + } + + public static final int TY_FIELD_NUMBER = 1; + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + public static final int PUBKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString pubkey_; + + /** + * bytes pubkey = 2; + * + * @return The pubkey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPubkey() { + return pubkey_; + } + + public static final int SIGNATURE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString signature_; + + /** + *
+         *当ty为5时,格式应该用RingSignature去解析
+         * 
+ * + * bytes signature = 3; + * + * @return The signature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ty_ != 0) { + output.writeInt32(1, ty_); + } + if (!pubkey_.isEmpty()) { + output.writeBytes(2, pubkey_); + } + if (!signature_.isEmpty()) { + output.writeBytes(3, signature_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ty_); + } + if (!pubkey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, pubkey_); + } + if (!signature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, signature_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature) obj; + + if (getTy() != other.getTy()) + return false; + if (!getPubkey().equals(other.getPubkey())) + return false; + if (!getSignature().equals(other.getSignature())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + hash = (37 * hash) + PUBKEY_FIELD_NUMBER; + hash = (53 * hash) + getPubkey().hashCode(); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *对于一个交易组中的交易,要么全部成功,要么全部失败
+         *这个要好好设计一下
+         *最好交易构成一个链条[prevhash].独立的交易构成链条
+         *只要这个组中有一个执行是出错的,那么就执行不成功
+         *三种签名支持
+         * ty = 1 -> secp256k1
+         * ty = 2 -> ed25519
+         * ty = 3 -> sm2
+         * ty = 4 -> OnetimeED25519
+         * ty = 5 -> RingBaseonED25519
+         * 
+ * + * Protobuf type {@code Signature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Signature) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.SignatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + pubkey_ = com.google.protobuf.ByteString.EMPTY; + + signature_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Signature_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature( + this); + result.ty_ = ty_; + result.pubkey_ = pubkey_; + result.signature_ = signature_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + if (other.getPubkey() != com.google.protobuf.ByteString.EMPTY) { + setPubkey(other.getPubkey()); + } + if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { + setSignature(other.getSignature()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 1; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 1; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString pubkey_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes pubkey = 2; + * + * @return The pubkey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPubkey() { + return pubkey_; + } + + /** + * bytes pubkey = 2; + * + * @param value + * The pubkey to set. + * + * @return This builder for chaining. + */ + public Builder setPubkey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + pubkey_ = value; + onChanged(); + return this; + } + + /** + * bytes pubkey = 2; + * + * @return This builder for chaining. + */ + public Builder clearPubkey() { + + pubkey_ = getDefaultInstance().getPubkey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             *当ty为5时,格式应该用RingSignature去解析
+             * 
+ * + * bytes signature = 3; + * + * @return The signature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + + /** + *
+             *当ty为5时,格式应该用RingSignature去解析
+             * 
+ * + * bytes signature = 3; + * + * @param value + * The signature to set. + * + * @return This builder for chaining. + */ + public Builder setSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + signature_ = value; + onChanged(); + return this; + } + + /** + *
+             *当ty为5时,格式应该用RingSignature去解析
+             * 
+ * + * bytes signature = 3; + * + * @return This builder for chaining. + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Signature) + } + + // @@protoc_insertion_point(class_scope:Signature) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Signature parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Signature(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Signature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddrOverviewOrBuilder extends + // @@protoc_insertion_point(interface_extends:AddrOverview) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 reciver = 1; + * + * @return The reciver. + */ + long getReciver(); + + /** + * int64 balance = 2; + * + * @return The balance. + */ + long getBalance(); + + /** + * int64 txCount = 3; + * + * @return The txCount. + */ + long getTxCount(); + } + + /** + * Protobuf type {@code AddrOverview} + */ + public static final class AddrOverview extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AddrOverview) + AddrOverviewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AddrOverview.newBuilder() to construct. + private AddrOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddrOverview() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddrOverview(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AddrOverview(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + reciver_ = input.readInt64(); + break; + } + case 16: { + + balance_ = input.readInt64(); + break; + } + case 24: { + + txCount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.Builder.class); + } + + public static final int RECIVER_FIELD_NUMBER = 1; + private long reciver_; + + /** + * int64 reciver = 1; + * + * @return The reciver. + */ + @java.lang.Override + public long getReciver() { + return reciver_; + } + + public static final int BALANCE_FIELD_NUMBER = 2; + private long balance_; + + /** + * int64 balance = 2; + * + * @return The balance. + */ + @java.lang.Override + public long getBalance() { + return balance_; + } + + public static final int TXCOUNT_FIELD_NUMBER = 3; + private long txCount_; + + /** + * int64 txCount = 3; + * + * @return The txCount. + */ + @java.lang.Override + public long getTxCount() { + return txCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (reciver_ != 0L) { + output.writeInt64(1, reciver_); + } + if (balance_ != 0L) { + output.writeInt64(2, balance_); + } + if (txCount_ != 0L) { + output.writeInt64(3, txCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (reciver_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, reciver_); + } + if (balance_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, balance_); + } + if (txCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, txCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview) obj; + + if (getReciver() != other.getReciver()) + return false; + if (getBalance() != other.getBalance()) + return false; + if (getTxCount() != other.getTxCount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECIVER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReciver()); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBalance()); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTxCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 AddrOverview} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AddrOverview) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverviewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + reciver_ = 0L; + + balance_ = 0L; + + txCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_AddrOverview_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview( + this); + result.reciver_ = reciver_; + result.balance_ = balance_; + result.txCount_ = txCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.getDefaultInstance()) + return this; + if (other.getReciver() != 0L) { + setReciver(other.getReciver()); + } + if (other.getBalance() != 0L) { + setBalance(other.getBalance()); + } + if (other.getTxCount() != 0L) { + setTxCount(other.getTxCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long reciver_; + + /** + * int64 reciver = 1; + * + * @return The reciver. + */ + @java.lang.Override + public long getReciver() { + return reciver_; + } + + /** + * int64 reciver = 1; + * + * @param value + * The reciver to set. + * + * @return This builder for chaining. + */ + public Builder setReciver(long value) { + + reciver_ = value; + onChanged(); + return this; + } + + /** + * int64 reciver = 1; + * + * @return This builder for chaining. + */ + public Builder clearReciver() { + + reciver_ = 0L; + onChanged(); + return this; + } + + private long balance_; + + /** + * int64 balance = 2; + * + * @return The balance. + */ + @java.lang.Override + public long getBalance() { + return balance_; + } + + /** + * int64 balance = 2; + * + * @param value + * The balance to set. + * + * @return This builder for chaining. + */ + public Builder setBalance(long value) { + + balance_ = value; + onChanged(); + return this; + } + + /** + * int64 balance = 2; + * + * @return This builder for chaining. + */ + public Builder clearBalance() { + + balance_ = 0L; + onChanged(); + return this; + } + + private long txCount_; + + /** + * int64 txCount = 3; + * + * @return The txCount. + */ + @java.lang.Override + public long getTxCount() { + return txCount_; + } + + /** + * int64 txCount = 3; + * + * @param value + * The txCount to set. + * + * @return This builder for chaining. + */ + public Builder setTxCount(long value) { + + txCount_ = value; + onChanged(); + return this; + } + + /** + * int64 txCount = 3; + * + * @return This builder for chaining. + */ + public Builder clearTxCount() { + + txCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:AddrOverview) + } + + // @@protoc_insertion_point(class_scope:AddrOverview) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddrOverview parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddrOverview(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqAddrOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqAddr) + com.google.protobuf.MessageOrBuilder { + + /** + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + *
+         * 表示取所有 / from / to / 其他的hash列表
+         * 
+ * + * int32 flag = 2; + * + * @return The flag. + */ + int getFlag(); + + /** + * int32 count = 3; + * + * @return The count. + */ + int getCount(); + + /** + * int32 direction = 4; + * + * @return The direction. + */ + int getDirection(); + + /** + * int64 height = 5; + * + * @return The height. + */ + long getHeight(); + + /** + * int64 index = 6; + * + * @return The index. + */ + long getIndex(); + } + + /** + * Protobuf type {@code ReqAddr} + */ + public static final class ReqAddr extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqAddr) + ReqAddrOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqAddr.newBuilder() to construct. + private ReqAddr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqAddr() { + addr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqAddr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqAddr(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 16: { + + flag_ = input.readInt32(); + break; + } + case 24: { + + count_ = input.readInt32(); + break; + } + case 32: { + + direction_ = input.readInt32(); + break; + } + case 40: { + + height_ = input.readInt64(); + break; + } + case 48: { + + index_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.Builder.class); + } + + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; + + /** + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLAG_FIELD_NUMBER = 2; + private int flag_; + + /** + *
+         * 表示取所有 / from / to / 其他的hash列表
+         * 
+ * + * int32 flag = 2; + * + * @return The flag. + */ + @java.lang.Override + public int getFlag() { + return flag_; + } + + public static final int COUNT_FIELD_NUMBER = 3; + private int count_; + + /** + * int32 count = 3; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + public static final int DIRECTION_FIELD_NUMBER = 4; + private int direction_; + + /** + * int32 direction = 4; + * + * @return The direction. + */ + @java.lang.Override + public int getDirection() { + return direction_; + } + + public static final int HEIGHT_FIELD_NUMBER = 5; + private long height_; + + /** + * int64 height = 5; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int INDEX_FIELD_NUMBER = 6; + private long index_; + + /** + * int64 index = 6; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (flag_ != 0) { + output.writeInt32(2, flag_); + } + if (count_ != 0) { + output.writeInt32(3, count_); + } + if (direction_ != 0) { + output.writeInt32(4, direction_); + } + if (height_ != 0L) { + output.writeInt64(5, height_); + } + if (index_ != 0L) { + output.writeInt64(6, index_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (flag_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, flag_); + } + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, count_); + } + if (direction_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, direction_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, height_); + } + if (index_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, index_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (getFlag() != other.getFlag()) + return false; + if (getCount() != other.getCount()) + return false; + if (getDirection() != other.getDirection()) + return false; + if (getHeight() != other.getHeight()) + return false; + if (getIndex() != other.getIndex()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + FLAG_FIELD_NUMBER; + hash = (53 * hash) + getFlag(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getDirection(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIndex()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqAddr} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqAddr) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; + + flag_ = 0; + + count_ = 0; + + direction_ = 0; + + height_ = 0L; + + index_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddr_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr( + this); + result.addr_ = addr_; + result.flag_ = flag_; + result.count_ = count_; + result.direction_ = direction_; + result.height_ = height_; + result.index_ = index_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (other.getFlag() != 0) { + setFlag(other.getFlag()); + } + if (other.getCount() != 0) { + setCount(other.getCount()); + } + if (other.getDirection() != 0) { + setDirection(other.getDirection()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getIndex() != 0L) { + setIndex(other.getIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private int flag_; + + /** + *
+             * 表示取所有 / from / to / 其他的hash列表
+             * 
+ * + * int32 flag = 2; + * + * @return The flag. + */ + @java.lang.Override + public int getFlag() { + return flag_; + } + + /** + *
+             * 表示取所有 / from / to / 其他的hash列表
+             * 
+ * + * int32 flag = 2; + * + * @param value + * The flag to set. + * + * @return This builder for chaining. + */ + public Builder setFlag(int value) { + + flag_ = value; + onChanged(); + return this; + } + + /** + *
+             * 表示取所有 / from / to / 其他的hash列表
+             * 
+ * + * int32 flag = 2; + * + * @return This builder for chaining. + */ + public Builder clearFlag() { + + flag_ = 0; + onChanged(); + return this; + } + + private int count_; + + /** + * int32 count = 3; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + /** + * int32 count = 3; + * + * @param value + * The count to set. + * + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + + /** + * int32 count = 3; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0; + onChanged(); + return this; + } + + private int direction_; + + /** + * int32 direction = 4; + * + * @return The direction. + */ + @java.lang.Override + public int getDirection() { + return direction_; + } + + /** + * int32 direction = 4; + * + * @param value + * The direction to set. + * + * @return This builder for chaining. + */ + public Builder setDirection(int value) { + + direction_ = value; + onChanged(); + return this; + } + + /** + * int32 direction = 4; + * + * @return This builder for chaining. + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + + private long height_; + + /** + * int64 height = 5; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 5; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 5; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private long index_; + + /** + * int64 index = 6; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + /** + * int64 index = 6; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(long value) { + + index_ = value; + onChanged(); + return this; + } + + /** + * int64 index = 6; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqAddr) + } + + // @@protoc_insertion_point(class_scope:ReqAddr) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqAddr parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqAddr(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HexTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:HexTx) + com.google.protobuf.MessageOrBuilder { + + /** + * string tx = 1; + * + * @return The tx. + */ + java.lang.String getTx(); + + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + com.google.protobuf.ByteString getTxBytes(); + } + + /** + * Protobuf type {@code HexTx} + */ + public static final class HexTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HexTx) + HexTxOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HexTx.newBuilder() to construct. + private HexTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HexTx() { + tx_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HexTx(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HexTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + tx_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.Builder.class); + } + + public static final int TX_FIELD_NUMBER = 1; + private volatile java.lang.Object tx_; + + /** + * string tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public java.lang.String getTx() { + java.lang.Object ref = tx_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tx_ = s; + return s; + } + } + + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxBytes() { + java.lang.Object ref = tx_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tx_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTxBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tx_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTxBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tx_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx) obj; + + if (!getTx().equals(other.getTx())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 HexTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HexTx) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + tx_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_HexTx_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx( + this); + result.tx_ = tx_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.getDefaultInstance()) + return this; + if (!other.getTx().isEmpty()) { + tx_ = other.tx_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object tx_ = ""; + + /** + * string tx = 1; + * + * @return The tx. + */ + public java.lang.String getTx() { + java.lang.Object ref = tx_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tx_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string tx = 1; + * + * @return The bytes for tx. + */ + public com.google.protobuf.ByteString getTxBytes() { + java.lang.Object ref = tx_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tx_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string tx = 1; + * + * @param value + * The tx to set. + * + * @return This builder for chaining. + */ + public Builder setTx(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tx_ = value; + onChanged(); + return this; + } + + /** + * string tx = 1; + * + * @return This builder for chaining. + */ + public Builder clearTx() { + + tx_ = getDefaultInstance().getTx(); + onChanged(); + return this; + } + + /** + * string tx = 1; + * + * @param value + * The bytes for tx to set. + * + * @return This builder for chaining. + */ + public Builder setTxBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tx_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:HexTx) + } + + // @@protoc_insertion_point(class_scope:HexTx) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HexTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HexTx(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyTxInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyTxInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes hash = 1; + * + * @return The hash. + */ + com.google.protobuf.ByteString getHash(); + + /** + * int64 height = 2; + * + * @return The height. + */ + long getHeight(); + + /** + * int64 index = 3; + * + * @return The index. + */ + long getIndex(); + + /** + * repeated .Asset assets = 4; + */ + java.util.List getAssetsList(); + + /** + * repeated .Asset assets = 4; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index); + + /** + * repeated .Asset assets = 4; + */ + int getAssetsCount(); + + /** + * repeated .Asset assets = 4; + */ + java.util.List getAssetsOrBuilderList(); + + /** + * repeated .Asset assets = 4; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder(int index); + } + + /** + * Protobuf type {@code ReplyTxInfo} + */ + public static final class ReplyTxInfo extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyTxInfo) + ReplyTxInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyTxInfo.newBuilder() to construct. + private ReplyTxInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyTxInfo() { + hash_ = com.google.protobuf.ByteString.EMPTY; + assets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyTxInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyTxInfo(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + hash_ = input.readBytes(); + break; + } + case 16: { + + height_ = input.readInt64(); + break; + } + case 24: { + + index_ = input.readInt64(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + assets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + assets_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder.class); + } + + public static final int HASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString hash_; + + /** + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int HEIGHT_FIELD_NUMBER = 2; + private long height_; + + /** + * int64 height = 2; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int INDEX_FIELD_NUMBER = 3; + private long index_; + + /** + * int64 index = 3; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + public static final int ASSETS_FIELD_NUMBER = 4; + private java.util.List assets_; + + /** + * repeated .Asset assets = 4; + */ + @java.lang.Override + public java.util.List getAssetsList() { + return assets_; + } + + /** + * repeated .Asset assets = 4; + */ + @java.lang.Override + public java.util.List getAssetsOrBuilderList() { + return assets_; + } + + /** + * repeated .Asset assets = 4; + */ + @java.lang.Override + public int getAssetsCount() { + return assets_.size(); + } + + /** + * repeated .Asset assets = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { + return assets_.get(index); + } + + /** + * repeated .Asset assets = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder(int index) { + return assets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!hash_.isEmpty()) { + output.writeBytes(1, hash_); + } + if (height_ != 0L) { + output.writeInt64(2, height_); + } + if (index_ != 0L) { + output.writeInt64(3, index_); + } + for (int i = 0; i < assets_.size(); i++) { + output.writeMessage(4, assets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, hash_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, height_); + } + if (index_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, index_); + } + for (int i = 0; i < assets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, assets_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo) obj; + + if (!getHash().equals(other.getHash())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (getIndex() != other.getIndex()) + return false; + if (!getAssetsList().equals(other.getAssetsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIndex()); + if (getAssetsCount() > 0) { + hash = (37 * hash) + ASSETS_FIELD_NUMBER; + hash = (53 * hash) + getAssetsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyTxInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyTxInfo) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAssetsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = com.google.protobuf.ByteString.EMPTY; + + height_ = 0L; + + index_ = 0L; + + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + assetsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfo_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo( + this); + int from_bitField0_ = bitField0_; + result.hash_ = hash_; + result.height_ = height_; + result.index_ = index_; + if (assetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assets_ = assets_; + } else { + result.assets_ = assetsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance()) + return this; + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getIndex() != 0L) { + setIndex(other.getIndex()); + } + if (assetsBuilder_ == null) { + if (!other.assets_.isEmpty()) { + if (assets_.isEmpty()) { + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssetsIsMutable(); + assets_.addAll(other.assets_); + } + onChanged(); + } + } else { + if (!other.assets_.isEmpty()) { + if (assetsBuilder_.isEmpty()) { + assetsBuilder_.dispose(); + assetsBuilder_ = null; + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000001); + assetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAssetsFieldBuilder() : null; + } else { + assetsBuilder_.addAllMessages(other.assets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes hash = 1; + * + * @return The hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + /** + * bytes hash = 1; + * + * @param value + * The hash to set. + * + * @return This builder for chaining. + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + + /** + * bytes hash = 1; + * + * @return This builder for chaining. + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private long height_; + + /** + * int64 height = 2; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 2; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 2; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private long index_; + + /** + * int64 index = 3; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + /** + * int64 index = 3; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(long value) { + + index_ = value; + onChanged(); + return this; + } + + /** + * int64 index = 3; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0L; + onChanged(); + return this; + } + + private java.util.List assets_ = java.util.Collections + .emptyList(); + + private void ensureAssetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assets_ = new java.util.ArrayList( + assets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 assetsBuilder_; + + /** + * repeated .Asset assets = 4; + */ + public java.util.List getAssetsList() { + if (assetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assets_); + } else { + return assetsBuilder_.getMessageList(); + } + } + + /** + * repeated .Asset assets = 4; + */ + public int getAssetsCount() { + if (assetsBuilder_ == null) { + return assets_.size(); + } else { + return assetsBuilder_.getCount(); + } + } + + /** + * repeated .Asset assets = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); + } else { + return assetsBuilder_.getMessage(index); + } + } + + /** + * repeated .Asset assets = 4; + */ + public Builder setAssets(int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.set(index, value); + onChanged(); + } else { + assetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder setAssets(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.set(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder addAssets(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(value); + onChanged(); + } else { + assetsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder addAssets(int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(index, value); + onChanged(); + } else { + assetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder addAssets( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder addAssets(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder addAllAssets( + java.lang.Iterable values) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); + onChanged(); + } else { + assetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder clearAssets() { + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + assetsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public Builder removeAssets(int index) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.remove(index); + onChanged(); + } else { + assetsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Asset assets = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder getAssetsBuilder(int index) { + return getAssetsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Asset assets = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( + int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); + } else { + return assetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Asset assets = 4; + */ + public java.util.List getAssetsOrBuilderList() { + if (assetsBuilder_ != null) { + return assetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assets_); + } + } + + /** + * repeated .Asset assets = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder() { + return getAssetsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); + } + + /** + * repeated .Asset assets = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder(int index) { + return getAssetsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); + } + + /** + * repeated .Asset assets = 4; + */ + public java.util.List getAssetsBuilderList() { + return getAssetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getAssetsFieldBuilder() { + if (assetsBuilder_ == null) { + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assets_ = null; + } + return assetsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyTxInfo) + } + + // @@protoc_insertion_point(class_scope:ReplyTxInfo) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyTxInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyTxInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqTxListOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqTxList) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 count = 1; + * + * @return The count. + */ + long getCount(); + } + + /** + * Protobuf type {@code ReqTxList} + */ + public static final class ReqTxList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqTxList) + ReqTxListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqTxList.newBuilder() to construct. + private ReqTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqTxList() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqTxList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqTxList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + count_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.Builder.class); + } + + public static final int COUNT_FIELD_NUMBER = 1; + private long count_; + + /** + * int64 count = 1; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (count_ != 0L) { + output.writeInt64(1, count_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList) obj; + + if (getCount() != other.getCount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqTxList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqTxList) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + count_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxList_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList( + this); + result.count_ = count_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList.getDefaultInstance()) + return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long count_; + + /** + * int64 count = 1; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + /** + * int64 count = 1; + * + * @param value + * The count to set. + * + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + + /** + * int64 count = 1; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqTxList) + } + + // @@protoc_insertion_point(class_scope:ReqTxList) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqTxList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqTxList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyTxListOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyTxList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index); + + /** + * repeated .Transaction txs = 1; + */ + int getTxsCount(); + + /** + * repeated .Transaction txs = 1; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .Transaction txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder(int index); + } + + /** + * Protobuf type {@code ReplyTxList} + */ + public static final class ReplyTxList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyTxList) + ReplyTxListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyTxList.newBuilder() to construct. + private ReplyTxList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyTxList() { + txs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyTxList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyTxList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.Builder.class); + } + + public static final int TXS_FIELD_NUMBER = 1; + private java.util.List txs_; + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .Transaction txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(1, txs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, txs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList) obj; + + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyTxList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyTxList) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxList_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList( + this); + int from_bitField0_ = bitField0_; + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.getDefaultInstance()) + return this; + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List txs_ = java.util.Collections + .emptyList(); + + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder() { + return getTxsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance()); + } + + /** + * repeated .Transaction txs = 1; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyTxList) + } + + // @@protoc_insertion_point(class_scope:ReplyTxList) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyTxList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyTxList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqGetMempoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqGetMempool) + com.google.protobuf.MessageOrBuilder { + + /** + * bool isAll = 1; + * + * @return The isAll. + */ + boolean getIsAll(); + } + + /** + * Protobuf type {@code ReqGetMempool} + */ + public static final class ReqGetMempool extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqGetMempool) + ReqGetMempoolOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqGetMempool.newBuilder() to construct. + private ReqGetMempool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqGetMempool() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqGetMempool(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqGetMempool(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + isAll_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.Builder.class); + } + + public static final int ISALL_FIELD_NUMBER = 1; + private boolean isAll_; + + /** + * bool isAll = 1; + * + * @return The isAll. + */ + @java.lang.Override + public boolean getIsAll() { + return isAll_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isAll_ != false) { + output.writeBool(1, isAll_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (isAll_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isAll_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) obj; + + if (getIsAll() != other.getIsAll()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISALL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAll()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqGetMempool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqGetMempool) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + isAll_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqGetMempool_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool( + this); + result.isAll_ = isAll_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool + .getDefaultInstance()) + return this; + if (other.getIsAll() != false) { + setIsAll(other.getIsAll()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean isAll_; + + /** + * bool isAll = 1; + * + * @return The isAll. + */ + @java.lang.Override + public boolean getIsAll() { + return isAll_; + } + + /** + * bool isAll = 1; + * + * @param value + * The isAll to set. + * + * @return This builder for chaining. + */ + public Builder setIsAll(boolean value) { + + isAll_ = value; + onChanged(); + return this; + } + + /** + * bool isAll = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsAll() { + + isAll_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqGetMempool) + } + + // @@protoc_insertion_point(class_scope:ReqGetMempool) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqGetMempool parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqGetMempool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqProperFeeOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqProperFee) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 txCount = 1; + * + * @return The txCount. + */ + int getTxCount(); + + /** + * int32 txSize = 2; + * + * @return The txSize. + */ + int getTxSize(); + } + + /** + * Protobuf type {@code ReqProperFee} + */ + public static final class ReqProperFee extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqProperFee) + ReqProperFeeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqProperFee.newBuilder() to construct. + private ReqProperFee(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqProperFee() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqProperFee(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqProperFee(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + txCount_ = input.readInt32(); + break; + } + case 16: { + + txSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.Builder.class); + } + + public static final int TXCOUNT_FIELD_NUMBER = 1; + private int txCount_; + + /** + * int32 txCount = 1; + * + * @return The txCount. + */ + @java.lang.Override + public int getTxCount() { + return txCount_; + } + + public static final int TXSIZE_FIELD_NUMBER = 2; + private int txSize_; + + /** + * int32 txSize = 2; + * + * @return The txSize. + */ + @java.lang.Override + public int getTxSize() { + return txSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (txCount_ != 0) { + output.writeInt32(1, txCount_); + } + if (txSize_ != 0) { + output.writeInt32(2, txSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (txCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, txCount_); + } + if (txSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, txSize_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) obj; + + if (getTxCount() != other.getTxCount()) + return false; + if (getTxSize() != other.getTxSize()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTxCount(); + hash = (37 * hash) + TXSIZE_FIELD_NUMBER; + hash = (53 * hash) + getTxSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqProperFee} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqProperFee) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFeeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + txCount_ = 0; + + txSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqProperFee_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee( + this); + result.txCount_ = txCount_; + result.txSize_ = txSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.getDefaultInstance()) + return this; + if (other.getTxCount() != 0) { + setTxCount(other.getTxCount()); + } + if (other.getTxSize() != 0) { + setTxSize(other.getTxSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int txCount_; + + /** + * int32 txCount = 1; + * + * @return The txCount. + */ + @java.lang.Override + public int getTxCount() { + return txCount_; + } + + /** + * int32 txCount = 1; + * + * @param value + * The txCount to set. + * + * @return This builder for chaining. + */ + public Builder setTxCount(int value) { + + txCount_ = value; + onChanged(); + return this; + } + + /** + * int32 txCount = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxCount() { + + txCount_ = 0; + onChanged(); + return this; + } + + private int txSize_; + + /** + * int32 txSize = 2; + * + * @return The txSize. + */ + @java.lang.Override + public int getTxSize() { + return txSize_; + } + + /** + * int32 txSize = 2; + * + * @param value + * The txSize to set. + * + * @return This builder for chaining. + */ + public Builder setTxSize(int value) { + + txSize_ = value; + onChanged(); + return this; + } + + /** + * int32 txSize = 2; + * + * @return This builder for chaining. + */ + public Builder clearTxSize() { + + txSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqProperFee) + } + + // @@protoc_insertion_point(class_scope:ReqProperFee) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqProperFee parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqProperFee(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyProperFeeOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyProperFee) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 properFee = 1; + * + * @return The properFee. + */ + long getProperFee(); + } + + /** + * Protobuf type {@code ReplyProperFee} + */ + public static final class ReplyProperFee extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyProperFee) + ReplyProperFeeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyProperFee.newBuilder() to construct. + private ReplyProperFee(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyProperFee() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyProperFee(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyProperFee(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + properFee_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.Builder.class); + } + + public static final int PROPERFEE_FIELD_NUMBER = 1; + private long properFee_; + + /** + * int64 properFee = 1; + * + * @return The properFee. + */ + @java.lang.Override + public long getProperFee() { + return properFee_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (properFee_ != 0L) { + output.writeInt64(1, properFee_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (properFee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, properFee_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee) obj; + + if (getProperFee() != other.getProperFee()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROPERFEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProperFee()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyProperFee} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyProperFee) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFeeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + properFee_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyProperFee_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee( + this); + result.properFee_ = properFee_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee + .getDefaultInstance()) + return this; + if (other.getProperFee() != 0L) { + setProperFee(other.getProperFee()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long properFee_; + + /** + * int64 properFee = 1; + * + * @return The properFee. + */ + @java.lang.Override + public long getProperFee() { + return properFee_; + } + + /** + * int64 properFee = 1; + * + * @param value + * The properFee to set. + * + * @return This builder for chaining. + */ + public Builder setProperFee(long value) { + + properFee_ = value; + onChanged(); + return this; + } + + /** + * int64 properFee = 1; + * + * @return This builder for chaining. + */ + public Builder clearProperFee() { + + properFee_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyProperFee) + } + + // @@protoc_insertion_point(class_scope:ReplyProperFee) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyProperFee parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyProperFee(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TxHashListOrBuilder extends + // @@protoc_insertion_point(interface_extends:TxHashList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + java.util.List getHashesList(); + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + int getHashesCount(); + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + com.google.protobuf.ByteString getHashes(int index); + + /** + * int64 count = 2; + * + * @return The count. + */ + long getCount(); + + /** + * repeated int64 expire = 3; + * + * @return A list containing the expire. + */ + java.util.List getExpireList(); + + /** + * repeated int64 expire = 3; + * + * @return The count of expire. + */ + int getExpireCount(); + + /** + * repeated int64 expire = 3; + * + * @param index + * The index of the element to return. + * + * @return The expire at the given index. + */ + long getExpire(int index); + } + + /** + * Protobuf type {@code TxHashList} + */ + public static final class TxHashList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TxHashList) + TxHashListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TxHashList.newBuilder() to construct. + private TxHashList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TxHashList() { + hashes_ = java.util.Collections.emptyList(); + expire_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TxHashList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TxHashList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + hashes_.add(input.readBytes()); + break; + } + case 16: { + + count_ = input.readInt64(); + break; + } + case 24: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + expire_ = newLongList(); + mutable_bitField0_ |= 0x00000002; + } + expire_.addLong(input.readInt64()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + expire_ = newLongList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + expire_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = java.util.Collections.unmodifiableList(hashes_); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + expire_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.Builder.class); + } + + public static final int HASHES_FIELD_NUMBER = 1; + private java.util.List hashes_; + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + @java.lang.Override + public java.util.List getHashesList() { + return hashes_; + } + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public com.google.protobuf.ByteString getHashes(int index) { + return hashes_.get(index); + } + + public static final int COUNT_FIELD_NUMBER = 2; + private long count_; + + /** + * int64 count = 2; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + public static final int EXPIRE_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.LongList expire_; + + /** + * repeated int64 expire = 3; + * + * @return A list containing the expire. + */ + @java.lang.Override + public java.util.List getExpireList() { + return expire_; + } + + /** + * repeated int64 expire = 3; + * + * @return The count of expire. + */ + public int getExpireCount() { + return expire_.size(); + } + + /** + * repeated int64 expire = 3; + * + * @param index + * The index of the element to return. + * + * @return The expire at the given index. + */ + public long getExpire(int index) { + return expire_.getLong(index); + } + + private int expireMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < hashes_.size(); i++) { + output.writeBytes(1, hashes_.get(i)); + } + if (count_ != 0L) { + output.writeInt64(2, count_); + } + if (getExpireList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(expireMemoizedSerializedSize); + } + for (int i = 0; i < expire_.size(); i++) { + output.writeInt64NoTag(expire_.getLong(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < hashes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(hashes_.get(i)); + } + size += dataSize; + size += 1 * getHashesList().size(); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + } + { + int dataSize = 0; + for (int i = 0; i < expire_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(expire_.getLong(i)); + } + size += dataSize; + if (!getExpireList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + expireMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList) obj; + + if (!getHashesList().equals(other.getHashesList())) + return false; + if (getCount() != other.getCount()) + return false; + if (!getExpireList().equals(other.getExpireList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHashesCount() > 0) { + hash = (37 * hash) + HASHES_FIELD_NUMBER; + hash = (53 * hash) + getHashesList().hashCode(); + } + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + if (getExpireCount() > 0) { + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + getExpireList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TxHashList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TxHashList) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + count_ = 0L; + + expire_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxHashList_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + hashes_ = java.util.Collections.unmodifiableList(hashes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hashes_ = hashes_; + result.count_ = count_; + if (((bitField0_ & 0x00000002) != 0)) { + expire_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.expire_ = expire_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList.getDefaultInstance()) + return this; + if (!other.hashes_.isEmpty()) { + if (hashes_.isEmpty()) { + hashes_ = other.hashes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHashesIsMutable(); + hashes_.addAll(other.hashes_); + } + onChanged(); + } + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + if (!other.expire_.isEmpty()) { + if (expire_.isEmpty()) { + expire_ = other.expire_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExpireIsMutable(); + expire_.addAll(other.expire_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List hashes_ = java.util.Collections.emptyList(); + + private void ensureHashesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hashes_ = new java.util.ArrayList(hashes_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated bytes hashes = 1; + * + * @return A list containing the hashes. + */ + public java.util.List getHashesList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(hashes_) : hashes_; + } + + /** + * repeated bytes hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public com.google.protobuf.ByteString getHashes(int index) { + return hashes_.get(index); + } + + /** + * repeated bytes hashes = 1; + * + * @param index + * The index to set the value at. + * @param value + * The hashes to set. + * + * @return This builder for chaining. + */ + public Builder setHashes(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @param value + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addHashes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @param values + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addAllHashes(java.lang.Iterable values) { + ensureHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_); + onChanged(); + return this; + } + + /** + * repeated bytes hashes = 1; + * + * @return This builder for chaining. + */ + public Builder clearHashes() { + hashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long count_; + + /** + * int64 count = 2; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + /** + * int64 count = 2; + * + * @param value + * The count to set. + * + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + + /** + * int64 count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList expire_ = emptyLongList(); + + private void ensureExpireIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + expire_ = mutableCopy(expire_); + bitField0_ |= 0x00000002; + } + } + + /** + * repeated int64 expire = 3; + * + * @return A list containing the expire. + */ + public java.util.List getExpireList() { + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(expire_) : expire_; + } + + /** + * repeated int64 expire = 3; + * + * @return The count of expire. + */ + public int getExpireCount() { + return expire_.size(); + } + + /** + * repeated int64 expire = 3; + * + * @param index + * The index of the element to return. + * + * @return The expire at the given index. + */ + public long getExpire(int index) { + return expire_.getLong(index); + } + + /** + * repeated int64 expire = 3; + * + * @param index + * The index to set the value at. + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(int index, long value) { + ensureExpireIsMutable(); + expire_.setLong(index, value); + onChanged(); + return this; + } + + /** + * repeated int64 expire = 3; + * + * @param value + * The expire to add. + * + * @return This builder for chaining. + */ + public Builder addExpire(long value) { + ensureExpireIsMutable(); + expire_.addLong(value); + onChanged(); + return this; + } + + /** + * repeated int64 expire = 3; + * + * @param values + * The expire to add. + * + * @return This builder for chaining. + */ + public Builder addAllExpire(java.lang.Iterable values) { + ensureExpireIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expire_); + onChanged(); + return this; + } + + /** + * repeated int64 expire = 3; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { + expire_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TxHashList) + } + + // @@protoc_insertion_point(class_scope:TxHashList) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TxHashList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TxHashList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxHashList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyTxInfosOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyTxInfos) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + java.util.List getTxInfosList(); + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getTxInfos(int index); + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + int getTxInfosCount(); + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + java.util.List getTxInfosOrBuilderList(); + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder getTxInfosOrBuilder(int index); + } + + /** + * Protobuf type {@code ReplyTxInfos} + */ + public static final class ReplyTxInfos extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyTxInfos) + ReplyTxInfosOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplyTxInfos.newBuilder() to construct. + private ReplyTxInfos(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplyTxInfos() { + txInfos_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyTxInfos(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplyTxInfos(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txInfos_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txInfos_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txInfos_ = java.util.Collections.unmodifiableList(txInfos_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.Builder.class); + } + + public static final int TXINFOS_FIELD_NUMBER = 1; + private java.util.List txInfos_; + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + @java.lang.Override + public java.util.List getTxInfosList() { + return txInfos_; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + @java.lang.Override + public java.util.List getTxInfosOrBuilderList() { + return txInfos_; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + @java.lang.Override + public int getTxInfosCount() { + return txInfos_.size(); + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getTxInfos(int index) { + return txInfos_.get(index); + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder getTxInfosOrBuilder( + int index) { + return txInfos_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txInfos_.size(); i++) { + output.writeMessage(1, txInfos_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < txInfos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, txInfos_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos) obj; + + if (!getTxInfosList().equals(other.getTxInfosList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxInfosCount() > 0) { + hash = (37 * hash) + TXINFOS_FIELD_NUMBER; + hash = (53 * hash) + getTxInfosList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplyTxInfos} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyTxInfos) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfosOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxInfosFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txInfosBuilder_ == null) { + txInfos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txInfosBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyTxInfos_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos( + this); + int from_bitField0_ = bitField0_; + if (txInfosBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txInfos_ = java.util.Collections.unmodifiableList(txInfos_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txInfos_ = txInfos_; + } else { + result.txInfos_ = txInfosBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.getDefaultInstance()) + return this; + if (txInfosBuilder_ == null) { + if (!other.txInfos_.isEmpty()) { + if (txInfos_.isEmpty()) { + txInfos_ = other.txInfos_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxInfosIsMutable(); + txInfos_.addAll(other.txInfos_); + } + onChanged(); + } + } else { + if (!other.txInfos_.isEmpty()) { + if (txInfosBuilder_.isEmpty()) { + txInfosBuilder_.dispose(); + txInfosBuilder_ = null; + txInfos_ = other.txInfos_; + bitField0_ = (bitField0_ & ~0x00000001); + txInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxInfosFieldBuilder() : null; + } else { + txInfosBuilder_.addAllMessages(other.txInfos_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List txInfos_ = java.util.Collections + .emptyList(); + + private void ensureTxInfosIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txInfos_ = new java.util.ArrayList( + txInfos_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txInfosBuilder_; + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public java.util.List getTxInfosList() { + if (txInfosBuilder_ == null) { + return java.util.Collections.unmodifiableList(txInfos_); + } else { + return txInfosBuilder_.getMessageList(); + } + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public int getTxInfosCount() { + if (txInfosBuilder_ == null) { + return txInfos_.size(); + } else { + return txInfosBuilder_.getCount(); + } + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo getTxInfos(int index) { + if (txInfosBuilder_ == null) { + return txInfos_.get(index); + } else { + return txInfosBuilder_.getMessage(index); + } + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder setTxInfos(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo value) { + if (txInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxInfosIsMutable(); + txInfos_.set(index, value); + onChanged(); + } else { + txInfosBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder setTxInfos(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder builderForValue) { + if (txInfosBuilder_ == null) { + ensureTxInfosIsMutable(); + txInfos_.set(index, builderForValue.build()); + onChanged(); + } else { + txInfosBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder addTxInfos(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo value) { + if (txInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxInfosIsMutable(); + txInfos_.add(value); + onChanged(); + } else { + txInfosBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder addTxInfos(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo value) { + if (txInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxInfosIsMutable(); + txInfos_.add(index, value); + onChanged(); + } else { + txInfosBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder addTxInfos( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder builderForValue) { + if (txInfosBuilder_ == null) { + ensureTxInfosIsMutable(); + txInfos_.add(builderForValue.build()); + onChanged(); + } else { + txInfosBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder addTxInfos(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder builderForValue) { + if (txInfosBuilder_ == null) { + ensureTxInfosIsMutable(); + txInfos_.add(index, builderForValue.build()); + onChanged(); + } else { + txInfosBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder addAllTxInfos( + java.lang.Iterable values) { + if (txInfosBuilder_ == null) { + ensureTxInfosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txInfos_); + onChanged(); + } else { + txInfosBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder clearTxInfos() { + if (txInfosBuilder_ == null) { + txInfos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txInfosBuilder_.clear(); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public Builder removeTxInfos(int index) { + if (txInfosBuilder_ == null) { + ensureTxInfosIsMutable(); + txInfos_.remove(index); + onChanged(); + } else { + txInfosBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder getTxInfosBuilder( + int index) { + return getTxInfosFieldBuilder().getBuilder(index); + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfoOrBuilder getTxInfosOrBuilder( + int index) { + if (txInfosBuilder_ == null) { + return txInfos_.get(index); + } else { + return txInfosBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public java.util.List getTxInfosOrBuilderList() { + if (txInfosBuilder_ != null) { + return txInfosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txInfos_); + } + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder addTxInfosBuilder() { + return getTxInfosFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance()); + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.Builder addTxInfosBuilder( + int index) { + return getTxInfosFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfo.getDefaultInstance()); + } + + /** + * repeated .ReplyTxInfo txInfos = 1; + */ + public java.util.List getTxInfosBuilderList() { + return getTxInfosFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxInfosFieldBuilder() { + if (txInfosBuilder_ == null) { + txInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txInfos_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txInfos_ = null; + } + return txInfosBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyTxInfos) + } + + // @@protoc_insertion_point(class_scope:ReplyTxInfos) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyTxInfos parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyTxInfos(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptLog) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 ty = 1; + * + * @return The ty. + */ + int getTy(); + + /** + * bytes log = 2; + * + * @return The log. + */ + com.google.protobuf.ByteString getLog(); + } + + /** + * Protobuf type {@code ReceiptLog} + */ + public static final class ReceiptLog extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptLog) + ReceiptLogOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptLog.newBuilder() to construct. + private ReceiptLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptLog() { + log_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptLog(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + ty_ = input.readInt32(); + break; + } + case 18: { + + log_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder.class); + } + + public static final int TY_FIELD_NUMBER = 1; + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + public static final int LOG_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString log_; + + /** + * bytes log = 2; + * + * @return The log. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLog() { + return log_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ty_ != 0) { + output.writeInt32(1, ty_); + } + if (!log_.isEmpty()) { + output.writeBytes(2, log_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ty_); + } + if (!log_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, log_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog) obj; + + if (getTy() != other.getTy()) + return false; + if (!getLog().equals(other.getLog())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + hash = (37 * hash) + LOG_FIELD_NUMBER; + hash = (53 * hash) + getLog().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptLog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptLog) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + log_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptLog_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog( + this); + result.ty_ = ty_; + result.log_ = log_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + if (other.getLog() != com.google.protobuf.ByteString.EMPTY) { + setLog(other.getLog()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 1; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 1; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString log_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes log = 2; + * + * @return The log. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLog() { + return log_; + } + + /** + * bytes log = 2; + * + * @param value + * The log to set. + * + * @return This builder for chaining. + */ + public Builder setLog(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + log_ = value; + onChanged(); + return this; + } + + /** + * bytes log = 2; + * + * @return This builder for chaining. + */ + public Builder clearLog() { + + log_ = getDefaultInstance().getLog(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptLog) + } + + // @@protoc_insertion_point(class_scope:ReceiptLog) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptLog parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptLog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptOrBuilder extends + // @@protoc_insertion_point(interface_extends:Receipt) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 ty = 1; + * + * @return The ty. + */ + int getTy(); + + /** + * repeated .KeyValue KV = 2; + */ + java.util.List getKVList(); + + /** + * repeated .KeyValue KV = 2; + */ + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index); + + /** + * repeated .KeyValue KV = 2; + */ + int getKVCount(); + + /** + * repeated .KeyValue KV = 2; + */ + java.util.List getKVOrBuilderList(); + + /** + * repeated .KeyValue KV = 2; + */ + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder(int index); + + /** + * repeated .ReceiptLog logs = 3; + */ + java.util.List getLogsList(); + + /** + * repeated .ReceiptLog logs = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index); + + /** + * repeated .ReceiptLog logs = 3; + */ + int getLogsCount(); + + /** + * repeated .ReceiptLog logs = 3; + */ + java.util.List getLogsOrBuilderList(); + + /** + * repeated .ReceiptLog logs = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder(int index); + } + + /** + *
+     * ty = 0 -> error Receipt
+     * ty = 1 -> CutFee //cut fee ,bug exec not ok
+     * ty = 2 -> exec ok
+     * 
+ * + * Protobuf type {@code Receipt} + */ + public static final class Receipt extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Receipt) + ReceiptOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Receipt.newBuilder() to construct. + private Receipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Receipt() { + kV_ = java.util.Collections.emptyList(); + logs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Receipt(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Receipt(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + ty_ = input.readInt32(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + kV_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + kV_.add(input.readMessage(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.parser(), + extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + logs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + kV_ = java.util.Collections.unmodifiableList(kV_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder.class); + } + + public static final int TY_FIELD_NUMBER = 1; + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + public static final int KV_FIELD_NUMBER = 2; + private java.util.List kV_; + + /** + * repeated .KeyValue KV = 2; + */ + @java.lang.Override + public java.util.List getKVList() { + return kV_; + } + + /** + * repeated .KeyValue KV = 2; + */ + @java.lang.Override + public java.util.List getKVOrBuilderList() { + return kV_; + } + + /** + * repeated .KeyValue KV = 2; + */ + @java.lang.Override + public int getKVCount() { + return kV_.size(); + } + + /** + * repeated .KeyValue KV = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { + return kV_.get(index); + } + + /** + * repeated .KeyValue KV = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder(int index) { + return kV_.get(index); + } + + public static final int LOGS_FIELD_NUMBER = 3; + private java.util.List logs_; + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public java.util.List getLogsList() { + return logs_; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public java.util.List getLogsOrBuilderList() { + return logs_; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public int getLogsCount() { + return logs_.size(); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { + return logs_.get(index); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ty_ != 0) { + output.writeInt32(1, ty_); + } + for (int i = 0; i < kV_.size(); i++) { + output.writeMessage(2, kV_.get(i)); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(3, logs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ty_); + } + for (int i = 0; i < kV_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, kV_.get(i)); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt) obj; + + if (getTy() != other.getTy()) + return false; + if (!getKVList().equals(other.getKVList())) + return false; + if (!getLogsList().equals(other.getLogsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + if (getKVCount() > 0) { + hash = (37 * hash) + KV_FIELD_NUMBER; + hash = (53 * hash) + getKVList().hashCode(); + } + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * ty = 0 -> error Receipt
+         * ty = 1 -> CutFee //cut fee ,bug exec not ok
+         * ty = 2 -> exec ok
+         * 
+ * + * Protobuf type {@code Receipt} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Receipt) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKVFieldBuilder(); + getLogsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + if (kVBuilder_ == null) { + kV_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + kVBuilder_.clear(); + } + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + logsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_Receipt_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt( + this); + int from_bitField0_ = bitField0_; + result.ty_ = ty_; + if (kVBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + kV_ = java.util.Collections.unmodifiableList(kV_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.kV_ = kV_; + } else { + result.kV_ = kVBuilder_.build(); + } + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + if (kVBuilder_ == null) { + if (!other.kV_.isEmpty()) { + if (kV_.isEmpty()) { + kV_ = other.kV_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKVIsMutable(); + kV_.addAll(other.kV_); + } + onChanged(); + } + } else { + if (!other.kV_.isEmpty()) { + if (kVBuilder_.isEmpty()) { + kVBuilder_.dispose(); + kVBuilder_ = null; + kV_ = other.kV_; + bitField0_ = (bitField0_ & ~0x00000001); + kVBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKVFieldBuilder() : null; + } else { + kVBuilder_.addAllMessages(other.kV_); + } + } + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000002); + logsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 1; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 1; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + private java.util.List kV_ = java.util.Collections + .emptyList(); + + private void ensureKVIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + kV_ = new java.util.ArrayList(kV_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 kVBuilder_; + + /** + * repeated .KeyValue KV = 2; + */ + public java.util.List getKVList() { + if (kVBuilder_ == null) { + return java.util.Collections.unmodifiableList(kV_); + } else { + return kVBuilder_.getMessageList(); + } + } + + /** + * repeated .KeyValue KV = 2; + */ + public int getKVCount() { + if (kVBuilder_ == null) { + return kV_.size(); + } else { + return kVBuilder_.getCount(); + } + } + + /** + * repeated .KeyValue KV = 2; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue getKV(int index) { + if (kVBuilder_ == null) { + return kV_.get(index); + } else { + return kVBuilder_.getMessage(index); + } + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder setKV(int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { + if (kVBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKVIsMutable(); + kV_.set(index, value); + onChanged(); + } else { + kVBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder setKV(int index, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.set(index, builderForValue.build()); + onChanged(); + } else { + kVBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder addKV(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { + if (kVBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKVIsMutable(); + kV_.add(value); + onChanged(); + } else { + kVBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder addKV(int index, cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue value) { + if (kVBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKVIsMutable(); + kV_.add(index, value); + onChanged(); + } else { + kVBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder addKV(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.add(builderForValue.build()); + onChanged(); + } else { + kVBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder addKV(int index, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder builderForValue) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.add(index, builderForValue.build()); + onChanged(); + } else { + kVBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder addAllKV( + java.lang.Iterable values) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kV_); + onChanged(); + } else { + kVBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder clearKV() { + if (kVBuilder_ == null) { + kV_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + kVBuilder_.clear(); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public Builder removeKV(int index) { + if (kVBuilder_ == null) { + ensureKVIsMutable(); + kV_.remove(index); + onChanged(); + } else { + kVBuilder_.remove(index); + } + return this; + } + + /** + * repeated .KeyValue KV = 2; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder getKVBuilder(int index) { + return getKVFieldBuilder().getBuilder(index); + } + + /** + * repeated .KeyValue KV = 2; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValueOrBuilder getKVOrBuilder(int index) { + if (kVBuilder_ == null) { + return kV_.get(index); + } else { + return kVBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .KeyValue KV = 2; + */ + public java.util.List getKVOrBuilderList() { + if (kVBuilder_ != null) { + return kVBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(kV_); + } + } + + /** + * repeated .KeyValue KV = 2; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder() { + return getKVFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); + } + + /** + * repeated .KeyValue KV = 2; + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.Builder addKVBuilder(int index) { + return getKVFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.CommonProtobuf.KeyValue.getDefaultInstance()); + } + + /** + * repeated .KeyValue KV = 2; + */ + public java.util.List getKVBuilderList() { + return getKVFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getKVFieldBuilder() { + if (kVBuilder_ == null) { + kVBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + kV_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + kV_ = null; + } + return kVBuilder_; + } + + private java.util.List logs_ = java.util.Collections + .emptyList(); + + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + logs_ = new java.util.ArrayList( + logs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 logsBuilder_; + + /** + * repeated .ReceiptLog logs = 3; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder setLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder setLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public java.util.List getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public java.util.List getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + logs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + logs_ = null; + } + return logsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:Receipt) + } + + // @@protoc_insertion_point(class_scope:Receipt) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Receipt parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Receipt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Receipt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReceiptDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReceiptData) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 ty = 1; + * + * @return The ty. + */ + int getTy(); + + /** + * repeated .ReceiptLog logs = 3; + */ + java.util.List getLogsList(); + + /** + * repeated .ReceiptLog logs = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index); + + /** + * repeated .ReceiptLog logs = 3; + */ + int getLogsCount(); + + /** + * repeated .ReceiptLog logs = 3; + */ + java.util.List getLogsOrBuilderList(); + + /** + * repeated .ReceiptLog logs = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder(int index); + } + + /** + * Protobuf type {@code ReceiptData} + */ + public static final class ReceiptData extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReceiptData) + ReceiptDataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReceiptData.newBuilder() to construct. + private ReceiptData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReceiptData() { + logs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceiptData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReceiptData(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + ty_ = input.readInt32(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + logs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder.class); + } + + public static final int TY_FIELD_NUMBER = 1; + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + public static final int LOGS_FIELD_NUMBER = 3; + private java.util.List logs_; + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public java.util.List getLogsList() { + return logs_; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public java.util.List getLogsOrBuilderList() { + return logs_; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public int getLogsCount() { + return logs_.size(); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { + return logs_.get(index); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ty_ != 0) { + output.writeInt32(1, ty_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(3, logs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ty_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, logs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData) obj; + + if (getTy() != other.getTy()) + return false; + if (!getLogsList().equals(other.getLogsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReceiptData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReceiptData) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + logsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReceiptData_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData( + this); + int from_bitField0_ = bitField0_; + result.ty_ = ty_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000001); + logsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int ty_; + + /** + * int32 ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 1; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 1; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + private java.util.List logs_ = java.util.Collections + .emptyList(); + + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + logs_ = new java.util.ArrayList( + logs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 logsBuilder_; + + /** + * repeated .ReceiptLog logs = 3; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder setLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder setLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addLogs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public java.util.List getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptLog.getDefaultInstance()); + } + + /** + * repeated .ReceiptLog logs = 3; + */ + public java.util.List getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + logs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + logs_ = null; + } + return logsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReceiptData) + } + + // @@protoc_insertion_point(class_scope:ReceiptData) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceiptData parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TxResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:TxResult) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 height = 1; + * + * @return The height. + */ + long getHeight(); + + /** + * int32 index = 2; + * + * @return The index. + */ + int getIndex(); + + /** + * .Transaction tx = 3; + * + * @return Whether the tx field is set. + */ + boolean hasTx(); + + /** + * .Transaction tx = 3; + * + * @return The tx. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); + + /** + * .Transaction tx = 3; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + + /** + * .ReceiptData receiptdate = 4; + * + * @return Whether the receiptdate field is set. + */ + boolean hasReceiptdate(); + + /** + * .ReceiptData receiptdate = 4; + * + * @return The receiptdate. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceiptdate(); + + /** + * .ReceiptData receiptdate = 4; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptdateOrBuilder(); + + /** + * int64 blocktime = 5; + * + * @return The blocktime. + */ + long getBlocktime(); + + /** + * string actionName = 6; + * + * @return The actionName. + */ + java.lang.String getActionName(); + + /** + * string actionName = 6; + * + * @return The bytes for actionName. + */ + com.google.protobuf.ByteString getActionNameBytes(); + } + + /** + * Protobuf type {@code TxResult} + */ + public static final class TxResult extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TxResult) + TxResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TxResult.newBuilder() to construct. + private TxResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TxResult() { + actionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TxResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TxResult(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + height_ = input.readInt64(); + break; + } + case 16: { + + index_ = input.readInt32(); + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; + if (tx_ != null) { + subBuilder = tx_.toBuilder(); + } + tx_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tx_); + tx_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; + if (receiptdate_ != null) { + subBuilder = receiptdate_.toBuilder(); + } + receiptdate_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiptdate_); + receiptdate_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + blocktime_ = input.readInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + actionName_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.Builder.class); + } + + public static final int HEIGHT_FIELD_NUMBER = 1; + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int INDEX_FIELD_NUMBER = 2; + private int index_; + + /** + * int32 index = 2; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int TX_FIELD_NUMBER = 3; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + + /** + * .Transaction tx = 3; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return tx_ != null; + } + + /** + * .Transaction tx = 3; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; + } + + /** + * .Transaction tx = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + return getTx(); + } + + public static final int RECEIPTDATE_FIELD_NUMBER = 4; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receiptdate_; + + /** + * .ReceiptData receiptdate = 4; + * + * @return Whether the receiptdate field is set. + */ + @java.lang.Override + public boolean hasReceiptdate() { + return receiptdate_ != null; + } + + /** + * .ReceiptData receiptdate = 4; + * + * @return The receiptdate. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceiptdate() { + return receiptdate_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receiptdate_; + } + + /** + * .ReceiptData receiptdate = 4; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptdateOrBuilder() { + return getReceiptdate(); + } + + public static final int BLOCKTIME_FIELD_NUMBER = 5; + private long blocktime_; + + /** + * int64 blocktime = 5; + * + * @return The blocktime. + */ + @java.lang.Override + public long getBlocktime() { + return blocktime_; + } + + public static final int ACTIONNAME_FIELD_NUMBER = 6; + private volatile java.lang.Object actionName_; + + /** + * string actionName = 6; + * + * @return The actionName. + */ + @java.lang.Override + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } + } + + /** + * string actionName = 6; + * + * @return The bytes for actionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (height_ != 0L) { + output.writeInt64(1, height_); + } + if (index_ != 0) { + output.writeInt32(2, index_); + } + if (tx_ != null) { + output.writeMessage(3, getTx()); + } + if (receiptdate_ != null) { + output.writeMessage(4, getReceiptdate()); + } + if (blocktime_ != 0L) { + output.writeInt64(5, blocktime_); + } + if (!getActionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, actionName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, height_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, index_); + } + if (tx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTx()); + } + if (receiptdate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReceiptdate()); + } + if (blocktime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, blocktime_); + } + if (!getActionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, actionName_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult) obj; + + if (getHeight() != other.getHeight()) + return false; + if (getIndex() != other.getIndex()) + return false; + if (hasTx() != other.hasTx()) + return false; + if (hasTx()) { + if (!getTx().equals(other.getTx())) + return false; + } + if (hasReceiptdate() != other.hasReceiptdate()) + return false; + if (hasReceiptdate()) { + if (!getReceiptdate().equals(other.getReceiptdate())) + return false; + } + if (getBlocktime() != other.getBlocktime()) + return false; + if (!getActionName().equals(other.getActionName())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + if (hasTx()) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + } + if (hasReceiptdate()) { + hash = (37 * hash) + RECEIPTDATE_FIELD_NUMBER; + hash = (53 * hash) + getReceiptdate().hashCode(); + } + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocktime()); + hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getActionName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TxResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TxResult) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0L; + + index_ = 0; + + if (txBuilder_ == null) { + tx_ = null; + } else { + tx_ = null; + txBuilder_ = null; + } + if (receiptdateBuilder_ == null) { + receiptdate_ = null; + } else { + receiptdate_ = null; + receiptdateBuilder_ = null; + } + blocktime_ = 0L; + + actionName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxResult_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult( + this); + result.height_ = height_; + result.index_ = index_; + if (txBuilder_ == null) { + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + if (receiptdateBuilder_ == null) { + result.receiptdate_ = receiptdate_; + } else { + result.receiptdate_ = receiptdateBuilder_.build(); + } + result.blocktime_ = blocktime_; + result.actionName_ = actionName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult.getDefaultInstance()) + return this; + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.hasTx()) { + mergeTx(other.getTx()); + } + if (other.hasReceiptdate()) { + mergeReceiptdate(other.getReceiptdate()); + } + if (other.getBlocktime() != 0L) { + setBlocktime(other.getBlocktime()); + } + if (!other.getActionName().isEmpty()) { + actionName_ = other.actionName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long height_; + + /** + * int64 height = 1; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 1; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 1; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private int index_; + + /** + * int32 index = 2; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + /** + * int32 index = 2; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + + /** + * int32 index = 2; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + private com.google.protobuf.SingleFieldBuilderV3 txBuilder_; + + /** + * .Transaction tx = 3; + * + * @return Whether the tx field is set. + */ + public boolean hasTx() { + return txBuilder_ != null || tx_ != null; + } + + /** + * .Transaction tx = 3; + * + * @return The tx. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + if (txBuilder_ == null) { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } else { + return txBuilder_.getMessage(); + } + } + + /** + * .Transaction tx = 3; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tx_ = value; + onChanged(); + } else { + txBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Transaction tx = 3; + */ + public Builder setTx( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txBuilder_ == null) { + tx_ = builderForValue.build(); + onChanged(); + } else { + txBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Transaction tx = 3; + */ + public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (tx_ != null) { + tx_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_) + .mergeFrom(value).buildPartial(); + } else { + tx_ = value; + } + onChanged(); + } else { + txBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Transaction tx = 3; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = null; + onChanged(); + } else { + tx_ = null; + txBuilder_ = null; + } + + return this; + } + + /** + * .Transaction tx = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { + + onChanged(); + return getTxFieldBuilder().getBuilder(); + } + + /** + * .Transaction tx = 3; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilder(); + } else { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } + } + + /** + * .Transaction tx = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTx(), getParentForChildren(), isClean()); + tx_ = null; + } + return txBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receiptdate_; + private com.google.protobuf.SingleFieldBuilderV3 receiptdateBuilder_; + + /** + * .ReceiptData receiptdate = 4; + * + * @return Whether the receiptdate field is set. + */ + public boolean hasReceiptdate() { + return receiptdateBuilder_ != null || receiptdate_ != null; + } + + /** + * .ReceiptData receiptdate = 4; + * + * @return The receiptdate. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceiptdate() { + if (receiptdateBuilder_ == null) { + return receiptdate_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receiptdate_; + } else { + return receiptdateBuilder_.getMessage(); + } + } + + /** + * .ReceiptData receiptdate = 4; + */ + public Builder setReceiptdate(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + receiptdate_ = value; + onChanged(); + } else { + receiptdateBuilder_.setMessage(value); + } + + return this; + } + + /** + * .ReceiptData receiptdate = 4; + */ + public Builder setReceiptdate( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptdateBuilder_ == null) { + receiptdate_ = builderForValue.build(); + onChanged(); + } else { + receiptdateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .ReceiptData receiptdate = 4; + */ + public Builder mergeReceiptdate( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptdateBuilder_ == null) { + if (receiptdate_ != null) { + receiptdate_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData + .newBuilder(receiptdate_).mergeFrom(value).buildPartial(); + } else { + receiptdate_ = value; + } + onChanged(); + } else { + receiptdateBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .ReceiptData receiptdate = 4; + */ + public Builder clearReceiptdate() { + if (receiptdateBuilder_ == null) { + receiptdate_ = null; + onChanged(); + } else { + receiptdate_ = null; + receiptdateBuilder_ = null; + } + + return this; + } + + /** + * .ReceiptData receiptdate = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptdateBuilder() { + + onChanged(); + return getReceiptdateFieldBuilder().getBuilder(); + } + + /** + * .ReceiptData receiptdate = 4; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptdateOrBuilder() { + if (receiptdateBuilder_ != null) { + return receiptdateBuilder_.getMessageOrBuilder(); + } else { + return receiptdate_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receiptdate_; + } + } + + /** + * .ReceiptData receiptdate = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getReceiptdateFieldBuilder() { + if (receiptdateBuilder_ == null) { + receiptdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getReceiptdate(), getParentForChildren(), isClean()); + receiptdate_ = null; + } + return receiptdateBuilder_; + } + + private long blocktime_; + + /** + * int64 blocktime = 5; + * + * @return The blocktime. + */ + @java.lang.Override + public long getBlocktime() { + return blocktime_; + } + + /** + * int64 blocktime = 5; + * + * @param value + * The blocktime to set. + * + * @return This builder for chaining. + */ + public Builder setBlocktime(long value) { + + blocktime_ = value; + onChanged(); + return this; + } + + /** + * int64 blocktime = 5; + * + * @return This builder for chaining. + */ + public Builder clearBlocktime() { + + blocktime_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object actionName_ = ""; + + /** + * string actionName = 6; + * + * @return The actionName. + */ + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string actionName = 6; + * + * @return The bytes for actionName. + */ + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string actionName = 6; + * + * @param value + * The actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + actionName_ = value; + onChanged(); + return this; + } + + /** + * string actionName = 6; + * + * @return This builder for chaining. + */ + public Builder clearActionName() { + + actionName_ = getDefaultInstance().getActionName(); + onChanged(); + return this; + } + + /** + * string actionName = 6; + * + * @param value + * The bytes for actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + actionName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TxResult) + } + + // @@protoc_insertion_point(class_scope:TxResult) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TxResult parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TxResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransactionDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:TransactionDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + boolean hasTx(); + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); + + /** + * .Transaction tx = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + + /** + * .ReceiptData receipt = 2; + * + * @return Whether the receipt field is set. + */ + boolean hasReceipt(); + + /** + * .ReceiptData receipt = 2; + * + * @return The receipt. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt(); + + /** + * .ReceiptData receipt = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder(); + + /** + * repeated bytes proofs = 3; + * + * @return A list containing the proofs. + */ + java.util.List getProofsList(); + + /** + * repeated bytes proofs = 3; + * + * @return The count of proofs. + */ + int getProofsCount(); + + /** + * repeated bytes proofs = 3; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + com.google.protobuf.ByteString getProofs(int index); + + /** + * int64 height = 4; + * + * @return The height. + */ + long getHeight(); + + /** + * int64 index = 5; + * + * @return The index. + */ + long getIndex(); + + /** + * int64 blocktime = 6; + * + * @return The blocktime. + */ + long getBlocktime(); + + /** + * int64 amount = 7; + * + * @return The amount. + */ + long getAmount(); + + /** + * string fromaddr = 8; + * + * @return The fromaddr. + */ + java.lang.String getFromaddr(); + + /** + * string fromaddr = 8; + * + * @return The bytes for fromaddr. + */ + com.google.protobuf.ByteString getFromaddrBytes(); + + /** + * string actionName = 9; + * + * @return The actionName. + */ + java.lang.String getActionName(); + + /** + * string actionName = 9; + * + * @return The bytes for actionName. + */ + com.google.protobuf.ByteString getActionNameBytes(); + + /** + * repeated .Asset assets = 10; + */ + java.util.List getAssetsList(); + + /** + * repeated .Asset assets = 10; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index); + + /** + * repeated .Asset assets = 10; + */ + int getAssetsCount(); + + /** + * repeated .Asset assets = 10; + */ + java.util.List getAssetsOrBuilderList(); + + /** + * repeated .Asset assets = 10; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder(int index); + + /** + * repeated .TxProof txProofs = 11; + */ + java.util.List getTxProofsList(); + + /** + * repeated .TxProof txProofs = 11; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getTxProofs(int index); + + /** + * repeated .TxProof txProofs = 11; + */ + int getTxProofsCount(); + + /** + * repeated .TxProof txProofs = 11; + */ + java.util.List getTxProofsOrBuilderList(); + + /** + * repeated .TxProof txProofs = 11; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder getTxProofsOrBuilder(int index); + + /** + * bytes fullHash = 12; + * + * @return The fullHash. + */ + com.google.protobuf.ByteString getFullHash(); + } + + /** + * Protobuf type {@code TransactionDetail} + */ + public static final class TransactionDetail extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TransactionDetail) + TransactionDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TransactionDetail.newBuilder() to construct. + private TransactionDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TransactionDetail() { + proofs_ = java.util.Collections.emptyList(); + fromaddr_ = ""; + actionName_ = ""; + assets_ = java.util.Collections.emptyList(); + txProofs_ = java.util.Collections.emptyList(); + fullHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TransactionDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TransactionDetail(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; + if (tx_ != null) { + subBuilder = tx_.toBuilder(); + } + tx_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tx_); + tx_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; + if (receipt_ != null) { + subBuilder = receipt_.toBuilder(); + } + receipt_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receipt_); + receipt_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + proofs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + proofs_.add(input.readBytes()); + break; + } + case 32: { + + height_ = input.readInt64(); + break; + } + case 40: { + + index_ = input.readInt64(); + break; + } + case 48: { + + blocktime_ = input.readInt64(); + break; + } + case 56: { + + amount_ = input.readInt64(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + fromaddr_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + actionName_ = s; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + assets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + assets_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.parser(), + extensionRegistry)); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + txProofs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + txProofs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.parser(), + extensionRegistry)); + break; + } + case 98: { + + fullHash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + txProofs_ = java.util.Collections.unmodifiableList(txProofs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder.class); + } + + public static final int TX_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return tx_ != null; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; + } + + /** + * .Transaction tx = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + return getTx(); + } + + public static final int RECEIPT_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; + + /** + * .ReceiptData receipt = 2; + * + * @return Whether the receipt field is set. + */ + @java.lang.Override + public boolean hasReceipt() { + return receipt_ != null; + } + + /** + * .ReceiptData receipt = 2; + * + * @return The receipt. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } + + /** + * .ReceiptData receipt = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { + return getReceipt(); + } + + public static final int PROOFS_FIELD_NUMBER = 3; + private java.util.List proofs_; + + /** + * repeated bytes proofs = 3; + * + * @return A list containing the proofs. + */ + @java.lang.Override + public java.util.List getProofsList() { + return proofs_; + } + + /** + * repeated bytes proofs = 3; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } + + /** + * repeated bytes proofs = 3; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } + + public static final int HEIGHT_FIELD_NUMBER = 4; + private long height_; + + /** + * int64 height = 4; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int INDEX_FIELD_NUMBER = 5; + private long index_; + + /** + * int64 index = 5; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + public static final int BLOCKTIME_FIELD_NUMBER = 6; + private long blocktime_; + + /** + * int64 blocktime = 6; + * + * @return The blocktime. + */ + @java.lang.Override + public long getBlocktime() { + return blocktime_; + } + + public static final int AMOUNT_FIELD_NUMBER = 7; + private long amount_; + + /** + * int64 amount = 7; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int FROMADDR_FIELD_NUMBER = 8; + private volatile java.lang.Object fromaddr_; + + /** + * string fromaddr = 8; + * + * @return The fromaddr. + */ + @java.lang.Override + public java.lang.String getFromaddr() { + java.lang.Object ref = fromaddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fromaddr_ = s; + return s; + } + } + + /** + * string fromaddr = 8; + * + * @return The bytes for fromaddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFromaddrBytes() { + java.lang.Object ref = fromaddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fromaddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIONNAME_FIELD_NUMBER = 9; + private volatile java.lang.Object actionName_; + + /** + * string actionName = 9; + * + * @return The actionName. + */ + @java.lang.Override + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } + } + + /** + * string actionName = 9; + * + * @return The bytes for actionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSETS_FIELD_NUMBER = 10; + private java.util.List assets_; + + /** + * repeated .Asset assets = 10; + */ + @java.lang.Override + public java.util.List getAssetsList() { + return assets_; + } + + /** + * repeated .Asset assets = 10; + */ + @java.lang.Override + public java.util.List getAssetsOrBuilderList() { + return assets_; + } + + /** + * repeated .Asset assets = 10; + */ + @java.lang.Override + public int getAssetsCount() { + return assets_.size(); + } + + /** + * repeated .Asset assets = 10; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { + return assets_.get(index); + } + + /** + * repeated .Asset assets = 10; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder(int index) { + return assets_.get(index); + } + + public static final int TXPROOFS_FIELD_NUMBER = 11; + private java.util.List txProofs_; + + /** + * repeated .TxProof txProofs = 11; + */ + @java.lang.Override + public java.util.List getTxProofsList() { + return txProofs_; + } + + /** + * repeated .TxProof txProofs = 11; + */ + @java.lang.Override + public java.util.List getTxProofsOrBuilderList() { + return txProofs_; + } + + /** + * repeated .TxProof txProofs = 11; + */ + @java.lang.Override + public int getTxProofsCount() { + return txProofs_.size(); + } + + /** + * repeated .TxProof txProofs = 11; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getTxProofs(int index) { + return txProofs_.get(index); + } + + /** + * repeated .TxProof txProofs = 11; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder getTxProofsOrBuilder( + int index) { + return txProofs_.get(index); + } + + public static final int FULLHASH_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString fullHash_; + + /** + * bytes fullHash = 12; + * + * @return The fullHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFullHash() { + return fullHash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tx_ != null) { + output.writeMessage(1, getTx()); + } + if (receipt_ != null) { + output.writeMessage(2, getReceipt()); + } + for (int i = 0; i < proofs_.size(); i++) { + output.writeBytes(3, proofs_.get(i)); + } + if (height_ != 0L) { + output.writeInt64(4, height_); + } + if (index_ != 0L) { + output.writeInt64(5, index_); + } + if (blocktime_ != 0L) { + output.writeInt64(6, blocktime_); + } + if (amount_ != 0L) { + output.writeInt64(7, amount_); + } + if (!getFromaddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fromaddr_); + } + if (!getActionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, actionName_); + } + for (int i = 0; i < assets_.size(); i++) { + output.writeMessage(10, assets_.get(i)); + } + for (int i = 0; i < txProofs_.size(); i++) { + output.writeMessage(11, txProofs_.get(i)); + } + if (!fullHash_.isEmpty()) { + output.writeBytes(12, fullHash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (tx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTx()); + } + if (receipt_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReceipt()); + } + { + int dataSize = 0; + for (int i = 0; i < proofs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(proofs_.get(i)); + } + size += dataSize; + size += 1 * getProofsList().size(); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, height_); + } + if (index_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, index_); + } + if (blocktime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, blocktime_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, amount_); + } + if (!getFromaddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fromaddr_); + } + if (!getActionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, actionName_); + } + for (int i = 0; i < assets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, assets_.get(i)); + } + for (int i = 0; i < txProofs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, txProofs_.get(i)); + } + if (!fullHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, fullHash_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail) obj; + + if (hasTx() != other.hasTx()) + return false; + if (hasTx()) { + if (!getTx().equals(other.getTx())) + return false; + } + if (hasReceipt() != other.hasReceipt()) + return false; + if (hasReceipt()) { + if (!getReceipt().equals(other.getReceipt())) + return false; + } + if (!getProofsList().equals(other.getProofsList())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (getIndex() != other.getIndex()) + return false; + if (getBlocktime() != other.getBlocktime()) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getFromaddr().equals(other.getFromaddr())) + return false; + if (!getActionName().equals(other.getActionName())) + return false; + if (!getAssetsList().equals(other.getAssetsList())) + return false; + if (!getTxProofsList().equals(other.getTxProofsList())) + return false; + if (!getFullHash().equals(other.getFullHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTx()) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + } + if (hasReceipt()) { + hash = (37 * hash) + RECEIPT_FIELD_NUMBER; + hash = (53 * hash) + getReceipt().hashCode(); + } + if (getProofsCount() > 0) { + hash = (37 * hash) + PROOFS_FIELD_NUMBER; + hash = (53 * hash) + getProofsList().hashCode(); + } + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIndex()); + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocktime()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + FROMADDR_FIELD_NUMBER; + hash = (53 * hash) + getFromaddr().hashCode(); + hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getActionName().hashCode(); + if (getAssetsCount() > 0) { + hash = (37 * hash) + ASSETS_FIELD_NUMBER; + hash = (53 * hash) + getAssetsList().hashCode(); + } + if (getTxProofsCount() > 0) { + hash = (37 * hash) + TXPROOFS_FIELD_NUMBER; + hash = (53 * hash) + getTxProofsList().hashCode(); + } + hash = (37 * hash) + FULLHASH_FIELD_NUMBER; + hash = (53 * hash) + getFullHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TransactionDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TransactionDetail) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAssetsFieldBuilder(); + getTxProofsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txBuilder_ == null) { + tx_ = null; + } else { + tx_ = null; + txBuilder_ = null; + } + if (receiptBuilder_ == null) { + receipt_ = null; + } else { + receipt_ = null; + receiptBuilder_ = null; + } + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + height_ = 0L; + + index_ = 0L; + + blocktime_ = 0L; + + amount_ = 0L; + + fromaddr_ = ""; + + actionName_ = ""; + + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + assetsBuilder_.clear(); + } + if (txProofsBuilder_ == null) { + txProofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + txProofsBuilder_.clear(); + } + fullHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetail_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail( + this); + int from_bitField0_ = bitField0_; + if (txBuilder_ == null) { + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + if (receiptBuilder_ == null) { + result.receipt_ = receipt_; + } else { + result.receipt_ = receiptBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.proofs_ = proofs_; + result.height_ = height_; + result.index_ = index_; + result.blocktime_ = blocktime_; + result.amount_ = amount_; + result.fromaddr_ = fromaddr_; + result.actionName_ = actionName_; + if (assetsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + assets_ = java.util.Collections.unmodifiableList(assets_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.assets_ = assets_; + } else { + result.assets_ = assetsBuilder_.build(); + } + if (txProofsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + txProofs_ = java.util.Collections.unmodifiableList(txProofs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.txProofs_ = txProofs_; + } else { + result.txProofs_ = txProofsBuilder_.build(); + } + result.fullHash_ = fullHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail + .getDefaultInstance()) + return this; + if (other.hasTx()) { + mergeTx(other.getTx()); + } + if (other.hasReceipt()) { + mergeReceipt(other.getReceipt()); + } + if (!other.proofs_.isEmpty()) { + if (proofs_.isEmpty()) { + proofs_ = other.proofs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProofsIsMutable(); + proofs_.addAll(other.proofs_); + } + onChanged(); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getIndex() != 0L) { + setIndex(other.getIndex()); + } + if (other.getBlocktime() != 0L) { + setBlocktime(other.getBlocktime()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getFromaddr().isEmpty()) { + fromaddr_ = other.fromaddr_; + onChanged(); + } + if (!other.getActionName().isEmpty()) { + actionName_ = other.actionName_; + onChanged(); + } + if (assetsBuilder_ == null) { + if (!other.assets_.isEmpty()) { + if (assets_.isEmpty()) { + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAssetsIsMutable(); + assets_.addAll(other.assets_); + } + onChanged(); + } + } else { + if (!other.assets_.isEmpty()) { + if (assetsBuilder_.isEmpty()) { + assetsBuilder_.dispose(); + assetsBuilder_ = null; + assets_ = other.assets_; + bitField0_ = (bitField0_ & ~0x00000002); + assetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAssetsFieldBuilder() : null; + } else { + assetsBuilder_.addAllMessages(other.assets_); + } + } + } + if (txProofsBuilder_ == null) { + if (!other.txProofs_.isEmpty()) { + if (txProofs_.isEmpty()) { + txProofs_ = other.txProofs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTxProofsIsMutable(); + txProofs_.addAll(other.txProofs_); + } + onChanged(); + } + } else { + if (!other.txProofs_.isEmpty()) { + if (txProofsBuilder_.isEmpty()) { + txProofsBuilder_.dispose(); + txProofsBuilder_ = null; + txProofs_ = other.txProofs_; + bitField0_ = (bitField0_ & ~0x00000004); + txProofsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxProofsFieldBuilder() : null; + } else { + txProofsBuilder_.addAllMessages(other.txProofs_); + } + } + } + if (other.getFullHash() != com.google.protobuf.ByteString.EMPTY) { + setFullHash(other.getFullHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + private com.google.protobuf.SingleFieldBuilderV3 txBuilder_; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + public boolean hasTx() { + return txBuilder_ != null || tx_ != null; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + if (txBuilder_ == null) { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } else { + return txBuilder_.getMessage(); + } + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tx_ = value; + onChanged(); + } else { + txBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txBuilder_ == null) { + tx_ = builderForValue.build(); + onChanged(); + } else { + txBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (tx_ != null) { + tx_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_) + .mergeFrom(value).buildPartial(); + } else { + tx_ = value; + } + onChanged(); + } else { + txBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = null; + onChanged(); + } else { + tx_ = null; + txBuilder_ = null; + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { + + onChanged(); + return getTxFieldBuilder().getBuilder(); + } + + /** + * .Transaction tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilder(); + } else { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } + } + + /** + * .Transaction tx = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTx(), getParentForChildren(), isClean()); + tx_ = null; + } + return txBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; + private com.google.protobuf.SingleFieldBuilderV3 receiptBuilder_; + + /** + * .ReceiptData receipt = 2; + * + * @return Whether the receipt field is set. + */ + public boolean hasReceipt() { + return receiptBuilder_ != null || receipt_ != null; + } + + /** + * .ReceiptData receipt = 2; + * + * @return The receipt. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { + if (receiptBuilder_ == null) { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } else { + return receiptBuilder_.getMessage(); + } + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder setReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + receipt_ = value; + onChanged(); + } else { + receiptBuilder_.setMessage(value); + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder setReceipt( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptBuilder_ == null) { + receipt_ = builderForValue.build(); + onChanged(); + } else { + receiptBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder mergeReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptBuilder_ == null) { + if (receipt_ != null) { + receipt_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData + .newBuilder(receipt_).mergeFrom(value).buildPartial(); + } else { + receipt_ = value; + } + onChanged(); + } else { + receiptBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder clearReceipt() { + if (receiptBuilder_ == null) { + receipt_ = null; + onChanged(); + } else { + receipt_ = null; + receiptBuilder_ = null; + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptBuilder() { + + onChanged(); + return getReceiptFieldBuilder().getBuilder(); + } + + /** + * .ReceiptData receipt = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { + if (receiptBuilder_ != null) { + return receiptBuilder_.getMessageOrBuilder(); + } else { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } + } + + /** + * .ReceiptData receipt = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getReceiptFieldBuilder() { + if (receiptBuilder_ == null) { + receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getReceipt(), getParentForChildren(), isClean()); + receipt_ = null; + } + return receiptBuilder_; + } + + private java.util.List proofs_ = java.util.Collections.emptyList(); + + private void ensureProofsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + proofs_ = new java.util.ArrayList(proofs_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated bytes proofs = 3; + * + * @return A list containing the proofs. + */ + public java.util.List getProofsList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(proofs_) : proofs_; + } + + /** + * repeated bytes proofs = 3; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } + + /** + * repeated bytes proofs = 3; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } + + /** + * repeated bytes proofs = 3; + * + * @param index + * The index to set the value at. + * @param value + * The proofs to set. + * + * @return This builder for chaining. + */ + public Builder setProofs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 3; + * + * @param value + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addProofs(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.add(value); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 3; + * + * @param values + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addAllProofs(java.lang.Iterable values) { + ensureProofsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proofs_); + onChanged(); + return this; + } + + /** + * repeated bytes proofs = 3; + * + * @return This builder for chaining. + */ + public Builder clearProofs() { + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long height_; + + /** + * int64 height = 4; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 4; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 4; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private long index_; + + /** + * int64 index = 5; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + /** + * int64 index = 5; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(long value) { + + index_ = value; + onChanged(); + return this; + } + + /** + * int64 index = 5; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0L; + onChanged(); + return this; + } + + private long blocktime_; + + /** + * int64 blocktime = 6; + * + * @return The blocktime. + */ + @java.lang.Override + public long getBlocktime() { + return blocktime_; + } + + /** + * int64 blocktime = 6; + * + * @param value + * The blocktime to set. + * + * @return This builder for chaining. + */ + public Builder setBlocktime(long value) { + + blocktime_ = value; + onChanged(); + return this; + } + + /** + * int64 blocktime = 6; + * + * @return This builder for chaining. + */ + public Builder clearBlocktime() { + + blocktime_ = 0L; + onChanged(); + return this; + } + + private long amount_; + + /** + * int64 amount = 7; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 7; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 7; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object fromaddr_ = ""; + + /** + * string fromaddr = 8; + * + * @return The fromaddr. + */ + public java.lang.String getFromaddr() { + java.lang.Object ref = fromaddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fromaddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string fromaddr = 8; + * + * @return The bytes for fromaddr. + */ + public com.google.protobuf.ByteString getFromaddrBytes() { + java.lang.Object ref = fromaddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + fromaddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string fromaddr = 8; + * + * @param value + * The fromaddr to set. + * + * @return This builder for chaining. + */ + public Builder setFromaddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fromaddr_ = value; + onChanged(); + return this; + } + + /** + * string fromaddr = 8; + * + * @return This builder for chaining. + */ + public Builder clearFromaddr() { + + fromaddr_ = getDefaultInstance().getFromaddr(); + onChanged(); + return this; + } + + /** + * string fromaddr = 8; + * + * @param value + * The bytes for fromaddr to set. + * + * @return This builder for chaining. + */ + public Builder setFromaddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fromaddr_ = value; + onChanged(); + return this; + } + + private java.lang.Object actionName_ = ""; + + /** + * string actionName = 9; + * + * @return The actionName. + */ + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string actionName = 9; + * + * @return The bytes for actionName. + */ + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string actionName = 9; + * + * @param value + * The actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + actionName_ = value; + onChanged(); + return this; + } + + /** + * string actionName = 9; + * + * @return This builder for chaining. + */ + public Builder clearActionName() { + + actionName_ = getDefaultInstance().getActionName(); + onChanged(); + return this; + } + + /** + * string actionName = 9; + * + * @param value + * The bytes for actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + actionName_ = value; + onChanged(); + return this; + } + + private java.util.List assets_ = java.util.Collections + .emptyList(); + + private void ensureAssetsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + assets_ = new java.util.ArrayList( + assets_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 assetsBuilder_; + + /** + * repeated .Asset assets = 10; + */ + public java.util.List getAssetsList() { + if (assetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assets_); + } else { + return assetsBuilder_.getMessageList(); + } + } + + /** + * repeated .Asset assets = 10; + */ + public int getAssetsCount() { + if (assetsBuilder_ == null) { + return assets_.size(); + } else { + return assetsBuilder_.getCount(); + } + } + + /** + * repeated .Asset assets = 10; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset getAssets(int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); + } else { + return assetsBuilder_.getMessage(index); + } + } + + /** + * repeated .Asset assets = 10; + */ + public Builder setAssets(int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.set(index, value); + onChanged(); + } else { + assetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder setAssets(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.set(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder addAssets(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(value); + onChanged(); + } else { + assetsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder addAssets(int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset value) { + if (assetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetsIsMutable(); + assets_.add(index, value); + onChanged(); + } else { + assetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder addAssets( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder addAssets(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder builderForValue) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(index, builderForValue.build()); + onChanged(); + } else { + assetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder addAllAssets( + java.lang.Iterable values) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); + onChanged(); + } else { + assetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder clearAssets() { + if (assetsBuilder_ == null) { + assets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + assetsBuilder_.clear(); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public Builder removeAssets(int index) { + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.remove(index); + onChanged(); + } else { + assetsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .Asset assets = 10; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder getAssetsBuilder(int index) { + return getAssetsFieldBuilder().getBuilder(index); + } + + /** + * repeated .Asset assets = 10; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AssetOrBuilder getAssetsOrBuilder( + int index) { + if (assetsBuilder_ == null) { + return assets_.get(index); + } else { + return assetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .Asset assets = 10; + */ + public java.util.List getAssetsOrBuilderList() { + if (assetsBuilder_ != null) { + return assetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assets_); + } + } + + /** + * repeated .Asset assets = 10; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder() { + return getAssetsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); + } + + /** + * repeated .Asset assets = 10; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.Builder addAssetsBuilder(int index) { + return getAssetsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Asset.getDefaultInstance()); + } + + /** + * repeated .Asset assets = 10; + */ + public java.util.List getAssetsBuilderList() { + return getAssetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getAssetsFieldBuilder() { + if (assetsBuilder_ == null) { + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + assets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + assets_ = null; + } + return assetsBuilder_; + } + + private java.util.List txProofs_ = java.util.Collections + .emptyList(); + + private void ensureTxProofsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + txProofs_ = new java.util.ArrayList( + txProofs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txProofsBuilder_; + + /** + * repeated .TxProof txProofs = 11; + */ + public java.util.List getTxProofsList() { + if (txProofsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txProofs_); + } else { + return txProofsBuilder_.getMessageList(); + } + } + + /** + * repeated .TxProof txProofs = 11; + */ + public int getTxProofsCount() { + if (txProofsBuilder_ == null) { + return txProofs_.size(); + } else { + return txProofsBuilder_.getCount(); + } + } + + /** + * repeated .TxProof txProofs = 11; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getTxProofs(int index) { + if (txProofsBuilder_ == null) { + return txProofs_.get(index); + } else { + return txProofsBuilder_.getMessage(index); + } + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder setTxProofs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof value) { + if (txProofsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxProofsIsMutable(); + txProofs_.set(index, value); + onChanged(); + } else { + txProofsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder setTxProofs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder builderForValue) { + if (txProofsBuilder_ == null) { + ensureTxProofsIsMutable(); + txProofs_.set(index, builderForValue.build()); + onChanged(); + } else { + txProofsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder addTxProofs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof value) { + if (txProofsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxProofsIsMutable(); + txProofs_.add(value); + onChanged(); + } else { + txProofsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder addTxProofs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof value) { + if (txProofsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxProofsIsMutable(); + txProofs_.add(index, value); + onChanged(); + } else { + txProofsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder addTxProofs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder builderForValue) { + if (txProofsBuilder_ == null) { + ensureTxProofsIsMutable(); + txProofs_.add(builderForValue.build()); + onChanged(); + } else { + txProofsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder addTxProofs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder builderForValue) { + if (txProofsBuilder_ == null) { + ensureTxProofsIsMutable(); + txProofs_.add(index, builderForValue.build()); + onChanged(); + } else { + txProofsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder addAllTxProofs( + java.lang.Iterable values) { + if (txProofsBuilder_ == null) { + ensureTxProofsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txProofs_); + onChanged(); + } else { + txProofsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder clearTxProofs() { + if (txProofsBuilder_ == null) { + txProofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + txProofsBuilder_.clear(); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public Builder removeTxProofs(int index) { + if (txProofsBuilder_ == null) { + ensureTxProofsIsMutable(); + txProofs_.remove(index); + onChanged(); + } else { + txProofsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .TxProof txProofs = 11; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder getTxProofsBuilder( + int index) { + return getTxProofsFieldBuilder().getBuilder(index); + } + + /** + * repeated .TxProof txProofs = 11; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder getTxProofsOrBuilder( + int index) { + if (txProofsBuilder_ == null) { + return txProofs_.get(index); + } else { + return txProofsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .TxProof txProofs = 11; + */ + public java.util.List getTxProofsOrBuilderList() { + if (txProofsBuilder_ != null) { + return txProofsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txProofs_); + } + } + + /** + * repeated .TxProof txProofs = 11; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder addTxProofsBuilder() { + return getTxProofsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance()); + } + + /** + * repeated .TxProof txProofs = 11; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder addTxProofsBuilder( + int index) { + return getTxProofsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance()); + } + + /** + * repeated .TxProof txProofs = 11; + */ + public java.util.List getTxProofsBuilderList() { + return getTxProofsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxProofsFieldBuilder() { + if (txProofsBuilder_ == null) { + txProofsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txProofs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + txProofs_ = null; + } + return txProofsBuilder_; + } + + private com.google.protobuf.ByteString fullHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes fullHash = 12; + * + * @return The fullHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFullHash() { + return fullHash_; + } + + /** + * bytes fullHash = 12; + * + * @param value + * The fullHash to set. + * + * @return This builder for chaining. + */ + public Builder setFullHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + fullHash_ = value; + onChanged(); + return this; + } + + /** + * bytes fullHash = 12; + * + * @return This builder for chaining. + */ + public Builder clearFullHash() { + + fullHash_ = getDefaultInstance().getFullHash(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TransactionDetail) + } + + // @@protoc_insertion_point(class_scope:TransactionDetail) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionDetail parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransactionDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransactionDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:TransactionDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .TransactionDetail txs = 1; + */ + java.util.List getTxsList(); + + /** + * repeated .TransactionDetail txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getTxs(int index); + + /** + * repeated .TransactionDetail txs = 1; + */ + int getTxsCount(); + + /** + * repeated .TransactionDetail txs = 1; + */ + java.util.List getTxsOrBuilderList(); + + /** + * repeated .TransactionDetail txs = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder getTxsOrBuilder(int index); + } + + /** + * Protobuf type {@code TransactionDetails} + */ + public static final class TransactionDetails extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TransactionDetails) + TransactionDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TransactionDetails.newBuilder() to construct. + private TransactionDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TransactionDetails() { + txs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TransactionDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TransactionDetails(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txs_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.Builder.class); + } + + public static final int TXS_FIELD_NUMBER = 1; + private java.util.List txs_; + + /** + * repeated .TransactionDetail txs = 1; + */ + @java.lang.Override + public java.util.List getTxsList() { + return txs_; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + @java.lang.Override + public java.util.List getTxsOrBuilderList() { + return txs_; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + @java.lang.Override + public int getTxsCount() { + return txs_.size(); + } + + /** + * repeated .TransactionDetail txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getTxs(int index) { + return txs_.get(index); + } + + /** + * repeated .TransactionDetail txs = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder getTxsOrBuilder( + int index) { + return txs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txs_.size(); i++) { + output.writeMessage(1, txs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < txs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, txs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails) obj; + + if (!getTxsList().equals(other.getTxsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxsCount() > 0) { + hash = (37 * hash) + TXS_FIELD_NUMBER; + hash = (53 * hash) + getTxsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 TransactionDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TransactionDetails) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails( + this); + int from_bitField0_ = bitField0_; + if (txsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txs_ = java.util.Collections.unmodifiableList(txs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txs_ = txs_; + } else { + result.txs_ = txsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails + .getDefaultInstance()) + return this; + if (txsBuilder_ == null) { + if (!other.txs_.isEmpty()) { + if (txs_.isEmpty()) { + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxsIsMutable(); + txs_.addAll(other.txs_); + } + onChanged(); + } + } else { + if (!other.txs_.isEmpty()) { + if (txsBuilder_.isEmpty()) { + txsBuilder_.dispose(); + txsBuilder_ = null; + txs_ = other.txs_; + bitField0_ = (bitField0_ & ~0x00000001); + txsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxsFieldBuilder() : null; + } else { + txsBuilder_.addAllMessages(other.txs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List txs_ = java.util.Collections + .emptyList(); + + private void ensureTxsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txs_ = new java.util.ArrayList( + txs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txsBuilder_; + + /** + * repeated .TransactionDetail txs = 1; + */ + public java.util.List getTxsList() { + if (txsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txs_); + } else { + return txsBuilder_.getMessageList(); + } + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public int getTxsCount() { + if (txsBuilder_ == null) { + return txs_.size(); + } else { + return txsBuilder_.getCount(); + } + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getTxs(int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessage(index); + } + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.set(index, value); + onChanged(); + } else { + txsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder setTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.set(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(value); + onChanged(); + } else { + txsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail value) { + if (txsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxsIsMutable(); + txs_.add(index, value); + onChanged(); + } else { + txsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder addTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder addTxs(int index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder builderForValue) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.add(index, builderForValue.build()); + onChanged(); + } else { + txsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder addAllTxs( + java.lang.Iterable values) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txs_); + onChanged(); + } else { + txsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder clearTxs() { + if (txsBuilder_ == null) { + txs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txsBuilder_.clear(); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public Builder removeTxs(int index) { + if (txsBuilder_ == null) { + ensureTxsIsMutable(); + txs_.remove(index); + onChanged(); + } else { + txsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder getTxsBuilder( + int index) { + return getTxsFieldBuilder().getBuilder(index); + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder getTxsOrBuilder( + int index) { + if (txsBuilder_ == null) { + return txs_.get(index); + } else { + return txsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public java.util.List getTxsOrBuilderList() { + if (txsBuilder_ != null) { + return txsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txs_); + } + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder addTxsBuilder() { + return getTxsFieldBuilder() + .addBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail + .getDefaultInstance()); + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder addTxsBuilder( + int index) { + return getTxsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail + .getDefaultInstance()); + } + + /** + * repeated .TransactionDetail txs = 1; + */ + public java.util.List getTxsBuilderList() { + return getTxsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxsFieldBuilder() { + if (txsBuilder_ == null) { + txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txs_ = null; + } + return txsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:TransactionDetails) + } + + // @@protoc_insertion_point(class_scope:TransactionDetails) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransactionDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqAddrsOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqAddrs) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string addrs = 1; + * + * @return A list containing the addrs. + */ + java.util.List getAddrsList(); + + /** + * repeated string addrs = 1; + * + * @return The count of addrs. + */ + int getAddrsCount(); + + /** + * repeated string addrs = 1; + * + * @param index + * The index of the element to return. + * + * @return The addrs at the given index. + */ + java.lang.String getAddrs(int index); + + /** + * repeated string addrs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addrs at the given index. + */ + com.google.protobuf.ByteString getAddrsBytes(int index); + } + + /** + * Protobuf type {@code ReqAddrs} + */ + public static final class ReqAddrs extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqAddrs) + ReqAddrsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqAddrs.newBuilder() to construct. + private ReqAddrs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqAddrs() { + addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqAddrs(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqAddrs(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + addrs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + addrs_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + addrs_ = addrs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.Builder.class); + } + + public static final int ADDRS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList addrs_; + + /** + * repeated string addrs = 1; + * + * @return A list containing the addrs. + */ + public com.google.protobuf.ProtocolStringList getAddrsList() { + return addrs_; + } + + /** + * repeated string addrs = 1; + * + * @return The count of addrs. + */ + public int getAddrsCount() { + return addrs_.size(); + } + + /** + * repeated string addrs = 1; + * + * @param index + * The index of the element to return. + * + * @return The addrs at the given index. + */ + public java.lang.String getAddrs(int index) { + return addrs_.get(index); + } + + /** + * repeated string addrs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addrs at the given index. + */ + public com.google.protobuf.ByteString getAddrsBytes(int index) { + return addrs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < addrs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addrs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < addrs_.size(); i++) { + dataSize += computeStringSizeNoTag(addrs_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddrsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs) obj; + + if (!getAddrsList().equals(other.getAddrsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddrsCount() > 0) { + hash = (37 * hash) + ADDRS_FIELD_NUMBER; + hash = (53 * hash) + getAddrsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqAddrs} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqAddrs) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + addrs_ = addrs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addrs_ = addrs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.getDefaultInstance()) + return this; + if (!other.addrs_.isEmpty()) { + if (addrs_.isEmpty()) { + addrs_ = other.addrs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddrsIsMutable(); + addrs_.addAll(other.addrs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAddrsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + addrs_ = new com.google.protobuf.LazyStringArrayList(addrs_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string addrs = 1; + * + * @return A list containing the addrs. + */ + public com.google.protobuf.ProtocolStringList getAddrsList() { + return addrs_.getUnmodifiableView(); + } + + /** + * repeated string addrs = 1; + * + * @return The count of addrs. + */ + public int getAddrsCount() { + return addrs_.size(); + } + + /** + * repeated string addrs = 1; + * + * @param index + * The index of the element to return. + * + * @return The addrs at the given index. + */ + public java.lang.String getAddrs(int index) { + return addrs_.get(index); + } + + /** + * repeated string addrs = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the addrs at the given index. + */ + public com.google.protobuf.ByteString getAddrsBytes(int index) { + return addrs_.getByteString(index); + } + + /** + * repeated string addrs = 1; + * + * @param index + * The index to set the value at. + * @param value + * The addrs to set. + * + * @return This builder for chaining. + */ + public Builder setAddrs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddrsIsMutable(); + addrs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string addrs = 1; + * + * @param value + * The addrs to add. + * + * @return This builder for chaining. + */ + public Builder addAddrs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddrsIsMutable(); + addrs_.add(value); + onChanged(); + return this; + } + + /** + * repeated string addrs = 1; + * + * @param values + * The addrs to add. + * + * @return This builder for chaining. + */ + public Builder addAllAddrs(java.lang.Iterable values) { + ensureAddrsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addrs_); + onChanged(); + return this; + } + + /** + * repeated string addrs = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddrs() { + addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string addrs = 1; + * + * @param value + * The bytes of the addrs to add. + * + * @return This builder for chaining. + */ + public Builder addAddrsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddrsIsMutable(); + addrs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqAddrs) + } + + // @@protoc_insertion_point(class_scope:ReqAddrs) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqAddrs parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqAddrs(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqDecodeRawTransactionOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqDecodeRawTransaction) + com.google.protobuf.MessageOrBuilder { + + /** + * string txHex = 1; + * + * @return The txHex. + */ + java.lang.String getTxHex(); + + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + com.google.protobuf.ByteString getTxHexBytes(); + } + + /** + * Protobuf type {@code ReqDecodeRawTransaction} + */ + public static final class ReqDecodeRawTransaction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqDecodeRawTransaction) + ReqDecodeRawTransactionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqDecodeRawTransaction.newBuilder() to construct. + private ReqDecodeRawTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqDecodeRawTransaction() { + txHex_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqDecodeRawTransaction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqDecodeRawTransaction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + txHex_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.Builder.class); + } + + public static final int TXHEX_FIELD_NUMBER = 1; + private volatile java.lang.Object txHex_; + + /** + * string txHex = 1; + * + * @return The txHex. + */ + @java.lang.Override + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } + } + + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTxHexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTxHexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHex_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction) obj; + + if (!getTxHex().equals(other.getTxHex())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHEX_FIELD_NUMBER; + hash = (53 * hash) + getTxHex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqDecodeRawTransaction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqDecodeRawTransaction) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.Builder.class); + } + + // Construct using + // cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + txHex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction + .getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction( + this); + result.txHex_ = txHex_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction + .getDefaultInstance()) + return this; + if (!other.getTxHex().isEmpty()) { + txHex_ = other.txHex_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object txHex_ = ""; + + /** + * string txHex = 1; + * + * @return The txHex. + */ + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string txHex = 1; + * + * @param value + * The txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txHex_ = value; + onChanged(); + return this; + } + + /** + * string txHex = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHex() { + + txHex_ = getDefaultInstance().getTxHex(); + onChanged(); + return this; + } + + /** + * string txHex = 1; + * + * @param value + * The bytes for txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txHex_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqDecodeRawTransaction) + } + + // @@protoc_insertion_point(class_scope:ReqDecodeRawTransaction) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqDecodeRawTransaction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqDecodeRawTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserWriteOrBuilder extends + // @@protoc_insertion_point(interface_extends:UserWrite) + com.google.protobuf.MessageOrBuilder { + + /** + * string topic = 1; + * + * @return The topic. + */ + java.lang.String getTopic(); + + /** + * string topic = 1; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * string content = 2; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * string content = 2; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + } + + /** + * Protobuf type {@code UserWrite} + */ + public static final class UserWrite extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:UserWrite) + UserWriteOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserWrite.newBuilder() to construct. + private UserWrite(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserWrite() { + topic_ = ""; + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserWrite(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UserWrite(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + + /** + * string topic = 1; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + + /** + * string topic = 1; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private volatile java.lang.Object content_; + + /** + * string content = 2; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } + } + + /** + * string content = 2; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (!getContentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (!getContentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite) obj; + + if (!getTopic().equals(other.getTopic())) + return false; + if (!getContent().equals(other.getContent())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 UserWrite} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:UserWrite) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWriteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + topic_ = ""; + + content_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite( + this); + result.topic_ = topic_; + result.content_ = content_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.getDefaultInstance()) + return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object topic_ = ""; + + /** + * string topic = 1; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string topic = 1; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string topic = 1; + * + * @param value + * The topic to set. + * + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + + /** + * string topic = 1; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + + /** + * string topic = 1; + * + * @param value + * The bytes for topic to set. + * + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * string content = 2; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string content = 2; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string content = 2; + * + * @param value + * The content to set. + * + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + + /** + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + + /** + * string content = 2; + * + * @param value + * The bytes for content to set. + * + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:UserWrite) + } + + // @@protoc_insertion_point(class_scope:UserWrite) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserWrite parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserWrite(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpgradeMetaOrBuilder extends + // @@protoc_insertion_point(interface_extends:UpgradeMeta) + com.google.protobuf.MessageOrBuilder { + + /** + * bool starting = 1; + * + * @return The starting. + */ + boolean getStarting(); + + /** + * string version = 2; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * string version = 2; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * int64 height = 3; + * + * @return The height. + */ + long getHeight(); + } + + /** + * Protobuf type {@code UpgradeMeta} */ - java.util.List - getTxsOrBuilderList(); + public static final class UpgradeMeta extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:UpgradeMeta) + UpgradeMetaOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpgradeMeta.newBuilder() to construct. + private UpgradeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeMeta() { + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeMeta(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeMeta(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + starting_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 24: { + + height_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.Builder.class); + } + + public static final int STARTING_FIELD_NUMBER = 1; + private boolean starting_; + + /** + * bool starting = 1; + * + * @return The starting. + */ + @java.lang.Override + public boolean getStarting() { + return starting_; + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + + /** + * string version = 2; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + + /** + * string version = 2; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEIGHT_FIELD_NUMBER = 3; + private long height_; + + /** + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (starting_ != false) { + output.writeBool(1, starting_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (height_ != 0L) { + output.writeInt64(3, height_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (starting_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, starting_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, height_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta) obj; + + if (getStarting() != other.getStarting()) + return false; + if (!getVersion().equals(other.getVersion())) + return false; + if (getHeight() != other.getHeight()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STARTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStarting()); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 UpgradeMeta} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:UpgradeMeta) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMetaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + starting_ = false; + + version_ = ""; + + height_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta( + this); + result.starting_ = starting_; + result.version_ = version_; + result.height_ = height_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.getDefaultInstance()) + return this; + if (other.getStarting() != false) { + setStarting(other.getStarting()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean starting_; + + /** + * bool starting = 1; + * + * @return The starting. + */ + @java.lang.Override + public boolean getStarting() { + return starting_; + } + + /** + * bool starting = 1; + * + * @param value + * The starting to set. + * + * @return This builder for chaining. + */ + public Builder setStarting(boolean value) { + + starting_ = value; + onChanged(); + return this; + } + + /** + * bool starting = 1; + * + * @return This builder for chaining. + */ + public Builder clearStarting() { + + starting_ = false; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * string version = 2; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string version = 2; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string version = 2; + * + * @param value + * The version to set. + * + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + + /** + * string version = 2; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + + /** + * string version = 2; + * + * @param value + * The bytes for version to set. + * + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private long height_; + + /** + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 3; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 3; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:UpgradeMeta) + } + + // @@protoc_insertion_point(class_scope:UpgradeMeta) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeMeta parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeMeta(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqTxHashListOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqTxHashList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string hashes = 1; + * + * @return A list containing the hashes. + */ + java.util.List getHashesList(); + + /** + * repeated string hashes = 1; + * + * @return The count of hashes. + */ + int getHashesCount(); + + /** + * repeated string hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + java.lang.String getHashes(int index); + + /** + * repeated string hashes = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the hashes at the given index. + */ + com.google.protobuf.ByteString getHashesBytes(int index); + + /** + * bool isShortHash = 2; + * + * @return The isShortHash. + */ + boolean getIsShortHash(); + } + /** - * repeated .TransactionDetail txs = 1; + *
+     *通过交易hash获取交易列表,需要区分是短hash还是全hash值
+     * 
+ * + * Protobuf type {@code ReqTxHashList} */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder getTxsOrBuilder( - int index); - } - /** - * Protobuf type {@code TransactionDetails} - */ - public static final class TransactionDetails extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TransactionDetails) - TransactionDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransactionDetails.newBuilder() to construct. - private TransactionDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); + public static final class ReqTxHashList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqTxHashList) + ReqTxHashListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqTxHashList.newBuilder() to construct. + private ReqTxHashList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqTxHashList() { + hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqTxHashList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqTxHashList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + hashes_.add(s); + break; + } + case 16: { + + isShortHash_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + hashes_ = hashes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.Builder.class); + } + + public static final int HASHES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList hashes_; + + /** + * repeated string hashes = 1; + * + * @return A list containing the hashes. + */ + public com.google.protobuf.ProtocolStringList getHashesList() { + return hashes_; + } + + /** + * repeated string hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated string hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public java.lang.String getHashes(int index) { + return hashes_.get(index); + } + + /** + * repeated string hashes = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the hashes at the given index. + */ + public com.google.protobuf.ByteString getHashesBytes(int index) { + return hashes_.getByteString(index); + } + + public static final int ISSHORTHASH_FIELD_NUMBER = 2; + private boolean isShortHash_; + + /** + * bool isShortHash = 2; + * + * @return The isShortHash. + */ + @java.lang.Override + public boolean getIsShortHash() { + return isShortHash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hashes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hashes_.getRaw(i)); + } + if (isShortHash_ != false) { + output.writeBool(2, isShortHash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < hashes_.size(); i++) { + dataSize += computeStringSizeNoTag(hashes_.getRaw(i)); + } + size += dataSize; + size += 1 * getHashesList().size(); + } + if (isShortHash_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isShortHash_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList) obj; + + if (!getHashesList().equals(other.getHashesList())) + return false; + if (getIsShortHash() != other.getIsShortHash()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHashesCount() > 0) { + hash = (37 * hash) + HASHES_FIELD_NUMBER; + hash = (53 * hash) + getHashesList().hashCode(); + } + hash = (37 * hash) + ISSHORTHASH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsShortHash()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *通过交易hash获取交易列表,需要区分是短hash还是全hash值
+         * 
+ * + * Protobuf type {@code ReqTxHashList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqTxHashList) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + isShortHash_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + hashes_ = hashes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hashes_ = hashes_; + result.isShortHash_ = isShortHash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList + .getDefaultInstance()) + return this; + if (!other.hashes_.isEmpty()) { + if (hashes_.isEmpty()) { + hashes_ = other.hashes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHashesIsMutable(); + hashes_.addAll(other.hashes_); + } + onChanged(); + } + if (other.getIsShortHash() != false) { + setIsShortHash(other.getIsShortHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureHashesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hashes_ = new com.google.protobuf.LazyStringArrayList(hashes_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string hashes = 1; + * + * @return A list containing the hashes. + */ + public com.google.protobuf.ProtocolStringList getHashesList() { + return hashes_.getUnmodifiableView(); + } + + /** + * repeated string hashes = 1; + * + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + + /** + * repeated string hashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The hashes at the given index. + */ + public java.lang.String getHashes(int index) { + return hashes_.get(index); + } + + /** + * repeated string hashes = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the hashes at the given index. + */ + public com.google.protobuf.ByteString getHashesBytes(int index) { + return hashes_.getByteString(index); + } + + /** + * repeated string hashes = 1; + * + * @param index + * The index to set the value at. + * @param value + * The hashes to set. + * + * @return This builder for chaining. + */ + public Builder setHashes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string hashes = 1; + * + * @param value + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addHashes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.add(value); + onChanged(); + return this; + } + + /** + * repeated string hashes = 1; + * + * @param values + * The hashes to add. + * + * @return This builder for chaining. + */ + public Builder addAllHashes(java.lang.Iterable values) { + ensureHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_); + onChanged(); + return this; + } + + /** + * repeated string hashes = 1; + * + * @return This builder for chaining. + */ + public Builder clearHashes() { + hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string hashes = 1; + * + * @param value + * The bytes of the hashes to add. + * + * @return This builder for chaining. + */ + public Builder addHashesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureHashesIsMutable(); + hashes_.add(value); + onChanged(); + return this; + } + + private boolean isShortHash_; + + /** + * bool isShortHash = 2; + * + * @return The isShortHash. + */ + @java.lang.Override + public boolean getIsShortHash() { + return isShortHash_; + } + + /** + * bool isShortHash = 2; + * + * @param value + * The isShortHash to set. + * + * @return This builder for chaining. + */ + public Builder setIsShortHash(boolean value) { + + isShortHash_ = value; + onChanged(); + return this; + } + + /** + * bool isShortHash = 2; + * + * @return This builder for chaining. + */ + public Builder clearIsShortHash() { + + isShortHash_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqTxHashList) + } + + // @@protoc_insertion_point(class_scope:ReqTxHashList) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqTxHashList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqTxHashList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private TransactionDetails() { - txs_ = java.util.Collections.emptyList(); + + public interface TxProofOrBuilder extends + // @@protoc_insertion_point(interface_extends:TxProof) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes proofs = 1; + * + * @return A list containing the proofs. + */ + java.util.List getProofsList(); + + /** + * repeated bytes proofs = 1; + * + * @return The count of proofs. + */ + int getProofsCount(); + + /** + * repeated bytes proofs = 1; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + com.google.protobuf.ByteString getProofs(int index); + + /** + * uint32 index = 2; + * + * @return The index. + */ + int getIndex(); + + /** + * bytes rootHash = 3; + * + * @return The rootHash. + */ + com.google.protobuf.ByteString getRootHash(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransactionDetails(); - } + /** + *
+     * 使用多层merkle树之后的proof证明结构体
+     * 
+ * + * Protobuf type {@code TxProof} + */ + public static final class TxProof extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:TxProof) + TxProofOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TxProof.newBuilder() to construct. + private TxProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TxProof() { + proofs_ = java.util.Collections.emptyList(); + rootHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TxProof(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TxProof(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + proofs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + proofs_.add(input.readBytes()); + break; + } + case 16: { + + index_ = input.readUInt32(); + break; + } + case 26: { + + rootHash_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder.class); + } + + public static final int PROOFS_FIELD_NUMBER = 1; + private java.util.List proofs_; + + /** + * repeated bytes proofs = 1; + * + * @return A list containing the proofs. + */ + @java.lang.Override + public java.util.List getProofsList() { + return proofs_; + } + + /** + * repeated bytes proofs = 1; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } + + /** + * repeated bytes proofs = 1; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } + + public static final int INDEX_FIELD_NUMBER = 2; + private int index_; + + /** + * uint32 index = 2; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int ROOTHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString rootHash_; + + /** + * bytes rootHash = 3; + * + * @return The rootHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRootHash() { + return rootHash_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < proofs_.size(); i++) { + output.writeBytes(1, proofs_.get(i)); + } + if (index_ != 0) { + output.writeUInt32(2, index_); + } + if (!rootHash_.isEmpty()) { + output.writeBytes(3, rootHash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < proofs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(proofs_.get(i)); + } + size += dataSize; + size += 1 * getProofsList().size(); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, index_); + } + if (!rootHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, rootHash_); + } + 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 cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof) obj; + + if (!getProofsList().equals(other.getProofsList())) + return false; + if (getIndex() != other.getIndex()) + return false; + if (!getRootHash().equals(other.getRootHash())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProofsCount() > 0) { + hash = (37 * hash) + PROOFS_FIELD_NUMBER; + hash = (53 * hash) + getProofsList().hashCode(); + } + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + ROOTHASH_FIELD_NUMBER; + hash = (53 * hash) + getRootHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransactionDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txs_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TXS_FIELD_NUMBER = 1; - private java.util.List txs_; - /** - * repeated .TransactionDetail txs = 1; - */ - public java.util.List getTxsList() { - return txs_; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - return txs_; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public int getTxsCount() { - return txs_.size(); - } - /** - * repeated .TransactionDetail txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getTxs(int index) { - return txs_.get(index); - } - /** - * repeated .TransactionDetail txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder getTxsOrBuilder( - int index) { - return txs_.get(index); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txs_.size(); i++) { - output.writeMessage(1, txs_.get(i)); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails) obj; - - if (!getTxsList() - .equals(other.getTxsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxsCount() > 0) { - hash = (37 * hash) + TXS_FIELD_NUMBER; - hash = (53 * hash) + getTxsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TransactionDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TransactionDetails) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TransactionDetails_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails(this); - int from_bitField0_ = bitField0_; - if (txsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txs_ = java.util.Collections.unmodifiableList(txs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txs_ = txs_; - } else { - result.txs_ = txsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.getDefaultInstance()) return this; - if (txsBuilder_ == null) { - if (!other.txs_.isEmpty()) { - if (txs_.isEmpty()) { - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxsIsMutable(); - txs_.addAll(other.txs_); - } - onChanged(); - } - } else { - if (!other.txs_.isEmpty()) { - if (txsBuilder_.isEmpty()) { - txsBuilder_.dispose(); - txsBuilder_ = null; - txs_ = other.txs_; - bitField0_ = (bitField0_ & ~0x00000001); - txsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxsFieldBuilder() : null; - } else { - txsBuilder_.addAllMessages(other.txs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txs_ = - java.util.Collections.emptyList(); - private void ensureTxsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txs_ = new java.util.ArrayList(txs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder> txsBuilder_; - - /** - * repeated .TransactionDetail txs = 1; - */ - public java.util.List getTxsList() { - if (txsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txs_); - } else { - return txsBuilder_.getMessageList(); - } - } - /** - * repeated .TransactionDetail txs = 1; - */ - public int getTxsCount() { - if (txsBuilder_ == null) { - return txs_.size(); - } else { - return txsBuilder_.getCount(); - } - } - /** - * repeated .TransactionDetail txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail getTxs(int index) { - if (txsBuilder_ == null) { - return txs_.get(index); - } else { - return txsBuilder_.getMessage(index); - } - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.set(index, value); - onChanged(); - } else { - txsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder setTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.set(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder addTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(value); - onChanged(); - } else { - txsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail value) { - if (txsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxsIsMutable(); - txs_.add(index, value); - onChanged(); - } else { - txsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder addTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder addTxs( - int index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder builderForValue) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.add(index, builderForValue.build()); - onChanged(); - } else { - txsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder addAllTxs( - java.lang.Iterable values) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txs_); - onChanged(); - } else { - txsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder clearTxs() { - if (txsBuilder_ == null) { - txs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txsBuilder_.clear(); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public Builder removeTxs(int index) { - if (txsBuilder_ == null) { - ensureTxsIsMutable(); - txs_.remove(index); - onChanged(); - } else { - txsBuilder_.remove(index); - } - return this; - } - /** - * repeated .TransactionDetail txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder getTxsBuilder( - int index) { - return getTxsFieldBuilder().getBuilder(index); - } - /** - * repeated .TransactionDetail txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder getTxsOrBuilder( - int index) { - if (txsBuilder_ == null) { - return txs_.get(index); } else { - return txsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .TransactionDetail txs = 1; - */ - public java.util.List - getTxsOrBuilderList() { - if (txsBuilder_ != null) { - return txsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txs_); - } - } - /** - * repeated .TransactionDetail txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder addTxsBuilder() { - return getTxsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.getDefaultInstance()); - } - /** - * repeated .TransactionDetail txs = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder addTxsBuilder( - int index) { - return getTxsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.getDefaultInstance()); - } - /** - * repeated .TransactionDetail txs = 1; - */ - public java.util.List - getTxsBuilderList() { - return getTxsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder> - getTxsFieldBuilder() { - if (txsBuilder_ == null) { - txsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetailOrBuilder>( - txs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txs_ = null; - } - return txsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TransactionDetails) - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:TransactionDetails) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+         * 使用多层merkle树之后的proof证明结构体
+         * 
+ * + * Protobuf type {@code TxProof} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:TxProof) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder.class); + } - public interface ReqAddrsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqAddrs) - com.google.protobuf.MessageOrBuilder { + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * repeated string addrs = 1; - * @return A list containing the addrs. - */ - java.util.List - getAddrsList(); - /** - * repeated string addrs = 1; - * @return The count of addrs. - */ - int getAddrsCount(); - /** - * repeated string addrs = 1; - * @param index The index of the element to return. - * @return The addrs at the given index. - */ - java.lang.String getAddrs(int index); - /** - * repeated string addrs = 1; - * @param index The index of the value to return. - * @return The bytes of the addrs at the given index. - */ - com.google.protobuf.ByteString - getAddrsBytes(int index); - } - /** - * Protobuf type {@code ReqAddrs} - */ - public static final class ReqAddrs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqAddrs) - ReqAddrsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqAddrs.newBuilder() to construct. - private ReqAddrs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqAddrs() { - addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqAddrs(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqAddrs( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - addrs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - addrs_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - addrs_ = addrs_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_descriptor; - } + @java.lang.Override + public Builder clear() { + super.clear(); + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + index_ = 0; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.Builder.class); - } + rootHash_ = com.google.protobuf.ByteString.EMPTY; - public static final int ADDRS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList addrs_; - /** - * repeated string addrs = 1; - * @return A list containing the addrs. - */ - public com.google.protobuf.ProtocolStringList - getAddrsList() { - return addrs_; - } - /** - * repeated string addrs = 1; - * @return The count of addrs. - */ - public int getAddrsCount() { - return addrs_.size(); - } - /** - * repeated string addrs = 1; - * @param index The index of the element to return. - * @return The addrs at the given index. - */ - public java.lang.String getAddrs(int index) { - return addrs_.get(index); - } - /** - * repeated string addrs = 1; - * @param index The index of the value to return. - * @return The bytes of the addrs at the given index. - */ - public com.google.protobuf.ByteString - getAddrsBytes(int index) { - return addrs_.getByteString(index); - } + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < addrs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addrs_.getRaw(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < addrs_.size(); i++) { - dataSize += computeStringSizeNoTag(addrs_.getRaw(i)); - } - size += dataSize; - size += 1 * getAddrsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + proofs_ = java.util.Collections.unmodifiableList(proofs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.proofs_ = proofs_; + result.index_ = index_; + result.rootHash_ = rootHash_; + onBuilt(); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs) obj; - - if (!getAddrsList() - .equals(other.getAddrsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddrsCount() > 0) { - hash = (37 * hash) + ADDRS_FIELD_NUMBER; - hash = (53 * hash) + getAddrsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqAddrs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqAddrs) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqAddrs_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - addrs_ = addrs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addrs_ = addrs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs.getDefaultInstance()) return this; - if (!other.addrs_.isEmpty()) { - if (addrs_.isEmpty()) { - addrs_ = other.addrs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddrsIsMutable(); - addrs_.addAll(other.addrs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAddrsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - addrs_ = new com.google.protobuf.LazyStringArrayList(addrs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string addrs = 1; - * @return A list containing the addrs. - */ - public com.google.protobuf.ProtocolStringList - getAddrsList() { - return addrs_.getUnmodifiableView(); - } - /** - * repeated string addrs = 1; - * @return The count of addrs. - */ - public int getAddrsCount() { - return addrs_.size(); - } - /** - * repeated string addrs = 1; - * @param index The index of the element to return. - * @return The addrs at the given index. - */ - public java.lang.String getAddrs(int index) { - return addrs_.get(index); - } - /** - * repeated string addrs = 1; - * @param index The index of the value to return. - * @return The bytes of the addrs at the given index. - */ - public com.google.protobuf.ByteString - getAddrsBytes(int index) { - return addrs_.getByteString(index); - } - /** - * repeated string addrs = 1; - * @param index The index to set the value at. - * @param value The addrs to set. - * @return This builder for chaining. - */ - public Builder setAddrs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddrsIsMutable(); - addrs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string addrs = 1; - * @param value The addrs to add. - * @return This builder for chaining. - */ - public Builder addAddrs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddrsIsMutable(); - addrs_.add(value); - onChanged(); - return this; - } - /** - * repeated string addrs = 1; - * @param values The addrs to add. - * @return This builder for chaining. - */ - public Builder addAllAddrs( - java.lang.Iterable values) { - ensureAddrsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addrs_); - onChanged(); - return this; - } - /** - * repeated string addrs = 1; - * @return This builder for chaining. - */ - public Builder clearAddrs() { - addrs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string addrs = 1; - * @param value The bytes of the addrs to add. - * @return This builder for chaining. - */ - public Builder addAddrsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAddrsIsMutable(); - addrs_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqAddrs) - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(class_scope:ReqAddrs) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs(); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof) other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqAddrs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqAddrs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance()) + return this; + if (!other.proofs_.isEmpty()) { + if (proofs_.isEmpty()) { + proofs_ = other.proofs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProofsIsMutable(); + proofs_.addAll(other.proofs_); + } + onChanged(); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.getRootHash() != com.google.protobuf.ByteString.EMPTY) { + setRootHash(other.getRootHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddrs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - } + private int bitField0_; - public interface ReqDecodeRawTransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqDecodeRawTransaction) - com.google.protobuf.MessageOrBuilder { + private java.util.List proofs_ = java.util.Collections.emptyList(); - /** - * string txHex = 1; - * @return The txHex. - */ - java.lang.String getTxHex(); - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - com.google.protobuf.ByteString - getTxHexBytes(); - } - /** - * Protobuf type {@code ReqDecodeRawTransaction} - */ - public static final class ReqDecodeRawTransaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqDecodeRawTransaction) - ReqDecodeRawTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqDecodeRawTransaction.newBuilder() to construct. - private ReqDecodeRawTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqDecodeRawTransaction() { - txHex_ = ""; - } + private void ensureProofsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + proofs_ = new java.util.ArrayList(proofs_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqDecodeRawTransaction(); - } + /** + * repeated bytes proofs = 1; + * + * @return A list containing the proofs. + */ + public java.util.List getProofsList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(proofs_) : proofs_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqDecodeRawTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - txHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_descriptor; - } + /** + * repeated bytes proofs = 1; + * + * @return The count of proofs. + */ + public int getProofsCount() { + return proofs_.size(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.Builder.class); - } + /** + * repeated bytes proofs = 1; + * + * @param index + * The index of the element to return. + * + * @return The proofs at the given index. + */ + public com.google.protobuf.ByteString getProofs(int index) { + return proofs_.get(index); + } - public static final int TXHEX_FIELD_NUMBER = 1; - private volatile java.lang.Object txHex_; - /** - * string txHex = 1; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } - } - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated bytes proofs = 1; + * + * @param index + * The index to set the value at. + * @param value + * The proofs to set. + * + * @return This builder for chaining. + */ + public Builder setProofs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.set(index, value); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated bytes proofs = 1; + * + * @param value + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addProofs(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProofsIsMutable(); + proofs_.add(value); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated bytes proofs = 1; + * + * @param values + * The proofs to add. + * + * @return This builder for chaining. + */ + public Builder addAllProofs(java.lang.Iterable values) { + ensureProofsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proofs_); + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHex_); - } - unknownFields.writeTo(output); - } + /** + * repeated bytes proofs = 1; + * + * @return This builder for chaining. + */ + public Builder clearProofs() { + proofs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private int index_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction) obj; - - if (!getTxHex() - .equals(other.getTxHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * uint32 index = 2; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHEX_FIELD_NUMBER; - hash = (53 * hash) + getTxHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * uint32 index = 2; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * uint32 index = 2; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + index_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqDecodeRawTransaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqDecodeRawTransaction) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHex_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqDecodeRawTransaction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction(this); - result.txHex_ = txHex_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction.getDefaultInstance()) return this; - if (!other.getTxHex().isEmpty()) { - txHex_ = other.txHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object txHex_ = ""; - /** - * string txHex = 1; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string txHex = 1; - * @param value The txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txHex_ = value; - onChanged(); - return this; - } - /** - * string txHex = 1; - * @return This builder for chaining. - */ - public Builder clearTxHex() { - - txHex_ = getDefaultInstance().getTxHex(); - onChanged(); - return this; - } - /** - * string txHex = 1; - * @param value The bytes for txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txHex_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqDecodeRawTransaction) - } + private com.google.protobuf.ByteString rootHash_ = com.google.protobuf.ByteString.EMPTY; - // @@protoc_insertion_point(class_scope:ReqDecodeRawTransaction) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction(); - } + /** + * bytes rootHash = 3; + * + * @return The rootHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRootHash() { + return rootHash_; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * bytes rootHash = 3; + * + * @param value + * The rootHash to set. + * + * @return This builder for chaining. + */ + public Builder setRootHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rootHash_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqDecodeRawTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqDecodeRawTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * bytes rootHash = 3; + * + * @return This builder for chaining. + */ + public Builder clearRootHash() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + rootHash_ = getDefaultInstance().getRootHash(); + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqDecodeRawTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public interface UserWriteOrBuilder extends - // @@protoc_insertion_point(interface_extends:UserWrite) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:TxProof) + } - /** - * string topic = 1; - * @return The topic. - */ - java.lang.String getTopic(); - /** - * string topic = 1; - * @return The bytes for topic. - */ - com.google.protobuf.ByteString - getTopicBytes(); + // @@protoc_insertion_point(class_scope:TxProof) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof(); + } - /** - * string content = 2; - * @return The content. - */ - java.lang.String getContent(); - /** - * string content = 2; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); - } - /** - * Protobuf type {@code UserWrite} - */ - public static final class UserWrite extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UserWrite) - UserWriteOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserWrite.newBuilder() to construct. - private UserWrite(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserWrite() { - topic_ = ""; - content_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UserWrite(); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TxProof parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TxProof(input, extensionRegistry); + } + }; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UserWrite( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - content_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int TOPIC_FIELD_NUMBER = 1; - private volatile java.lang.Object topic_; - /** - * string topic = 1; - * @return The topic. - */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } - } - /** - * string topic = 1; - * @return The bytes for topic. - */ - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } } - public static final int CONTENT_FIELD_NUMBER = 2; - private volatile java.lang.Object content_; - /** - * string content = 2; - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } + public interface ReqCheckTxsExistOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqCheckTxsExist) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes txHashes = 1; + * + * @return A list containing the txHashes. + */ + java.util.List getTxHashesList(); + + /** + * repeated bytes txHashes = 1; + * + * @return The count of txHashes. + */ + int getTxHashesCount(); + + /** + * repeated bytes txHashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHashes at the given index. + */ + com.google.protobuf.ByteString getTxHashes(int index); } + /** - * string content = 2; - * @return The bytes for content. + *
+     * 指定交易哈希,查找是否存在
+     * 
+ * + * Protobuf type {@code ReqCheckTxsExist} */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class ReqCheckTxsExist extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqCheckTxsExist) + ReqCheckTxsExistOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + // Use ReqCheckTxsExist.newBuilder() to construct. + private ReqCheckTxsExist(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTopicBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); - } - if (!getContentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); - } - unknownFields.writeTo(output); - } + private ReqCheckTxsExist() { + txHashes_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTopicBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); - } - if (!getContentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqCheckTxsExist(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite) obj; - - if (!getTopic() - .equals(other.getTopic())) return false; - if (!getContent() - .equals(other.getContent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private ReqCheckTxsExist(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txHashes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txHashes_.add(input.readBytes()); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txHashes_ = java.util.Collections.unmodifiableList(txHashes_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UserWrite} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:UserWrite) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWriteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - topic_ = ""; - - content_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UserWrite_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite(this); - result.topic_ = topic_; - result.content_ = content_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite.getDefaultInstance()) return this; - if (!other.getTopic().isEmpty()) { - topic_ = other.topic_; - onChanged(); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object topic_ = ""; - /** - * string topic = 1; - * @return The topic. - */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topic = 1; - * @return The bytes for topic. - */ - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topic = 1; - * @param value The topic to set. - * @return This builder for chaining. - */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topic_ = value; - onChanged(); - return this; - } - /** - * string topic = 1; - * @return This builder for chaining. - */ - public Builder clearTopic() { - - topic_ = getDefaultInstance().getTopic(); - onChanged(); - return this; - } - /** - * string topic = 1; - * @param value The bytes for topic to set. - * @return This builder for chaining. - */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topic_ = value; - onChanged(); - return this; - } - - private java.lang.Object content_ = ""; - /** - * string content = 2; - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content = 2; - * @return The bytes for content. - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content = 2; - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - content_ = value; - onChanged(); - return this; - } - /** - * string content = 2; - * @return This builder for chaining. - */ - public Builder clearContent() { - - content_ = getDefaultInstance().getContent(); - onChanged(); - return this; - } - /** - * string content = 2; - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - content_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UserWrite) - } + public static final int TXHASHES_FIELD_NUMBER = 1; + private java.util.List txHashes_; - // @@protoc_insertion_point(class_scope:UserWrite) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite(); - } + /** + * repeated bytes txHashes = 1; + * + * @return A list containing the txHashes. + */ + @java.lang.Override + public java.util.List getTxHashesList() { + return txHashes_; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * repeated bytes txHashes = 1; + * + * @return The count of txHashes. + */ + public int getTxHashesCount() { + return txHashes_.size(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserWrite parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserWrite(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated bytes txHashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHashes at the given index. + */ + public com.google.protobuf.ByteString getTxHashes(int index) { + return txHashes_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UserWrite getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - } + memoizedIsInitialized = 1; + return true; + } - public interface UpgradeMetaOrBuilder extends - // @@protoc_insertion_point(interface_extends:UpgradeMeta) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txHashes_.size(); i++) { + output.writeBytes(1, txHashes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < txHashes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(txHashes_.get(i)); + } + size += dataSize; + size += 1 * getTxHashesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * bool starting = 1; - * @return The starting. - */ - boolean getStarting(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist) obj; - /** - * string version = 2; - * @return The version. - */ - java.lang.String getVersion(); - /** - * string version = 2; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); + if (!getTxHashesList().equals(other.getTxHashesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - /** - * int64 height = 3; - * @return The height. - */ - long getHeight(); - } - /** - * Protobuf type {@code UpgradeMeta} - */ - public static final class UpgradeMeta extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UpgradeMeta) - UpgradeMetaOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpgradeMeta.newBuilder() to construct. - private UpgradeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpgradeMeta() { - version_ = ""; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxHashesCount() > 0) { + hash = (37 * hash) + TXHASHES_FIELD_NUMBER; + hash = (53 * hash) + getTxHashesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpgradeMeta(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpgradeMeta( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - starting_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 24: { - - height_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int STARTING_FIELD_NUMBER = 1; - private boolean starting_; - /** - * bool starting = 1; - * @return The starting. - */ - public boolean getStarting() { - return starting_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - * string version = 2; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 2; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - * int64 height = 3; - * @return The height. - */ - public long getHeight() { - return height_; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (starting_ != false) { - output.writeBool(1, starting_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (starting_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, starting_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta) obj; - - if (getStarting() - != other.getStarting()) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STARTING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStarting()); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UpgradeMeta} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:UpgradeMeta) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMetaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - starting_ = false; - - version_ = ""; - - height_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_UpgradeMeta_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta(this); - result.starting_ = starting_; - result.version_ = version_; - result.height_ = height_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta.getDefaultInstance()) return this; - if (other.getStarting() != false) { - setStarting(other.getStarting()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean starting_ ; - /** - * bool starting = 1; - * @return The starting. - */ - public boolean getStarting() { - return starting_; - } - /** - * bool starting = 1; - * @param value The starting to set. - * @return This builder for chaining. - */ - public Builder setStarting(boolean value) { - - starting_ = value; - onChanged(); - return this; - } - /** - * bool starting = 1; - * @return This builder for chaining. - */ - public Builder clearStarting() { - - starting_ = false; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 2; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 2; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 2; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 2; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 2; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 3; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 3; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 3; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UpgradeMeta) - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - // @@protoc_insertion_point(class_scope:UpgradeMeta) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeMeta(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+         * 指定交易哈希,查找是否存在
+         * 
+ * + * Protobuf type {@code ReqCheckTxsExist} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqCheckTxsExist) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExistOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.Builder.class); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UpgradeMeta getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public interface ReqTxHashListOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqTxHashList) - com.google.protobuf.MessageOrBuilder { + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - /** - * repeated string hashes = 1; - * @return A list containing the hashes. - */ - java.util.List - getHashesList(); - /** - * repeated string hashes = 1; - * @return The count of hashes. - */ - int getHashesCount(); - /** - * repeated string hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - java.lang.String getHashes(int index); - /** - * repeated string hashes = 1; - * @param index The index of the value to return. - * @return The bytes of the hashes at the given index. - */ - com.google.protobuf.ByteString - getHashesBytes(int index); + @java.lang.Override + public Builder clear() { + super.clear(); + txHashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - /** - * bool isShortHash = 2; - * @return The isShortHash. - */ - boolean getIsShortHash(); - } - /** - *
-   *通过交易hash获取交易列表,需要区分是短hash还是全hash值
-   * 
- * - * Protobuf type {@code ReqTxHashList} - */ - public static final class ReqTxHashList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqTxHashList) - ReqTxHashListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqTxHashList.newBuilder() to construct. - private ReqTxHashList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqTxHashList() { - hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqTxHashList(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqTxHashList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - hashes_.add(s); - break; - } - case 16: { - - isShortHash_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - hashes_ = hashes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_descriptor; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.Builder.class); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + txHashes_ = java.util.Collections.unmodifiableList(txHashes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txHashes_ = txHashes_; + onBuilt(); + return result; + } - public static final int HASHES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList hashes_; - /** - * repeated string hashes = 1; - * @return A list containing the hashes. - */ - public com.google.protobuf.ProtocolStringList - getHashesList() { - return hashes_; - } - /** - * repeated string hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated string hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public java.lang.String getHashes(int index) { - return hashes_.get(index); - } - /** - * repeated string hashes = 1; - * @param index The index of the value to return. - * @return The bytes of the hashes at the given index. - */ - public com.google.protobuf.ByteString - getHashesBytes(int index) { - return hashes_.getByteString(index); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int ISSHORTHASH_FIELD_NUMBER = 2; - private boolean isShortHash_; - /** - * bool isShortHash = 2; - * @return The isShortHash. - */ - public boolean getIsShortHash() { - return isShortHash_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < hashes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hashes_.getRaw(i)); - } - if (isShortHash_ != false) { - output.writeBool(2, isShortHash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < hashes_.size(); i++) { - dataSize += computeStringSizeNoTag(hashes_.getRaw(i)); - } - size += dataSize; - size += 1 * getHashesList().size(); - } - if (isShortHash_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isShortHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList) obj; - - if (!getHashesList() - .equals(other.getHashesList())) return false; - if (getIsShortHash() - != other.getIsShortHash()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getHashesCount() > 0) { - hash = (37 * hash) + HASHES_FIELD_NUMBER; - hash = (53 * hash) + getHashesList().hashCode(); - } - hash = (37 * hash) + ISSHORTHASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsShortHash()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist + .getDefaultInstance()) + return this; + if (!other.txHashes_.isEmpty()) { + if (txHashes_.isEmpty()) { + txHashes_ = other.txHashes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxHashesIsMutable(); + txHashes_.addAll(other.txHashes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *通过交易hash获取交易列表,需要区分是短hash还是全hash值
-     * 
- * - * Protobuf type {@code ReqTxHashList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqTxHashList) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - isShortHash_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqTxHashList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - hashes_ = hashes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.hashes_ = hashes_; - result.isShortHash_ = isShortHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList.getDefaultInstance()) return this; - if (!other.hashes_.isEmpty()) { - if (hashes_.isEmpty()) { - hashes_ = other.hashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHashesIsMutable(); - hashes_.addAll(other.hashes_); - } - onChanged(); - } - if (other.getIsShortHash() != false) { - setIsShortHash(other.getIsShortHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - hashes_ = new com.google.protobuf.LazyStringArrayList(hashes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string hashes = 1; - * @return A list containing the hashes. - */ - public com.google.protobuf.ProtocolStringList - getHashesList() { - return hashes_.getUnmodifiableView(); - } - /** - * repeated string hashes = 1; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); - } - /** - * repeated string hashes = 1; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public java.lang.String getHashes(int index) { - return hashes_.get(index); - } - /** - * repeated string hashes = 1; - * @param index The index of the value to return. - * @return The bytes of the hashes at the given index. - */ - public com.google.protobuf.ByteString - getHashesBytes(int index) { - return hashes_.getByteString(index); - } - /** - * repeated string hashes = 1; - * @param index The index to set the value at. - * @param value The hashes to set. - * @return This builder for chaining. - */ - public Builder setHashes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string hashes = 1; - * @param value The hashes to add. - * @return This builder for chaining. - */ - public Builder addHashes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureHashesIsMutable(); - hashes_.add(value); - onChanged(); - return this; - } - /** - * repeated string hashes = 1; - * @param values The hashes to add. - * @return This builder for chaining. - */ - public Builder addAllHashes( - java.lang.Iterable values) { - ensureHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hashes_); - onChanged(); - return this; - } - /** - * repeated string hashes = 1; - * @return This builder for chaining. - */ - public Builder clearHashes() { - hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string hashes = 1; - * @param value The bytes of the hashes to add. - * @return This builder for chaining. - */ - public Builder addHashesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureHashesIsMutable(); - hashes_.add(value); - onChanged(); - return this; - } - - private boolean isShortHash_ ; - /** - * bool isShortHash = 2; - * @return The isShortHash. - */ - public boolean getIsShortHash() { - return isShortHash_; - } - /** - * bool isShortHash = 2; - * @param value The isShortHash to set. - * @return This builder for chaining. - */ - public Builder setIsShortHash(boolean value) { - - isShortHash_ = value; - onChanged(); - return this; - } - /** - * bool isShortHash = 2; - * @return This builder for chaining. - */ - public Builder clearIsShortHash() { - - isShortHash_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqTxHashList) - } + private int bitField0_; - // @@protoc_insertion_point(class_scope:ReqTxHashList) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList(); - } + private java.util.List txHashes_ = java.util.Collections.emptyList(); - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void ensureTxHashesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txHashes_ = new java.util.ArrayList(txHashes_); + bitField0_ |= 0x00000001; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqTxHashList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqTxHashList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * repeated bytes txHashes = 1; + * + * @return A list containing the txHashes. + */ + public java.util.List getTxHashesList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(txHashes_) : txHashes_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * repeated bytes txHashes = 1; + * + * @return The count of txHashes. + */ + public int getTxHashesCount() { + return txHashes_.size(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqTxHashList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * repeated bytes txHashes = 1; + * + * @param index + * The index of the element to return. + * + * @return The txHashes at the given index. + */ + public com.google.protobuf.ByteString getTxHashes(int index) { + return txHashes_.get(index); + } - } + /** + * repeated bytes txHashes = 1; + * + * @param index + * The index to set the value at. + * @param value + * The txHashes to set. + * + * @return This builder for chaining. + */ + public Builder setTxHashes(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashesIsMutable(); + txHashes_.set(index, value); + onChanged(); + return this; + } - public interface TxProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:TxProof) - com.google.protobuf.MessageOrBuilder { + /** + * repeated bytes txHashes = 1; + * + * @param value + * The txHashes to add. + * + * @return This builder for chaining. + */ + public Builder addTxHashes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashesIsMutable(); + txHashes_.add(value); + onChanged(); + return this; + } - /** - * repeated bytes proofs = 1; - * @return A list containing the proofs. - */ - java.util.List getProofsList(); - /** - * repeated bytes proofs = 1; - * @return The count of proofs. - */ - int getProofsCount(); - /** - * repeated bytes proofs = 1; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - com.google.protobuf.ByteString getProofs(int index); + /** + * repeated bytes txHashes = 1; + * + * @param values + * The txHashes to add. + * + * @return This builder for chaining. + */ + public Builder addAllTxHashes(java.lang.Iterable values) { + ensureTxHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHashes_); + onChanged(); + return this; + } - /** - * uint32 index = 2; - * @return The index. - */ - int getIndex(); + /** + * repeated bytes txHashes = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHashes() { + txHashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * bytes rootHash = 3; - * @return The rootHash. - */ - com.google.protobuf.ByteString getRootHash(); - } - /** - *
-   *使用多层merkle树之后的proof证明结构体
-   * 
- * - * Protobuf type {@code TxProof} - */ - public static final class TxProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TxProof) - TxProofOrBuilder { - private static final long serialVersionUID = 0L; - // Use TxProof.newBuilder() to construct. - private TxProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TxProof() { - proofs_ = java.util.Collections.emptyList(); - rootHash_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TxProof(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TxProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - proofs_.add(input.readBytes()); - break; - } - case 16: { - - index_ = input.readUInt32(); - break; - } - case 26: { - - rootHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_descriptor; - } + // @@protoc_insertion_point(builder_scope:ReqCheckTxsExist) + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder.class); - } + // @@protoc_insertion_point(class_scope:ReqCheckTxsExist) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist(); + } - public static final int PROOFS_FIELD_NUMBER = 1; - private java.util.List proofs_; - /** - * repeated bytes proofs = 1; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return proofs_; - } - /** - * repeated bytes proofs = 1; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 1; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int INDEX_FIELD_NUMBER = 2; - private int index_; - /** - * uint32 index = 2; - * @return The index. - */ - public int getIndex() { - return index_; + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqCheckTxsExist parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqCheckTxsExist(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplyCheckTxsExistOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplyCheckTxsExist) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         *对应请求序列存在标识数组,存在则true,否则false
+         * 
+ * + * repeated bool existFlags = 1; + * + * @return A list containing the existFlags. + */ + java.util.List getExistFlagsList(); + + /** + *
+         *对应请求序列存在标识数组,存在则true,否则false
+         * 
+ * + * repeated bool existFlags = 1; + * + * @return The count of existFlags. + */ + int getExistFlagsCount(); + + /** + *
+         *对应请求序列存在标识数组,存在则true,否则false
+         * 
+ * + * repeated bool existFlags = 1; + * + * @param index + * The index of the element to return. + * + * @return The existFlags at the given index. + */ + boolean getExistFlags(int index); + + /** + *
+         * 存在情况的总个数
+         * 
+ * + * uint32 existCount = 2; + * + * @return The existCount. + */ + int getExistCount(); } - public static final int ROOTHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString rootHash_; /** - * bytes rootHash = 3; - * @return The rootHash. + * Protobuf type {@code ReplyCheckTxsExist} */ - public com.google.protobuf.ByteString getRootHash() { - return rootHash_; - } + public static final class ReplyCheckTxsExist extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplyCheckTxsExist) + ReplyCheckTxsExistOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use ReplyCheckTxsExist.newBuilder() to construct. + private ReplyCheckTxsExist(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private ReplyCheckTxsExist() { + existFlags_ = emptyBooleanList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < proofs_.size(); i++) { - output.writeBytes(1, proofs_.get(i)); - } - if (index_ != 0) { - output.writeUInt32(2, index_); - } - if (!rootHash_.isEmpty()) { - output.writeBytes(3, rootHash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplyCheckTxsExist(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < proofs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(proofs_.get(i)); - } - size += dataSize; - size += 1 * getProofsList().size(); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, index_); - } - if (!rootHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, rootHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof) obj; - - if (!getProofsList() - .equals(other.getProofsList())) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getRootHash() - .equals(other.getRootHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private ReplyCheckTxsExist(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + existFlags_ = newBooleanList(); + mutable_bitField0_ |= 0x00000001; + } + existFlags_.addBoolean(input.readBool()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + existFlags_ = newBooleanList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + existFlags_.addBoolean(input.readBool()); + } + input.popLimit(limit); + break; + } + case 16: { + + existCount_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + existFlags_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getProofsCount() > 0) { - hash = (37 * hash) + PROOFS_FIELD_NUMBER; - hash = (53 * hash) + getProofsList().hashCode(); - } - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (37 * hash) + ROOTHASH_FIELD_NUMBER; - hash = (53 * hash) + getRootHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.Builder.class); + } + + public static final int EXISTFLAGS_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.BooleanList existFlags_; + + /** + *
+         *对应请求序列存在标识数组,存在则true,否则false
+         * 
+ * + * repeated bool existFlags = 1; + * + * @return A list containing the existFlags. + */ + @java.lang.Override + public java.util.List getExistFlagsList() { + return existFlags_; + } + + /** + *
+         *对应请求序列存在标识数组,存在则true,否则false
+         * 
+ * + * repeated bool existFlags = 1; + * + * @return The count of existFlags. + */ + public int getExistFlagsCount() { + return existFlags_.size(); + } + + /** + *
+         *对应请求序列存在标识数组,存在则true,否则false
+         * 
+ * + * repeated bool existFlags = 1; + * + * @param index + * The index of the element to return. + * + * @return The existFlags at the given index. + */ + public boolean getExistFlags(int index) { + return existFlags_.getBoolean(index); + } + + private int existFlagsMemoizedSerializedSize = -1; + + public static final int EXISTCOUNT_FIELD_NUMBER = 2; + private int existCount_; + + /** + *
+         * 存在情况的总个数
+         * 
+ * + * uint32 existCount = 2; + * + * @return The existCount. + */ + @java.lang.Override + public int getExistCount() { + return existCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getExistFlagsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(existFlagsMemoizedSerializedSize); + } + for (int i = 0; i < existFlags_.size(); i++) { + output.writeBoolNoTag(existFlags_.getBoolean(i)); + } + if (existCount_ != 0) { + output.writeUInt32(2, existCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + dataSize = 1 * getExistFlagsList().size(); + size += dataSize; + if (!getExistFlagsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + existFlagsMemoizedSerializedSize = dataSize; + } + if (existCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, existCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist) obj; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + if (!getExistFlagsList().equals(other.getExistFlagsList())) + return false; + if (getExistCount() != other.getExistCount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *使用多层merkle树之后的proof证明结构体
-     * 
- * - * Protobuf type {@code TxProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TxProof) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - index_ = 0; - - rootHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_TxProof_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - proofs_ = java.util.Collections.unmodifiableList(proofs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.proofs_ = proofs_; - result.index_ = index_; - result.rootHash_ = rootHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof.getDefaultInstance()) return this; - if (!other.proofs_.isEmpty()) { - if (proofs_.isEmpty()) { - proofs_ = other.proofs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProofsIsMutable(); - proofs_.addAll(other.proofs_); - } - onChanged(); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.getRootHash() != com.google.protobuf.ByteString.EMPTY) { - setRootHash(other.getRootHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List proofs_ = java.util.Collections.emptyList(); - private void ensureProofsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - proofs_ = new java.util.ArrayList(proofs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes proofs = 1; - * @return A list containing the proofs. - */ - public java.util.List - getProofsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(proofs_) : proofs_; - } - /** - * repeated bytes proofs = 1; - * @return The count of proofs. - */ - public int getProofsCount() { - return proofs_.size(); - } - /** - * repeated bytes proofs = 1; - * @param index The index of the element to return. - * @return The proofs at the given index. - */ - public com.google.protobuf.ByteString getProofs(int index) { - return proofs_.get(index); - } - /** - * repeated bytes proofs = 1; - * @param index The index to set the value at. - * @param value The proofs to set. - * @return This builder for chaining. - */ - public Builder setProofs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 1; - * @param value The proofs to add. - * @return This builder for chaining. - */ - public Builder addProofs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProofsIsMutable(); - proofs_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 1; - * @param values The proofs to add. - * @return This builder for chaining. - */ - public Builder addAllProofs( - java.lang.Iterable values) { - ensureProofsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proofs_); - onChanged(); - return this; - } - /** - * repeated bytes proofs = 1; - * @return This builder for chaining. - */ - public Builder clearProofs() { - proofs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int index_ ; - /** - * uint32 index = 2; - * @return The index. - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 2; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 2; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString rootHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes rootHash = 3; - * @return The rootHash. - */ - public com.google.protobuf.ByteString getRootHash() { - return rootHash_; - } - /** - * bytes rootHash = 3; - * @param value The rootHash to set. - * @return This builder for chaining. - */ - public Builder setRootHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - rootHash_ = value; - onChanged(); - return this; - } - /** - * bytes rootHash = 3; - * @return This builder for chaining. - */ - public Builder clearRootHash() { - - rootHash_ = getDefaultInstance().getRootHash(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TxProof) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExistFlagsCount() > 0) { + hash = (37 * hash) + EXISTFLAGS_FIELD_NUMBER; + hash = (53 * hash) + getExistFlagsList().hashCode(); + } + hash = (37 * hash) + EXISTCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getExistCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:TxProof) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TxProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TxProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TxProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface ReqCheckTxsExistOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqCheckTxsExist) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * repeated bytes txHashes = 1; - * @return A list containing the txHashes. - */ - java.util.List getTxHashesList(); - /** - * repeated bytes txHashes = 1; - * @return The count of txHashes. - */ - int getTxHashesCount(); - /** - * repeated bytes txHashes = 1; - * @param index The index of the element to return. - * @return The txHashes at the given index. - */ - com.google.protobuf.ByteString getTxHashes(int index); - } - /** - *
-   * 指定交易哈希,查找是否存在
-   * 
- * - * Protobuf type {@code ReqCheckTxsExist} - */ - public static final class ReqCheckTxsExist extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqCheckTxsExist) - ReqCheckTxsExistOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqCheckTxsExist.newBuilder() to construct. - private ReqCheckTxsExist(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqCheckTxsExist() { - txHashes_ = java.util.Collections.emptyList(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqCheckTxsExist(); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqCheckTxsExist( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txHashes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txHashes_.add(input.readBytes()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txHashes_ = java.util.Collections.unmodifiableList(txHashes_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int TXHASHES_FIELD_NUMBER = 1; - private java.util.List txHashes_; - /** - * repeated bytes txHashes = 1; - * @return A list containing the txHashes. - */ - public java.util.List - getTxHashesList() { - return txHashes_; - } - /** - * repeated bytes txHashes = 1; - * @return The count of txHashes. - */ - public int getTxHashesCount() { - return txHashes_.size(); - } - /** - * repeated bytes txHashes = 1; - * @param index The index of the element to return. - * @return The txHashes at the given index. - */ - public com.google.protobuf.ByteString getTxHashes(int index) { - return txHashes_.get(index); - } + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txHashes_.size(); i++) { - output.writeBytes(1, txHashes_.get(i)); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < txHashes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(txHashes_.get(i)); - } - size += dataSize; - size += 1 * getTxHashesList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist) obj; - - if (!getTxHashesList() - .equals(other.getTxHashesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxHashesCount() > 0) { - hash = (37 * hash) + TXHASHES_FIELD_NUMBER; - hash = (53 * hash) + getTxHashesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * Protobuf type {@code ReplyCheckTxsExist} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplyCheckTxsExist) + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExistOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.class, + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * 指定交易哈希,查找是否存在
-     * 
- * - * Protobuf type {@code ReqCheckTxsExist} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqCheckTxsExist) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExistOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReqCheckTxsExist_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - txHashes_ = java.util.Collections.unmodifiableList(txHashes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txHashes_ = txHashes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist.getDefaultInstance()) return this; - if (!other.txHashes_.isEmpty()) { - if (txHashes_.isEmpty()) { - txHashes_ = other.txHashes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxHashesIsMutable(); - txHashes_.addAll(other.txHashes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txHashes_ = java.util.Collections.emptyList(); - private void ensureTxHashesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txHashes_ = new java.util.ArrayList(txHashes_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes txHashes = 1; - * @return A list containing the txHashes. - */ - public java.util.List - getTxHashesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(txHashes_) : txHashes_; - } - /** - * repeated bytes txHashes = 1; - * @return The count of txHashes. - */ - public int getTxHashesCount() { - return txHashes_.size(); - } - /** - * repeated bytes txHashes = 1; - * @param index The index of the element to return. - * @return The txHashes at the given index. - */ - public com.google.protobuf.ByteString getTxHashes(int index) { - return txHashes_.get(index); - } - /** - * repeated bytes txHashes = 1; - * @param index The index to set the value at. - * @param value The txHashes to set. - * @return This builder for chaining. - */ - public Builder setTxHashes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashesIsMutable(); - txHashes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes txHashes = 1; - * @param value The txHashes to add. - * @return This builder for chaining. - */ - public Builder addTxHashes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashesIsMutable(); - txHashes_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes txHashes = 1; - * @param values The txHashes to add. - * @return This builder for chaining. - */ - public Builder addAllTxHashes( - java.lang.Iterable values) { - ensureTxHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txHashes_); - onChanged(); - return this; - } - /** - * repeated bytes txHashes = 1; - * @return This builder for chaining. - */ - public Builder clearTxHashes() { - txHashes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqCheckTxsExist) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:ReqCheckTxsExist) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + existFlags_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000001); + existCount_ = 0; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqCheckTxsExist parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqCheckTxsExist(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_descriptor; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqCheckTxsExist getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.getDefaultInstance(); + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist build() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface ReplyCheckTxsExistOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplyCheckTxsExist) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist buildPartial() { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + existFlags_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.existFlags_ = existFlags_; + result.existCount_ = existCount_; + onBuilt(); + return result; + } - /** - *
-     *对应请求序列存在标识数组,存在则true,否则false
-     * 
- * - * repeated bool existFlags = 1; - * @return A list containing the existFlags. - */ - java.util.List getExistFlagsList(); - /** - *
-     *对应请求序列存在标识数组,存在则true,否则false
-     * 
- * - * repeated bool existFlags = 1; - * @return The count of existFlags. - */ - int getExistFlagsCount(); - /** - *
-     *对应请求序列存在标识数组,存在则true,否则false
-     * 
- * - * repeated bool existFlags = 1; - * @param index The index of the element to return. - * @return The existFlags at the given index. - */ - boolean getExistFlags(int index); + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - *
-     *存在情况的总个数
-     * 
- * - * uint32 existCount = 2; - * @return The existCount. - */ - int getExistCount(); - } - /** - * Protobuf type {@code ReplyCheckTxsExist} - */ - public static final class ReplyCheckTxsExist extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplyCheckTxsExist) - ReplyCheckTxsExistOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplyCheckTxsExist.newBuilder() to construct. - private ReplyCheckTxsExist(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplyCheckTxsExist() { - existFlags_ = emptyBooleanList(); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplyCheckTxsExist(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplyCheckTxsExist( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - existFlags_ = newBooleanList(); - mutable_bitField0_ |= 0x00000001; - } - existFlags_.addBoolean(input.readBool()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - existFlags_ = newBooleanList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - existFlags_.addBoolean(input.readBool()); - } - input.popLimit(limit); - break; - } - case 16: { - - existCount_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - existFlags_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_descriptor; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.Builder.class); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int EXISTFLAGS_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.BooleanList existFlags_; - /** - *
-     *对应请求序列存在标识数组,存在则true,否则false
-     * 
- * - * repeated bool existFlags = 1; - * @return A list containing the existFlags. - */ - public java.util.List - getExistFlagsList() { - return existFlags_; - } - /** - *
-     *对应请求序列存在标识数组,存在则true,否则false
-     * 
- * - * repeated bool existFlags = 1; - * @return The count of existFlags. - */ - public int getExistFlagsCount() { - return existFlags_.size(); - } - /** - *
-     *对应请求序列存在标识数组,存在则true,否则false
-     * 
- * - * repeated bool existFlags = 1; - * @param index The index of the element to return. - * @return The existFlags at the given index. - */ - public boolean getExistFlags(int index) { - return existFlags_.getBoolean(index); - } - private int existFlagsMemoizedSerializedSize = -1; + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int EXISTCOUNT_FIELD_NUMBER = 2; - private int existCount_; - /** - *
-     *存在情况的总个数
-     * 
- * - * uint32 existCount = 2; - * @return The existCount. - */ - public int getExistCount() { - return existCount_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist) { + return mergeFrom( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist) other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist other) { + if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist + .getDefaultInstance()) + return this; + if (!other.existFlags_.isEmpty()) { + if (existFlags_.isEmpty()) { + existFlags_ = other.existFlags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExistFlagsIsMutable(); + existFlags_.addAll(other.existFlags_); + } + onChanged(); + } + if (other.getExistCount() != 0) { + setExistCount(other.getExistCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getExistFlagsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(existFlagsMemoizedSerializedSize); - } - for (int i = 0; i < existFlags_.size(); i++) { - output.writeBoolNoTag(existFlags_.getBoolean(i)); - } - if (existCount_ != 0) { - output.writeUInt32(2, existCount_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - dataSize = 1 * getExistFlagsList().size(); - size += dataSize; - if (!getExistFlagsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - existFlagsMemoizedSerializedSize = dataSize; - } - if (existCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, existCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private int bitField0_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist other = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist) obj; - - if (!getExistFlagsList() - .equals(other.getExistFlagsList())) return false; - if (getExistCount() - != other.getExistCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private com.google.protobuf.Internal.BooleanList existFlags_ = emptyBooleanList(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExistFlagsCount() > 0) { - hash = (37 * hash) + EXISTFLAGS_FIELD_NUMBER; - hash = (53 * hash) + getExistFlagsList().hashCode(); - } - hash = (37 * hash) + EXISTCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getExistCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void ensureExistFlagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + existFlags_ = mutableCopy(existFlags_); + bitField0_ |= 0x00000001; + } + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + *
+             *对应请求序列存在标识数组,存在则true,否则false
+             * 
+ * + * repeated bool existFlags = 1; + * + * @return A list containing the existFlags. + */ + public java.util.List getExistFlagsList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(existFlags_) + : existFlags_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+             *对应请求序列存在标识数组,存在则true,否则false
+             * 
+ * + * repeated bool existFlags = 1; + * + * @return The count of existFlags. + */ + public int getExistFlagsCount() { + return existFlags_.size(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplyCheckTxsExist} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplyCheckTxsExist) - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExistOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.class, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - existFlags_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000001); - existCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.internal_static_ReplyCheckTxsExist_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist build() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist buildPartial() { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist result = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - existFlags_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.existFlags_ = existFlags_; - result.existCount_ = existCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist other) { - if (other == cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist.getDefaultInstance()) return this; - if (!other.existFlags_.isEmpty()) { - if (existFlags_.isEmpty()) { - existFlags_ = other.existFlags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExistFlagsIsMutable(); - existFlags_.addAll(other.existFlags_); - } - onChanged(); - } - if (other.getExistCount() != 0) { - setExistCount(other.getExistCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.BooleanList existFlags_ = emptyBooleanList(); - private void ensureExistFlagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - existFlags_ = mutableCopy(existFlags_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       *对应请求序列存在标识数组,存在则true,否则false
-       * 
- * - * repeated bool existFlags = 1; - * @return A list containing the existFlags. - */ - public java.util.List - getExistFlagsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(existFlags_) : existFlags_; - } - /** - *
-       *对应请求序列存在标识数组,存在则true,否则false
-       * 
- * - * repeated bool existFlags = 1; - * @return The count of existFlags. - */ - public int getExistFlagsCount() { - return existFlags_.size(); - } - /** - *
-       *对应请求序列存在标识数组,存在则true,否则false
-       * 
- * - * repeated bool existFlags = 1; - * @param index The index of the element to return. - * @return The existFlags at the given index. - */ - public boolean getExistFlags(int index) { - return existFlags_.getBoolean(index); - } - /** - *
-       *对应请求序列存在标识数组,存在则true,否则false
-       * 
- * - * repeated bool existFlags = 1; - * @param index The index to set the value at. - * @param value The existFlags to set. - * @return This builder for chaining. - */ - public Builder setExistFlags( - int index, boolean value) { - ensureExistFlagsIsMutable(); - existFlags_.setBoolean(index, value); - onChanged(); - return this; - } - /** - *
-       *对应请求序列存在标识数组,存在则true,否则false
-       * 
- * - * repeated bool existFlags = 1; - * @param value The existFlags to add. - * @return This builder for chaining. - */ - public Builder addExistFlags(boolean value) { - ensureExistFlagsIsMutable(); - existFlags_.addBoolean(value); - onChanged(); - return this; - } - /** - *
-       *对应请求序列存在标识数组,存在则true,否则false
-       * 
- * - * repeated bool existFlags = 1; - * @param values The existFlags to add. - * @return This builder for chaining. - */ - public Builder addAllExistFlags( - java.lang.Iterable values) { - ensureExistFlagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, existFlags_); - onChanged(); - return this; - } - /** - *
-       *对应请求序列存在标识数组,存在则true,否则false
-       * 
- * - * repeated bool existFlags = 1; - * @return This builder for chaining. - */ - public Builder clearExistFlags() { - existFlags_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int existCount_ ; - /** - *
-       *存在情况的总个数
-       * 
- * - * uint32 existCount = 2; - * @return The existCount. - */ - public int getExistCount() { - return existCount_; - } - /** - *
-       *存在情况的总个数
-       * 
- * - * uint32 existCount = 2; - * @param value The existCount to set. - * @return This builder for chaining. - */ - public Builder setExistCount(int value) { - - existCount_ = value; - onChanged(); - return this; - } - /** - *
-       *存在情况的总个数
-       * 
- * - * uint32 existCount = 2; - * @return This builder for chaining. - */ - public Builder clearExistCount() { - - existCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplyCheckTxsExist) - } + /** + *
+             *对应请求序列存在标识数组,存在则true,否则false
+             * 
+ * + * repeated bool existFlags = 1; + * + * @param index + * The index of the element to return. + * + * @return The existFlags at the given index. + */ + public boolean getExistFlags(int index) { + return existFlags_.getBoolean(index); + } - // @@protoc_insertion_point(class_scope:ReplyCheckTxsExist) - private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist(); - } + /** + *
+             *对应请求序列存在标识数组,存在则true,否则false
+             * 
+ * + * repeated bool existFlags = 1; + * + * @param index + * The index to set the value at. + * @param value + * The existFlags to set. + * + * @return This builder for chaining. + */ + public Builder setExistFlags(int index, boolean value) { + ensureExistFlagsIsMutable(); + existFlags_.setBoolean(index, value); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+             *对应请求序列存在标识数组,存在则true,否则false
+             * 
+ * + * repeated bool existFlags = 1; + * + * @param value + * The existFlags to add. + * + * @return This builder for chaining. + */ + public Builder addExistFlags(boolean value) { + ensureExistFlagsIsMutable(); + existFlags_.addBoolean(value); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplyCheckTxsExist parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplyCheckTxsExist(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+             *对应请求序列存在标识数组,存在则true,否则false
+             * 
+ * + * repeated bool existFlags = 1; + * + * @param values + * The existFlags to add. + * + * @return This builder for chaining. + */ + public Builder addAllExistFlags(java.lang.Iterable values) { + ensureExistFlagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, existFlags_); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + *
+             *对应请求序列存在标识数组,存在则true,否则false
+             * 
+ * + * repeated bool existFlags = 1; + * + * @return This builder for chaining. + */ + public Builder clearExistFlags() { + existFlags_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private int existCount_; + + /** + *
+             * 存在情况的总个数
+             * 
+ * + * uint32 existCount = 2; + * + * @return The existCount. + */ + @java.lang.Override + public int getExistCount() { + return existCount_; + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsGenesis_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsGenesis_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsTransferToExec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsTransferToExec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsWithdraw_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsWithdraw_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AssetsTransfer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AssetsTransfer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Asset_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Asset_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CreateTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CreateTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReWriteRawTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReWriteRawTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CreateTransactionGroup_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CreateTransactionGroup_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UnsignTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UnsignTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_NoBalanceTxs_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_NoBalanceTxs_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_NoBalanceTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_NoBalanceTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Transaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Transaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Transactions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Transactions_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RingSignature_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RingSignature_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RingSignatureItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RingSignatureItem_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Signature_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Signature_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AddrOverview_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AddrOverview_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqAddr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqAddr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HexTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HexTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyTxInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyTxInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqTxList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqTxList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyTxList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyTxList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqGetMempool_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqGetMempool_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqProperFee_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqProperFee_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyProperFee_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyProperFee_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TxHashList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TxHashList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyTxInfos_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyTxInfos_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Receipt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Receipt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReceiptData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReceiptData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TxResult_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TxResult_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TransactionDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TransactionDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TransactionDetails_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TransactionDetails_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqAddrs_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqAddrs_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqDecodeRawTransaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqDecodeRawTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UserWrite_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UserWrite_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UpgradeMeta_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UpgradeMeta_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqTxHashList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqTxHashList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TxProof_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TxProof_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqCheckTxsExist_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqCheckTxsExist_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplyCheckTxsExist_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplyCheckTxsExist_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021transaction.proto\032\014common.proto\"6\n\rAss" + - "etsGenesis\022\016\n\006amount\030\002 \001(\003\022\025\n\rreturnAddr" + - "ess\030\003 \001(\t\"e\n\024AssetsTransferToExec\022\021\n\tcoi" + - "ntoken\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004note\030\003 \001" + - "(\014\022\020\n\010execName\030\004 \001(\t\022\n\n\002to\030\005 \001(\t\"_\n\016Asse" + - "tsWithdraw\022\021\n\tcointoken\030\001 \001(\t\022\016\n\006amount\030" + - "\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\020\n\010execName\030\004 \001(\t\022\n\n" + - "\002to\030\005 \001(\t\"M\n\016AssetsTransfer\022\021\n\tcointoken" + - "\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\n\n\002" + - "to\030\004 \001(\t\"5\n\005Asset\022\014\n\004exec\030\001 \001(\t\022\016\n\006symbo" + - "l\030\002 \001(\t\022\016\n\006amount\030\003 \001(\003\"\235\001\n\010CreateTx\022\n\n\002" + - "to\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\013\n\003fee\030\003 \001(\003\022\014\n" + - "\004note\030\004 \001(\014\022\022\n\nisWithdraw\030\005 \001(\010\022\017\n\007isTok" + - "en\030\006 \001(\010\022\023\n\013tokenSymbol\030\007 \001(\t\022\020\n\010execNam" + - "e\030\010 \001(\t\022\016\n\006execer\030\t \001(\t\"R\n\014ReWriteRawTx\022" + - "\n\n\002tx\030\001 \001(\t\022\n\n\002to\030\003 \001(\t\022\016\n\006expire\030\004 \001(\t\022" + - "\013\n\003fee\030\005 \001(\003\022\r\n\005index\030\006 \001(\005\"%\n\026CreateTra" + - "nsactionGroup\022\013\n\003txs\030\001 \003(\t\"\030\n\010UnsignTx\022\014" + - "\n\004data\030\001 \001(\014\"P\n\014NoBalanceTxs\022\016\n\006txHexs\030\001" + - " \003(\t\022\017\n\007payAddr\030\002 \001(\t\022\017\n\007privkey\030\003 \001(\t\022\016" + - "\n\006expire\030\004 \001(\t\"N\n\013NoBalanceTx\022\r\n\005txHex\030\001" + - " \001(\t\022\017\n\007payAddr\030\002 \001(\t\022\017\n\007privkey\030\003 \001(\t\022\016" + - "\n\006expire\030\004 \001(\t\"\310\001\n\013Transaction\022\016\n\006execer" + - "\030\001 \001(\014\022\017\n\007payload\030\002 \001(\014\022\035\n\tsignature\030\003 \001" + - "(\0132\n.Signature\022\013\n\003fee\030\004 \001(\003\022\016\n\006expire\030\005 " + - "\001(\003\022\r\n\005nonce\030\006 \001(\003\022\n\n\002to\030\007 \001(\t\022\022\n\ngroupC" + - "ount\030\010 \001(\005\022\016\n\006header\030\t \001(\014\022\014\n\004next\030\n \001(\014" + - "\022\017\n\007chainID\030\013 \001(\005\")\n\014Transactions\022\031\n\003txs" + - "\030\001 \003(\0132\014.Transaction\"2\n\rRingSignature\022!\n" + - "\005items\030\001 \003(\0132\022.RingSignatureItem\"6\n\021Ring" + - "SignatureItem\022\016\n\006pubkey\030\001 \003(\014\022\021\n\tsignatu" + - "re\030\002 \003(\014\":\n\tSignature\022\n\n\002ty\030\001 \001(\005\022\016\n\006pub" + - "key\030\002 \001(\014\022\021\n\tsignature\030\003 \001(\014\"A\n\014AddrOver" + - "view\022\017\n\007reciver\030\001 \001(\003\022\017\n\007balance\030\002 \001(\003\022\017" + - "\n\007txCount\030\003 \001(\003\"f\n\007ReqAddr\022\014\n\004addr\030\001 \001(\t" + - "\022\014\n\004flag\030\002 \001(\005\022\r\n\005count\030\003 \001(\005\022\021\n\tdirecti" + - "on\030\004 \001(\005\022\016\n\006height\030\005 \001(\003\022\r\n\005index\030\006 \001(\003\"" + - "\023\n\005HexTx\022\n\n\002tx\030\001 \001(\t\"R\n\013ReplyTxInfo\022\014\n\004h" + - "ash\030\001 \001(\014\022\016\n\006height\030\002 \001(\003\022\r\n\005index\030\003 \001(\003" + - "\022\026\n\006assets\030\004 \003(\0132\006.Asset\"\032\n\tReqTxList\022\r\n" + - "\005count\030\001 \001(\003\"(\n\013ReplyTxList\022\031\n\003txs\030\001 \003(\013" + - "2\014.Transaction\"\036\n\rReqGetMempool\022\r\n\005isAll" + - "\030\001 \001(\010\"/\n\014ReqProperFee\022\017\n\007txCount\030\001 \001(\005\022" + - "\016\n\006txSize\030\002 \001(\005\"#\n\016ReplyProperFee\022\021\n\tpro" + - "perFee\030\001 \001(\003\";\n\nTxHashList\022\016\n\006hashes\030\001 \003" + - "(\014\022\r\n\005count\030\002 \001(\003\022\016\n\006expire\030\003 \003(\003\"-\n\014Rep" + - "lyTxInfos\022\035\n\007txInfos\030\001 \003(\0132\014.ReplyTxInfo" + - "\"%\n\nReceiptLog\022\n\n\002ty\030\001 \001(\005\022\013\n\003log\030\002 \001(\014\"" + - "G\n\007Receipt\022\n\n\002ty\030\001 \001(\005\022\025\n\002KV\030\002 \003(\0132\t.Key" + - "Value\022\031\n\004logs\030\003 \003(\0132\013.ReceiptLog\"4\n\013Rece" + - "iptData\022\n\n\002ty\030\001 \001(\005\022\031\n\004logs\030\003 \003(\0132\013.Rece" + - "iptLog\"\215\001\n\010TxResult\022\016\n\006height\030\001 \001(\003\022\r\n\005i" + - "ndex\030\002 \001(\005\022\030\n\002tx\030\003 \001(\0132\014.Transaction\022!\n\013" + - "receiptdate\030\004 \001(\0132\014.ReceiptData\022\021\n\tblock" + - "time\030\005 \001(\003\022\022\n\nactionName\030\006 \001(\t\"\212\002\n\021Trans" + - "actionDetail\022\030\n\002tx\030\001 \001(\0132\014.Transaction\022\035" + - "\n\007receipt\030\002 \001(\0132\014.ReceiptData\022\016\n\006proofs\030" + - "\003 \003(\014\022\016\n\006height\030\004 \001(\003\022\r\n\005index\030\005 \001(\003\022\021\n\t" + - "blocktime\030\006 \001(\003\022\016\n\006amount\030\007 \001(\003\022\020\n\010froma" + - "ddr\030\010 \001(\t\022\022\n\nactionName\030\t \001(\t\022\026\n\006assets\030" + - "\n \003(\0132\006.Asset\022\032\n\010txProofs\030\013 \003(\0132\010.TxProo" + - "f\022\020\n\010fullHash\030\014 \001(\014\"5\n\022TransactionDetail" + - "s\022\037\n\003txs\030\001 \003(\0132\022.TransactionDetail\"\031\n\010Re" + - "qAddrs\022\r\n\005addrs\030\001 \003(\t\"(\n\027ReqDecodeRawTra" + - "nsaction\022\r\n\005txHex\030\001 \001(\t\"+\n\tUserWrite\022\r\n\005" + - "topic\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\"@\n\013UpgradeM" + - "eta\022\020\n\010starting\030\001 \001(\010\022\017\n\007version\030\002 \001(\t\022\016" + - "\n\006height\030\003 \001(\003\"4\n\rReqTxHashList\022\016\n\006hashe" + - "s\030\001 \003(\t\022\023\n\013isShortHash\030\002 \001(\010\":\n\007TxProof\022" + - "\016\n\006proofs\030\001 \003(\014\022\r\n\005index\030\002 \001(\r\022\020\n\010rootHa" + - "sh\030\003 \001(\014\"$\n\020ReqCheckTxsExist\022\020\n\010txHashes" + - "\030\001 \003(\014\"<\n\022ReplyCheckTxsExist\022\022\n\nexistFla" + - "gs\030\001 \003(\010\022\022\n\nexistCount\030\002 \001(\rB;\n!cn.chain" + - "33.javasdk.model.protobufB\026TransactionAl" + - "lProtobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), - }); - internal_static_AssetsGenesis_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AssetsGenesis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsGenesis_descriptor, - new java.lang.String[] { "Amount", "ReturnAddress", }); - internal_static_AssetsTransferToExec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_AssetsTransferToExec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsTransferToExec_descriptor, - new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); - internal_static_AssetsWithdraw_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_AssetsWithdraw_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsWithdraw_descriptor, - new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); - internal_static_AssetsTransfer_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_AssetsTransfer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AssetsTransfer_descriptor, - new java.lang.String[] { "Cointoken", "Amount", "Note", "To", }); - internal_static_Asset_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Asset_descriptor, - new java.lang.String[] { "Exec", "Symbol", "Amount", }); - internal_static_CreateTx_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_CreateTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CreateTx_descriptor, - new java.lang.String[] { "To", "Amount", "Fee", "Note", "IsWithdraw", "IsToken", "TokenSymbol", "ExecName", "Execer", }); - internal_static_ReWriteRawTx_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_ReWriteRawTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReWriteRawTx_descriptor, - new java.lang.String[] { "Tx", "To", "Expire", "Fee", "Index", }); - internal_static_CreateTransactionGroup_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_CreateTransactionGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CreateTransactionGroup_descriptor, - new java.lang.String[] { "Txs", }); - internal_static_UnsignTx_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_UnsignTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UnsignTx_descriptor, - new java.lang.String[] { "Data", }); - internal_static_NoBalanceTxs_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_NoBalanceTxs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_NoBalanceTxs_descriptor, - new java.lang.String[] { "TxHexs", "PayAddr", "Privkey", "Expire", }); - internal_static_NoBalanceTx_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_NoBalanceTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_NoBalanceTx_descriptor, - new java.lang.String[] { "TxHex", "PayAddr", "Privkey", "Expire", }); - internal_static_Transaction_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_Transaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Transaction_descriptor, - new java.lang.String[] { "Execer", "Payload", "Signature", "Fee", "Expire", "Nonce", "To", "GroupCount", "Header", "Next", "ChainID", }); - internal_static_Transactions_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_Transactions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Transactions_descriptor, - new java.lang.String[] { "Txs", }); - internal_static_RingSignature_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_RingSignature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RingSignature_descriptor, - new java.lang.String[] { "Items", }); - internal_static_RingSignatureItem_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_RingSignatureItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RingSignatureItem_descriptor, - new java.lang.String[] { "Pubkey", "Signature", }); - internal_static_Signature_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_Signature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Signature_descriptor, - new java.lang.String[] { "Ty", "Pubkey", "Signature", }); - internal_static_AddrOverview_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_AddrOverview_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AddrOverview_descriptor, - new java.lang.String[] { "Reciver", "Balance", "TxCount", }); - internal_static_ReqAddr_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_ReqAddr_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqAddr_descriptor, - new java.lang.String[] { "Addr", "Flag", "Count", "Direction", "Height", "Index", }); - internal_static_HexTx_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_HexTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HexTx_descriptor, - new java.lang.String[] { "Tx", }); - internal_static_ReplyTxInfo_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_ReplyTxInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyTxInfo_descriptor, - new java.lang.String[] { "Hash", "Height", "Index", "Assets", }); - internal_static_ReqTxList_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_ReqTxList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqTxList_descriptor, - new java.lang.String[] { "Count", }); - internal_static_ReplyTxList_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_ReplyTxList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyTxList_descriptor, - new java.lang.String[] { "Txs", }); - internal_static_ReqGetMempool_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_ReqGetMempool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqGetMempool_descriptor, - new java.lang.String[] { "IsAll", }); - internal_static_ReqProperFee_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_ReqProperFee_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqProperFee_descriptor, - new java.lang.String[] { "TxCount", "TxSize", }); - internal_static_ReplyProperFee_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_ReplyProperFee_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyProperFee_descriptor, - new java.lang.String[] { "ProperFee", }); - internal_static_TxHashList_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_TxHashList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TxHashList_descriptor, - new java.lang.String[] { "Hashes", "Count", "Expire", }); - internal_static_ReplyTxInfos_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_ReplyTxInfos_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyTxInfos_descriptor, - new java.lang.String[] { "TxInfos", }); - internal_static_ReceiptLog_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_ReceiptLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptLog_descriptor, - new java.lang.String[] { "Ty", "Log", }); - internal_static_Receipt_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_Receipt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Receipt_descriptor, - new java.lang.String[] { "Ty", "KV", "Logs", }); - internal_static_ReceiptData_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_ReceiptData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReceiptData_descriptor, - new java.lang.String[] { "Ty", "Logs", }); - internal_static_TxResult_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_TxResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TxResult_descriptor, - new java.lang.String[] { "Height", "Index", "Tx", "Receiptdate", "Blocktime", "ActionName", }); - internal_static_TransactionDetail_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_TransactionDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TransactionDetail_descriptor, - new java.lang.String[] { "Tx", "Receipt", "Proofs", "Height", "Index", "Blocktime", "Amount", "Fromaddr", "ActionName", "Assets", "TxProofs", "FullHash", }); - internal_static_TransactionDetails_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_TransactionDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TransactionDetails_descriptor, - new java.lang.String[] { "Txs", }); - internal_static_ReqAddrs_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_ReqAddrs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqAddrs_descriptor, - new java.lang.String[] { "Addrs", }); - internal_static_ReqDecodeRawTransaction_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_ReqDecodeRawTransaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqDecodeRawTransaction_descriptor, - new java.lang.String[] { "TxHex", }); - internal_static_UserWrite_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_UserWrite_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UserWrite_descriptor, - new java.lang.String[] { "Topic", "Content", }); - internal_static_UpgradeMeta_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_UpgradeMeta_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UpgradeMeta_descriptor, - new java.lang.String[] { "Starting", "Version", "Height", }); - internal_static_ReqTxHashList_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_ReqTxHashList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqTxHashList_descriptor, - new java.lang.String[] { "Hashes", "IsShortHash", }); - internal_static_TxProof_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_TxProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TxProof_descriptor, - new java.lang.String[] { "Proofs", "Index", "RootHash", }); - internal_static_ReqCheckTxsExist_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_ReqCheckTxsExist_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqCheckTxsExist_descriptor, - new java.lang.String[] { "TxHashes", }); - internal_static_ReplyCheckTxsExist_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_ReplyCheckTxsExist_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplyCheckTxsExist_descriptor, - new java.lang.String[] { "ExistFlags", "ExistCount", }); - cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) + /** + *
+             * 存在情况的总个数
+             * 
+ * + * uint32 existCount = 2; + * + * @param value + * The existCount to set. + * + * @return This builder for chaining. + */ + public Builder setExistCount(int value) { + + existCount_ = value; + onChanged(); + return this; + } + + /** + *
+             * 存在情况的总个数
+             * 
+ * + * uint32 existCount = 2; + * + * @return This builder for chaining. + */ + public Builder clearExistCount() { + + existCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplyCheckTxsExist) + } + + // @@protoc_insertion_point(class_scope:ReplyCheckTxsExist) + private static final cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist(); + } + + public static cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplyCheckTxsExist parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplyCheckTxsExist(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyCheckTxsExist getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsGenesis_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsGenesis_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsTransferToExec_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsTransferToExec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsWithdraw_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsWithdraw_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AssetsTransfer_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AssetsTransfer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Asset_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Asset_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CreateTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CreateTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReWriteRawTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReWriteRawTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_CreateTransactionGroup_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_CreateTransactionGroup_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_UnsignTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_UnsignTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_NoBalanceTxs_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_NoBalanceTxs_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_NoBalanceTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_NoBalanceTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Transaction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Transaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Transactions_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Transactions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_RingSignature_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_RingSignature_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_RingSignatureItem_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_RingSignatureItem_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Signature_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Signature_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_AddrOverview_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AddrOverview_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqAddr_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqAddr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_HexTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_HexTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyTxInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyTxInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqTxList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqTxList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyTxList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyTxList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqGetMempool_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqGetMempool_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqProperFee_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqProperFee_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyProperFee_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyProperFee_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TxHashList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TxHashList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyTxInfos_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyTxInfos_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptLog_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Receipt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Receipt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceiptData_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceiptData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TxResult_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TxResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TransactionDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TransactionDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TransactionDetails_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TransactionDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqAddrs_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqAddrs_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqDecodeRawTransaction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqDecodeRawTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_UserWrite_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_UserWrite_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_UpgradeMeta_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_UpgradeMeta_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqTxHashList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqTxHashList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_TxProof_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_TxProof_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqCheckTxsExist_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqCheckTxsExist_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplyCheckTxsExist_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplyCheckTxsExist_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\021transaction.proto\032\014common.proto\"6\n\rAss" + + "etsGenesis\022\016\n\006amount\030\002 \001(\003\022\025\n\rreturnAddr" + + "ess\030\003 \001(\t\"e\n\024AssetsTransferToExec\022\021\n\tcoi" + + "ntoken\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004note\030\003 \001" + + "(\014\022\020\n\010execName\030\004 \001(\t\022\n\n\002to\030\005 \001(\t\"_\n\016Asse" + + "tsWithdraw\022\021\n\tcointoken\030\001 \001(\t\022\016\n\006amount\030" + + "\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\020\n\010execName\030\004 \001(\t\022\n\n" + + "\002to\030\005 \001(\t\"M\n\016AssetsTransfer\022\021\n\tcointoken" + + "\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\014\n\004note\030\003 \001(\014\022\n\n\002" + + "to\030\004 \001(\t\"5\n\005Asset\022\014\n\004exec\030\001 \001(\t\022\016\n\006symbo" + + "l\030\002 \001(\t\022\016\n\006amount\030\003 \001(\003\"\235\001\n\010CreateTx\022\n\n\002" + + "to\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\022\013\n\003fee\030\003 \001(\003\022\014\n" + + "\004note\030\004 \001(\014\022\022\n\nisWithdraw\030\005 \001(\010\022\017\n\007isTok" + + "en\030\006 \001(\010\022\023\n\013tokenSymbol\030\007 \001(\t\022\020\n\010execNam" + + "e\030\010 \001(\t\022\016\n\006execer\030\t \001(\t\"R\n\014ReWriteRawTx\022" + + "\n\n\002tx\030\001 \001(\t\022\n\n\002to\030\003 \001(\t\022\016\n\006expire\030\004 \001(\t\022" + + "\013\n\003fee\030\005 \001(\003\022\r\n\005index\030\006 \001(\005\"%\n\026CreateTra" + + "nsactionGroup\022\013\n\003txs\030\001 \003(\t\"\030\n\010UnsignTx\022\014" + + "\n\004data\030\001 \001(\014\"P\n\014NoBalanceTxs\022\016\n\006txHexs\030\001" + + " \003(\t\022\017\n\007payAddr\030\002 \001(\t\022\017\n\007privkey\030\003 \001(\t\022\016" + + "\n\006expire\030\004 \001(\t\"N\n\013NoBalanceTx\022\r\n\005txHex\030\001" + + " \001(\t\022\017\n\007payAddr\030\002 \001(\t\022\017\n\007privkey\030\003 \001(\t\022\016" + + "\n\006expire\030\004 \001(\t\"\310\001\n\013Transaction\022\016\n\006execer" + + "\030\001 \001(\014\022\017\n\007payload\030\002 \001(\014\022\035\n\tsignature\030\003 \001" + + "(\0132\n.Signature\022\013\n\003fee\030\004 \001(\003\022\016\n\006expire\030\005 " + + "\001(\003\022\r\n\005nonce\030\006 \001(\003\022\n\n\002to\030\007 \001(\t\022\022\n\ngroupC" + + "ount\030\010 \001(\005\022\016\n\006header\030\t \001(\014\022\014\n\004next\030\n \001(\014" + + "\022\017\n\007chainID\030\013 \001(\005\")\n\014Transactions\022\031\n\003txs" + + "\030\001 \003(\0132\014.Transaction\"2\n\rRingSignature\022!\n" + + "\005items\030\001 \003(\0132\022.RingSignatureItem\"6\n\021Ring" + + "SignatureItem\022\016\n\006pubkey\030\001 \003(\014\022\021\n\tsignatu" + + "re\030\002 \003(\014\":\n\tSignature\022\n\n\002ty\030\001 \001(\005\022\016\n\006pub" + + "key\030\002 \001(\014\022\021\n\tsignature\030\003 \001(\014\"A\n\014AddrOver" + + "view\022\017\n\007reciver\030\001 \001(\003\022\017\n\007balance\030\002 \001(\003\022\017" + + "\n\007txCount\030\003 \001(\003\"f\n\007ReqAddr\022\014\n\004addr\030\001 \001(\t" + + "\022\014\n\004flag\030\002 \001(\005\022\r\n\005count\030\003 \001(\005\022\021\n\tdirecti" + + "on\030\004 \001(\005\022\016\n\006height\030\005 \001(\003\022\r\n\005index\030\006 \001(\003\"" + + "\023\n\005HexTx\022\n\n\002tx\030\001 \001(\t\"R\n\013ReplyTxInfo\022\014\n\004h" + + "ash\030\001 \001(\014\022\016\n\006height\030\002 \001(\003\022\r\n\005index\030\003 \001(\003" + + "\022\026\n\006assets\030\004 \003(\0132\006.Asset\"\032\n\tReqTxList\022\r\n" + + "\005count\030\001 \001(\003\"(\n\013ReplyTxList\022\031\n\003txs\030\001 \003(\013" + + "2\014.Transaction\"\036\n\rReqGetMempool\022\r\n\005isAll" + + "\030\001 \001(\010\"/\n\014ReqProperFee\022\017\n\007txCount\030\001 \001(\005\022" + + "\016\n\006txSize\030\002 \001(\005\"#\n\016ReplyProperFee\022\021\n\tpro" + + "perFee\030\001 \001(\003\";\n\nTxHashList\022\016\n\006hashes\030\001 \003" + + "(\014\022\r\n\005count\030\002 \001(\003\022\016\n\006expire\030\003 \003(\003\"-\n\014Rep" + + "lyTxInfos\022\035\n\007txInfos\030\001 \003(\0132\014.ReplyTxInfo" + + "\"%\n\nReceiptLog\022\n\n\002ty\030\001 \001(\005\022\013\n\003log\030\002 \001(\014\"" + + "G\n\007Receipt\022\n\n\002ty\030\001 \001(\005\022\025\n\002KV\030\002 \003(\0132\t.Key" + + "Value\022\031\n\004logs\030\003 \003(\0132\013.ReceiptLog\"4\n\013Rece" + + "iptData\022\n\n\002ty\030\001 \001(\005\022\031\n\004logs\030\003 \003(\0132\013.Rece" + + "iptLog\"\215\001\n\010TxResult\022\016\n\006height\030\001 \001(\003\022\r\n\005i" + + "ndex\030\002 \001(\005\022\030\n\002tx\030\003 \001(\0132\014.Transaction\022!\n\013" + + "receiptdate\030\004 \001(\0132\014.ReceiptData\022\021\n\tblock" + + "time\030\005 \001(\003\022\022\n\nactionName\030\006 \001(\t\"\212\002\n\021Trans" + + "actionDetail\022\030\n\002tx\030\001 \001(\0132\014.Transaction\022\035" + + "\n\007receipt\030\002 \001(\0132\014.ReceiptData\022\016\n\006proofs\030" + + "\003 \003(\014\022\016\n\006height\030\004 \001(\003\022\r\n\005index\030\005 \001(\003\022\021\n\t" + + "blocktime\030\006 \001(\003\022\016\n\006amount\030\007 \001(\003\022\020\n\010froma" + + "ddr\030\010 \001(\t\022\022\n\nactionName\030\t \001(\t\022\026\n\006assets\030" + + "\n \003(\0132\006.Asset\022\032\n\010txProofs\030\013 \003(\0132\010.TxProo" + + "f\022\020\n\010fullHash\030\014 \001(\014\"5\n\022TransactionDetail" + + "s\022\037\n\003txs\030\001 \003(\0132\022.TransactionDetail\"\031\n\010Re" + + "qAddrs\022\r\n\005addrs\030\001 \003(\t\"(\n\027ReqDecodeRawTra" + + "nsaction\022\r\n\005txHex\030\001 \001(\t\"+\n\tUserWrite\022\r\n\005" + + "topic\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\"@\n\013UpgradeM" + + "eta\022\020\n\010starting\030\001 \001(\010\022\017\n\007version\030\002 \001(\t\022\016" + + "\n\006height\030\003 \001(\003\"4\n\rReqTxHashList\022\016\n\006hashe" + + "s\030\001 \003(\t\022\023\n\013isShortHash\030\002 \001(\010\":\n\007TxProof\022" + + "\016\n\006proofs\030\001 \003(\014\022\r\n\005index\030\002 \001(\r\022\020\n\010rootHa" + + "sh\030\003 \001(\014\"$\n\020ReqCheckTxsExist\022\020\n\010txHashes" + + "\030\001 \003(\014\"<\n\022ReplyCheckTxsExist\022\022\n\nexistFla" + + "gs\030\001 \003(\010\022\022\n\nexistCount\030\002 \001(\rB;\n!cn.chain" + + "33.javasdk.model.protobufB\026TransactionAl" + "lProtobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(), }); + internal_static_AssetsGenesis_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_AssetsGenesis_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsGenesis_descriptor, new java.lang.String[] { "Amount", "ReturnAddress", }); + internal_static_AssetsTransferToExec_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_AssetsTransferToExec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsTransferToExec_descriptor, + new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); + internal_static_AssetsWithdraw_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_AssetsWithdraw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsWithdraw_descriptor, + new java.lang.String[] { "Cointoken", "Amount", "Note", "ExecName", "To", }); + internal_static_AssetsTransfer_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_AssetsTransfer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssetsTransfer_descriptor, + new java.lang.String[] { "Cointoken", "Amount", "Note", "To", }); + internal_static_Asset_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_Asset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Asset_descriptor, new java.lang.String[] { "Exec", "Symbol", "Amount", }); + internal_static_CreateTx_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_CreateTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateTx_descriptor, new java.lang.String[] { "To", "Amount", "Fee", "Note", + "IsWithdraw", "IsToken", "TokenSymbol", "ExecName", "Execer", }); + internal_static_ReWriteRawTx_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_ReWriteRawTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReWriteRawTx_descriptor, + new java.lang.String[] { "Tx", "To", "Expire", "Fee", "Index", }); + internal_static_CreateTransactionGroup_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_CreateTransactionGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateTransactionGroup_descriptor, new java.lang.String[] { "Txs", }); + internal_static_UnsignTx_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_UnsignTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_UnsignTx_descriptor, new java.lang.String[] { "Data", }); + internal_static_NoBalanceTxs_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_NoBalanceTxs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_NoBalanceTxs_descriptor, + new java.lang.String[] { "TxHexs", "PayAddr", "Privkey", "Expire", }); + internal_static_NoBalanceTx_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_NoBalanceTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_NoBalanceTx_descriptor, + new java.lang.String[] { "TxHex", "PayAddr", "Privkey", "Expire", }); + internal_static_Transaction_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Transaction_descriptor, new java.lang.String[] { "Execer", "Payload", "Signature", + "Fee", "Expire", "Nonce", "To", "GroupCount", "Header", "Next", "ChainID", }); + internal_static_Transactions_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_Transactions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Transactions_descriptor, new java.lang.String[] { "Txs", }); + internal_static_RingSignature_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_RingSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_RingSignature_descriptor, new java.lang.String[] { "Items", }); + internal_static_RingSignatureItem_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_RingSignatureItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_RingSignatureItem_descriptor, new java.lang.String[] { "Pubkey", "Signature", }); + internal_static_Signature_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_Signature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Signature_descriptor, new java.lang.String[] { "Ty", "Pubkey", "Signature", }); + internal_static_AddrOverview_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_AddrOverview_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AddrOverview_descriptor, new java.lang.String[] { "Reciver", "Balance", "TxCount", }); + internal_static_ReqAddr_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_ReqAddr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqAddr_descriptor, + new java.lang.String[] { "Addr", "Flag", "Count", "Direction", "Height", "Index", }); + internal_static_HexTx_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_HexTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HexTx_descriptor, new java.lang.String[] { "Tx", }); + internal_static_ReplyTxInfo_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_ReplyTxInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyTxInfo_descriptor, + new java.lang.String[] { "Hash", "Height", "Index", "Assets", }); + internal_static_ReqTxList_descriptor = getDescriptor().getMessageTypes().get(20); + internal_static_ReqTxList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqTxList_descriptor, new java.lang.String[] { "Count", }); + internal_static_ReplyTxList_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_ReplyTxList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyTxList_descriptor, new java.lang.String[] { "Txs", }); + internal_static_ReqGetMempool_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_ReqGetMempool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqGetMempool_descriptor, new java.lang.String[] { "IsAll", }); + internal_static_ReqProperFee_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_ReqProperFee_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqProperFee_descriptor, new java.lang.String[] { "TxCount", "TxSize", }); + internal_static_ReplyProperFee_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_ReplyProperFee_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyProperFee_descriptor, new java.lang.String[] { "ProperFee", }); + internal_static_TxHashList_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_TxHashList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TxHashList_descriptor, new java.lang.String[] { "Hashes", "Count", "Expire", }); + internal_static_ReplyTxInfos_descriptor = getDescriptor().getMessageTypes().get(26); + internal_static_ReplyTxInfos_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyTxInfos_descriptor, new java.lang.String[] { "TxInfos", }); + internal_static_ReceiptLog_descriptor = getDescriptor().getMessageTypes().get(27); + internal_static_ReceiptLog_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptLog_descriptor, new java.lang.String[] { "Ty", "Log", }); + internal_static_Receipt_descriptor = getDescriptor().getMessageTypes().get(28); + internal_static_Receipt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Receipt_descriptor, new java.lang.String[] { "Ty", "KV", "Logs", }); + internal_static_ReceiptData_descriptor = getDescriptor().getMessageTypes().get(29); + internal_static_ReceiptData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReceiptData_descriptor, new java.lang.String[] { "Ty", "Logs", }); + internal_static_TxResult_descriptor = getDescriptor().getMessageTypes().get(30); + internal_static_TxResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TxResult_descriptor, + new java.lang.String[] { "Height", "Index", "Tx", "Receiptdate", "Blocktime", "ActionName", }); + internal_static_TransactionDetail_descriptor = getDescriptor().getMessageTypes().get(31); + internal_static_TransactionDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TransactionDetail_descriptor, + new java.lang.String[] { "Tx", "Receipt", "Proofs", "Height", "Index", "Blocktime", "Amount", + "Fromaddr", "ActionName", "Assets", "TxProofs", "FullHash", }); + internal_static_TransactionDetails_descriptor = getDescriptor().getMessageTypes().get(32); + internal_static_TransactionDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TransactionDetails_descriptor, new java.lang.String[] { "Txs", }); + internal_static_ReqAddrs_descriptor = getDescriptor().getMessageTypes().get(33); + internal_static_ReqAddrs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqAddrs_descriptor, new java.lang.String[] { "Addrs", }); + internal_static_ReqDecodeRawTransaction_descriptor = getDescriptor().getMessageTypes().get(34); + internal_static_ReqDecodeRawTransaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqDecodeRawTransaction_descriptor, new java.lang.String[] { "TxHex", }); + internal_static_UserWrite_descriptor = getDescriptor().getMessageTypes().get(35); + internal_static_UserWrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_UserWrite_descriptor, new java.lang.String[] { "Topic", "Content", }); + internal_static_UpgradeMeta_descriptor = getDescriptor().getMessageTypes().get(36); + internal_static_UpgradeMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_UpgradeMeta_descriptor, new java.lang.String[] { "Starting", "Version", "Height", }); + internal_static_ReqTxHashList_descriptor = getDescriptor().getMessageTypes().get(37); + internal_static_ReqTxHashList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqTxHashList_descriptor, new java.lang.String[] { "Hashes", "IsShortHash", }); + internal_static_TxProof_descriptor = getDescriptor().getMessageTypes().get(38); + internal_static_TxProof_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_TxProof_descriptor, new java.lang.String[] { "Proofs", "Index", "RootHash", }); + internal_static_ReqCheckTxsExist_descriptor = getDescriptor().getMessageTypes().get(39); + internal_static_ReqCheckTxsExist_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqCheckTxsExist_descriptor, new java.lang.String[] { "TxHashes", }); + internal_static_ReplyCheckTxsExist_descriptor = getDescriptor().getMessageTypes().get(40); + internal_static_ReplyCheckTxsExist_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplyCheckTxsExist_descriptor, new java.lang.String[] { "ExistFlags", "ExistCount", }); + cn.chain33.javasdk.model.protobuf.CommonProtobuf.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/WalletProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/WalletProtobuf.java index 84444e2..cde7b82 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/WalletProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/WalletProtobuf.java @@ -4,24649 +4,25459 @@ package cn.chain33.javasdk.model.protobuf; public final class WalletProtobuf { - private WalletProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WalletTxDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletTxDetail) - com.google.protobuf.MessageOrBuilder { + private WalletProtobuf() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface WalletTxDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletTxDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + boolean hasTx(); + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); + + /** + * .Transaction tx = 1; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + + /** + * .ReceiptData receipt = 2; + * + * @return Whether the receipt field is set. + */ + boolean hasReceipt(); + + /** + * .ReceiptData receipt = 2; + * + * @return The receipt. + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt(); + + /** + * .ReceiptData receipt = 2; + */ + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder(); + + /** + * int64 height = 3; + * + * @return The height. + */ + long getHeight(); + + /** + * int64 index = 4; + * + * @return The index. + */ + long getIndex(); + + /** + * int64 blocktime = 5; + * + * @return The blocktime. + */ + long getBlocktime(); + + /** + * int64 amount = 6; + * + * @return The amount. + */ + long getAmount(); + + /** + * string fromaddr = 7; + * + * @return The fromaddr. + */ + java.lang.String getFromaddr(); + + /** + * string fromaddr = 7; + * + * @return The bytes for fromaddr. + */ + com.google.protobuf.ByteString getFromaddrBytes(); + + /** + * bytes txhash = 8; + * + * @return The txhash. + */ + com.google.protobuf.ByteString getTxhash(); + + /** + * string actionName = 9; + * + * @return The actionName. + */ + java.lang.String getActionName(); + + /** + * string actionName = 9; + * + * @return The bytes for actionName. + */ + com.google.protobuf.ByteString getActionNameBytes(); + + /** + * bytes payload = 10; + * + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); + } + + /** + *
+     *钱包模块存贮的tx交易详细信息
+     * 	 tx : tx交易信息
+     *	 receipt :交易收据信息
+     *	 height :交易所在的区块高度
+     *	 index :交易所在区块中的索引
+     *	 blocktime :交易所在区块的时标
+     *	 amount :交易量
+     *	 fromaddr :交易打出地址
+     *	 txhash : 交易对应的哈希值
+     *	 actionName  :交易对应的函数调用
+     *   payload: 保存额外的一些信息,主要是给插件使用
+     * 
+ * + * Protobuf type {@code WalletTxDetail} + */ + public static final class WalletTxDetail extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletTxDetail) + WalletTxDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletTxDetail.newBuilder() to construct. + private WalletTxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletTxDetail() { + fromaddr_ = ""; + txhash_ = com.google.protobuf.ByteString.EMPTY; + actionName_ = ""; + payload_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletTxDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletTxDetail(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; + if (tx_ != null) { + subBuilder = tx_.toBuilder(); + } + tx_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tx_); + tx_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; + if (receipt_ != null) { + subBuilder = receipt_.toBuilder(); + } + receipt_ = input.readMessage( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receipt_); + receipt_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + height_ = input.readInt64(); + break; + } + case 32: { + + index_ = input.readInt64(); + break; + } + case 40: { + + blocktime_ = input.readInt64(); + break; + } + case 48: { + + amount_ = input.readInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + fromaddr_ = s; + break; + } + case 66: { + + txhash_ = input.readBytes(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + actionName_ = s; + break; + } + case 82: { + + payload_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder.class); + } + + public static final int TX_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + @java.lang.Override + public boolean hasTx() { + return tx_ != null; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; + } + + /** + * .Transaction tx = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + return getTx(); + } + + public static final int RECEIPT_FIELD_NUMBER = 2; + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; + + /** + * .ReceiptData receipt = 2; + * + * @return Whether the receipt field is set. + */ + @java.lang.Override + public boolean hasReceipt() { + return receipt_ != null; + } + + /** + * .ReceiptData receipt = 2; + * + * @return The receipt. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } + + /** + * .ReceiptData receipt = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { + return getReceipt(); + } + + public static final int HEIGHT_FIELD_NUMBER = 3; + private long height_; + + /** + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + public static final int INDEX_FIELD_NUMBER = 4; + private long index_; + + /** + * int64 index = 4; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + public static final int BLOCKTIME_FIELD_NUMBER = 5; + private long blocktime_; + + /** + * int64 blocktime = 5; + * + * @return The blocktime. + */ + @java.lang.Override + public long getBlocktime() { + return blocktime_; + } + + public static final int AMOUNT_FIELD_NUMBER = 6; + private long amount_; + + /** + * int64 amount = 6; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int FROMADDR_FIELD_NUMBER = 7; + private volatile java.lang.Object fromaddr_; + + /** + * string fromaddr = 7; + * + * @return The fromaddr. + */ + @java.lang.Override + public java.lang.String getFromaddr() { + java.lang.Object ref = fromaddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fromaddr_ = s; + return s; + } + } + + /** + * string fromaddr = 7; + * + * @return The bytes for fromaddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFromaddrBytes() { + java.lang.Object ref = fromaddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fromaddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TXHASH_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txhash_; + + /** + * bytes txhash = 8; + * + * @return The txhash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxhash() { + return txhash_; + } + + public static final int ACTIONNAME_FIELD_NUMBER = 9; + private volatile java.lang.Object actionName_; + + /** + * string actionName = 9; + * + * @return The actionName. + */ + @java.lang.Override + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } + } + + /** + * string actionName = 9; + * + * @return The bytes for actionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString payload_; + + /** + * bytes payload = 10; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tx_ != null) { + output.writeMessage(1, getTx()); + } + if (receipt_ != null) { + output.writeMessage(2, getReceipt()); + } + if (height_ != 0L) { + output.writeInt64(3, height_); + } + if (index_ != 0L) { + output.writeInt64(4, index_); + } + if (blocktime_ != 0L) { + output.writeInt64(5, blocktime_); + } + if (amount_ != 0L) { + output.writeInt64(6, amount_); + } + if (!getFromaddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fromaddr_); + } + if (!txhash_.isEmpty()) { + output.writeBytes(8, txhash_); + } + if (!getActionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, actionName_); + } + if (!payload_.isEmpty()) { + output.writeBytes(10, payload_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (tx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTx()); + } + if (receipt_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReceipt()); + } + if (height_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, height_); + } + if (index_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, index_); + } + if (blocktime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, blocktime_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, amount_); + } + if (!getFromaddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fromaddr_); + } + if (!txhash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txhash_); + } + if (!getActionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, actionName_); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, payload_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail) obj; + + if (hasTx() != other.hasTx()) + return false; + if (hasTx()) { + if (!getTx().equals(other.getTx())) + return false; + } + if (hasReceipt() != other.hasReceipt()) + return false; + if (hasReceipt()) { + if (!getReceipt().equals(other.getReceipt())) + return false; + } + if (getHeight() != other.getHeight()) + return false; + if (getIndex() != other.getIndex()) + return false; + if (getBlocktime() != other.getBlocktime()) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getFromaddr().equals(other.getFromaddr())) + return false; + if (!getTxhash().equals(other.getTxhash())) + return false; + if (!getActionName().equals(other.getActionName())) + return false; + if (!getPayload().equals(other.getPayload())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTx()) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTx().hashCode(); + } + if (hasReceipt()) { + hash = (37 * hash) + RECEIPT_FIELD_NUMBER; + hash = (53 * hash) + getReceipt().hashCode(); + } + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHeight()); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIndex()); + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocktime()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + FROMADDR_FIELD_NUMBER; + hash = (53 * hash) + getFromaddr().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxhash().hashCode(); + hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getActionName().hashCode(); + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *钱包模块存贮的tx交易详细信息
+         * 	 tx : tx交易信息
+         *	 receipt :交易收据信息
+         *	 height :交易所在的区块高度
+         *	 index :交易所在区块中的索引
+         *	 blocktime :交易所在区块的时标
+         *	 amount :交易量
+         *	 fromaddr :交易打出地址
+         *	 txhash : 交易对应的哈希值
+         *	 actionName  :交易对应的函数调用
+         *   payload: 保存额外的一些信息,主要是给插件使用
+         * 
+ * + * Protobuf type {@code WalletTxDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletTxDetail) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txBuilder_ == null) { + tx_ = null; + } else { + tx_ = null; + txBuilder_ = null; + } + if (receiptBuilder_ == null) { + receipt_ = null; + } else { + receipt_ = null; + receiptBuilder_ = null; + } + height_ = 0L; + + index_ = 0L; + + blocktime_ = 0L; + + amount_ = 0L; + + fromaddr_ = ""; + + txhash_ = com.google.protobuf.ByteString.EMPTY; + + actionName_ = ""; + + payload_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail( + this); + if (txBuilder_ == null) { + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + if (receiptBuilder_ == null) { + result.receipt_ = receipt_; + } else { + result.receipt_ = receiptBuilder_.build(); + } + result.height_ = height_; + result.index_ = index_; + result.blocktime_ = blocktime_; + result.amount_ = amount_; + result.fromaddr_ = fromaddr_; + result.txhash_ = txhash_; + result.actionName_ = actionName_; + result.payload_ = payload_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance()) + return this; + if (other.hasTx()) { + mergeTx(other.getTx()); + } + if (other.hasReceipt()) { + mergeReceipt(other.getReceipt()); + } + if (other.getHeight() != 0L) { + setHeight(other.getHeight()); + } + if (other.getIndex() != 0L) { + setIndex(other.getIndex()); + } + if (other.getBlocktime() != 0L) { + setBlocktime(other.getBlocktime()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getFromaddr().isEmpty()) { + fromaddr_ = other.fromaddr_; + onChanged(); + } + if (other.getTxhash() != com.google.protobuf.ByteString.EMPTY) { + setTxhash(other.getTxhash()); + } + if (!other.getActionName().isEmpty()) { + actionName_ = other.actionName_; + onChanged(); + } + if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; + private com.google.protobuf.SingleFieldBuilderV3 txBuilder_; + + /** + * .Transaction tx = 1; + * + * @return Whether the tx field is set. + */ + public boolean hasTx() { + return txBuilder_ != null || tx_ != null; + } + + /** + * .Transaction tx = 1; + * + * @return The tx. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { + if (txBuilder_ == null) { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } else { + return txBuilder_.getMessage(); + } + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tx_ = value; + onChanged(); + } else { + txBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder setTx( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { + if (txBuilder_ == null) { + tx_ = builderForValue.build(); + onChanged(); + } else { + txBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { + if (txBuilder_ == null) { + if (tx_ != null) { + tx_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_) + .mergeFrom(value).buildPartial(); + } else { + tx_ = value; + } + onChanged(); + } else { + txBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = null; + onChanged(); + } else { + tx_ = null; + txBuilder_ = null; + } + + return this; + } + + /** + * .Transaction tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { + + onChanged(); + return getTxFieldBuilder().getBuilder(); + } + + /** + * .Transaction tx = 1; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilder(); + } else { + return tx_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() + : tx_; + } + } + + /** + * .Transaction tx = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTx(), getParentForChildren(), isClean()); + tx_ = null; + } + return txBuilder_; + } + + private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; + private com.google.protobuf.SingleFieldBuilderV3 receiptBuilder_; + + /** + * .ReceiptData receipt = 2; + * + * @return Whether the receipt field is set. + */ + public boolean hasReceipt() { + return receiptBuilder_ != null || receipt_ != null; + } + + /** + * .ReceiptData receipt = 2; + * + * @return The receipt. + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { + if (receiptBuilder_ == null) { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } else { + return receiptBuilder_.getMessage(); + } + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder setReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + receipt_ = value; + onChanged(); + } else { + receiptBuilder_.setMessage(value); + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder setReceipt( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { + if (receiptBuilder_ == null) { + receipt_ = builderForValue.build(); + onChanged(); + } else { + receiptBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder mergeReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { + if (receiptBuilder_ == null) { + if (receipt_ != null) { + receipt_ = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData + .newBuilder(receipt_).mergeFrom(value).buildPartial(); + } else { + receipt_ = value; + } + onChanged(); + } else { + receiptBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public Builder clearReceipt() { + if (receiptBuilder_ == null) { + receipt_ = null; + onChanged(); + } else { + receipt_ = null; + receiptBuilder_ = null; + } + + return this; + } + + /** + * .ReceiptData receipt = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptBuilder() { + + onChanged(); + return getReceiptFieldBuilder().getBuilder(); + } + + /** + * .ReceiptData receipt = 2; + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { + if (receiptBuilder_ != null) { + return receiptBuilder_.getMessageOrBuilder(); + } else { + return receipt_ == null + ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() + : receipt_; + } + } + + /** + * .ReceiptData receipt = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getReceiptFieldBuilder() { + if (receiptBuilder_ == null) { + receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getReceipt(), getParentForChildren(), isClean()); + receipt_ = null; + } + return receiptBuilder_; + } + + private long height_; + + /** + * int64 height = 3; + * + * @return The height. + */ + @java.lang.Override + public long getHeight() { + return height_; + } + + /** + * int64 height = 3; + * + * @param value + * The height to set. + * + * @return This builder for chaining. + */ + public Builder setHeight(long value) { + + height_ = value; + onChanged(); + return this; + } + + /** + * int64 height = 3; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0L; + onChanged(); + return this; + } + + private long index_; + + /** + * int64 index = 4; + * + * @return The index. + */ + @java.lang.Override + public long getIndex() { + return index_; + } + + /** + * int64 index = 4; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(long value) { + + index_ = value; + onChanged(); + return this; + } + + /** + * int64 index = 4; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0L; + onChanged(); + return this; + } + + private long blocktime_; + + /** + * int64 blocktime = 5; + * + * @return The blocktime. + */ + @java.lang.Override + public long getBlocktime() { + return blocktime_; + } + + /** + * int64 blocktime = 5; + * + * @param value + * The blocktime to set. + * + * @return This builder for chaining. + */ + public Builder setBlocktime(long value) { + + blocktime_ = value; + onChanged(); + return this; + } + + /** + * int64 blocktime = 5; + * + * @return This builder for chaining. + */ + public Builder clearBlocktime() { + + blocktime_ = 0L; + onChanged(); + return this; + } + + private long amount_; + + /** + * int64 amount = 6; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 6; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 6; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object fromaddr_ = ""; + + /** + * string fromaddr = 7; + * + * @return The fromaddr. + */ + public java.lang.String getFromaddr() { + java.lang.Object ref = fromaddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fromaddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string fromaddr = 7; + * + * @return The bytes for fromaddr. + */ + public com.google.protobuf.ByteString getFromaddrBytes() { + java.lang.Object ref = fromaddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + fromaddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string fromaddr = 7; + * + * @param value + * The fromaddr to set. + * + * @return This builder for chaining. + */ + public Builder setFromaddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fromaddr_ = value; + onChanged(); + return this; + } + + /** + * string fromaddr = 7; + * + * @return This builder for chaining. + */ + public Builder clearFromaddr() { + + fromaddr_ = getDefaultInstance().getFromaddr(); + onChanged(); + return this; + } + + /** + * string fromaddr = 7; + * + * @param value + * The bytes for fromaddr to set. + * + * @return This builder for chaining. + */ + public Builder setFromaddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fromaddr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txhash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes txhash = 8; + * + * @return The txhash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxhash() { + return txhash_; + } + + /** + * bytes txhash = 8; + * + * @param value + * The txhash to set. + * + * @return This builder for chaining. + */ + public Builder setTxhash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txhash_ = value; + onChanged(); + return this; + } + + /** + * bytes txhash = 8; + * + * @return This builder for chaining. + */ + public Builder clearTxhash() { + + txhash_ = getDefaultInstance().getTxhash(); + onChanged(); + return this; + } + + private java.lang.Object actionName_ = ""; + + /** + * string actionName = 9; + * + * @return The actionName. + */ + public java.lang.String getActionName() { + java.lang.Object ref = actionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string actionName = 9; + * + * @return The bytes for actionName. + */ + public com.google.protobuf.ByteString getActionNameBytes() { + java.lang.Object ref = actionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + actionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string actionName = 9; + * + * @param value + * The actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + actionName_ = value; + onChanged(); + return this; + } + + /** + * string actionName = 9; + * + * @return This builder for chaining. + */ + public Builder clearActionName() { + + actionName_ = getDefaultInstance().getActionName(); + onChanged(); + return this; + } + + /** + * string actionName = 9; + * + * @param value + * The bytes for actionName to set. + * + * @return This builder for chaining. + */ + public Builder setActionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + actionName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes payload = 10; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + /** + * bytes payload = 10; + * + * @param value + * The payload to set. + * + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + payload_ = value; + onChanged(); + return this; + } + + /** + * bytes payload = 10; + * + * @return This builder for chaining. + */ + public Builder clearPayload() { + + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletTxDetail) + } + + // @@protoc_insertion_point(class_scope:WalletTxDetail) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletTxDetail parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletTxDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletTxDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletTxDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + java.util.List getTxDetailsList(); + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getTxDetails(int index); + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + int getTxDetailsCount(); + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + java.util.List getTxDetailsOrBuilderList(); + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder getTxDetailsOrBuilder(int index); + } + + /** + * Protobuf type {@code WalletTxDetails} + */ + public static final class WalletTxDetails extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletTxDetails) + WalletTxDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletTxDetails.newBuilder() to construct. + private WalletTxDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletTxDetails() { + txDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletTxDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletTxDetails(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + txDetails_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + txDetails_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + txDetails_ = java.util.Collections.unmodifiableList(txDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.Builder.class); + } + + public static final int TXDETAILS_FIELD_NUMBER = 1; + private java.util.List txDetails_; + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + @java.lang.Override + public java.util.List getTxDetailsList() { + return txDetails_; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + @java.lang.Override + public java.util.List getTxDetailsOrBuilderList() { + return txDetails_; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + @java.lang.Override + public int getTxDetailsCount() { + return txDetails_.size(); + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getTxDetails(int index) { + return txDetails_.get(index); + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder getTxDetailsOrBuilder( + int index) { + return txDetails_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < txDetails_.size(); i++) { + output.writeMessage(1, txDetails_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < txDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, txDetails_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails) obj; + + if (!getTxDetailsList().equals(other.getTxDetailsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxDetailsCount() > 0) { + hash = (37 * hash) + TXDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTxDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 WalletTxDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletTxDetails) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (txDetailsBuilder_ == null) { + txDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txDetailsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails( + this); + int from_bitField0_ = bitField0_; + if (txDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + txDetails_ = java.util.Collections.unmodifiableList(txDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.txDetails_ = txDetails_; + } else { + result.txDetails_ = txDetailsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.getDefaultInstance()) + return this; + if (txDetailsBuilder_ == null) { + if (!other.txDetails_.isEmpty()) { + if (txDetails_.isEmpty()) { + txDetails_ = other.txDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxDetailsIsMutable(); + txDetails_.addAll(other.txDetails_); + } + onChanged(); + } + } else { + if (!other.txDetails_.isEmpty()) { + if (txDetailsBuilder_.isEmpty()) { + txDetailsBuilder_.dispose(); + txDetailsBuilder_ = null; + txDetails_ = other.txDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + txDetailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxDetailsFieldBuilder() : null; + } else { + txDetailsBuilder_.addAllMessages(other.txDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List txDetails_ = java.util.Collections + .emptyList(); + + private void ensureTxDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + txDetails_ = new java.util.ArrayList( + txDetails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 txDetailsBuilder_; + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public java.util.List getTxDetailsList() { + if (txDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(txDetails_); + } else { + return txDetailsBuilder_.getMessageList(); + } + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public int getTxDetailsCount() { + if (txDetailsBuilder_ == null) { + return txDetails_.size(); + } else { + return txDetailsBuilder_.getCount(); + } + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getTxDetails(int index) { + if (txDetailsBuilder_ == null) { + return txDetails_.get(index); + } else { + return txDetailsBuilder_.getMessage(index); + } + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder setTxDetails(int index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail value) { + if (txDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxDetailsIsMutable(); + txDetails_.set(index, value); + onChanged(); + } else { + txDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder setTxDetails(int index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder builderForValue) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + txDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder addTxDetails(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail value) { + if (txDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxDetailsIsMutable(); + txDetails_.add(value); + onChanged(); + } else { + txDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder addTxDetails(int index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail value) { + if (txDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxDetailsIsMutable(); + txDetails_.add(index, value); + onChanged(); + } else { + txDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder addTxDetails( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder builderForValue) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.add(builderForValue.build()); + onChanged(); + } else { + txDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder addTxDetails(int index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder builderForValue) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + txDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder addAllTxDetails( + java.lang.Iterable values) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txDetails_); + onChanged(); + } else { + txDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder clearTxDetails() { + if (txDetailsBuilder_ == null) { + txDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txDetailsBuilder_.clear(); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public Builder removeTxDetails(int index) { + if (txDetailsBuilder_ == null) { + ensureTxDetailsIsMutable(); + txDetails_.remove(index); + onChanged(); + } else { + txDetailsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder getTxDetailsBuilder( + int index) { + return getTxDetailsFieldBuilder().getBuilder(index); + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder getTxDetailsOrBuilder( + int index) { + if (txDetailsBuilder_ == null) { + return txDetails_.get(index); + } else { + return txDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public java.util.List getTxDetailsOrBuilderList() { + if (txDetailsBuilder_ != null) { + return txDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(txDetails_); + } + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder addTxDetailsBuilder() { + return getTxDetailsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance()); + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder addTxDetailsBuilder( + int index) { + return getTxDetailsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance()); + } + + /** + * repeated .WalletTxDetail txDetails = 1; + */ + public java.util.List getTxDetailsBuilderList() { + return getTxDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getTxDetailsFieldBuilder() { + if (txDetailsBuilder_ == null) { + txDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + txDetails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + txDetails_ = null; + } + return txDetailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletTxDetails) + } + + // @@protoc_insertion_point(class_scope:WalletTxDetails) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletTxDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletTxDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletAccountStoreOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletAccountStore) + com.google.protobuf.MessageOrBuilder { + + /** + * string privkey = 1; + * + * @return The privkey. + */ + java.lang.String getPrivkey(); + + /** + * string privkey = 1; + * + * @return The bytes for privkey. + */ + com.google.protobuf.ByteString getPrivkeyBytes(); + + /** + * string label = 2; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * string label = 2; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + + /** + * string addr = 3; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 3; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + * string timeStamp = 4; + * + * @return The timeStamp. + */ + java.lang.String getTimeStamp(); + + /** + * string timeStamp = 4; + * + * @return The bytes for timeStamp. + */ + com.google.protobuf.ByteString getTimeStampBytes(); + } + + /** + *
+     *钱包模块存贮的账户信息
+     * 	 privkey : 账户地址对应的私钥
+     *	 label :账户地址对应的标签
+     *	 addr :账户地址
+     *	 timeStamp :创建账户时的时标
+     * 
+ * + * Protobuf type {@code WalletAccountStore} + */ + public static final class WalletAccountStore extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletAccountStore) + WalletAccountStoreOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletAccountStore.newBuilder() to construct. + private WalletAccountStore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletAccountStore() { + privkey_ = ""; + label_ = ""; + addr_ = ""; + timeStamp_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletAccountStore(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletAccountStore(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + privkey_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + timeStamp_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.Builder.class); + } + + public static final int PRIVKEY_FIELD_NUMBER = 1; + private volatile java.lang.Object privkey_; + + /** + * string privkey = 1; + * + * @return The privkey. + */ + @java.lang.Override + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } + } + + /** + * string privkey = 1; + * + * @return The bytes for privkey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + private volatile java.lang.Object label_; + + /** + * string label = 2; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDR_FIELD_NUMBER = 3; + private volatile java.lang.Object addr_; + + /** + * string addr = 3; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 3; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMESTAMP_FIELD_NUMBER = 4; + private volatile java.lang.Object timeStamp_; + + /** + * string timeStamp = 4; + * + * @return The timeStamp. + */ + @java.lang.Override + public java.lang.String getTimeStamp() { + java.lang.Object ref = timeStamp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeStamp_ = s; + return s; + } + } + + /** + * string timeStamp = 4; + * + * @return The bytes for timeStamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeStampBytes() { + java.lang.Object ref = timeStamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeStamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPrivkeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privkey_); + } + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); + } + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, addr_); + } + if (!getTimeStampBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, timeStamp_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getPrivkeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privkey_); + } + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); + } + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, addr_); + } + if (!getTimeStampBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeStamp_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore) obj; + + if (!getPrivkey().equals(other.getPrivkey())) + return false; + if (!getLabel().equals(other.getLabel())) + return false; + if (!getAddr().equals(other.getAddr())) + return false; + if (!getTimeStamp().equals(other.getTimeStamp())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivkey().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimeStamp().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *钱包模块存贮的账户信息
+         * 	 privkey : 账户地址对应的私钥
+         *	 label :账户地址对应的标签
+         *	 addr :账户地址
+         *	 timeStamp :创建账户时的时标
+         * 
+ * + * Protobuf type {@code WalletAccountStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletAccountStore) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + privkey_ = ""; + + label_ = ""; + + addr_ = ""; + + timeStamp_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore( + this); + result.privkey_ = privkey_; + result.label_ = label_; + result.addr_ = addr_; + result.timeStamp_ = timeStamp_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.getDefaultInstance()) + return this; + if (!other.getPrivkey().isEmpty()) { + privkey_ = other.privkey_; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (!other.getTimeStamp().isEmpty()) { + timeStamp_ = other.timeStamp_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object privkey_ = ""; + + /** + * string privkey = 1; + * + * @return The privkey. + */ + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string privkey = 1; + * + * @return The bytes for privkey. + */ + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string privkey = 1; + * + * @param value + * The privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privkey_ = value; + onChanged(); + return this; + } + + /** + * string privkey = 1; + * + * @return This builder for chaining. + */ + public Builder clearPrivkey() { + + privkey_ = getDefaultInstance().getPrivkey(); + onChanged(); + return this; + } + + /** + * string privkey = 1; + * + * @param value + * The bytes for privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privkey_ = value; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * string label = 2; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string label = 2; + * + * @param value + * The label to set. + * + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @param value + * The bytes for label to set. + * + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 3; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 3; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 3; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 3; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 3; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private java.lang.Object timeStamp_ = ""; + + /** + * string timeStamp = 4; + * + * @return The timeStamp. + */ + public java.lang.String getTimeStamp() { + java.lang.Object ref = timeStamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeStamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string timeStamp = 4; + * + * @return The bytes for timeStamp. + */ + public com.google.protobuf.ByteString getTimeStampBytes() { + java.lang.Object ref = timeStamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + timeStamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string timeStamp = 4; + * + * @param value + * The timeStamp to set. + * + * @return This builder for chaining. + */ + public Builder setTimeStamp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + timeStamp_ = value; + onChanged(); + return this; + } + + /** + * string timeStamp = 4; + * + * @return This builder for chaining. + */ + public Builder clearTimeStamp() { + + timeStamp_ = getDefaultInstance().getTimeStamp(); + onChanged(); + return this; + } + + /** + * string timeStamp = 4; + * + * @param value + * The bytes for timeStamp to set. + * + * @return This builder for chaining. + */ + public Builder setTimeStampBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + timeStamp_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletAccountStore) + } + + // @@protoc_insertion_point(class_scope:WalletAccountStore) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletAccountStore parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletAccountStore(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletPwHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletPwHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes pwHash = 1; + * + * @return The pwHash. + */ + com.google.protobuf.ByteString getPwHash(); + + /** + * string randstr = 2; + * + * @return The randstr. + */ + java.lang.String getRandstr(); + + /** + * string randstr = 2; + * + * @return The bytes for randstr. + */ + com.google.protobuf.ByteString getRandstrBytes(); + } + + /** + *
+     *钱包模块通过一个随机值对钱包密码加密
+     * 	 pwHash : 对钱包密码和一个随机值组合进行哈希计算
+     *	 randstr :对钱包密码加密的一个随机值
+     * 
+ * + * Protobuf type {@code WalletPwHash} + */ + public static final class WalletPwHash extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletPwHash) + WalletPwHashOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletPwHash.newBuilder() to construct. + private WalletPwHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletPwHash() { + pwHash_ = com.google.protobuf.ByteString.EMPTY; + randstr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletPwHash(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletPwHash(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + pwHash_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + randstr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.Builder.class); + } + + public static final int PWHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString pwHash_; + + /** + * bytes pwHash = 1; + * + * @return The pwHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPwHash() { + return pwHash_; + } + + public static final int RANDSTR_FIELD_NUMBER = 2; + private volatile java.lang.Object randstr_; + + /** + * string randstr = 2; + * + * @return The randstr. + */ + @java.lang.Override + public java.lang.String getRandstr() { + java.lang.Object ref = randstr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + randstr_ = s; + return s; + } + } + + /** + * string randstr = 2; + * + * @return The bytes for randstr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRandstrBytes() { + java.lang.Object ref = randstr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + randstr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!pwHash_.isEmpty()) { + output.writeBytes(1, pwHash_); + } + if (!getRandstrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, randstr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!pwHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, pwHash_); + } + if (!getRandstrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, randstr_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash) obj; + + if (!getPwHash().equals(other.getPwHash())) + return false; + if (!getRandstr().equals(other.getRandstr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PWHASH_FIELD_NUMBER; + hash = (53 * hash) + getPwHash().hashCode(); + hash = (37 * hash) + RANDSTR_FIELD_NUMBER; + hash = (53 * hash) + getRandstr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *钱包模块通过一个随机值对钱包密码加密
+         * 	 pwHash : 对钱包密码和一个随机值组合进行哈希计算
+         *	 randstr :对钱包密码加密的一个随机值
+         * 
+ * + * Protobuf type {@code WalletPwHash} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletPwHash) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + pwHash_ = com.google.protobuf.ByteString.EMPTY; + + randstr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash( + this); + result.pwHash_ = pwHash_; + result.randstr_ = randstr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.getDefaultInstance()) + return this; + if (other.getPwHash() != com.google.protobuf.ByteString.EMPTY) { + setPwHash(other.getPwHash()); + } + if (!other.getRandstr().isEmpty()) { + randstr_ = other.randstr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString pwHash_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes pwHash = 1; + * + * @return The pwHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPwHash() { + return pwHash_; + } + + /** + * bytes pwHash = 1; + * + * @param value + * The pwHash to set. + * + * @return This builder for chaining. + */ + public Builder setPwHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + pwHash_ = value; + onChanged(); + return this; + } + + /** + * bytes pwHash = 1; + * + * @return This builder for chaining. + */ + public Builder clearPwHash() { + + pwHash_ = getDefaultInstance().getPwHash(); + onChanged(); + return this; + } + + private java.lang.Object randstr_ = ""; + + /** + * string randstr = 2; + * + * @return The randstr. + */ + public java.lang.String getRandstr() { + java.lang.Object ref = randstr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + randstr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string randstr = 2; + * + * @return The bytes for randstr. + */ + public com.google.protobuf.ByteString getRandstrBytes() { + java.lang.Object ref = randstr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + randstr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string randstr = 2; + * + * @param value + * The randstr to set. + * + * @return This builder for chaining. + */ + public Builder setRandstr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + randstr_ = value; + onChanged(); + return this; + } + + /** + * string randstr = 2; + * + * @return This builder for chaining. + */ + public Builder clearRandstr() { + + randstr_ = getDefaultInstance().getRandstr(); + onChanged(); + return this; + } + + /** + * string randstr = 2; + * + * @param value + * The bytes for randstr to set. + * + * @return This builder for chaining. + */ + public Builder setRandstrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + randstr_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletPwHash) + } + + // @@protoc_insertion_point(class_scope:WalletPwHash) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletPwHash parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletPwHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * bool isWalletLock = 1; + * + * @return The isWalletLock. + */ + boolean getIsWalletLock(); + + /** + * bool isAutoMining = 2; + * + * @return The isAutoMining. + */ + boolean getIsAutoMining(); + + /** + * bool isHasSeed = 3; + * + * @return The isHasSeed. + */ + boolean getIsHasSeed(); + + /** + * bool isTicketLock = 4; + * + * @return The isTicketLock. + */ + boolean getIsTicketLock(); + } + + /** + *
+     *钱包当前的状态
+     * 	 isWalletLock : 钱包是否锁状态,true锁定,false解锁
+     *	 isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
+     * 	 isHasSeed : 钱包是否有种子,true已有,false没有
+     *	 isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
+     * 
+ * + * Protobuf type {@code WalletStatus} + */ + public static final class WalletStatus extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletStatus) + WalletStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletStatus.newBuilder() to construct. + private WalletStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletStatus() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletStatus(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + isWalletLock_ = input.readBool(); + break; + } + case 16: { + + isAutoMining_ = input.readBool(); + break; + } + case 24: { + + isHasSeed_ = input.readBool(); + break; + } + case 32: { + + isTicketLock_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.Builder.class); + } + + public static final int ISWALLETLOCK_FIELD_NUMBER = 1; + private boolean isWalletLock_; + + /** + * bool isWalletLock = 1; + * + * @return The isWalletLock. + */ + @java.lang.Override + public boolean getIsWalletLock() { + return isWalletLock_; + } + + public static final int ISAUTOMINING_FIELD_NUMBER = 2; + private boolean isAutoMining_; + + /** + * bool isAutoMining = 2; + * + * @return The isAutoMining. + */ + @java.lang.Override + public boolean getIsAutoMining() { + return isAutoMining_; + } + + public static final int ISHASSEED_FIELD_NUMBER = 3; + private boolean isHasSeed_; + + /** + * bool isHasSeed = 3; + * + * @return The isHasSeed. + */ + @java.lang.Override + public boolean getIsHasSeed() { + return isHasSeed_; + } + + public static final int ISTICKETLOCK_FIELD_NUMBER = 4; + private boolean isTicketLock_; + + /** + * bool isTicketLock = 4; + * + * @return The isTicketLock. + */ + @java.lang.Override + public boolean getIsTicketLock() { + return isTicketLock_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isWalletLock_ != false) { + output.writeBool(1, isWalletLock_); + } + if (isAutoMining_ != false) { + output.writeBool(2, isAutoMining_); + } + if (isHasSeed_ != false) { + output.writeBool(3, isHasSeed_); + } + if (isTicketLock_ != false) { + output.writeBool(4, isTicketLock_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (isWalletLock_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isWalletLock_); + } + if (isAutoMining_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isAutoMining_); + } + if (isHasSeed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isHasSeed_); + } + if (isTicketLock_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isTicketLock_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus) obj; + + if (getIsWalletLock() != other.getIsWalletLock()) + return false; + if (getIsAutoMining() != other.getIsAutoMining()) + return false; + if (getIsHasSeed() != other.getIsHasSeed()) + return false; + if (getIsTicketLock() != other.getIsTicketLock()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISWALLETLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsWalletLock()); + hash = (37 * hash) + ISAUTOMINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAutoMining()); + hash = (37 * hash) + ISHASSEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsHasSeed()); + hash = (37 * hash) + ISTICKETLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsTicketLock()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *钱包当前的状态
+         * 	 isWalletLock : 钱包是否锁状态,true锁定,false解锁
+         *	 isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
+         * 	 isHasSeed : 钱包是否有种子,true已有,false没有
+         *	 isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
+         * 
+ * + * Protobuf type {@code WalletStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletStatus) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + isWalletLock_ = false; + + isAutoMining_ = false; + + isHasSeed_ = false; + + isTicketLock_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus( + this); + result.isWalletLock_ = isWalletLock_; + result.isAutoMining_ = isAutoMining_; + result.isHasSeed_ = isHasSeed_; + result.isTicketLock_ = isTicketLock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.getDefaultInstance()) + return this; + if (other.getIsWalletLock() != false) { + setIsWalletLock(other.getIsWalletLock()); + } + if (other.getIsAutoMining() != false) { + setIsAutoMining(other.getIsAutoMining()); + } + if (other.getIsHasSeed() != false) { + setIsHasSeed(other.getIsHasSeed()); + } + if (other.getIsTicketLock() != false) { + setIsTicketLock(other.getIsTicketLock()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean isWalletLock_; + + /** + * bool isWalletLock = 1; + * + * @return The isWalletLock. + */ + @java.lang.Override + public boolean getIsWalletLock() { + return isWalletLock_; + } + + /** + * bool isWalletLock = 1; + * + * @param value + * The isWalletLock to set. + * + * @return This builder for chaining. + */ + public Builder setIsWalletLock(boolean value) { + + isWalletLock_ = value; + onChanged(); + return this; + } + + /** + * bool isWalletLock = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsWalletLock() { + + isWalletLock_ = false; + onChanged(); + return this; + } + + private boolean isAutoMining_; + + /** + * bool isAutoMining = 2; + * + * @return The isAutoMining. + */ + @java.lang.Override + public boolean getIsAutoMining() { + return isAutoMining_; + } + + /** + * bool isAutoMining = 2; + * + * @param value + * The isAutoMining to set. + * + * @return This builder for chaining. + */ + public Builder setIsAutoMining(boolean value) { + + isAutoMining_ = value; + onChanged(); + return this; + } + + /** + * bool isAutoMining = 2; + * + * @return This builder for chaining. + */ + public Builder clearIsAutoMining() { + + isAutoMining_ = false; + onChanged(); + return this; + } + + private boolean isHasSeed_; + + /** + * bool isHasSeed = 3; + * + * @return The isHasSeed. + */ + @java.lang.Override + public boolean getIsHasSeed() { + return isHasSeed_; + } + + /** + * bool isHasSeed = 3; + * + * @param value + * The isHasSeed to set. + * + * @return This builder for chaining. + */ + public Builder setIsHasSeed(boolean value) { + + isHasSeed_ = value; + onChanged(); + return this; + } + + /** + * bool isHasSeed = 3; + * + * @return This builder for chaining. + */ + public Builder clearIsHasSeed() { + + isHasSeed_ = false; + onChanged(); + return this; + } + + private boolean isTicketLock_; + + /** + * bool isTicketLock = 4; + * + * @return The isTicketLock. + */ + @java.lang.Override + public boolean getIsTicketLock() { + return isTicketLock_; + } + + /** + * bool isTicketLock = 4; + * + * @param value + * The isTicketLock to set. + * + * @return This builder for chaining. + */ + public Builder setIsTicketLock(boolean value) { + + isTicketLock_ = value; + onChanged(); + return this; + } + + /** + * bool isTicketLock = 4; + * + * @return This builder for chaining. + */ + public Builder clearIsTicketLock() { + + isTicketLock_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletStatus) + } + + // @@protoc_insertion_point(class_scope:WalletStatus) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletStatus parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletAccountsOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletAccounts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .WalletAccount wallets = 1; + */ + java.util.List getWalletsList(); + + /** + * repeated .WalletAccount wallets = 1; + */ + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getWallets(int index); + + /** + * repeated .WalletAccount wallets = 1; + */ + int getWalletsCount(); + + /** + * repeated .WalletAccount wallets = 1; + */ + java.util.List getWalletsOrBuilderList(); + + /** + * repeated .WalletAccount wallets = 1; + */ + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder getWalletsOrBuilder(int index); + } + + /** + * Protobuf type {@code WalletAccounts} + */ + public static final class WalletAccounts extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletAccounts) + WalletAccountsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletAccounts.newBuilder() to construct. + private WalletAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletAccounts() { + wallets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletAccounts(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletAccounts(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + wallets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + wallets_.add(input.readMessage( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.parser(), + extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + wallets_ = java.util.Collections.unmodifiableList(wallets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.Builder.class); + } + + public static final int WALLETS_FIELD_NUMBER = 1; + private java.util.List wallets_; + + /** + * repeated .WalletAccount wallets = 1; + */ + @java.lang.Override + public java.util.List getWalletsList() { + return wallets_; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + @java.lang.Override + public java.util.List getWalletsOrBuilderList() { + return wallets_; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + @java.lang.Override + public int getWalletsCount() { + return wallets_.size(); + } + + /** + * repeated .WalletAccount wallets = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getWallets(int index) { + return wallets_.get(index); + } + + /** + * repeated .WalletAccount wallets = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder getWalletsOrBuilder(int index) { + return wallets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < wallets_.size(); i++) { + output.writeMessage(1, wallets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < wallets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, wallets_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts) obj; + + if (!getWalletsList().equals(other.getWalletsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWalletsCount() > 0) { + hash = (37 * hash) + WALLETS_FIELD_NUMBER; + hash = (53 * hash) + getWalletsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 WalletAccounts} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletAccounts) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWalletsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (walletsBuilder_ == null) { + wallets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + walletsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts( + this); + int from_bitField0_ = bitField0_; + if (walletsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + wallets_ = java.util.Collections.unmodifiableList(wallets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.wallets_ = wallets_; + } else { + result.wallets_ = walletsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.getDefaultInstance()) + return this; + if (walletsBuilder_ == null) { + if (!other.wallets_.isEmpty()) { + if (wallets_.isEmpty()) { + wallets_ = other.wallets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWalletsIsMutable(); + wallets_.addAll(other.wallets_); + } + onChanged(); + } + } else { + if (!other.wallets_.isEmpty()) { + if (walletsBuilder_.isEmpty()) { + walletsBuilder_.dispose(); + walletsBuilder_ = null; + wallets_ = other.wallets_; + bitField0_ = (bitField0_ & ~0x00000001); + walletsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWalletsFieldBuilder() : null; + } else { + walletsBuilder_.addAllMessages(other.wallets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List wallets_ = java.util.Collections + .emptyList(); + + private void ensureWalletsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + wallets_ = new java.util.ArrayList( + wallets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 walletsBuilder_; + + /** + * repeated .WalletAccount wallets = 1; + */ + public java.util.List getWalletsList() { + if (walletsBuilder_ == null) { + return java.util.Collections.unmodifiableList(wallets_); + } else { + return walletsBuilder_.getMessageList(); + } + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public int getWalletsCount() { + if (walletsBuilder_ == null) { + return wallets_.size(); + } else { + return walletsBuilder_.getCount(); + } + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getWallets(int index) { + if (walletsBuilder_ == null) { + return wallets_.get(index); + } else { + return walletsBuilder_.getMessage(index); + } + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder setWallets(int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount value) { + if (walletsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWalletsIsMutable(); + wallets_.set(index, value); + onChanged(); + } else { + walletsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder setWallets(int index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder builderForValue) { + if (walletsBuilder_ == null) { + ensureWalletsIsMutable(); + wallets_.set(index, builderForValue.build()); + onChanged(); + } else { + walletsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder addWallets(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount value) { + if (walletsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWalletsIsMutable(); + wallets_.add(value); + onChanged(); + } else { + walletsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder addWallets(int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount value) { + if (walletsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWalletsIsMutable(); + wallets_.add(index, value); + onChanged(); + } else { + walletsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder addWallets( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder builderForValue) { + if (walletsBuilder_ == null) { + ensureWalletsIsMutable(); + wallets_.add(builderForValue.build()); + onChanged(); + } else { + walletsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder addWallets(int index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder builderForValue) { + if (walletsBuilder_ == null) { + ensureWalletsIsMutable(); + wallets_.add(index, builderForValue.build()); + onChanged(); + } else { + walletsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder addAllWallets( + java.lang.Iterable values) { + if (walletsBuilder_ == null) { + ensureWalletsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, wallets_); + onChanged(); + } else { + walletsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder clearWallets() { + if (walletsBuilder_ == null) { + wallets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + walletsBuilder_.clear(); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public Builder removeWallets(int index) { + if (walletsBuilder_ == null) { + ensureWalletsIsMutable(); + wallets_.remove(index); + onChanged(); + } else { + walletsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder getWalletsBuilder(int index) { + return getWalletsFieldBuilder().getBuilder(index); + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder getWalletsOrBuilder( + int index) { + if (walletsBuilder_ == null) { + return wallets_.get(index); + } else { + return walletsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public java.util.List getWalletsOrBuilderList() { + if (walletsBuilder_ != null) { + return walletsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(wallets_); + } + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder addWalletsBuilder() { + return getWalletsFieldBuilder().addBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance()); + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder addWalletsBuilder(int index) { + return getWalletsFieldBuilder().addBuilder(index, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance()); + } + + /** + * repeated .WalletAccount wallets = 1; + */ + public java.util.List getWalletsBuilderList() { + return getWalletsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getWalletsFieldBuilder() { + if (walletsBuilder_ == null) { + walletsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + wallets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + wallets_ = null; + } + return walletsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletAccounts) + } + + // @@protoc_insertion_point(class_scope:WalletAccounts) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletAccounts parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletAccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * .Account acc = 1; + * + * @return Whether the acc field is set. + */ + boolean hasAcc(); + + /** + * .Account acc = 1; + * + * @return The acc. + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(); + + /** + * .Account acc = 1; + */ + cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder(); + + /** + * string label = 2; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * string label = 2; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + } + + /** + * Protobuf type {@code WalletAccount} + */ + public static final class WalletAccount extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletAccount) + WalletAccountOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletAccount.newBuilder() to construct. + private WalletAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletAccount() { + label_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletAccount(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletAccount(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; + if (acc_ != null) { + subBuilder = acc_.toBuilder(); + } + acc_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(acc_); + acc_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder.class); + } + + public static final int ACC_FIELD_NUMBER = 1; + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account acc_; + + /** + * .Account acc = 1; + * + * @return Whether the acc field is set. + */ + @java.lang.Override + public boolean hasAcc() { + return acc_ != null; + } + + /** + * .Account acc = 1; + * + * @return The acc. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc() { + return acc_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : acc_; + } + + /** + * .Account acc = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder() { + return getAcc(); + } + + public static final int LABEL_FIELD_NUMBER = 2; + private volatile java.lang.Object label_; + + /** + * string label = 2; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (acc_ != null) { + output.writeMessage(1, getAcc()); + } + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (acc_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAcc()); + } + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount) obj; + + if (hasAcc() != other.hasAcc()) + return false; + if (hasAcc()) { + if (!getAcc().equals(other.getAcc())) + return false; + } + if (!getLabel().equals(other.getLabel())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAcc()) { + hash = (37 * hash) + ACC_FIELD_NUMBER; + hash = (53 * hash) + getAcc().hashCode(); + } + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 WalletAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletAccount) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (accBuilder_ == null) { + acc_ = null; + } else { + acc_ = null; + accBuilder_ = null; + } + label_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount( + this); + if (accBuilder_ == null) { + result.acc_ = acc_; + } else { + result.acc_ = accBuilder_.build(); + } + result.label_ = label_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance()) + return this; + if (other.hasAcc()) { + mergeAcc(other.getAcc()); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account acc_; + private com.google.protobuf.SingleFieldBuilderV3 accBuilder_; + + /** + * .Account acc = 1; + * + * @return Whether the acc field is set. + */ + public boolean hasAcc() { + return accBuilder_ != null || acc_ != null; + } + + /** + * .Account acc = 1; + * + * @return The acc. + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc() { + if (accBuilder_ == null) { + return acc_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : acc_; + } else { + return accBuilder_.getMessage(); + } + } + + /** + * .Account acc = 1; + */ + public Builder setAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (accBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + acc_ = value; + onChanged(); + } else { + accBuilder_.setMessage(value); + } + + return this; + } + + /** + * .Account acc = 1; + */ + public Builder setAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { + if (accBuilder_ == null) { + acc_ = builderForValue.build(); + onChanged(); + } else { + accBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + + /** + * .Account acc = 1; + */ + public Builder mergeAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { + if (accBuilder_ == null) { + if (acc_ != null) { + acc_ = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(acc_) + .mergeFrom(value).buildPartial(); + } else { + acc_ = value; + } + onChanged(); + } else { + accBuilder_.mergeFrom(value); + } + + return this; + } + + /** + * .Account acc = 1; + */ + public Builder clearAcc() { + if (accBuilder_ == null) { + acc_ = null; + onChanged(); + } else { + acc_ = null; + accBuilder_ = null; + } + + return this; + } + + /** + * .Account acc = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getAccBuilder() { + + onChanged(); + return getAccFieldBuilder().getBuilder(); + } + + /** + * .Account acc = 1; + */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder() { + if (accBuilder_ != null) { + return accBuilder_.getMessageOrBuilder(); + } else { + return acc_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() + : acc_; + } + } + + /** + * .Account acc = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getAccFieldBuilder() { + if (accBuilder_ == null) { + accBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getAcc(), getParentForChildren(), isClean()); + acc_ = null; + } + return accBuilder_; + } + + private java.lang.Object label_ = ""; + + /** + * string label = 2; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string label = 2; + * + * @param value + * The label to set. + * + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @param value + * The bytes for label to set. + * + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletAccount) + } + + // @@protoc_insertion_point(class_scope:WalletAccount) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletAccount parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletAccount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletUnLockOrBuilder extends + // @@protoc_insertion_point(interface_extends:WalletUnLock) + com.google.protobuf.MessageOrBuilder { + + /** + * string passwd = 1; + * + * @return The passwd. + */ + java.lang.String getPasswd(); + + /** + * string passwd = 1; + * + * @return The bytes for passwd. + */ + com.google.protobuf.ByteString getPasswdBytes(); + + /** + * int64 timeout = 2; + * + * @return The timeout. + */ + long getTimeout(); + + /** + * bool walletOrTicket = 3; + * + * @return The walletOrTicket. + */ + boolean getWalletOrTicket(); + } + + /** + *
+     *钱包解锁
+     * 	 passwd : 钱包密码
+     *	 timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
+     *	 walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
+     * 
+ * + * Protobuf type {@code WalletUnLock} + */ + public static final class WalletUnLock extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WalletUnLock) + WalletUnLockOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WalletUnLock.newBuilder() to construct. + private WalletUnLock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WalletUnLock() { + passwd_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WalletUnLock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WalletUnLock(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + passwd_ = s; + break; + } + case 16: { + + timeout_ = input.readInt64(); + break; + } + case 24: { + + walletOrTicket_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.Builder.class); + } + + public static final int PASSWD_FIELD_NUMBER = 1; + private volatile java.lang.Object passwd_; + + /** + * string passwd = 1; + * + * @return The passwd. + */ + @java.lang.Override + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } + } + + /** + * string passwd = 1; + * + * @return The bytes for passwd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_FIELD_NUMBER = 2; + private long timeout_; + + /** + * int64 timeout = 2; + * + * @return The timeout. + */ + @java.lang.Override + public long getTimeout() { + return timeout_; + } + + public static final int WALLETORTICKET_FIELD_NUMBER = 3; + private boolean walletOrTicket_; + + /** + * bool walletOrTicket = 3; + * + * @return The walletOrTicket. + */ + @java.lang.Override + public boolean getWalletOrTicket() { + return walletOrTicket_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPasswdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, passwd_); + } + if (timeout_ != 0L) { + output.writeInt64(2, timeout_); + } + if (walletOrTicket_ != false) { + output.writeBool(3, walletOrTicket_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getPasswdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, passwd_); + } + if (timeout_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, timeout_); + } + if (walletOrTicket_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, walletOrTicket_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) obj; + + if (!getPasswd().equals(other.getPasswd())) + return false; + if (getTimeout() != other.getTimeout()) + return false; + if (getWalletOrTicket() != other.getWalletOrTicket()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PASSWD_FIELD_NUMBER; + hash = (53 * hash) + getPasswd().hashCode(); + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeout()); + hash = (37 * hash) + WALLETORTICKET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWalletOrTicket()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *钱包解锁
+         * 	 passwd : 钱包密码
+         *	 timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
+         *	 walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
+         * 
+ * + * Protobuf type {@code WalletUnLock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WalletUnLock) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + passwd_ = ""; + + timeout_ = 0L; + + walletOrTicket_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock( + this); + result.passwd_ = passwd_; + result.timeout_ = timeout_; + result.walletOrTicket_ = walletOrTicket_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.getDefaultInstance()) + return this; + if (!other.getPasswd().isEmpty()) { + passwd_ = other.passwd_; + onChanged(); + } + if (other.getTimeout() != 0L) { + setTimeout(other.getTimeout()); + } + if (other.getWalletOrTicket() != false) { + setWalletOrTicket(other.getWalletOrTicket()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object passwd_ = ""; + + /** + * string passwd = 1; + * + * @return The passwd. + */ + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string passwd = 1; + * + * @return The bytes for passwd. + */ + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string passwd = 1; + * + * @param value + * The passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswd(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + passwd_ = value; + onChanged(); + return this; + } + + /** + * string passwd = 1; + * + * @return This builder for chaining. + */ + public Builder clearPasswd() { + + passwd_ = getDefaultInstance().getPasswd(); + onChanged(); + return this; + } + + /** + * string passwd = 1; + * + * @param value + * The bytes for passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + passwd_ = value; + onChanged(); + return this; + } + + private long timeout_; + + /** + * int64 timeout = 2; + * + * @return The timeout. + */ + @java.lang.Override + public long getTimeout() { + return timeout_; + } + + /** + * int64 timeout = 2; + * + * @param value + * The timeout to set. + * + * @return This builder for chaining. + */ + public Builder setTimeout(long value) { + + timeout_ = value; + onChanged(); + return this; + } + + /** + * int64 timeout = 2; + * + * @return This builder for chaining. + */ + public Builder clearTimeout() { + + timeout_ = 0L; + onChanged(); + return this; + } + + private boolean walletOrTicket_; + + /** + * bool walletOrTicket = 3; + * + * @return The walletOrTicket. + */ + @java.lang.Override + public boolean getWalletOrTicket() { + return walletOrTicket_; + } + + /** + * bool walletOrTicket = 3; + * + * @param value + * The walletOrTicket to set. + * + * @return This builder for chaining. + */ + public Builder setWalletOrTicket(boolean value) { + + walletOrTicket_ = value; + onChanged(); + return this; + } + + /** + * bool walletOrTicket = 3; + * + * @return This builder for chaining. + */ + public Builder clearWalletOrTicket() { + + walletOrTicket_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:WalletUnLock) + } + + // @@protoc_insertion_point(class_scope:WalletUnLock) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WalletUnLock parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletUnLock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenSeedLangOrBuilder extends + // @@protoc_insertion_point(interface_extends:GenSeedLang) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 lang = 1; + * + * @return The lang. + */ + int getLang(); + } + + /** + * Protobuf type {@code GenSeedLang} + */ + public static final class GenSeedLang extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:GenSeedLang) + GenSeedLangOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenSeedLang.newBuilder() to construct. + private GenSeedLang(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenSeedLang() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenSeedLang(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GenSeedLang(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + lang_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.Builder.class); + } + + public static final int LANG_FIELD_NUMBER = 1; + private int lang_; + + /** + * int32 lang = 1; + * + * @return The lang. + */ + @java.lang.Override + public int getLang() { + return lang_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (lang_ != 0) { + output.writeInt32(1, lang_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (lang_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, lang_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) obj; + + if (getLang() != other.getLang()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LANG_FIELD_NUMBER; + hash = (53 * hash) + getLang(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 GenSeedLang} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:GenSeedLang) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLangOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + lang_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang( + this); + result.lang_ = lang_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.getDefaultInstance()) + return this; + if (other.getLang() != 0) { + setLang(other.getLang()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int lang_; + + /** + * int32 lang = 1; + * + * @return The lang. + */ + @java.lang.Override + public int getLang() { + return lang_; + } + + /** + * int32 lang = 1; + * + * @param value + * The lang to set. + * + * @return This builder for chaining. + */ + public Builder setLang(int value) { + + lang_ = value; + onChanged(); + return this; + } + + /** + * int32 lang = 1; + * + * @return This builder for chaining. + */ + public Builder clearLang() { + + lang_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:GenSeedLang) + } + + // @@protoc_insertion_point(class_scope:GenSeedLang) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenSeedLang parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenSeedLang(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetSeedByPwOrBuilder extends + // @@protoc_insertion_point(interface_extends:GetSeedByPw) + com.google.protobuf.MessageOrBuilder { + + /** + * string passwd = 1; + * + * @return The passwd. + */ + java.lang.String getPasswd(); + + /** + * string passwd = 1; + * + * @return The bytes for passwd. + */ + com.google.protobuf.ByteString getPasswdBytes(); + } + + /** + * Protobuf type {@code GetSeedByPw} + */ + public static final class GetSeedByPw extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:GetSeedByPw) + GetSeedByPwOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetSeedByPw.newBuilder() to construct. + private GetSeedByPw(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSeedByPw() { + passwd_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSeedByPw(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetSeedByPw(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + passwd_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.Builder.class); + } + + public static final int PASSWD_FIELD_NUMBER = 1; + private volatile java.lang.Object passwd_; + + /** + * string passwd = 1; + * + * @return The passwd. + */ + @java.lang.Override + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } + } + + /** + * string passwd = 1; + * + * @return The bytes for passwd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPasswdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, passwd_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getPasswdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, passwd_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) obj; + + if (!getPasswd().equals(other.getPasswd())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PASSWD_FIELD_NUMBER; + hash = (53 * hash) + getPasswd().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 GetSeedByPw} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:GetSeedByPw) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPwOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + passwd_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw( + this); + result.passwd_ = passwd_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.getDefaultInstance()) + return this; + if (!other.getPasswd().isEmpty()) { + passwd_ = other.passwd_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object passwd_ = ""; + + /** + * string passwd = 1; + * + * @return The passwd. + */ + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string passwd = 1; + * + * @return The bytes for passwd. + */ + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string passwd = 1; + * + * @param value + * The passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswd(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + passwd_ = value; + onChanged(); + return this; + } + + /** + * string passwd = 1; + * + * @return This builder for chaining. + */ + public Builder clearPasswd() { + + passwd_ = getDefaultInstance().getPasswd(); + onChanged(); + return this; + } + + /** + * string passwd = 1; + * + * @param value + * The bytes for passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + passwd_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:GetSeedByPw) + } + + // @@protoc_insertion_point(class_scope:GetSeedByPw) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSeedByPw parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSeedByPw(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SaveSeedByPwOrBuilder extends + // @@protoc_insertion_point(interface_extends:SaveSeedByPw) + com.google.protobuf.MessageOrBuilder { + + /** + * string seed = 1; + * + * @return The seed. + */ + java.lang.String getSeed(); + + /** + * string seed = 1; + * + * @return The bytes for seed. + */ + com.google.protobuf.ByteString getSeedBytes(); + + /** + * string passwd = 2; + * + * @return The passwd. + */ + java.lang.String getPasswd(); + + /** + * string passwd = 2; + * + * @return The bytes for passwd. + */ + com.google.protobuf.ByteString getPasswdBytes(); + } + + /** + *
+     *存储钱包的种子
+     * 	 seed : 钱包种子
+     *	 passwd :钱包密码
+     * 
+ * + * Protobuf type {@code SaveSeedByPw} + */ + public static final class SaveSeedByPw extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:SaveSeedByPw) + SaveSeedByPwOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SaveSeedByPw.newBuilder() to construct. + private SaveSeedByPw(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SaveSeedByPw() { + seed_ = ""; + passwd_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SaveSeedByPw(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SaveSeedByPw(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + seed_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + passwd_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.Builder.class); + } + + public static final int SEED_FIELD_NUMBER = 1; + private volatile java.lang.Object seed_; + + /** + * string seed = 1; + * + * @return The seed. + */ + @java.lang.Override + public java.lang.String getSeed() { + java.lang.Object ref = seed_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + seed_ = s; + return s; + } + } + + /** + * string seed = 1; + * + * @return The bytes for seed. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeedBytes() { + java.lang.Object ref = seed_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + seed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWD_FIELD_NUMBER = 2; + private volatile java.lang.Object passwd_; + + /** + * string passwd = 2; + * + * @return The passwd. + */ + @java.lang.Override + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } + } + + /** + * string passwd = 2; + * + * @return The bytes for passwd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSeedBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, seed_); + } + if (!getPasswdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwd_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSeedBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, seed_); + } + if (!getPasswdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwd_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) obj; + + if (!getSeed().equals(other.getSeed())) + return false; + if (!getPasswd().equals(other.getPasswd())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEED_FIELD_NUMBER; + hash = (53 * hash) + getSeed().hashCode(); + hash = (37 * hash) + PASSWD_FIELD_NUMBER; + hash = (53 * hash) + getPasswd().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *存储钱包的种子
+         * 	 seed : 钱包种子
+         *	 passwd :钱包密码
+         * 
+ * + * Protobuf type {@code SaveSeedByPw} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:SaveSeedByPw) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPwOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + seed_ = ""; + + passwd_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw( + this); + result.seed_ = seed_; + result.passwd_ = passwd_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.getDefaultInstance()) + return this; + if (!other.getSeed().isEmpty()) { + seed_ = other.seed_; + onChanged(); + } + if (!other.getPasswd().isEmpty()) { + passwd_ = other.passwd_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object seed_ = ""; + + /** + * string seed = 1; + * + * @return The seed. + */ + public java.lang.String getSeed() { + java.lang.Object ref = seed_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + seed_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string seed = 1; + * + * @return The bytes for seed. + */ + public com.google.protobuf.ByteString getSeedBytes() { + java.lang.Object ref = seed_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + seed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string seed = 1; + * + * @param value + * The seed to set. + * + * @return This builder for chaining. + */ + public Builder setSeed(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + seed_ = value; + onChanged(); + return this; + } + + /** + * string seed = 1; + * + * @return This builder for chaining. + */ + public Builder clearSeed() { + + seed_ = getDefaultInstance().getSeed(); + onChanged(); + return this; + } + + /** + * string seed = 1; + * + * @param value + * The bytes for seed to set. + * + * @return This builder for chaining. + */ + public Builder setSeedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + seed_ = value; + onChanged(); + return this; + } + + private java.lang.Object passwd_ = ""; + + /** + * string passwd = 2; + * + * @return The passwd. + */ + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string passwd = 2; + * + * @return The bytes for passwd. + */ + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string passwd = 2; + * + * @param value + * The passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswd(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + passwd_ = value; + onChanged(); + return this; + } + + /** + * string passwd = 2; + * + * @return This builder for chaining. + */ + public Builder clearPasswd() { + + passwd_ = getDefaultInstance().getPasswd(); + onChanged(); + return this; + } + + /** + * string passwd = 2; + * + * @param value + * The bytes for passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + passwd_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:SaveSeedByPw) + } + + // @@protoc_insertion_point(class_scope:SaveSeedByPw) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaveSeedByPw parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaveSeedByPw(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplySeedOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplySeed) + com.google.protobuf.MessageOrBuilder { + + /** + * string seed = 1; + * + * @return The seed. + */ + java.lang.String getSeed(); + + /** + * string seed = 1; + * + * @return The bytes for seed. + */ + com.google.protobuf.ByteString getSeedBytes(); + } + + /** + * Protobuf type {@code ReplySeed} + */ + public static final class ReplySeed extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplySeed) + ReplySeedOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplySeed.newBuilder() to construct. + private ReplySeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplySeed() { + seed_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplySeed(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReplySeed(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + seed_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.Builder.class); + } + + public static final int SEED_FIELD_NUMBER = 1; + private volatile java.lang.Object seed_; + + /** + * string seed = 1; + * + * @return The seed. + */ + @java.lang.Override + public java.lang.String getSeed() { + java.lang.Object ref = seed_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + seed_ = s; + return s; + } + } + + /** + * string seed = 1; + * + * @return The bytes for seed. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeedBytes() { + java.lang.Object ref = seed_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + seed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSeedBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, seed_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getSeedBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, seed_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed) obj; + + if (!getSeed().equals(other.getSeed())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEED_FIELD_NUMBER; + hash = (53 * hash) + getSeed().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReplySeed} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplySeed) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + seed_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed( + this); + result.seed_ = seed_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance()) + return this; + if (!other.getSeed().isEmpty()) { + seed_ = other.seed_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object seed_ = ""; + + /** + * string seed = 1; + * + * @return The seed. + */ + public java.lang.String getSeed() { + java.lang.Object ref = seed_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + seed_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string seed = 1; + * + * @return The bytes for seed. + */ + public com.google.protobuf.ByteString getSeedBytes() { + java.lang.Object ref = seed_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + seed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string seed = 1; + * + * @param value + * The seed to set. + * + * @return This builder for chaining. + */ + public Builder setSeed(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + seed_ = value; + onChanged(); + return this; + } + + /** + * string seed = 1; + * + * @return This builder for chaining. + */ + public Builder clearSeed() { + + seed_ = getDefaultInstance().getSeed(); + onChanged(); + return this; + } + + /** + * string seed = 1; + * + * @param value + * The bytes for seed to set. + * + * @return This builder for chaining. + */ + public Builder setSeedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + seed_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReplySeed) + } + + // @@protoc_insertion_point(class_scope:ReplySeed) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplySeed parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplySeed(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqWalletSetPasswdOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqWalletSetPasswd) + com.google.protobuf.MessageOrBuilder { + + /** + * string oldPass = 1; + * + * @return The oldPass. + */ + java.lang.String getOldPass(); + + /** + * string oldPass = 1; + * + * @return The bytes for oldPass. + */ + com.google.protobuf.ByteString getOldPassBytes(); + + /** + * string newPass = 2; + * + * @return The newPass. + */ + java.lang.String getNewPass(); + + /** + * string newPass = 2; + * + * @return The bytes for newPass. + */ + com.google.protobuf.ByteString getNewPassBytes(); + } + + /** + * Protobuf type {@code ReqWalletSetPasswd} + */ + public static final class ReqWalletSetPasswd extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqWalletSetPasswd) + ReqWalletSetPasswdOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqWalletSetPasswd.newBuilder() to construct. + private ReqWalletSetPasswd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqWalletSetPasswd() { + oldPass_ = ""; + newPass_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqWalletSetPasswd(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqWalletSetPasswd(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + oldPass_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + newPass_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.Builder.class); + } + + public static final int OLDPASS_FIELD_NUMBER = 1; + private volatile java.lang.Object oldPass_; + + /** + * string oldPass = 1; + * + * @return The oldPass. + */ + @java.lang.Override + public java.lang.String getOldPass() { + java.lang.Object ref = oldPass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldPass_ = s; + return s; + } + } + + /** + * string oldPass = 1; + * + * @return The bytes for oldPass. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldPassBytes() { + java.lang.Object ref = oldPass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldPass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEWPASS_FIELD_NUMBER = 2; + private volatile java.lang.Object newPass_; + + /** + * string newPass = 2; + * + * @return The newPass. + */ + @java.lang.Override + public java.lang.String getNewPass() { + java.lang.Object ref = newPass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newPass_ = s; + return s; + } + } + + /** + * string newPass = 2; + * + * @return The bytes for newPass. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewPassBytes() { + java.lang.Object ref = newPass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newPass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getOldPassBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oldPass_); + } + if (!getNewPassBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newPass_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getOldPassBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oldPass_); + } + if (!getNewPassBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newPass_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) obj; + + if (!getOldPass().equals(other.getOldPass())) + return false; + if (!getNewPass().equals(other.getNewPass())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OLDPASS_FIELD_NUMBER; + hash = (53 * hash) + getOldPass().hashCode(); + hash = (37 * hash) + NEWPASS_FIELD_NUMBER; + hash = (53 * hash) + getNewPass().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqWalletSetPasswd} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqWalletSetPasswd) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + oldPass_ = ""; + + newPass_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd( + this); + result.oldPass_ = oldPass_; + result.newPass_ = newPass_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.getDefaultInstance()) + return this; + if (!other.getOldPass().isEmpty()) { + oldPass_ = other.oldPass_; + onChanged(); + } + if (!other.getNewPass().isEmpty()) { + newPass_ = other.newPass_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object oldPass_ = ""; + + /** + * string oldPass = 1; + * + * @return The oldPass. + */ + public java.lang.String getOldPass() { + java.lang.Object ref = oldPass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldPass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string oldPass = 1; + * + * @return The bytes for oldPass. + */ + public com.google.protobuf.ByteString getOldPassBytes() { + java.lang.Object ref = oldPass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + oldPass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string oldPass = 1; + * + * @param value + * The oldPass to set. + * + * @return This builder for chaining. + */ + public Builder setOldPass(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + oldPass_ = value; + onChanged(); + return this; + } + + /** + * string oldPass = 1; + * + * @return This builder for chaining. + */ + public Builder clearOldPass() { + + oldPass_ = getDefaultInstance().getOldPass(); + onChanged(); + return this; + } + + /** + * string oldPass = 1; + * + * @param value + * The bytes for oldPass to set. + * + * @return This builder for chaining. + */ + public Builder setOldPassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + oldPass_ = value; + onChanged(); + return this; + } + + private java.lang.Object newPass_ = ""; + + /** + * string newPass = 2; + * + * @return The newPass. + */ + public java.lang.String getNewPass() { + java.lang.Object ref = newPass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newPass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string newPass = 2; + * + * @return The bytes for newPass. + */ + public com.google.protobuf.ByteString getNewPassBytes() { + java.lang.Object ref = newPass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + newPass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string newPass = 2; + * + * @param value + * The newPass to set. + * + * @return This builder for chaining. + */ + public Builder setNewPass(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + newPass_ = value; + onChanged(); + return this; + } + + /** + * string newPass = 2; + * + * @return This builder for chaining. + */ + public Builder clearNewPass() { + + newPass_ = getDefaultInstance().getNewPass(); + onChanged(); + return this; + } + + /** + * string newPass = 2; + * + * @param value + * The bytes for newPass to set. + * + * @return This builder for chaining. + */ + public Builder setNewPassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + newPass_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqWalletSetPasswd) + } + + // @@protoc_insertion_point(class_scope:ReqWalletSetPasswd) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqWalletSetPasswd parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqWalletSetPasswd(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqNewAccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqNewAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * string label = 1; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * string label = 1; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + } + + /** + * Protobuf type {@code ReqNewAccount} + */ + public static final class ReqNewAccount extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqNewAccount) + ReqNewAccountOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqNewAccount.newBuilder() to construct. + private ReqNewAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqNewAccount() { + label_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqNewAccount(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqNewAccount(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.Builder.class); + } + + public static final int LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object label_; + + /** + * string label = 1; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * string label = 1; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) obj; + + if (!getLabel().equals(other.getLabel())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqNewAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqNewAccount) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + label_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount( + this); + result.label_ = label_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.getDefaultInstance()) + return this; + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object label_ = ""; + + /** + * string label = 1; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string label = 1; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string label = 1; + * + * @param value + * The label to set. + * + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + + /** + * string label = 1; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + + /** + * string label = 1; + * + * @param value + * The bytes for label to set. + * + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqNewAccount) + } + + // @@protoc_insertion_point(class_scope:ReqNewAccount) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqNewAccount parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqNewAccount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqGetAccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqGetAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * string label = 1; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * string label = 1; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + } + + /** + *
+     * 根据label获取账户地址
+     * 
+ * + * Protobuf type {@code ReqGetAccount} + */ + public static final class ReqGetAccount extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqGetAccount) + ReqGetAccountOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqGetAccount.newBuilder() to construct. + private ReqGetAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqGetAccount() { + label_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqGetAccount(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqGetAccount(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.Builder.class); + } + + public static final int LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object label_; + + /** + * string label = 1; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * string label = 1; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) obj; + + if (!getLabel().equals(other.getLabel())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         * 根据label获取账户地址
+         * 
+ * + * Protobuf type {@code ReqGetAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqGetAccount) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + label_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount( + this); + result.label_ = label_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.getDefaultInstance()) + return this; + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object label_ = ""; + + /** + * string label = 1; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string label = 1; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string label = 1; + * + * @param value + * The label to set. + * + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + + /** + * string label = 1; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + + /** + * string label = 1; + * + * @param value + * The bytes for label to set. + * + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqGetAccount) + } + + // @@protoc_insertion_point(class_scope:ReqGetAccount) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqGetAccount parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqGetAccount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqWalletTransactionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqWalletTransactionList) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes fromTx = 1; + * + * @return The fromTx. + */ + com.google.protobuf.ByteString getFromTx(); + + /** + * int32 count = 2; + * + * @return The count. + */ + int getCount(); + + /** + * int32 direction = 3; + * + * @return The direction. + */ + int getDirection(); + } + + /** + *
+     *获取钱包交易的详细信息
+     * 	 fromTx : []byte( Sprintf("%018d", height*100000 + index),
+     *				表示从高度 height 中的 index 开始获取交易列表;
+     *			    第一次传参为空,获取最新的交易。)
+     *	 count :获取交易列表的个数。
+     *	 direction :查找方式;0,上一页;1,下一页。
+     * 
+ * + * Protobuf type {@code ReqWalletTransactionList} + */ + public static final class ReqWalletTransactionList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqWalletTransactionList) + ReqWalletTransactionListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqWalletTransactionList.newBuilder() to construct. + private ReqWalletTransactionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqWalletTransactionList() { + fromTx_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqWalletTransactionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqWalletTransactionList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + fromTx_ = input.readBytes(); + break; + } + case 16: { + + count_ = input.readInt32(); + break; + } + case 24: { + + direction_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.Builder.class); + } + + public static final int FROMTX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString fromTx_; + + /** + * bytes fromTx = 1; + * + * @return The fromTx. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFromTx() { + return fromTx_; + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_; + + /** + * int32 count = 2; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + public static final int DIRECTION_FIELD_NUMBER = 3; + private int direction_; + + /** + * int32 direction = 3; + * + * @return The direction. + */ + @java.lang.Override + public int getDirection() { + return direction_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!fromTx_.isEmpty()) { + output.writeBytes(1, fromTx_); + } + if (count_ != 0) { + output.writeInt32(2, count_); + } + if (direction_ != 0) { + output.writeInt32(3, direction_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!fromTx_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, fromTx_); + } + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, count_); + } + if (direction_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, direction_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) obj; + + if (!getFromTx().equals(other.getFromTx())) + return false; + if (getCount() != other.getCount()) + return false; + if (getDirection() != other.getDirection()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROMTX_FIELD_NUMBER; + hash = (53 * hash) + getFromTx().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getDirection(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *获取钱包交易的详细信息
+         * 	 fromTx : []byte( Sprintf("%018d", height*100000 + index),
+         *				表示从高度 height 中的 index 开始获取交易列表;
+         *			    第一次传参为空,获取最新的交易。)
+         *	 count :获取交易列表的个数。
+         *	 direction :查找方式;0,上一页;1,下一页。
+         * 
+ * + * Protobuf type {@code ReqWalletTransactionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqWalletTransactionList) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + fromTx_ = com.google.protobuf.ByteString.EMPTY; + + count_ = 0; + + direction_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList( + this); + result.fromTx_ = fromTx_; + result.count_ = count_; + result.direction_ = direction_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList + .getDefaultInstance()) + return this; + if (other.getFromTx() != com.google.protobuf.ByteString.EMPTY) { + setFromTx(other.getFromTx()); + } + if (other.getCount() != 0) { + setCount(other.getCount()); + } + if (other.getDirection() != 0) { + setDirection(other.getDirection()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString fromTx_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes fromTx = 1; + * + * @return The fromTx. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFromTx() { + return fromTx_; + } + + /** + * bytes fromTx = 1; + * + * @param value + * The fromTx to set. + * + * @return This builder for chaining. + */ + public Builder setFromTx(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + fromTx_ = value; + onChanged(); + return this; + } + + /** + * bytes fromTx = 1; + * + * @return This builder for chaining. + */ + public Builder clearFromTx() { + + fromTx_ = getDefaultInstance().getFromTx(); + onChanged(); + return this; + } + + private int count_; + + /** + * int32 count = 2; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + /** + * int32 count = 2; + * + * @param value + * The count to set. + * + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + + /** + * int32 count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0; + onChanged(); + return this; + } + + private int direction_; + + /** + * int32 direction = 3; + * + * @return The direction. + */ + @java.lang.Override + public int getDirection() { + return direction_; + } + + /** + * int32 direction = 3; + * + * @param value + * The direction to set. + * + * @return This builder for chaining. + */ + public Builder setDirection(int value) { + + direction_ = value; + onChanged(); + return this; + } + + /** + * int32 direction = 3; + * + * @return This builder for chaining. + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqWalletTransactionList) + } + + // @@protoc_insertion_point(class_scope:ReqWalletTransactionList) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqWalletTransactionList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqWalletTransactionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqWalletImportPrivkeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqWalletImportPrivkey) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * bitcoin 的私钥格式
+         * 
+ * + * string privkey = 1; + * + * @return The privkey. + */ + java.lang.String getPrivkey(); + + /** + *
+         * bitcoin 的私钥格式
+         * 
+ * + * string privkey = 1; + * + * @return The bytes for privkey. + */ + com.google.protobuf.ByteString getPrivkeyBytes(); + + /** + * string label = 2; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * string label = 2; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + } + + /** + * Protobuf type {@code ReqWalletImportPrivkey} + */ + public static final class ReqWalletImportPrivkey extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqWalletImportPrivkey) + ReqWalletImportPrivkeyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqWalletImportPrivkey.newBuilder() to construct. + private ReqWalletImportPrivkey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqWalletImportPrivkey() { + privkey_ = ""; + label_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqWalletImportPrivkey(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqWalletImportPrivkey(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + privkey_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.Builder.class); + } + + public static final int PRIVKEY_FIELD_NUMBER = 1; + private volatile java.lang.Object privkey_; + + /** + *
+         * bitcoin 的私钥格式
+         * 
+ * + * string privkey = 1; + * + * @return The privkey. + */ + @java.lang.Override + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } + } + + /** + *
+         * bitcoin 的私钥格式
+         * 
+ * + * string privkey = 1; + * + * @return The bytes for privkey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + private volatile java.lang.Object label_; + + /** + * string label = 2; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPrivkeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privkey_); + } + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getPrivkeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privkey_); + } + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) obj; + + if (!getPrivkey().equals(other.getPrivkey())) + return false; + if (!getLabel().equals(other.getLabel())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivkey().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqWalletImportPrivkey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqWalletImportPrivkey) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + privkey_ = ""; + + label_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey( + this); + result.privkey_ = privkey_; + result.label_ = label_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey + .getDefaultInstance()) + return this; + if (!other.getPrivkey().isEmpty()) { + privkey_ = other.privkey_; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object privkey_ = ""; + + /** + *
+             * bitcoin 的私钥格式
+             * 
+ * + * string privkey = 1; + * + * @return The privkey. + */ + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * bitcoin 的私钥格式
+             * 
+ * + * string privkey = 1; + * + * @return The bytes for privkey. + */ + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * bitcoin 的私钥格式
+             * 
+ * + * string privkey = 1; + * + * @param value + * The privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privkey_ = value; + onChanged(); + return this; + } + + /** + *
+             * bitcoin 的私钥格式
+             * 
+ * + * string privkey = 1; + * + * @return This builder for chaining. + */ + public Builder clearPrivkey() { + + privkey_ = getDefaultInstance().getPrivkey(); + onChanged(); + return this; + } + + /** + *
+             * bitcoin 的私钥格式
+             * 
+ * + * string privkey = 1; + * + * @param value + * The bytes for privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privkey_ = value; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * string label = 2; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string label = 2; + * + * @param value + * The label to set. + * + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @param value + * The bytes for label to set. + * + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqWalletImportPrivkey) + } + + // @@protoc_insertion_point(class_scope:ReqWalletImportPrivkey) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqWalletImportPrivkey parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqWalletImportPrivkey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqWalletSendToAddressOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqWalletSendToAddress) + com.google.protobuf.MessageOrBuilder { + + /** + * string from = 1; + * + * @return The from. + */ + java.lang.String getFrom(); + + /** + * string from = 1; + * + * @return The bytes for from. + */ + com.google.protobuf.ByteString getFromBytes(); + + /** + * string to = 2; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + * string to = 2; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + + /** + * int64 amount = 3; + * + * @return The amount. + */ + long getAmount(); + + /** + * string note = 4; + * + * @return The note. + */ + java.lang.String getNote(); + + /** + * string note = 4; + * + * @return The bytes for note. + */ + com.google.protobuf.ByteString getNoteBytes(); + + /** + * bool isToken = 5; + * + * @return The isToken. + */ + boolean getIsToken(); + + /** + * string tokenSymbol = 6; + * + * @return The tokenSymbol. + */ + java.lang.String getTokenSymbol(); + + /** + * string tokenSymbol = 6; + * + * @return The bytes for tokenSymbol. + */ + com.google.protobuf.ByteString getTokenSymbolBytes(); + } + + /** + *
+     *发送交易
+     * 	 from : 打出地址
+     *	 to :接受地址
+     * 	 amount : 转账额度
+     *	 note :转账备注
+     * 
+ * + * Protobuf type {@code ReqWalletSendToAddress} + */ + public static final class ReqWalletSendToAddress extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqWalletSendToAddress) + ReqWalletSendToAddressOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqWalletSendToAddress.newBuilder() to construct. + private ReqWalletSendToAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqWalletSendToAddress() { + from_ = ""; + to_ = ""; + note_ = ""; + tokenSymbol_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqWalletSendToAddress(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqWalletSendToAddress(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + from_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 24: { + + amount_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + case 40: { + + isToken_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + tokenSymbol_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.Builder.class); + } + + public static final int FROM_FIELD_NUMBER = 1; + private volatile java.lang.Object from_; + + /** + * string from = 1; + * + * @return The from. + */ + @java.lang.Override + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } + } + + /** + * string from = 1; + * + * @return The bytes for from. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TO_FIELD_NUMBER = 2; + private volatile java.lang.Object to_; + + /** + * string to = 2; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + + /** + * string to = 2; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + private long amount_; + + /** + * int64 amount = 3; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int NOTE_FIELD_NUMBER = 4; + private volatile java.lang.Object note_; + + /** + * string note = 4; + * + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + + /** + * string note = 4; + * + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISTOKEN_FIELD_NUMBER = 5; + private boolean isToken_; + + /** + * bool isToken = 5; + * + * @return The isToken. + */ + @java.lang.Override + public boolean getIsToken() { + return isToken_; + } + + public static final int TOKENSYMBOL_FIELD_NUMBER = 6; + private volatile java.lang.Object tokenSymbol_; + + /** + * string tokenSymbol = 6; + * + * @return The tokenSymbol. + */ + @java.lang.Override + public java.lang.String getTokenSymbol() { + java.lang.Object ref = tokenSymbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenSymbol_ = s; + return s; + } + } + + /** + * string tokenSymbol = 6; + * + * @return The bytes for tokenSymbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenSymbolBytes() { + java.lang.Object ref = tokenSymbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenSymbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getFromBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, from_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, to_); + } + if (amount_ != 0L) { + output.writeInt64(3, amount_); + } + if (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, note_); + } + if (isToken_ != false) { + output.writeBool(5, isToken_); + } + if (!getTokenSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tokenSymbol_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getFromBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, from_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, to_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, amount_); + } + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, note_); + } + if (isToken_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isToken_); + } + if (!getTokenSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tokenSymbol_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) obj; + + if (!getFrom().equals(other.getFrom())) + return false; + if (!getTo().equals(other.getTo())) + return false; + if (getAmount() != other.getAmount()) + return false; + if (!getNote().equals(other.getNote())) + return false; + if (getIsToken() != other.getIsToken()) + return false; + if (!getTokenSymbol().equals(other.getTokenSymbol())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + ISTOKEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsToken()); + hash = (37 * hash) + TOKENSYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getTokenSymbol().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } + + /** + *
+         *发送交易
+         * 	 from : 打出地址
+         *	 to :接受地址
+         * 	 amount : 转账额度
+         *	 note :转账备注
+         * 
+ * + * Protobuf type {@code ReqWalletSendToAddress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqWalletSendToAddress) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + from_ = ""; + + to_ = ""; + + amount_ = 0L; + + note_ = ""; + + isToken_ = false; + + tokenSymbol_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress( + this); + result.from_ = from_; + result.to_ = to_; + result.amount_ = amount_; + result.note_ = note_; + result.isToken_ = isToken_; + result.tokenSymbol_ = tokenSymbol_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress + .getDefaultInstance()) + return this; + if (!other.getFrom().isEmpty()) { + from_ = other.from_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + if (other.getIsToken() != false) { + setIsToken(other.getIsToken()); + } + if (!other.getTokenSymbol().isEmpty()) { + tokenSymbol_ = other.tokenSymbol_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object from_ = ""; + + /** + * string from = 1; + * + * @return The from. + */ + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string from = 1; + * + * @return The bytes for from. + */ + public com.google.protobuf.ByteString getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string from = 1; + * + * @param value + * The from to set. + * + * @return This builder for chaining. + */ + public Builder setFrom(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + + /** + * string from = 1; + * + * @return This builder for chaining. + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + /** + * string from = 1; + * + * @param value + * The bytes for from to set. + * + * @return This builder for chaining. + */ + public Builder setFromBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + from_ = value; + onChanged(); + return this; + } + + private java.lang.Object to_ = ""; + + /** + * string to = 2; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string to = 2; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string to = 2; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + + /** + * string to = 2; + * + * @return This builder for chaining. + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + /** + * string to = 2; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } + + private long amount_; + + /** + * int64 amount = 3; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 3; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 3; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object note_ = ""; + + /** + * string note = 4; + * + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string note = 4; + * + * @return The bytes for note. + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string note = 4; + * + * @param value + * The note to set. + * + * @return This builder for chaining. + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + + /** + * string note = 4; + * + * @return This builder for chaining. + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + + /** + * string note = 4; + * + * @param value + * The bytes for note to set. + * + * @return This builder for chaining. + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + + private boolean isToken_; + + /** + * bool isToken = 5; + * + * @return The isToken. + */ + @java.lang.Override + public boolean getIsToken() { + return isToken_; + } + + /** + * bool isToken = 5; + * + * @param value + * The isToken to set. + * + * @return This builder for chaining. + */ + public Builder setIsToken(boolean value) { + + isToken_ = value; + onChanged(); + return this; + } + + /** + * bool isToken = 5; + * + * @return This builder for chaining. + */ + public Builder clearIsToken() { + + isToken_ = false; + onChanged(); + return this; + } + + private java.lang.Object tokenSymbol_ = ""; + + /** + * string tokenSymbol = 6; + * + * @return The tokenSymbol. + */ + public java.lang.String getTokenSymbol() { + java.lang.Object ref = tokenSymbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenSymbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string tokenSymbol = 6; + * + * @return The bytes for tokenSymbol. + */ + public com.google.protobuf.ByteString getTokenSymbolBytes() { + java.lang.Object ref = tokenSymbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tokenSymbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string tokenSymbol = 6; + * + * @param value + * The tokenSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setTokenSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tokenSymbol_ = value; + onChanged(); + return this; + } + + /** + * string tokenSymbol = 6; + * + * @return This builder for chaining. + */ + public Builder clearTokenSymbol() { + + tokenSymbol_ = getDefaultInstance().getTokenSymbol(); + onChanged(); + return this; + } + + /** + * string tokenSymbol = 6; + * + * @param value + * The bytes for tokenSymbol to set. + * + * @return This builder for chaining. + */ + public Builder setTokenSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tokenSymbol_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqWalletSendToAddress) + } + + // @@protoc_insertion_point(class_scope:ReqWalletSendToAddress) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqWalletSendToAddress parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqWalletSendToAddress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqWalletSetFeeOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqWalletSetFee) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 amount = 1; + * + * @return The amount. + */ + long getAmount(); + } + + /** + * Protobuf type {@code ReqWalletSetFee} + */ + public static final class ReqWalletSetFee extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqWalletSetFee) + ReqWalletSetFeeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqWalletSetFee.newBuilder() to construct. + private ReqWalletSetFee(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqWalletSetFee() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqWalletSetFee(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqWalletSetFee(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + amount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.Builder.class); + } + + public static final int AMOUNT_FIELD_NUMBER = 1; + private long amount_; + + /** + * int64 amount = 1; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (amount_ != 0L) { + output.writeInt64(1, amount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, amount_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) obj; + + if (getAmount() != other.getAmount()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqWalletSetFee} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqWalletSetFee) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFeeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + amount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee( + this); + result.amount_ = amount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.getDefaultInstance()) + return this; + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long amount_; + + /** + * int64 amount = 1; + * + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + /** + * int64 amount = 1; + * + * @param value + * The amount to set. + * + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + + /** + * int64 amount = 1; + * + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqWalletSetFee) + } + + // @@protoc_insertion_point(class_scope:ReqWalletSetFee) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqWalletSetFee parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqWalletSetFee(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqWalletSetLabelOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqWalletSetLabel) + com.google.protobuf.MessageOrBuilder { + + /** + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + * string label = 2; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * string label = 2; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + } + + /** + * Protobuf type {@code ReqWalletSetLabel} + */ + public static final class ReqWalletSetLabel extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqWalletSetLabel) + ReqWalletSetLabelOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqWalletSetLabel.newBuilder() to construct. + private ReqWalletSetLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqWalletSetLabel() { + addr_ = ""; + label_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqWalletSetLabel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqWalletSetLabel(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.Builder.class); + } + + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; + + /** + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + private volatile java.lang.Object label_; + + /** + * string label = 2; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (!getLabel().equals(other.getLabel())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqWalletSetLabel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqWalletSetLabel) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; + + label_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel( + this); + result.addr_ = addr_; + result.label_ = label_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object addr_ = ""; + + /** + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } + + /** + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { + + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } + + /** + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * string label = 2; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string label = 2; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string label = 2; + * + * @param value + * The label to set. + * + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + + /** + * string label = 2; + * + * @param value + * The bytes for label to set. + * + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqWalletSetLabel) + } + + // @@protoc_insertion_point(class_scope:ReqWalletSetLabel) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqWalletSetLabel parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqWalletSetLabel(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqWalletMergeBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqWalletMergeBalance) + com.google.protobuf.MessageOrBuilder { + + /** + * string to = 1; + * + * @return The to. + */ + java.lang.String getTo(); + + /** + * string to = 1; + * + * @return The bytes for to. + */ + com.google.protobuf.ByteString getToBytes(); + } + + /** + * Protobuf type {@code ReqWalletMergeBalance} + */ + public static final class ReqWalletMergeBalance extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqWalletMergeBalance) + ReqWalletMergeBalanceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqWalletMergeBalance.newBuilder() to construct. + private ReqWalletMergeBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqWalletMergeBalance() { + to_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqWalletMergeBalance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqWalletMergeBalance(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.Builder.class); + } + + public static final int TO_FIELD_NUMBER = 1; + private volatile java.lang.Object to_; + + /** + * string to = 1; + * + * @return The to. + */ + @java.lang.Override + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + + /** + * string to = 1; + * + * @return The bytes for to. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, to_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, to_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) obj; + + if (!getTo().equals(other.getTo())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqWalletMergeBalance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqWalletMergeBalance) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + to_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance( + this); + result.to_ = to_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance + .getDefaultInstance()) + return this; + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object to_ = ""; + + /** + * string to = 1; + * + * @return The to. + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string to = 1; + * + * @return The bytes for to. + */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string to = 1; + * + * @param value + * The to to set. + * + * @return This builder for chaining. + */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + + /** + * string to = 1; + * + * @return This builder for chaining. + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + /** + * string to = 1; + * + * @param value + * The bytes for to to set. + * + * @return This builder for chaining. + */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqWalletMergeBalance) + } + + // @@protoc_insertion_point(class_scope:ReqWalletMergeBalance) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqWalletMergeBalance parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqWalletMergeBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqTokenPreCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqTokenPreCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * string creator_addr = 1; + * + * @return The creatorAddr. + */ + java.lang.String getCreatorAddr(); + + /** + * string creator_addr = 1; + * + * @return The bytes for creatorAddr. + */ + com.google.protobuf.ByteString getCreatorAddrBytes(); + + /** + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string symbol = 3; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 3; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * string introduction = 4; + * + * @return The introduction. + */ + java.lang.String getIntroduction(); + + /** + * string introduction = 4; + * + * @return The bytes for introduction. + */ + com.google.protobuf.ByteString getIntroductionBytes(); + + /** + * string owner_addr = 5; + * + * @return The ownerAddr. + */ + java.lang.String getOwnerAddr(); + + /** + * string owner_addr = 5; + * + * @return The bytes for ownerAddr. + */ + com.google.protobuf.ByteString getOwnerAddrBytes(); + + /** + * int64 total = 6; + * + * @return The total. + */ + long getTotal(); + + /** + * int64 price = 7; + * + * @return The price. + */ + long getPrice(); + } + + /** + * Protobuf type {@code ReqTokenPreCreate} + */ + public static final class ReqTokenPreCreate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqTokenPreCreate) + ReqTokenPreCreateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqTokenPreCreate.newBuilder() to construct. + private ReqTokenPreCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqTokenPreCreate() { + creatorAddr_ = ""; + name_ = ""; + symbol_ = ""; + introduction_ = ""; + ownerAddr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqTokenPreCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqTokenPreCreate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + creatorAddr_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + introduction_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerAddr_ = s; + break; + } + case 48: { + + total_ = input.readInt64(); + break; + } + case 56: { + + price_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.Builder.class); + } + + public static final int CREATOR_ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object creatorAddr_; + + /** + * string creator_addr = 1; + * + * @return The creatorAddr. + */ + @java.lang.Override + public java.lang.String getCreatorAddr() { + java.lang.Object ref = creatorAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorAddr_ = s; + return s; + } + } + + /** + * string creator_addr = 1; + * + * @return The bytes for creatorAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorAddrBytes() { + java.lang.Object ref = creatorAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + + /** + * string name = 2; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 2; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYMBOL_FIELD_NUMBER = 3; + private volatile java.lang.Object symbol_; + + /** + * string symbol = 3; + * + * @return The symbol. + */ + @java.lang.Override + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + + /** + * string symbol = 3; + * + * @return The bytes for symbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTRODUCTION_FIELD_NUMBER = 4; + private volatile java.lang.Object introduction_; + + /** + * string introduction = 4; + * + * @return The introduction. + */ + @java.lang.Override + public java.lang.String getIntroduction() { + java.lang.Object ref = introduction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + introduction_ = s; + return s; + } + } + + /** + * string introduction = 4; + * + * @return The bytes for introduction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntroductionBytes() { + java.lang.Object ref = introduction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + introduction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_ADDR_FIELD_NUMBER = 5; + private volatile java.lang.Object ownerAddr_; + + /** + * string owner_addr = 5; + * + * @return The ownerAddr. + */ + @java.lang.Override + public java.lang.String getOwnerAddr() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerAddr_ = s; + return s; + } + } + + /** + * string owner_addr = 5; + * + * @return The bytes for ownerAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOwnerAddrBytes() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ownerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_FIELD_NUMBER = 6; + private long total_; + + /** + * int64 total = 6; + * + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + public static final int PRICE_FIELD_NUMBER = 7; + private long price_; + + /** + * int64 price = 7; + * + * @return The price. + */ + @java.lang.Override + public long getPrice() { + return price_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getCreatorAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, creatorAddr_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, symbol_); + } + if (!getIntroductionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, introduction_); + } + if (!getOwnerAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownerAddr_); + } + if (total_ != 0L) { + output.writeInt64(6, total_); + } + if (price_ != 0L) { + output.writeInt64(7, price_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getCreatorAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, creatorAddr_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, symbol_); + } + if (!getIntroductionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, introduction_); + } + if (!getOwnerAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownerAddr_); + } + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, total_); + } + if (price_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, price_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate) obj; + + if (!getCreatorAddr().equals(other.getCreatorAddr())) + return false; + if (!getName().equals(other.getName())) + return false; + if (!getSymbol().equals(other.getSymbol())) + return false; + if (!getIntroduction().equals(other.getIntroduction())) + return false; + if (!getOwnerAddr().equals(other.getOwnerAddr())) + return false; + if (getTotal() != other.getTotal()) + return false; + if (getPrice() != other.getPrice()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CREATOR_ADDR_FIELD_NUMBER; + hash = (53 * hash) + getCreatorAddr().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + INTRODUCTION_FIELD_NUMBER; + hash = (53 * hash) + getIntroduction().hashCode(); + hash = (37 * hash) + OWNER_ADDR_FIELD_NUMBER; + hash = (53 * hash) + getOwnerAddr().hashCode(); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotal()); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqTokenPreCreate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqTokenPreCreate) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + creatorAddr_ = ""; + + name_ = ""; + + symbol_ = ""; + + introduction_ = ""; + + ownerAddr_ = ""; + + total_ = 0L; + + price_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate( + this); + result.creatorAddr_ = creatorAddr_; + result.name_ = name_; + result.symbol_ = symbol_; + result.introduction_ = introduction_; + result.ownerAddr_ = ownerAddr_; + result.total_ = total_; + result.price_ = price_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.getDefaultInstance()) + return this; + if (!other.getCreatorAddr().isEmpty()) { + creatorAddr_ = other.creatorAddr_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (!other.getIntroduction().isEmpty()) { + introduction_ = other.introduction_; + onChanged(); + } + if (!other.getOwnerAddr().isEmpty()) { + ownerAddr_ = other.ownerAddr_; + onChanged(); + } + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + if (other.getPrice() != 0L) { + setPrice(other.getPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - boolean hasTx(); - /** - * .Transaction tx = 1; - * @return The tx. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx(); - /** - * .Transaction tx = 1; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - * .ReceiptData receipt = 2; - * @return Whether the receipt field is set. - */ - boolean hasReceipt(); - /** - * .ReceiptData receipt = 2; - * @return The receipt. - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt(); - /** - * .ReceiptData receipt = 2; - */ - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder(); + private java.lang.Object creatorAddr_ = ""; + + /** + * string creator_addr = 1; + * + * @return The creatorAddr. + */ + public java.lang.String getCreatorAddr() { + java.lang.Object ref = creatorAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * int64 height = 3; - * @return The height. - */ - long getHeight(); + /** + * string creator_addr = 1; + * + * @return The bytes for creatorAddr. + */ + public com.google.protobuf.ByteString getCreatorAddrBytes() { + java.lang.Object ref = creatorAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + creatorAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int64 index = 4; - * @return The index. - */ - long getIndex(); + /** + * string creator_addr = 1; + * + * @param value + * The creatorAddr to set. + * + * @return This builder for chaining. + */ + public Builder setCreatorAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + creatorAddr_ = value; + onChanged(); + return this; + } - /** - * int64 blocktime = 5; - * @return The blocktime. - */ - long getBlocktime(); + /** + * string creator_addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearCreatorAddr() { - /** - * int64 amount = 6; - * @return The amount. - */ - long getAmount(); + creatorAddr_ = getDefaultInstance().getCreatorAddr(); + onChanged(); + return this; + } - /** - * string fromaddr = 7; - * @return The fromaddr. - */ - java.lang.String getFromaddr(); - /** - * string fromaddr = 7; - * @return The bytes for fromaddr. - */ - com.google.protobuf.ByteString - getFromaddrBytes(); + /** + * string creator_addr = 1; + * + * @param value + * The bytes for creatorAddr to set. + * + * @return This builder for chaining. + */ + public Builder setCreatorAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + creatorAddr_ = value; + onChanged(); + return this; + } - /** - * bytes txhash = 8; - * @return The txhash. - */ - com.google.protobuf.ByteString getTxhash(); + private java.lang.Object name_ = ""; + + /** + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * string actionName = 9; - * @return The actionName. - */ - java.lang.String getActionName(); - /** - * string actionName = 9; - * @return The bytes for actionName. - */ - com.google.protobuf.ByteString - getActionNameBytes(); + /** + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * bytes payload = 10; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - } - /** - *
-   *钱包模块存贮的tx交易详细信息
-   * 	 tx : tx交易信息
-   *	 receipt :交易收据信息
-   *	 height :交易所在的区块高度
-   *	 index :交易所在区块中的索引
-   *	 blocktime :交易所在区块的时标
-   *	 amount :交易量
-   *	 fromaddr :交易打出地址
-   *	 txhash : 交易对应的哈希值
-   *	 actionName  :交易对应的函数调用
-   *   payload: 保存额外的一些信息,主要是给插件使用
-   * 
- * - * Protobuf type {@code WalletTxDetail} - */ - public static final class WalletTxDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletTxDetail) - WalletTxDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletTxDetail.newBuilder() to construct. - private WalletTxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletTxDetail() { - fromaddr_ = ""; - txhash_ = com.google.protobuf.ByteString.EMPTY; - actionName_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * string name = 2; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletTxDetail(); - } + /** + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletTxDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder subBuilder = null; - if (tx_ != null) { - subBuilder = tx_.toBuilder(); - } - tx_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tx_); - tx_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder subBuilder = null; - if (receipt_ != null) { - subBuilder = receipt_.toBuilder(); - } - receipt_ = input.readMessage(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receipt_); - receipt_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - height_ = input.readInt64(); - break; - } - case 32: { - - index_ = input.readInt64(); - break; - } - case 40: { - - blocktime_ = input.readInt64(); - break; - } - case 48: { - - amount_ = input.readInt64(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - fromaddr_ = s; - break; - } - case 66: { - - txhash_ = input.readBytes(); - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - actionName_ = s; - break; - } - case 82: { - - payload_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_descriptor; - } + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder.class); - } + /** + * string name = 2; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 3; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string symbol = 3; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string symbol = 3; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } + + /** + * string symbol = 3; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { + + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } + + /** + * string symbol = 3; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } + + private java.lang.Object introduction_ = ""; + + /** + * string introduction = 4; + * + * @return The introduction. + */ + public java.lang.String getIntroduction() { + java.lang.Object ref = introduction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + introduction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string introduction = 4; + * + * @return The bytes for introduction. + */ + public com.google.protobuf.ByteString getIntroductionBytes() { + java.lang.Object ref = introduction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + introduction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string introduction = 4; + * + * @param value + * The introduction to set. + * + * @return This builder for chaining. + */ + public Builder setIntroduction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + introduction_ = value; + onChanged(); + return this; + } + + /** + * string introduction = 4; + * + * @return This builder for chaining. + */ + public Builder clearIntroduction() { + + introduction_ = getDefaultInstance().getIntroduction(); + onChanged(); + return this; + } + + /** + * string introduction = 4; + * + * @param value + * The bytes for introduction to set. + * + * @return This builder for chaining. + */ + public Builder setIntroductionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + introduction_ = value; + onChanged(); + return this; + } + + private java.lang.Object ownerAddr_ = ""; + + /** + * string owner_addr = 5; + * + * @return The ownerAddr. + */ + public java.lang.String getOwnerAddr() { + java.lang.Object ref = ownerAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string owner_addr = 5; + * + * @return The bytes for ownerAddr. + */ + public com.google.protobuf.ByteString getOwnerAddrBytes() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ownerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string owner_addr = 5; + * + * @param value + * The ownerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerAddr_ = value; + onChanged(); + return this; + } + + /** + * string owner_addr = 5; + * + * @return This builder for chaining. + */ + public Builder clearOwnerAddr() { + + ownerAddr_ = getDefaultInstance().getOwnerAddr(); + onChanged(); + return this; + } + + /** + * string owner_addr = 5; + * + * @param value + * The bytes for ownerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerAddr_ = value; + onChanged(); + return this; + } + + private long total_; + + /** + * int64 total = 6; + * + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + /** + * int64 total = 6; + * + * @param value + * The total to set. + * + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + onChanged(); + return this; + } + + /** + * int64 total = 6; + * + * @return This builder for chaining. + */ + public Builder clearTotal() { + + total_ = 0L; + onChanged(); + return this; + } + + private long price_; + + /** + * int64 price = 7; + * + * @return The price. + */ + @java.lang.Override + public long getPrice() { + return price_; + } + + /** + * int64 price = 7; + * + * @param value + * The price to set. + * + * @return This builder for chaining. + */ + public Builder setPrice(long value) { + + price_ = value; + onChanged(); + return this; + } + + /** + * int64 price = 7; + * + * @return This builder for chaining. + */ + public Builder clearPrice() { + + price_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqTokenPreCreate) + } + + // @@protoc_insertion_point(class_scope:ReqTokenPreCreate) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqTokenPreCreate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqTokenPreCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int TX_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return tx_ != null; } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; + + public interface ReqTokenFinishCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqTokenFinishCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * string finisher_addr = 1; + * + * @return The finisherAddr. + */ + java.lang.String getFinisherAddr(); + + /** + * string finisher_addr = 1; + * + * @return The bytes for finisherAddr. + */ + com.google.protobuf.ByteString getFinisherAddrBytes(); + + /** + * string symbol = 2; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * string owner_addr = 3; + * + * @return The ownerAddr. + */ + java.lang.String getOwnerAddr(); + + /** + * string owner_addr = 3; + * + * @return The bytes for ownerAddr. + */ + com.google.protobuf.ByteString getOwnerAddrBytes(); } + /** - * .Transaction tx = 1; + * Protobuf type {@code ReqTokenFinishCreate} */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - return getTx(); - } + public static final class ReqTokenFinishCreate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqTokenFinishCreate) + ReqTokenFinishCreateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReqTokenFinishCreate.newBuilder() to construct. + private ReqTokenFinishCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReqTokenFinishCreate() { + finisherAddr_ = ""; + symbol_ = ""; + ownerAddr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqTokenFinishCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReqTokenFinishCreate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + finisherAddr_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerAddr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.Builder.class); + } + + public static final int FINISHER_ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object finisherAddr_; + + /** + * string finisher_addr = 1; + * + * @return The finisherAddr. + */ + @java.lang.Override + public java.lang.String getFinisherAddr() { + java.lang.Object ref = finisherAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + finisherAddr_ = s; + return s; + } + } + + /** + * string finisher_addr = 1; + * + * @return The bytes for finisherAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFinisherAddrBytes() { + java.lang.Object ref = finisherAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + finisherAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYMBOL_FIELD_NUMBER = 2; + private volatile java.lang.Object symbol_; + + /** + * string symbol = 2; + * + * @return The symbol. + */ + @java.lang.Override + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_ADDR_FIELD_NUMBER = 3; + private volatile java.lang.Object ownerAddr_; + + /** + * string owner_addr = 3; + * + * @return The ownerAddr. + */ + @java.lang.Override + public java.lang.String getOwnerAddr() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerAddr_ = s; + return s; + } + } + + /** + * string owner_addr = 3; + * + * @return The bytes for ownerAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOwnerAddrBytes() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ownerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getFinisherAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, finisherAddr_); + } + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); + } + if (!getOwnerAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerAddr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getFinisherAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, finisherAddr_); + } + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); + } + if (!getOwnerAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerAddr_); + } + 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate) obj; + + if (!getFinisherAddr().equals(other.getFinisherAddr())) + return false; + if (!getSymbol().equals(other.getSymbol())) + return false; + if (!getOwnerAddr().equals(other.getOwnerAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FINISHER_ADDR_FIELD_NUMBER; + hash = (53 * hash) + getFinisherAddr().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + OWNER_ADDR_FIELD_NUMBER; + hash = (53 * hash) + getOwnerAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 ReqTokenFinishCreate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqTokenFinishCreate) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + finisherAddr_ = ""; + + symbol_ = ""; + + ownerAddr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate( + this); + result.finisherAddr_ = finisherAddr_; + result.symbol_ = symbol_; + result.ownerAddr_ = ownerAddr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int RECEIPT_FIELD_NUMBER = 2; - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; - /** - * .ReceiptData receipt = 2; - * @return Whether the receipt field is set. - */ - public boolean hasReceipt() { - return receipt_ != null; - } - /** - * .ReceiptData receipt = 2; - * @return The receipt. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { - return receipt_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } - /** - * .ReceiptData receipt = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { - return getReceipt(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_; - /** - * int64 height = 3; - * @return The height. - */ - public long getHeight() { - return height_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int INDEX_FIELD_NUMBER = 4; - private long index_; - /** - * int64 index = 4; - * @return The index. - */ - public long getIndex() { - return index_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int BLOCKTIME_FIELD_NUMBER = 5; - private long blocktime_; - /** - * int64 blocktime = 5; - * @return The blocktime. - */ - public long getBlocktime() { - return blocktime_; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int AMOUNT_FIELD_NUMBER = 6; - private long amount_; - /** - * int64 amount = 6; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int FROMADDR_FIELD_NUMBER = 7; - private volatile java.lang.Object fromaddr_; - /** - * string fromaddr = 7; - * @return The fromaddr. - */ - public java.lang.String getFromaddr() { - java.lang.Object ref = fromaddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromaddr_ = s; - return s; - } - } - /** - * string fromaddr = 7; - * @return The bytes for fromaddr. - */ - public com.google.protobuf.ByteString - getFromaddrBytes() { - java.lang.Object ref = fromaddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromaddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.getDefaultInstance()) + return this; + if (!other.getFinisherAddr().isEmpty()) { + finisherAddr_ = other.finisherAddr_; + onChanged(); + } + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (!other.getOwnerAddr().isEmpty()) { + ownerAddr_ = other.ownerAddr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int TXHASH_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txhash_; - /** - * bytes txhash = 8; - * @return The txhash. - */ - public com.google.protobuf.ByteString getTxhash() { - return txhash_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int ACTIONNAME_FIELD_NUMBER = 9; - private volatile java.lang.Object actionName_; - /** - * string actionName = 9; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } - } - /** - * string actionName = 9; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int PAYLOAD_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString payload_; - /** - * bytes payload = 10; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } + private java.lang.Object finisherAddr_ = ""; + + /** + * string finisher_addr = 1; + * + * @return The finisherAddr. + */ + public java.lang.String getFinisherAddr() { + java.lang.Object ref = finisherAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + finisherAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string finisher_addr = 1; + * + * @return The bytes for finisherAddr. + */ + public com.google.protobuf.ByteString getFinisherAddrBytes() { + java.lang.Object ref = finisherAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + finisherAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string finisher_addr = 1; + * + * @param value + * The finisherAddr to set. + * + * @return This builder for chaining. + */ + public Builder setFinisherAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + finisherAddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tx_ != null) { - output.writeMessage(1, getTx()); - } - if (receipt_ != null) { - output.writeMessage(2, getReceipt()); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - if (index_ != 0L) { - output.writeInt64(4, index_); - } - if (blocktime_ != 0L) { - output.writeInt64(5, blocktime_); - } - if (amount_ != 0L) { - output.writeInt64(6, amount_); - } - if (!getFromaddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fromaddr_); - } - if (!txhash_.isEmpty()) { - output.writeBytes(8, txhash_); - } - if (!getActionNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, actionName_); - } - if (!payload_.isEmpty()) { - output.writeBytes(10, payload_); - } - unknownFields.writeTo(output); - } + /** + * string finisher_addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearFinisherAddr() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tx_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTx()); - } - if (receipt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReceipt()); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, index_); - } - if (blocktime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, blocktime_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, amount_); - } - if (!getFromaddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fromaddr_); - } - if (!txhash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, txhash_); - } - if (!getActionNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, actionName_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, payload_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + finisherAddr_ = getDefaultInstance().getFinisherAddr(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail) obj; - - if (hasTx() != other.hasTx()) return false; - if (hasTx()) { - if (!getTx() - .equals(other.getTx())) return false; - } - if (hasReceipt() != other.hasReceipt()) return false; - if (hasReceipt()) { - if (!getReceipt() - .equals(other.getReceipt())) return false; - } - if (getHeight() - != other.getHeight()) return false; - if (getIndex() - != other.getIndex()) return false; - if (getBlocktime() - != other.getBlocktime()) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getFromaddr() - .equals(other.getFromaddr())) return false; - if (!getTxhash() - .equals(other.getTxhash())) return false; - if (!getActionName() - .equals(other.getActionName())) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string finisher_addr = 1; + * + * @param value + * The bytes for finisherAddr to set. + * + * @return This builder for chaining. + */ + public Builder setFinisherAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + finisherAddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTx()) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTx().hashCode(); - } - if (hasReceipt()) { - hash = (37 * hash) + RECEIPT_FIELD_NUMBER; - hash = (53 * hash) + getReceipt().hashCode(); - } - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocktime()); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + FROMADDR_FIELD_NUMBER; - hash = (53 * hash) + getFromaddr().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxhash().hashCode(); - hash = (37 * hash) + ACTIONNAME_FIELD_NUMBER; - hash = (53 * hash) + getActionName().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 2; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string symbol = 2; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *钱包模块存贮的tx交易详细信息
-     * 	 tx : tx交易信息
-     *	 receipt :交易收据信息
-     *	 height :交易所在的区块高度
-     *	 index :交易所在区块中的索引
-     *	 blocktime :交易所在区块的时标
-     *	 amount :交易量
-     *	 fromaddr :交易打出地址
-     *	 txhash : 交易对应的哈希值
-     *	 actionName  :交易对应的函数调用
-     *   payload: 保存额外的一些信息,主要是给插件使用
-     * 
- * - * Protobuf type {@code WalletTxDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletTxDetail) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txBuilder_ == null) { - tx_ = null; - } else { - tx_ = null; - txBuilder_ = null; - } - if (receiptBuilder_ == null) { - receipt_ = null; - } else { - receipt_ = null; - receiptBuilder_ = null; - } - height_ = 0L; - - index_ = 0L; - - blocktime_ = 0L; - - amount_ = 0L; - - fromaddr_ = ""; - - txhash_ = com.google.protobuf.ByteString.EMPTY; - - actionName_ = ""; - - payload_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetail_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail(this); - if (txBuilder_ == null) { - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - if (receiptBuilder_ == null) { - result.receipt_ = receipt_; - } else { - result.receipt_ = receiptBuilder_.build(); - } - result.height_ = height_; - result.index_ = index_; - result.blocktime_ = blocktime_; - result.amount_ = amount_; - result.fromaddr_ = fromaddr_; - result.txhash_ = txhash_; - result.actionName_ = actionName_; - result.payload_ = payload_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance()) return this; - if (other.hasTx()) { - mergeTx(other.getTx()); - } - if (other.hasReceipt()) { - mergeReceipt(other.getReceipt()); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getIndex() != 0L) { - setIndex(other.getIndex()); - } - if (other.getBlocktime() != 0L) { - setBlocktime(other.getBlocktime()); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getFromaddr().isEmpty()) { - fromaddr_ = other.fromaddr_; - onChanged(); - } - if (other.getTxhash() != com.google.protobuf.ByteString.EMPTY) { - setTxhash(other.getTxhash()); - } - if (!other.getActionName().isEmpty()) { - actionName_ = other.actionName_; - onChanged(); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction tx_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> txBuilder_; - /** - * .Transaction tx = 1; - * @return Whether the tx field is set. - */ - public boolean hasTx() { - return txBuilder_ != null || tx_ != null; - } - /** - * .Transaction tx = 1; - * @return The tx. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction getTx() { - if (txBuilder_ == null) { - return tx_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } else { - return txBuilder_.getMessage(); - } - } - /** - * .Transaction tx = 1; - */ - public Builder setTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tx_ = value; - onChanged(); - } else { - txBuilder_.setMessage(value); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder setTx( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder builderForValue) { - if (txBuilder_ == null) { - tx_ = builderForValue.build(); - onChanged(); - } else { - txBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder mergeTx(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction value) { - if (txBuilder_ == null) { - if (tx_ != null) { - tx_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.newBuilder(tx_).mergeFrom(value).buildPartial(); - } else { - tx_ = value; - } - onChanged(); - } else { - txBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = null; - onChanged(); - } else { - tx_ = null; - txBuilder_ = null; - } - - return this; - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder getTxBuilder() { - - onChanged(); - return getTxFieldBuilder().getBuilder(); - } - /** - * .Transaction tx = 1; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder getTxOrBuilder() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilder(); - } else { - return tx_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance() : tx_; - } - } - /** - * .Transaction tx = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionOrBuilder>( - getTx(), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData receipt_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> receiptBuilder_; - /** - * .ReceiptData receipt = 2; - * @return Whether the receipt field is set. - */ - public boolean hasReceipt() { - return receiptBuilder_ != null || receipt_ != null; - } - /** - * .ReceiptData receipt = 2; - * @return The receipt. - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData getReceipt() { - if (receiptBuilder_ == null) { - return receipt_ == null ? cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } else { - return receiptBuilder_.getMessage(); - } - } - /** - * .ReceiptData receipt = 2; - */ - public Builder setReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - receipt_ = value; - onChanged(); - } else { - receiptBuilder_.setMessage(value); - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public Builder setReceipt( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder builderForValue) { - if (receiptBuilder_ == null) { - receipt_ = builderForValue.build(); - onChanged(); - } else { - receiptBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public Builder mergeReceipt(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData value) { - if (receiptBuilder_ == null) { - if (receipt_ != null) { - receipt_ = - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.newBuilder(receipt_).mergeFrom(value).buildPartial(); - } else { - receipt_ = value; - } - onChanged(); - } else { - receiptBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public Builder clearReceipt() { - if (receiptBuilder_ == null) { - receipt_ = null; - onChanged(); - } else { - receipt_ = null; - receiptBuilder_ = null; - } - - return this; - } - /** - * .ReceiptData receipt = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder getReceiptBuilder() { - - onChanged(); - return getReceiptFieldBuilder().getBuilder(); - } - /** - * .ReceiptData receipt = 2; - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder getReceiptOrBuilder() { - if (receiptBuilder_ != null) { - return receiptBuilder_.getMessageOrBuilder(); - } else { - return receipt_ == null ? - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.getDefaultInstance() : receipt_; - } - } - /** - * .ReceiptData receipt = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder> - getReceiptFieldBuilder() { - if (receiptBuilder_ == null) { - receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptData.Builder, cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReceiptDataOrBuilder>( - getReceipt(), - getParentForChildren(), - isClean()); - receipt_ = null; - } - return receiptBuilder_; - } - - private long height_ ; - /** - * int64 height = 3; - * @return The height. - */ - public long getHeight() { - return height_; - } - /** - * int64 height = 3; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - onChanged(); - return this; - } - /** - * int64 height = 3; - * @return This builder for chaining. - */ - public Builder clearHeight() { - - height_ = 0L; - onChanged(); - return this; - } - - private long index_ ; - /** - * int64 index = 4; - * @return The index. - */ - public long getIndex() { - return index_; - } - /** - * int64 index = 4; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(long value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int64 index = 4; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0L; - onChanged(); - return this; - } - - private long blocktime_ ; - /** - * int64 blocktime = 5; - * @return The blocktime. - */ - public long getBlocktime() { - return blocktime_; - } - /** - * int64 blocktime = 5; - * @param value The blocktime to set. - * @return This builder for chaining. - */ - public Builder setBlocktime(long value) { - - blocktime_ = value; - onChanged(); - return this; - } - /** - * int64 blocktime = 5; - * @return This builder for chaining. - */ - public Builder clearBlocktime() { - - blocktime_ = 0L; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 6; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 6; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 6; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object fromaddr_ = ""; - /** - * string fromaddr = 7; - * @return The fromaddr. - */ - public java.lang.String getFromaddr() { - java.lang.Object ref = fromaddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fromaddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string fromaddr = 7; - * @return The bytes for fromaddr. - */ - public com.google.protobuf.ByteString - getFromaddrBytes() { - java.lang.Object ref = fromaddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fromaddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string fromaddr = 7; - * @param value The fromaddr to set. - * @return This builder for chaining. - */ - public Builder setFromaddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fromaddr_ = value; - onChanged(); - return this; - } - /** - * string fromaddr = 7; - * @return This builder for chaining. - */ - public Builder clearFromaddr() { - - fromaddr_ = getDefaultInstance().getFromaddr(); - onChanged(); - return this; - } - /** - * string fromaddr = 7; - * @param value The bytes for fromaddr to set. - * @return This builder for chaining. - */ - public Builder setFromaddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fromaddr_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txhash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txhash = 8; - * @return The txhash. - */ - public com.google.protobuf.ByteString getTxhash() { - return txhash_; - } - /** - * bytes txhash = 8; - * @param value The txhash to set. - * @return This builder for chaining. - */ - public Builder setTxhash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txhash_ = value; - onChanged(); - return this; - } - /** - * bytes txhash = 8; - * @return This builder for chaining. - */ - public Builder clearTxhash() { - - txhash_ = getDefaultInstance().getTxhash(); - onChanged(); - return this; - } - - private java.lang.Object actionName_ = ""; - /** - * string actionName = 9; - * @return The actionName. - */ - public java.lang.String getActionName() { - java.lang.Object ref = actionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string actionName = 9; - * @return The bytes for actionName. - */ - public com.google.protobuf.ByteString - getActionNameBytes() { - java.lang.Object ref = actionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string actionName = 9; - * @param value The actionName to set. - * @return This builder for chaining. - */ - public Builder setActionName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - actionName_ = value; - onChanged(); - return this; - } - /** - * string actionName = 9; - * @return This builder for chaining. - */ - public Builder clearActionName() { - - actionName_ = getDefaultInstance().getActionName(); - onChanged(); - return this; - } - /** - * string actionName = 9; - * @param value The bytes for actionName to set. - * @return This builder for chaining. - */ - public Builder setActionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - actionName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 10; - * @return The payload. - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 10; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * bytes payload = 10; - * @return This builder for chaining. - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletTxDetail) - } + /** + * string symbol = 2; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { - // @@protoc_insertion_point(class_scope:WalletTxDetail) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail(); - } + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string symbol = 2; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletTxDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletTxDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object ownerAddr_ = ""; + + /** + * string owner_addr = 3; + * + * @return The ownerAddr. + */ + public java.lang.String getOwnerAddr() { + java.lang.Object ref = ownerAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string owner_addr = 3; + * + * @return The bytes for ownerAddr. + */ + public com.google.protobuf.ByteString getOwnerAddrBytes() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ownerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string owner_addr = 3; + * + * @param value + * The ownerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerAddr_ = value; + onChanged(); + return this; + } - } + /** + * string owner_addr = 3; + * + * @return This builder for chaining. + */ + public Builder clearOwnerAddr() { - public interface WalletTxDetailsOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletTxDetails) - com.google.protobuf.MessageOrBuilder { + ownerAddr_ = getDefaultInstance().getOwnerAddr(); + onChanged(); + return this; + } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - java.util.List - getTxDetailsList(); - /** - * repeated .WalletTxDetail txDetails = 1; - */ - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getTxDetails(int index); - /** - * repeated .WalletTxDetail txDetails = 1; - */ - int getTxDetailsCount(); - /** - * repeated .WalletTxDetail txDetails = 1; - */ - java.util.List - getTxDetailsOrBuilderList(); - /** - * repeated .WalletTxDetail txDetails = 1; - */ - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder getTxDetailsOrBuilder( - int index); - } - /** - * Protobuf type {@code WalletTxDetails} - */ - public static final class WalletTxDetails extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletTxDetails) - WalletTxDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletTxDetails.newBuilder() to construct. - private WalletTxDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletTxDetails() { - txDetails_ = java.util.Collections.emptyList(); - } + /** + * string owner_addr = 3; + * + * @param value + * The bytes for ownerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerAddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletTxDetails(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletTxDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - txDetails_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - txDetails_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - txDetails_ = java.util.Collections.unmodifiableList(txDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_descriptor; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.Builder.class); - } + // @@protoc_insertion_point(builder_scope:ReqTokenFinishCreate) + } - public static final int TXDETAILS_FIELD_NUMBER = 1; - private java.util.List txDetails_; - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public java.util.List getTxDetailsList() { - return txDetails_; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public java.util.List - getTxDetailsOrBuilderList() { - return txDetails_; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public int getTxDetailsCount() { - return txDetails_.size(); - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getTxDetails(int index) { - return txDetails_.get(index); - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder getTxDetailsOrBuilder( - int index) { - return txDetails_.get(index); - } + // @@protoc_insertion_point(class_scope:ReqTokenFinishCreate) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqTokenFinishCreate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqTokenFinishCreate(input, extensionRegistry); + } + }; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < txDetails_.size(); i++) { - output.writeMessage(1, txDetails_.get(i)); - } - unknownFields.writeTo(output); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < txDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, txDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails) obj; - - if (!getTxDetailsList() - .equals(other.getTxDetailsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxDetailsCount() > 0) { - hash = (37 * hash) + TXDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getTxDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public interface ReqTokenRevokeCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqTokenRevokeCreate) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string revoker_addr = 1; + * + * @return The revokerAddr. + */ + java.lang.String getRevokerAddr(); + + /** + * string revoker_addr = 1; + * + * @return The bytes for revokerAddr. + */ + com.google.protobuf.ByteString getRevokerAddrBytes(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string symbol = 2; + * + * @return The symbol. + */ + java.lang.String getSymbol(); + + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString getSymbolBytes(); + + /** + * string owner_addr = 3; + * + * @return The ownerAddr. + */ + java.lang.String getOwnerAddr(); + + /** + * string owner_addr = 3; + * + * @return The bytes for ownerAddr. + */ + com.google.protobuf.ByteString getOwnerAddrBytes(); } + /** - * Protobuf type {@code WalletTxDetails} + * Protobuf type {@code ReqTokenRevokeCreate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletTxDetails) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxDetailsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (txDetailsBuilder_ == null) { - txDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txDetailsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletTxDetails_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails(this); - int from_bitField0_ = bitField0_; - if (txDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - txDetails_ = java.util.Collections.unmodifiableList(txDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.txDetails_ = txDetails_; - } else { - result.txDetails_ = txDetailsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.getDefaultInstance()) return this; - if (txDetailsBuilder_ == null) { - if (!other.txDetails_.isEmpty()) { - if (txDetails_.isEmpty()) { - txDetails_ = other.txDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxDetailsIsMutable(); - txDetails_.addAll(other.txDetails_); - } - onChanged(); - } - } else { - if (!other.txDetails_.isEmpty()) { - if (txDetailsBuilder_.isEmpty()) { - txDetailsBuilder_.dispose(); - txDetailsBuilder_ = null; - txDetails_ = other.txDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - txDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxDetailsFieldBuilder() : null; - } else { - txDetailsBuilder_.addAllMessages(other.txDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List txDetails_ = - java.util.Collections.emptyList(); - private void ensureTxDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - txDetails_ = new java.util.ArrayList(txDetails_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder> txDetailsBuilder_; - - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public java.util.List getTxDetailsList() { - if (txDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(txDetails_); - } else { - return txDetailsBuilder_.getMessageList(); - } - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public int getTxDetailsCount() { - if (txDetailsBuilder_ == null) { - return txDetails_.size(); - } else { - return txDetailsBuilder_.getCount(); - } - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail getTxDetails(int index) { - if (txDetailsBuilder_ == null) { - return txDetails_.get(index); - } else { - return txDetailsBuilder_.getMessage(index); - } - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder setTxDetails( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail value) { - if (txDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxDetailsIsMutable(); - txDetails_.set(index, value); - onChanged(); - } else { - txDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder setTxDetails( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder builderForValue) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - txDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder addTxDetails(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail value) { - if (txDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxDetailsIsMutable(); - txDetails_.add(value); - onChanged(); - } else { - txDetailsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder addTxDetails( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail value) { - if (txDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxDetailsIsMutable(); - txDetails_.add(index, value); - onChanged(); - } else { - txDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder addTxDetails( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder builderForValue) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.add(builderForValue.build()); - onChanged(); - } else { - txDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder addTxDetails( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder builderForValue) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - txDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder addAllTxDetails( - java.lang.Iterable values) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txDetails_); - onChanged(); - } else { - txDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder clearTxDetails() { - if (txDetailsBuilder_ == null) { - txDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txDetailsBuilder_.clear(); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public Builder removeTxDetails(int index) { - if (txDetailsBuilder_ == null) { - ensureTxDetailsIsMutable(); - txDetails_.remove(index); - onChanged(); - } else { - txDetailsBuilder_.remove(index); - } - return this; - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder getTxDetailsBuilder( - int index) { - return getTxDetailsFieldBuilder().getBuilder(index); - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder getTxDetailsOrBuilder( - int index) { - if (txDetailsBuilder_ == null) { - return txDetails_.get(index); } else { - return txDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public java.util.List - getTxDetailsOrBuilderList() { - if (txDetailsBuilder_ != null) { - return txDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(txDetails_); - } - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder addTxDetailsBuilder() { - return getTxDetailsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance()); - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder addTxDetailsBuilder( - int index) { - return getTxDetailsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.getDefaultInstance()); - } - /** - * repeated .WalletTxDetail txDetails = 1; - */ - public java.util.List - getTxDetailsBuilderList() { - return getTxDetailsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder> - getTxDetailsFieldBuilder() { - if (txDetailsBuilder_ == null) { - txDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetail.Builder, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetailOrBuilder>( - txDetails_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - txDetails_ = null; - } - return txDetailsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletTxDetails) - } + public static final class ReqTokenRevokeCreate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqTokenRevokeCreate) + ReqTokenRevokeCreateOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:WalletTxDetails) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails(); - } + // Use ReqTokenRevokeCreate.newBuilder() to construct. + private ReqTokenRevokeCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private ReqTokenRevokeCreate() { + revokerAddr_ = ""; + symbol_ = ""; + ownerAddr_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletTxDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletTxDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqTokenRevokeCreate(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ReqTokenRevokeCreate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + revokerAddr_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + symbol_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerAddr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.Builder.class); + } - public interface WalletAccountStoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletAccountStore) - com.google.protobuf.MessageOrBuilder { + public static final int REVOKER_ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object revokerAddr_; - /** - * string privkey = 1; - * @return The privkey. - */ - java.lang.String getPrivkey(); - /** - * string privkey = 1; - * @return The bytes for privkey. - */ - com.google.protobuf.ByteString - getPrivkeyBytes(); + /** + * string revoker_addr = 1; + * + * @return The revokerAddr. + */ + @java.lang.Override + public java.lang.String getRevokerAddr() { + java.lang.Object ref = revokerAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revokerAddr_ = s; + return s; + } + } - /** - * string label = 2; - * @return The label. - */ - java.lang.String getLabel(); - /** - * string label = 2; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); + /** + * string revoker_addr = 1; + * + * @return The bytes for revokerAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevokerAddrBytes() { + java.lang.Object ref = revokerAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revokerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string addr = 3; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 3; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + public static final int SYMBOL_FIELD_NUMBER = 2; + private volatile java.lang.Object symbol_; - /** - * string timeStamp = 4; - * @return The timeStamp. - */ - java.lang.String getTimeStamp(); - /** - * string timeStamp = 4; - * @return The bytes for timeStamp. - */ - com.google.protobuf.ByteString - getTimeStampBytes(); - } - /** - *
-   *钱包模块存贮的账户信息
-   * 	 privkey : 账户地址对应的私钥
-   *	 label :账户地址对应的标签
-   *	 addr :账户地址
-   *	 timeStamp :创建账户时的时标
-   * 
- * - * Protobuf type {@code WalletAccountStore} - */ - public static final class WalletAccountStore extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletAccountStore) - WalletAccountStoreOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletAccountStore.newBuilder() to construct. - private WalletAccountStore(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletAccountStore() { - privkey_ = ""; - label_ = ""; - addr_ = ""; - timeStamp_ = ""; - } + /** + * string symbol = 2; + * + * @return The symbol. + */ + @java.lang.Override + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletAccountStore(); - } + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletAccountStore( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - privkey_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - label_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - timeStamp_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_descriptor; - } + public static final int OWNER_ADDR_FIELD_NUMBER = 3; + private volatile java.lang.Object ownerAddr_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.Builder.class); - } + /** + * string owner_addr = 3; + * + * @return The ownerAddr. + */ + @java.lang.Override + public java.lang.String getOwnerAddr() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerAddr_ = s; + return s; + } + } - public static final int PRIVKEY_FIELD_NUMBER = 1; - private volatile java.lang.Object privkey_; - /** - * string privkey = 1; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } - } - /** - * string privkey = 1; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string owner_addr = 3; + * + * @return The bytes for ownerAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOwnerAddrBytes() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ownerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object label_; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private byte memoizedIsInitialized = -1; - public static final int ADDR_FIELD_NUMBER = 3; - private volatile java.lang.Object addr_; - /** - * string addr = 3; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 3; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getRevokerAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, revokerAddr_); + } + if (!getSymbolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); + } + if (!getOwnerAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerAddr_); + } + unknownFields.writeTo(output); + } - public static final int TIMESTAMP_FIELD_NUMBER = 4; - private volatile java.lang.Object timeStamp_; - /** - * string timeStamp = 4; - * @return The timeStamp. - */ - public java.lang.String getTimeStamp() { - java.lang.Object ref = timeStamp_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeStamp_ = s; - return s; - } - } - /** - * string timeStamp = 4; - * @return The bytes for timeStamp. - */ - public com.google.protobuf.ByteString - getTimeStampBytes() { - java.lang.Object ref = timeStamp_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeStamp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + size = 0; + if (!getRevokerAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, revokerAddr_); + } + if (!getSymbolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); + } + if (!getOwnerAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerAddr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate) obj; + + if (!getRevokerAddr().equals(other.getRevokerAddr())) + return false; + if (!getSymbol().equals(other.getSymbol())) + return false; + if (!getOwnerAddr().equals(other.getOwnerAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REVOKER_ADDR_FIELD_NUMBER; + hash = (53 * hash) + getRevokerAddr().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + OWNER_ADDR_FIELD_NUMBER; + hash = (53 * hash) + getOwnerAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPrivkeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privkey_); - } - if (!getLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); - } - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, addr_); - } - if (!getTimeStampBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, timeStamp_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPrivkeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privkey_); - } - if (!getLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); - } - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, addr_); - } - if (!getTimeStampBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeStamp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore) obj; - - if (!getPrivkey() - .equals(other.getPrivkey())) return false; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!getAddr() - .equals(other.getAddr())) return false; - if (!getTimeStamp() - .equals(other.getTimeStamp())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivkey().hashCode(); - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimeStamp().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *钱包模块存贮的账户信息
-     * 	 privkey : 账户地址对应的私钥
-     *	 label :账户地址对应的标签
-     *	 addr :账户地址
-     *	 timeStamp :创建账户时的时标
-     * 
- * - * Protobuf type {@code WalletAccountStore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletAccountStore) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - privkey_ = ""; - - label_ = ""; - - addr_ = ""; - - timeStamp_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccountStore_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore(this); - result.privkey_ = privkey_; - result.label_ = label_; - result.addr_ = addr_; - result.timeStamp_ = timeStamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore.getDefaultInstance()) return this; - if (!other.getPrivkey().isEmpty()) { - privkey_ = other.privkey_; - onChanged(); - } - if (!other.getLabel().isEmpty()) { - label_ = other.label_; - onChanged(); - } - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (!other.getTimeStamp().isEmpty()) { - timeStamp_ = other.timeStamp_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object privkey_ = ""; - /** - * string privkey = 1; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string privkey = 1; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string privkey = 1; - * @param value The privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privkey_ = value; - onChanged(); - return this; - } - /** - * string privkey = 1; - * @return This builder for chaining. - */ - public Builder clearPrivkey() { - - privkey_ = getDefaultInstance().getPrivkey(); - onChanged(); - return this; - } - /** - * string privkey = 1; - * @param value The bytes for privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privkey_ = value; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string label = 2; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - onChanged(); - return this; - } - /** - * string label = 2; - * @return This builder for chaining. - */ - public Builder clearLabel() { - - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * string label = 2; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value; - onChanged(); - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 3; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 3; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 3; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 3; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 3; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private java.lang.Object timeStamp_ = ""; - /** - * string timeStamp = 4; - * @return The timeStamp. - */ - public java.lang.String getTimeStamp() { - java.lang.Object ref = timeStamp_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeStamp_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string timeStamp = 4; - * @return The bytes for timeStamp. - */ - public com.google.protobuf.ByteString - getTimeStampBytes() { - java.lang.Object ref = timeStamp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeStamp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string timeStamp = 4; - * @param value The timeStamp to set. - * @return This builder for chaining. - */ - public Builder setTimeStamp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timeStamp_ = value; - onChanged(); - return this; - } - /** - * string timeStamp = 4; - * @return This builder for chaining. - */ - public Builder clearTimeStamp() { - - timeStamp_ = getDefaultInstance().getTimeStamp(); - onChanged(); - return this; - } - /** - * string timeStamp = 4; - * @param value The bytes for timeStamp to set. - * @return This builder for chaining. - */ - public Builder setTimeStampBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timeStamp_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletAccountStore) - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:WalletAccountStore) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletAccountStore parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletAccountStore(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountStore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public interface WalletPwHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletPwHash) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * bytes pwHash = 1; - * @return The pwHash. - */ - com.google.protobuf.ByteString getPwHash(); + public static Builder newBuilder( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * string randstr = 2; - * @return The randstr. - */ - java.lang.String getRandstr(); - /** - * string randstr = 2; - * @return The bytes for randstr. - */ - com.google.protobuf.ByteString - getRandstrBytes(); - } - /** - *
-   *钱包模块通过一个随机值对钱包密码加密
-   * 	 pwHash : 对钱包密码和一个随机值组合进行哈希计算
-   *	 randstr :对钱包密码加密的一个随机值
-   * 
- * - * Protobuf type {@code WalletPwHash} - */ - public static final class WalletPwHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletPwHash) - WalletPwHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletPwHash.newBuilder() to construct. - private WalletPwHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletPwHash() { - pwHash_ = com.google.protobuf.ByteString.EMPTY; - randstr_ = ""; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletPwHash(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletPwHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - pwHash_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - randstr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_descriptor; - } + /** + * Protobuf type {@code ReqTokenRevokeCreate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqTokenRevokeCreate) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.Builder.class); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.Builder.class); + } - public static final int PWHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString pwHash_; - /** - * bytes pwHash = 1; - * @return The pwHash. - */ - public com.google.protobuf.ByteString getPwHash() { - return pwHash_; - } + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int RANDSTR_FIELD_NUMBER = 2; - private volatile java.lang.Object randstr_; - /** - * string randstr = 2; - * @return The randstr. - */ - public java.lang.String getRandstr() { - java.lang.Object ref = randstr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - randstr_ = s; - return s; - } - } - /** - * string randstr = 2; - * @return The bytes for randstr. - */ - public com.google.protobuf.ByteString - getRandstrBytes() { - java.lang.Object ref = randstr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - randstr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + revokerAddr_ = ""; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!pwHash_.isEmpty()) { - output.writeBytes(1, pwHash_); - } - if (!getRandstrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, randstr_); - } - unknownFields.writeTo(output); - } + symbol_ = ""; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!pwHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, pwHash_); - } - if (!getRandstrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, randstr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + ownerAddr_ = ""; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash) obj; - - if (!getPwHash() - .equals(other.getPwHash())) return false; - if (!getRandstr() - .equals(other.getRandstr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PWHASH_FIELD_NUMBER; - hash = (53 * hash) + getPwHash().hashCode(); - hash = (37 * hash) + RANDSTR_FIELD_NUMBER; - hash = (53 * hash) + getRandstr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.getDefaultInstance(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *钱包模块通过一个随机值对钱包密码加密
-     * 	 pwHash : 对钱包密码和一个随机值组合进行哈希计算
-     *	 randstr :对钱包密码加密的一个随机值
-     * 
- * - * Protobuf type {@code WalletPwHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletPwHash) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - pwHash_ = com.google.protobuf.ByteString.EMPTY; - - randstr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletPwHash_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash(this); - result.pwHash_ = pwHash_; - result.randstr_ = randstr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash.getDefaultInstance()) return this; - if (other.getPwHash() != com.google.protobuf.ByteString.EMPTY) { - setPwHash(other.getPwHash()); - } - if (!other.getRandstr().isEmpty()) { - randstr_ = other.randstr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString pwHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes pwHash = 1; - * @return The pwHash. - */ - public com.google.protobuf.ByteString getPwHash() { - return pwHash_; - } - /** - * bytes pwHash = 1; - * @param value The pwHash to set. - * @return This builder for chaining. - */ - public Builder setPwHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - pwHash_ = value; - onChanged(); - return this; - } - /** - * bytes pwHash = 1; - * @return This builder for chaining. - */ - public Builder clearPwHash() { - - pwHash_ = getDefaultInstance().getPwHash(); - onChanged(); - return this; - } - - private java.lang.Object randstr_ = ""; - /** - * string randstr = 2; - * @return The randstr. - */ - public java.lang.String getRandstr() { - java.lang.Object ref = randstr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - randstr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string randstr = 2; - * @return The bytes for randstr. - */ - public com.google.protobuf.ByteString - getRandstrBytes() { - java.lang.Object ref = randstr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - randstr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string randstr = 2; - * @param value The randstr to set. - * @return This builder for chaining. - */ - public Builder setRandstr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - randstr_ = value; - onChanged(); - return this; - } - /** - * string randstr = 2; - * @return This builder for chaining. - */ - public Builder clearRandstr() { - - randstr_ = getDefaultInstance().getRandstr(); - onChanged(); - return this; - } - /** - * string randstr = 2; - * @param value The bytes for randstr to set. - * @return This builder for chaining. - */ - public Builder setRandstrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - randstr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletPwHash) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate( + this); + result.revokerAddr_ = revokerAddr_; + result.symbol_ = symbol_; + result.ownerAddr_ = ownerAddr_; + onBuilt(); + return result; + } - // @@protoc_insertion_point(class_scope:WalletPwHash) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletPwHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletPwHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletPwHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public interface WalletStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletStatus) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * bool isWalletLock = 1; - * @return The isWalletLock. - */ - boolean getIsWalletLock(); + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.getDefaultInstance()) + return this; + if (!other.getRevokerAddr().isEmpty()) { + revokerAddr_ = other.revokerAddr_; + onChanged(); + } + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + onChanged(); + } + if (!other.getOwnerAddr().isEmpty()) { + ownerAddr_ = other.ownerAddr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * bool isAutoMining = 2; - * @return The isAutoMining. - */ - boolean getIsAutoMining(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * bool isHasSeed = 3; - * @return The isHasSeed. - */ - boolean getIsHasSeed(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - /** - * bool isTicketLock = 4; - * @return The isTicketLock. - */ - boolean getIsTicketLock(); - } - /** - *
-   *钱包当前的状态
-   * 	 isWalletLock : 钱包是否锁状态,true锁定,false解锁
-   *	 isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
-   * 	 isHasSeed : 钱包是否有种子,true已有,false没有
-   *	 isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
-   * 
- * - * Protobuf type {@code WalletStatus} - */ - public static final class WalletStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletStatus) - WalletStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletStatus.newBuilder() to construct. - private WalletStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletStatus() { - } + private java.lang.Object revokerAddr_ = ""; + + /** + * string revoker_addr = 1; + * + * @return The revokerAddr. + */ + public java.lang.String getRevokerAddr() { + java.lang.Object ref = revokerAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revokerAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletStatus(); - } + /** + * string revoker_addr = 1; + * + * @return The bytes for revokerAddr. + */ + public com.google.protobuf.ByteString getRevokerAddrBytes() { + java.lang.Object ref = revokerAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + revokerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isWalletLock_ = input.readBool(); - break; - } - case 16: { - - isAutoMining_ = input.readBool(); - break; - } - case 24: { - - isHasSeed_ = input.readBool(); - break; - } - case 32: { - - isTicketLock_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_descriptor; - } + /** + * string revoker_addr = 1; + * + * @param value + * The revokerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setRevokerAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + revokerAddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.Builder.class); - } + /** + * string revoker_addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearRevokerAddr() { - public static final int ISWALLETLOCK_FIELD_NUMBER = 1; - private boolean isWalletLock_; - /** - * bool isWalletLock = 1; - * @return The isWalletLock. - */ - public boolean getIsWalletLock() { - return isWalletLock_; - } + revokerAddr_ = getDefaultInstance().getRevokerAddr(); + onChanged(); + return this; + } - public static final int ISAUTOMINING_FIELD_NUMBER = 2; - private boolean isAutoMining_; - /** - * bool isAutoMining = 2; - * @return The isAutoMining. - */ - public boolean getIsAutoMining() { - return isAutoMining_; - } + /** + * string revoker_addr = 1; + * + * @param value + * The bytes for revokerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setRevokerAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + revokerAddr_ = value; + onChanged(); + return this; + } - public static final int ISHASSEED_FIELD_NUMBER = 3; - private boolean isHasSeed_; - /** - * bool isHasSeed = 3; - * @return The isHasSeed. - */ - public boolean getIsHasSeed() { - return isHasSeed_; - } + private java.lang.Object symbol_ = ""; + + /** + * string symbol = 2; + * + * @return The symbol. + */ + public java.lang.String getSymbol() { + java.lang.Object ref = symbol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int ISTICKETLOCK_FIELD_NUMBER = 4; - private boolean isTicketLock_; - /** - * bool isTicketLock = 4; - * @return The isTicketLock. - */ - public boolean getIsTicketLock() { - return isTicketLock_; - } + /** + * string symbol = 2; + * + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString getSymbolBytes() { + java.lang.Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string symbol = 2; + * + * @param value + * The symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + symbol_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string symbol = 2; + * + * @return This builder for chaining. + */ + public Builder clearSymbol() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isWalletLock_ != false) { - output.writeBool(1, isWalletLock_); - } - if (isAutoMining_ != false) { - output.writeBool(2, isAutoMining_); - } - if (isHasSeed_ != false) { - output.writeBool(3, isHasSeed_); - } - if (isTicketLock_ != false) { - output.writeBool(4, isTicketLock_); - } - unknownFields.writeTo(output); - } + symbol_ = getDefaultInstance().getSymbol(); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isWalletLock_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isWalletLock_); - } - if (isAutoMining_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isAutoMining_); - } - if (isHasSeed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isHasSeed_); - } - if (isTicketLock_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isTicketLock_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string symbol = 2; + * + * @param value + * The bytes for symbol to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + symbol_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus) obj; - - if (getIsWalletLock() - != other.getIsWalletLock()) return false; - if (getIsAutoMining() - != other.getIsAutoMining()) return false; - if (getIsHasSeed() - != other.getIsHasSeed()) return false; - if (getIsTicketLock() - != other.getIsTicketLock()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private java.lang.Object ownerAddr_ = ""; + + /** + * string owner_addr = 3; + * + * @return The ownerAddr. + */ + public java.lang.String getOwnerAddr() { + java.lang.Object ref = ownerAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISWALLETLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsWalletLock()); - hash = (37 * hash) + ISAUTOMINING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAutoMining()); - hash = (37 * hash) + ISHASSEED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsHasSeed()); - hash = (37 * hash) + ISTICKETLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsTicketLock()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string owner_addr = 3; + * + * @return The bytes for ownerAddr. + */ + public com.google.protobuf.ByteString getOwnerAddrBytes() { + java.lang.Object ref = ownerAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ownerAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string owner_addr = 3; + * + * @param value + * The ownerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerAddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string owner_addr = 3; + * + * @return This builder for chaining. + */ + public Builder clearOwnerAddr() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *钱包当前的状态
-     * 	 isWalletLock : 钱包是否锁状态,true锁定,false解锁
-     *	 isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
-     * 	 isHasSeed : 钱包是否有种子,true已有,false没有
-     *	 isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
-     * 
- * - * Protobuf type {@code WalletStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletStatus) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isWalletLock_ = false; - - isAutoMining_ = false; - - isHasSeed_ = false; - - isTicketLock_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletStatus_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus(this); - result.isWalletLock_ = isWalletLock_; - result.isAutoMining_ = isAutoMining_; - result.isHasSeed_ = isHasSeed_; - result.isTicketLock_ = isTicketLock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.getDefaultInstance()) return this; - if (other.getIsWalletLock() != false) { - setIsWalletLock(other.getIsWalletLock()); - } - if (other.getIsAutoMining() != false) { - setIsAutoMining(other.getIsAutoMining()); - } - if (other.getIsHasSeed() != false) { - setIsHasSeed(other.getIsHasSeed()); - } - if (other.getIsTicketLock() != false) { - setIsTicketLock(other.getIsTicketLock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isWalletLock_ ; - /** - * bool isWalletLock = 1; - * @return The isWalletLock. - */ - public boolean getIsWalletLock() { - return isWalletLock_; - } - /** - * bool isWalletLock = 1; - * @param value The isWalletLock to set. - * @return This builder for chaining. - */ - public Builder setIsWalletLock(boolean value) { - - isWalletLock_ = value; - onChanged(); - return this; - } - /** - * bool isWalletLock = 1; - * @return This builder for chaining. - */ - public Builder clearIsWalletLock() { - - isWalletLock_ = false; - onChanged(); - return this; - } - - private boolean isAutoMining_ ; - /** - * bool isAutoMining = 2; - * @return The isAutoMining. - */ - public boolean getIsAutoMining() { - return isAutoMining_; - } - /** - * bool isAutoMining = 2; - * @param value The isAutoMining to set. - * @return This builder for chaining. - */ - public Builder setIsAutoMining(boolean value) { - - isAutoMining_ = value; - onChanged(); - return this; - } - /** - * bool isAutoMining = 2; - * @return This builder for chaining. - */ - public Builder clearIsAutoMining() { - - isAutoMining_ = false; - onChanged(); - return this; - } - - private boolean isHasSeed_ ; - /** - * bool isHasSeed = 3; - * @return The isHasSeed. - */ - public boolean getIsHasSeed() { - return isHasSeed_; - } - /** - * bool isHasSeed = 3; - * @param value The isHasSeed to set. - * @return This builder for chaining. - */ - public Builder setIsHasSeed(boolean value) { - - isHasSeed_ = value; - onChanged(); - return this; - } - /** - * bool isHasSeed = 3; - * @return This builder for chaining. - */ - public Builder clearIsHasSeed() { - - isHasSeed_ = false; - onChanged(); - return this; - } - - private boolean isTicketLock_ ; - /** - * bool isTicketLock = 4; - * @return The isTicketLock. - */ - public boolean getIsTicketLock() { - return isTicketLock_; - } - /** - * bool isTicketLock = 4; - * @param value The isTicketLock to set. - * @return This builder for chaining. - */ - public Builder setIsTicketLock(boolean value) { - - isTicketLock_ = value; - onChanged(); - return this; - } - /** - * bool isTicketLock = 4; - * @return This builder for chaining. - */ - public Builder clearIsTicketLock() { - - isTicketLock_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletStatus) - } + ownerAddr_ = getDefaultInstance().getOwnerAddr(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:WalletStatus) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus(); - } + /** + * string owner_addr = 3; + * + * @param value + * The bytes for ownerAddr to set. + * + * @return This builder for chaining. + */ + public Builder setOwnerAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerAddr_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:ReqTokenRevokeCreate) + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:ReqTokenRevokeCreate) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate(); + } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public interface WalletAccountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletAccounts) - com.google.protobuf.MessageOrBuilder { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqTokenRevokeCreate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqTokenRevokeCreate(input, extensionRegistry); + } + }; - /** - * repeated .WalletAccount wallets = 1; - */ - java.util.List - getWalletsList(); - /** - * repeated .WalletAccount wallets = 1; - */ - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getWallets(int index); - /** - * repeated .WalletAccount wallets = 1; - */ - int getWalletsCount(); - /** - * repeated .WalletAccount wallets = 1; - */ - java.util.List - getWalletsOrBuilderList(); - /** - * repeated .WalletAccount wallets = 1; - */ - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder getWalletsOrBuilder( - int index); - } - /** - * Protobuf type {@code WalletAccounts} - */ - public static final class WalletAccounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletAccounts) - WalletAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletAccounts.newBuilder() to construct. - private WalletAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletAccounts() { - wallets_ = java.util.Collections.emptyList(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletAccounts(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - wallets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - wallets_.add( - input.readMessage(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - wallets_ = java.util.Collections.unmodifiableList(wallets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_descriptor; - } + public interface ReqModifyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqModifyConfig) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.Builder.class); - } + /** + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); - public static final int WALLETS_FIELD_NUMBER = 1; - private java.util.List wallets_; - /** - * repeated .WalletAccount wallets = 1; - */ - public java.util.List getWalletsList() { - return wallets_; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public java.util.List - getWalletsOrBuilderList() { - return wallets_; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public int getWalletsCount() { - return wallets_.size(); - } - /** - * repeated .WalletAccount wallets = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getWallets(int index) { - return wallets_.get(index); + /** + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * string op = 2; + * + * @return The op. + */ + java.lang.String getOp(); + + /** + * string op = 2; + * + * @return The bytes for op. + */ + com.google.protobuf.ByteString getOpBytes(); + + /** + * string value = 3; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * string value = 3; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * string modifier = 4; + * + * @return The modifier. + */ + java.lang.String getModifier(); + + /** + * string modifier = 4; + * + * @return The bytes for modifier. + */ + com.google.protobuf.ByteString getModifierBytes(); } + /** - * repeated .WalletAccount wallets = 1; + * Protobuf type {@code ReqModifyConfig} */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder getWalletsOrBuilder( - int index) { - return wallets_.get(index); - } + public static final class ReqModifyConfig extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqModifyConfig) + ReqModifyConfigOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use ReqModifyConfig.newBuilder() to construct. + private ReqModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private ReqModifyConfig() { + key_ = ""; + op_ = ""; + value_ = ""; + modifier_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < wallets_.size(); i++) { - output.writeMessage(1, wallets_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqModifyConfig(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < wallets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, wallets_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts) obj; - - if (!getWalletsList() - .equals(other.getWalletsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private ReqModifyConfig(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + op_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + modifier_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWalletsCount() > 0) { - hash = (37 * hash) + WALLETS_FIELD_NUMBER; - hash = (53 * hash) + getWalletsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WalletAccounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletAccounts) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getWalletsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (walletsBuilder_ == null) { - wallets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - walletsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccounts_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts(this); - int from_bitField0_ = bitField0_; - if (walletsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - wallets_ = java.util.Collections.unmodifiableList(wallets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.wallets_ = wallets_; - } else { - result.wallets_ = walletsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.getDefaultInstance()) return this; - if (walletsBuilder_ == null) { - if (!other.wallets_.isEmpty()) { - if (wallets_.isEmpty()) { - wallets_ = other.wallets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWalletsIsMutable(); - wallets_.addAll(other.wallets_); - } - onChanged(); - } - } else { - if (!other.wallets_.isEmpty()) { - if (walletsBuilder_.isEmpty()) { - walletsBuilder_.dispose(); - walletsBuilder_ = null; - wallets_ = other.wallets_; - bitField0_ = (bitField0_ & ~0x00000001); - walletsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWalletsFieldBuilder() : null; + /** + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - walletsBuilder_.addAllMessages(other.wallets_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List wallets_ = - java.util.Collections.emptyList(); - private void ensureWalletsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - wallets_ = new java.util.ArrayList(wallets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder> walletsBuilder_; - - /** - * repeated .WalletAccount wallets = 1; - */ - public java.util.List getWalletsList() { - if (walletsBuilder_ == null) { - return java.util.Collections.unmodifiableList(wallets_); - } else { - return walletsBuilder_.getMessageList(); - } - } - /** - * repeated .WalletAccount wallets = 1; - */ - public int getWalletsCount() { - if (walletsBuilder_ == null) { - return wallets_.size(); - } else { - return walletsBuilder_.getCount(); - } - } - /** - * repeated .WalletAccount wallets = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getWallets(int index) { - if (walletsBuilder_ == null) { - return wallets_.get(index); - } else { - return walletsBuilder_.getMessage(index); - } - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder setWallets( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount value) { - if (walletsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWalletsIsMutable(); - wallets_.set(index, value); - onChanged(); - } else { - walletsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder setWallets( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder builderForValue) { - if (walletsBuilder_ == null) { - ensureWalletsIsMutable(); - wallets_.set(index, builderForValue.build()); - onChanged(); - } else { - walletsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder addWallets(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount value) { - if (walletsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWalletsIsMutable(); - wallets_.add(value); - onChanged(); - } else { - walletsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder addWallets( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount value) { - if (walletsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWalletsIsMutable(); - wallets_.add(index, value); - onChanged(); - } else { - walletsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder addWallets( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder builderForValue) { - if (walletsBuilder_ == null) { - ensureWalletsIsMutable(); - wallets_.add(builderForValue.build()); - onChanged(); - } else { - walletsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder addWallets( - int index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder builderForValue) { - if (walletsBuilder_ == null) { - ensureWalletsIsMutable(); - wallets_.add(index, builderForValue.build()); - onChanged(); - } else { - walletsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder addAllWallets( - java.lang.Iterable values) { - if (walletsBuilder_ == null) { - ensureWalletsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, wallets_); - onChanged(); - } else { - walletsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder clearWallets() { - if (walletsBuilder_ == null) { - wallets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - walletsBuilder_.clear(); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public Builder removeWallets(int index) { - if (walletsBuilder_ == null) { - ensureWalletsIsMutable(); - wallets_.remove(index); - onChanged(); - } else { - walletsBuilder_.remove(index); - } - return this; - } - /** - * repeated .WalletAccount wallets = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder getWalletsBuilder( - int index) { - return getWalletsFieldBuilder().getBuilder(index); - } - /** - * repeated .WalletAccount wallets = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder getWalletsOrBuilder( - int index) { - if (walletsBuilder_ == null) { - return wallets_.get(index); } else { - return walletsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WalletAccount wallets = 1; - */ - public java.util.List - getWalletsOrBuilderList() { - if (walletsBuilder_ != null) { - return walletsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(wallets_); - } - } - /** - * repeated .WalletAccount wallets = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder addWalletsBuilder() { - return getWalletsFieldBuilder().addBuilder( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance()); - } - /** - * repeated .WalletAccount wallets = 1; - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder addWalletsBuilder( - int index) { - return getWalletsFieldBuilder().addBuilder( - index, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance()); - } - /** - * repeated .WalletAccount wallets = 1; - */ - public java.util.List - getWalletsBuilderList() { - return getWalletsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder> - getWalletsFieldBuilder() { - if (walletsBuilder_ == null) { - walletsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder>( - wallets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - wallets_ = null; - } - return walletsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletAccounts) - } - - // @@protoc_insertion_point(class_scope:WalletAccounts) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts(); - } + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int OP_FIELD_NUMBER = 2; + private volatile java.lang.Object op_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string op = 2; + * + * @return The op. + */ + @java.lang.Override + public java.lang.String getOp() { + java.lang.Object ref = op_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + op_ = s; + return s; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string op = 2; + * + * @return The bytes for op. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } + public static final int VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object value_; - public interface WalletAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletAccount) - com.google.protobuf.MessageOrBuilder { + /** + * string value = 3; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } - /** - * .Account acc = 1; - * @return Whether the acc field is set. - */ - boolean hasAcc(); - /** - * .Account acc = 1; - * @return The acc. - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc(); - /** - * .Account acc = 1; - */ - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder(); + /** + * string value = 3; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * string label = 2; - * @return The label. - */ - java.lang.String getLabel(); - /** - * string label = 2; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code WalletAccount} - */ - public static final class WalletAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletAccount) - WalletAccountOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletAccount.newBuilder() to construct. - private WalletAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletAccount() { - label_ = ""; - } + public static final int MODIFIER_FIELD_NUMBER = 4; + private volatile java.lang.Object modifier_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletAccount(); - } + /** + * string modifier = 4; + * + * @return The modifier. + */ + @java.lang.Override + public java.lang.String getModifier() { + java.lang.Object ref = modifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modifier_ = s; + return s; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder subBuilder = null; - if (acc_ != null) { - subBuilder = acc_.toBuilder(); - } - acc_ = input.readMessage(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acc_); - acc_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - label_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_descriptor; - } + /** + * string modifier = 4; + * + * @return The bytes for modifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModifierBytes() { + java.lang.Object ref = modifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder.class); - } + private byte memoizedIsInitialized = -1; - public static final int ACC_FIELD_NUMBER = 1; - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account acc_; - /** - * .Account acc = 1; - * @return Whether the acc field is set. - */ - public boolean hasAcc() { - return acc_ != null; - } - /** - * .Account acc = 1; - * @return The acc. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc() { - return acc_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : acc_; - } - /** - * .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder() { - return getAcc(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static final int LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object label_; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + memoizedIsInitialized = 1; + return true; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getOpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, op_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (!getModifierBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modifier_); + } + unknownFields.writeTo(output); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (acc_ != null) { - output.writeMessage(1, getAcc()); - } - if (!getLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); - } - unknownFields.writeTo(output); - } + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getOpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, op_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (!getModifierBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modifier_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (acc_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAcc()); - } - if (!getLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); - } - 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 cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (!getOp().equals(other.getOp())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!getModifier().equals(other.getModifier())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOp().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + MODIFIER_FIELD_NUMBER; + hash = (53 * hash) + getModifier().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount) obj; - - if (hasAcc() != other.hasAcc()) return false; - if (hasAcc()) { - if (!getAcc() - .equals(other.getAcc())) return false; - } - if (!getLabel() - .equals(other.getLabel())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAcc()) { - hash = (37 * hash) + ACC_FIELD_NUMBER; - hash = (53 * hash) + getAcc().hashCode(); - } - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WalletAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletAccount) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accBuilder_ == null) { - acc_ = null; - } else { - acc_ = null; - accBuilder_ = null; - } - label_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletAccount_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount(this); - if (accBuilder_ == null) { - result.acc_ = acc_; - } else { - result.acc_ = accBuilder_.build(); - } - result.label_ = label_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance()) return this; - if (other.hasAcc()) { - mergeAcc(other.getAcc()); - } - if (!other.getLabel().isEmpty()) { - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account acc_; - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> accBuilder_; - /** - * .Account acc = 1; - * @return Whether the acc field is set. - */ - public boolean hasAcc() { - return accBuilder_ != null || acc_ != null; - } - /** - * .Account acc = 1; - * @return The acc. - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account getAcc() { - if (accBuilder_ == null) { - return acc_ == null ? cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : acc_; - } else { - return accBuilder_.getMessage(); - } - } - /** - * .Account acc = 1; - */ - public Builder setAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (accBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - acc_ = value; - onChanged(); - } else { - accBuilder_.setMessage(value); - } - - return this; - } - /** - * .Account acc = 1; - */ - public Builder setAcc( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder builderForValue) { - if (accBuilder_ == null) { - acc_ = builderForValue.build(); - onChanged(); - } else { - accBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .Account acc = 1; - */ - public Builder mergeAcc(cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account value) { - if (accBuilder_ == null) { - if (acc_ != null) { - acc_ = - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.newBuilder(acc_).mergeFrom(value).buildPartial(); - } else { - acc_ = value; - } - onChanged(); - } else { - accBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .Account acc = 1; - */ - public Builder clearAcc() { - if (accBuilder_ == null) { - acc_ = null; - onChanged(); - } else { - acc_ = null; - accBuilder_ = null; - } - - return this; - } - /** - * .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder getAccBuilder() { - - onChanged(); - return getAccFieldBuilder().getBuilder(); - } - /** - * .Account acc = 1; - */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder getAccOrBuilder() { - if (accBuilder_ != null) { - return accBuilder_.getMessageOrBuilder(); - } else { - return acc_ == null ? - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.getDefaultInstance() : acc_; - } - } - /** - * .Account acc = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder> - getAccFieldBuilder() { - if (accBuilder_ == null) { - accBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account, cn.chain33.javasdk.model.protobuf.AccountProtobuf.Account.Builder, cn.chain33.javasdk.model.protobuf.AccountProtobuf.AccountOrBuilder>( - getAcc(), - getParentForChildren(), - isClean()); - acc_ = null; - } - return accBuilder_; - } - - private java.lang.Object label_ = ""; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string label = 2; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - onChanged(); - return this; - } - /** - * string label = 2; - * @return This builder for chaining. - */ - public Builder clearLabel() { - - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * string label = 2; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletAccount) - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:WalletAccount) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public interface WalletUnLockOrBuilder extends - // @@protoc_insertion_point(interface_extends:WalletUnLock) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string passwd = 1; - * @return The passwd. - */ - java.lang.String getPasswd(); - /** - * string passwd = 1; - * @return The bytes for passwd. - */ - com.google.protobuf.ByteString - getPasswdBytes(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * int64 timeout = 2; - * @return The timeout. - */ - long getTimeout(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * bool walletOrTicket = 3; - * @return The walletOrTicket. - */ - boolean getWalletOrTicket(); - } - /** - *
-   *钱包解锁
-   * 	 passwd : 钱包密码
-   *	 timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
-   *	 walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
-   * 
- * - * Protobuf type {@code WalletUnLock} - */ - public static final class WalletUnLock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WalletUnLock) - WalletUnLockOrBuilder { - private static final long serialVersionUID = 0L; - // Use WalletUnLock.newBuilder() to construct. - private WalletUnLock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WalletUnLock() { - passwd_ = ""; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WalletUnLock(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WalletUnLock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - passwd_ = s; - break; - } - case 16: { - - timeout_ = input.readInt64(); - break; - } - case 24: { - - walletOrTicket_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.Builder.class); - } + /** + * Protobuf type {@code ReqModifyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqModifyConfig) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_descriptor; + } - public static final int PASSWD_FIELD_NUMBER = 1; - private volatile java.lang.Object passwd_; - /** - * string passwd = 1; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } - } - /** - * string passwd = 1; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.Builder.class); + } - public static final int TIMEOUT_FIELD_NUMBER = 2; - private long timeout_; - /** - * int64 timeout = 2; - * @return The timeout. - */ - public long getTimeout() { - return timeout_; - } + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int WALLETORTICKET_FIELD_NUMBER = 3; - private boolean walletOrTicket_; - /** - * bool walletOrTicket = 3; - * @return The walletOrTicket. - */ - public boolean getWalletOrTicket() { - return walletOrTicket_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPasswdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, passwd_); - } - if (timeout_ != 0L) { - output.writeInt64(2, timeout_); - } - if (walletOrTicket_ != false) { - output.writeBool(3, walletOrTicket_); - } - unknownFields.writeTo(output); - } + op_ = ""; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPasswdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, passwd_); - } - if (timeout_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, timeout_); - } - if (walletOrTicket_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, walletOrTicket_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + value_ = ""; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) obj; - - if (!getPasswd() - .equals(other.getPasswd())) return false; - if (getTimeout() - != other.getTimeout()) return false; - if (getWalletOrTicket() - != other.getWalletOrTicket()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + modifier_ = ""; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PASSWD_FIELD_NUMBER; - hash = (53 * hash) + getPasswd().hashCode(); - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeout()); - hash = (37 * hash) + WALLETORTICKET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWalletOrTicket()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *钱包解锁
-     * 	 passwd : 钱包密码
-     *	 timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
-     *	 walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
-     * 
- * - * Protobuf type {@code WalletUnLock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WalletUnLock) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - passwd_ = ""; - - timeout_ = 0L; - - walletOrTicket_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_WalletUnLock_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock(this); - result.passwd_ = passwd_; - result.timeout_ = timeout_; - result.walletOrTicket_ = walletOrTicket_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.getDefaultInstance()) return this; - if (!other.getPasswd().isEmpty()) { - passwd_ = other.passwd_; - onChanged(); - } - if (other.getTimeout() != 0L) { - setTimeout(other.getTimeout()); - } - if (other.getWalletOrTicket() != false) { - setWalletOrTicket(other.getWalletOrTicket()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object passwd_ = ""; - /** - * string passwd = 1; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string passwd = 1; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string passwd = 1; - * @param value The passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswd( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - passwd_ = value; - onChanged(); - return this; - } - /** - * string passwd = 1; - * @return This builder for chaining. - */ - public Builder clearPasswd() { - - passwd_ = getDefaultInstance().getPasswd(); - onChanged(); - return this; - } - /** - * string passwd = 1; - * @param value The bytes for passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - passwd_ = value; - onChanged(); - return this; - } - - private long timeout_ ; - /** - * int64 timeout = 2; - * @return The timeout. - */ - public long getTimeout() { - return timeout_; - } - /** - * int64 timeout = 2; - * @param value The timeout to set. - * @return This builder for chaining. - */ - public Builder setTimeout(long value) { - - timeout_ = value; - onChanged(); - return this; - } - /** - * int64 timeout = 2; - * @return This builder for chaining. - */ - public Builder clearTimeout() { - - timeout_ = 0L; - onChanged(); - return this; - } - - private boolean walletOrTicket_ ; - /** - * bool walletOrTicket = 3; - * @return The walletOrTicket. - */ - public boolean getWalletOrTicket() { - return walletOrTicket_; - } - /** - * bool walletOrTicket = 3; - * @param value The walletOrTicket to set. - * @return This builder for chaining. - */ - public Builder setWalletOrTicket(boolean value) { - - walletOrTicket_ = value; - onChanged(); - return this; - } - /** - * bool walletOrTicket = 3; - * @return This builder for chaining. - */ - public Builder clearWalletOrTicket() { - - walletOrTicket_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WalletUnLock) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:WalletUnLock) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig( + this); + result.key_ = key_; + result.op_ = op_; + result.value_ = value_; + result.modifier_ = modifier_; + onBuilt(); + return result; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WalletUnLock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WalletUnLock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public interface GenSeedLangOrBuilder extends - // @@protoc_insertion_point(interface_extends:GenSeedLang) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - /** - * int32 lang = 1; - * @return The lang. - */ - int getLang(); - } - /** - * Protobuf type {@code GenSeedLang} - */ - public static final class GenSeedLang extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GenSeedLang) - GenSeedLangOrBuilder { - private static final long serialVersionUID = 0L; - // Use GenSeedLang.newBuilder() to construct. - private GenSeedLang(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenSeedLang() { - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GenSeedLang(); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getOp().isEmpty()) { + op_ = other.op_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (!other.getModifier().isEmpty()) { + modifier_ = other.modifier_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GenSeedLang( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - lang_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.Builder.class); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int LANG_FIELD_NUMBER = 1; - private int lang_; - /** - * int32 lang = 1; - * @return The lang. - */ - public int getLang() { - return lang_; - } + private java.lang.Object key_ = ""; + + /** + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lang_ != 0) { - output.writeInt32(1, lang_); - } - unknownFields.writeTo(output); - } + /** + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lang_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, lang_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) obj; - - if (getLang() - != other.getLang()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LANG_FIELD_NUMBER; - hash = (53 * hash) + getLang(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object op_ = ""; + + /** + * string op = 2; + * + * @return The op. + */ + public java.lang.String getOp() { + java.lang.Object ref = op_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + op_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string op = 2; + * + * @return The bytes for op. + */ + public com.google.protobuf.ByteString getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string op = 2; + * + * @param value + * The op to set. + * + * @return This builder for chaining. + */ + public Builder setOp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + op_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GenSeedLang} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GenSeedLang) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLangOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - lang_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GenSeedLang_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang(this); - result.lang_ = lang_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.getDefaultInstance()) return this; - if (other.getLang() != 0) { - setLang(other.getLang()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int lang_ ; - /** - * int32 lang = 1; - * @return The lang. - */ - public int getLang() { - return lang_; - } - /** - * int32 lang = 1; - * @param value The lang to set. - * @return This builder for chaining. - */ - public Builder setLang(int value) { - - lang_ = value; - onChanged(); - return this; - } - /** - * int32 lang = 1; - * @return This builder for chaining. - */ - public Builder clearLang() { - - lang_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GenSeedLang) - } + /** + * string op = 2; + * + * @return This builder for chaining. + */ + public Builder clearOp() { - // @@protoc_insertion_point(class_scope:GenSeedLang) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang(); - } + op_ = getDefaultInstance().getOp(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string op = 2; + * + * @param value + * The bytes for op to set. + * + * @return This builder for chaining. + */ + public Builder setOpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + op_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenSeedLang parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenSeedLang(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object value_ = ""; + + /** + * string value = 3; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string value = 3; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string value = 3; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } - } + /** + * string value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { - public interface GetSeedByPwOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetSeedByPw) - com.google.protobuf.MessageOrBuilder { + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } - /** - * string passwd = 1; - * @return The passwd. - */ - java.lang.String getPasswd(); - /** - * string passwd = 1; - * @return The bytes for passwd. - */ - com.google.protobuf.ByteString - getPasswdBytes(); - } - /** - * Protobuf type {@code GetSeedByPw} - */ - public static final class GetSeedByPw extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetSeedByPw) - GetSeedByPwOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetSeedByPw.newBuilder() to construct. - private GetSeedByPw(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSeedByPw() { - passwd_ = ""; - } + /** + * string value = 3; + * + * @param value + * The bytes for value to set. + * + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSeedByPw(); - } + private java.lang.Object modifier_ = ""; + + /** + * string modifier = 4; + * + * @return The modifier. + */ + public java.lang.String getModifier() { + java.lang.Object ref = modifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetSeedByPw( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - passwd_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_descriptor; - } + /** + * string modifier = 4; + * + * @return The bytes for modifier. + */ + public com.google.protobuf.ByteString getModifierBytes() { + java.lang.Object ref = modifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + modifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.Builder.class); - } + /** + * string modifier = 4; + * + * @param value + * The modifier to set. + * + * @return This builder for chaining. + */ + public Builder setModifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modifier_ = value; + onChanged(); + return this; + } - public static final int PASSWD_FIELD_NUMBER = 1; - private volatile java.lang.Object passwd_; - /** - * string passwd = 1; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } - } - /** - * string passwd = 1; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string modifier = 4; + * + * @return This builder for chaining. + */ + public Builder clearModifier() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + modifier_ = getDefaultInstance().getModifier(); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string modifier = 4; + * + * @param value + * The bytes for modifier to set. + * + * @return This builder for chaining. + */ + public Builder setModifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modifier_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPasswdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, passwd_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPasswdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, passwd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) obj; - - if (!getPasswd() - .equals(other.getPasswd())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:ReqModifyConfig) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PASSWD_FIELD_NUMBER; - hash = (53 * hash) + getPasswd().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:ReqModifyConfig) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig(); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqModifyConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqModifyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqSignRawTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqSignRawTx) + com.google.protobuf.MessageOrBuilder { + + /** + * string addr = 1; + * + * @return The addr. + */ + java.lang.String getAddr(); + + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + com.google.protobuf.ByteString getAddrBytes(); + + /** + * string privkey = 2; + * + * @return The privkey. + */ + java.lang.String getPrivkey(); + + /** + * string privkey = 2; + * + * @return The bytes for privkey. + */ + com.google.protobuf.ByteString getPrivkeyBytes(); + + /** + * string txHex = 3; + * + * @return The txHex. + */ + java.lang.String getTxHex(); + + /** + * string txHex = 3; + * + * @return The bytes for txHex. + */ + com.google.protobuf.ByteString getTxHexBytes(); + + /** + * string expire = 4; + * + * @return The expire. + */ + java.lang.String getExpire(); + + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + com.google.protobuf.ByteString getExpireBytes(); + + /** + * int32 index = 5; + * + * @return The index. + */ + int getIndex(); + + /** + *
+         * 签名的模式类型
+         * 0:普通交易
+         * 1:隐私交易
+         * int32  mode  = 6;
+         * 
+ * + * string token = 7; + * + * @return The token. + */ + java.lang.String getToken(); + + /** + *
+         * 签名的模式类型
+         * 0:普通交易
+         * 1:隐私交易
+         * int32  mode  = 6;
+         * 
+ * + * string token = 7; + * + * @return The bytes for token. + */ + com.google.protobuf.ByteString getTokenBytes(); + + /** + * int64 fee = 8; + * + * @return The fee. + */ + long getFee(); + + /** + *
+         * bytes newExecer = 9;
+         * 
+ * + * string newToAddr = 10; + * + * @return The newToAddr. + */ + java.lang.String getNewToAddr(); + + /** + *
+         * bytes newExecer = 9;
+         * 
+ * + * string newToAddr = 10; + * + * @return The bytes for newToAddr. + */ + com.google.protobuf.ByteString getNewToAddrBytes(); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** - * Protobuf type {@code GetSeedByPw} + * Protobuf type {@code ReqSignRawTx} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GetSeedByPw) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPwOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - passwd_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_GetSeedByPw_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw(this); - result.passwd_ = passwd_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.getDefaultInstance()) return this; - if (!other.getPasswd().isEmpty()) { - passwd_ = other.passwd_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object passwd_ = ""; - /** - * string passwd = 1; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string passwd = 1; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string passwd = 1; - * @param value The passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswd( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - passwd_ = value; - onChanged(); - return this; - } - /** - * string passwd = 1; - * @return This builder for chaining. - */ - public Builder clearPasswd() { - - passwd_ = getDefaultInstance().getPasswd(); - onChanged(); - return this; - } - /** - * string passwd = 1; - * @param value The bytes for passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - passwd_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetSeedByPw) - } - - // @@protoc_insertion_point(class_scope:GetSeedByPw) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw(); - } - - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSeedByPw parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSeedByPw(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final class ReqSignRawTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqSignRawTx) + ReqSignRawTxOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Use ReqSignRawTx.newBuilder() to construct. + private ReqSignRawTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ReqSignRawTx() { + addr_ = ""; + privkey_ = ""; + txHex_ = ""; + expire_ = ""; + token_ = ""; + newToAddr_ = ""; + } - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqSignRawTx(); + } - public interface SaveSeedByPwOrBuilder extends - // @@protoc_insertion_point(interface_extends:SaveSeedByPw) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - /** - * string seed = 1; - * @return The seed. - */ - java.lang.String getSeed(); - /** - * string seed = 1; - * @return The bytes for seed. - */ - com.google.protobuf.ByteString - getSeedBytes(); + private ReqSignRawTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + addr_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + privkey_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + txHex_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + expire_ = s; + break; + } + case 40: { + + index_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 64: { + + fee_ = input.readInt64(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + newToAddr_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - /** - * string passwd = 2; - * @return The passwd. - */ - java.lang.String getPasswd(); - /** - * string passwd = 2; - * @return The bytes for passwd. - */ - com.google.protobuf.ByteString - getPasswdBytes(); - } - /** - *
-   *存储钱包的种子
-   * 	 seed : 钱包种子
-   *	 passwd :钱包密码
-   * 
- * - * Protobuf type {@code SaveSeedByPw} - */ - public static final class SaveSeedByPw extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SaveSeedByPw) - SaveSeedByPwOrBuilder { - private static final long serialVersionUID = 0L; - // Use SaveSeedByPw.newBuilder() to construct. - private SaveSeedByPw(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SaveSeedByPw() { - seed_ = ""; - passwd_ = ""; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SaveSeedByPw(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SaveSeedByPw( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - seed_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - passwd_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_descriptor; - } + public static final int ADDR_FIELD_NUMBER = 1; + private volatile java.lang.Object addr_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.Builder.class); - } + /** + * string addr = 1; + * + * @return The addr. + */ + @java.lang.Override + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } + } - public static final int SEED_FIELD_NUMBER = 1; - private volatile java.lang.Object seed_; - /** - * string seed = 1; - * @return The seed. - */ - public java.lang.String getSeed() { - java.lang.Object ref = seed_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - seed_ = s; - return s; - } - } - /** - * string seed = 1; - * @return The bytes for seed. - */ - public com.google.protobuf.ByteString - getSeedBytes() { - java.lang.Object ref = seed_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seed_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int PASSWD_FIELD_NUMBER = 2; - private volatile java.lang.Object passwd_; - /** - * string passwd = 2; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } - } - /** - * string passwd = 2; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int PRIVKEY_FIELD_NUMBER = 2; + private volatile java.lang.Object privkey_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string privkey = 2; + * + * @return The privkey. + */ + @java.lang.Override + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string privkey = 2; + * + * @return The bytes for privkey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSeedBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, seed_); - } - if (!getPasswdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwd_); - } - unknownFields.writeTo(output); - } + public static final int TXHEX_FIELD_NUMBER = 3; + private volatile java.lang.Object txHex_; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSeedBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, seed_); - } - if (!getPasswdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string txHex = 3; + * + * @return The txHex. + */ + @java.lang.Override + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) obj; - - if (!getSeed() - .equals(other.getSeed())) return false; - if (!getPasswd() - .equals(other.getPasswd())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string txHex = 3; + * + * @return The bytes for txHex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEED_FIELD_NUMBER; - hash = (53 * hash) + getSeed().hashCode(); - hash = (37 * hash) + PASSWD_FIELD_NUMBER; - hash = (53 * hash) + getPasswd().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int EXPIRE_FIELD_NUMBER = 4; + private volatile java.lang.Object expire_; - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string expire = 4; + * + * @return The expire. + */ + @java.lang.Override + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *存储钱包的种子
-     * 	 seed : 钱包种子
-     *	 passwd :钱包密码
-     * 
- * - * Protobuf type {@code SaveSeedByPw} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SaveSeedByPw) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPwOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - seed_ = ""; - - passwd_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_SaveSeedByPw_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw(this); - result.seed_ = seed_; - result.passwd_ = passwd_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.getDefaultInstance()) return this; - if (!other.getSeed().isEmpty()) { - seed_ = other.seed_; - onChanged(); - } - if (!other.getPasswd().isEmpty()) { - passwd_ = other.passwd_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object seed_ = ""; - /** - * string seed = 1; - * @return The seed. - */ - public java.lang.String getSeed() { - java.lang.Object ref = seed_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - seed_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string seed = 1; - * @return The bytes for seed. - */ - public com.google.protobuf.ByteString - getSeedBytes() { - java.lang.Object ref = seed_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seed_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string seed = 1; - * @param value The seed to set. - * @return This builder for chaining. - */ - public Builder setSeed( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - seed_ = value; - onChanged(); - return this; - } - /** - * string seed = 1; - * @return This builder for chaining. - */ - public Builder clearSeed() { - - seed_ = getDefaultInstance().getSeed(); - onChanged(); - return this; - } - /** - * string seed = 1; - * @param value The bytes for seed to set. - * @return This builder for chaining. - */ - public Builder setSeedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - seed_ = value; - onChanged(); - return this; - } - - private java.lang.Object passwd_ = ""; - /** - * string passwd = 2; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string passwd = 2; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string passwd = 2; - * @param value The passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswd( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - passwd_ = value; - onChanged(); - return this; - } - /** - * string passwd = 2; - * @return This builder for chaining. - */ - public Builder clearPasswd() { - - passwd_ = getDefaultInstance().getPasswd(); - onChanged(); - return this; - } - /** - * string passwd = 2; - * @param value The bytes for passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - passwd_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SaveSeedByPw) - } + public static final int INDEX_FIELD_NUMBER = 5; + private int index_; + + /** + * int32 index = 5; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int TOKEN_FIELD_NUMBER = 7; + private volatile java.lang.Object token_; + + /** + *
+         * 签名的模式类型
+         * 0:普通交易
+         * 1:隐私交易
+         * int32  mode  = 6;
+         * 
+ * + * string token = 7; + * + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } - // @@protoc_insertion_point(class_scope:SaveSeedByPw) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw(); - } + /** + *
+         * 签名的模式类型
+         * 0:普通交易
+         * 1:隐私交易
+         * int32  mode  = 6;
+         * 
+ * + * string token = 7; + * + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int FEE_FIELD_NUMBER = 8; + private long fee_; + + /** + * int64 fee = 8; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int NEWTOADDR_FIELD_NUMBER = 10; + private volatile java.lang.Object newToAddr_; + + /** + *
+         * bytes newExecer = 9;
+         * 
+ * + * string newToAddr = 10; + * + * @return The newToAddr. + */ + @java.lang.Override + public java.lang.String getNewToAddr() { + java.lang.Object ref = newToAddr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newToAddr_ = s; + return s; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SaveSeedByPw parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SaveSeedByPw(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + *
+         * bytes newExecer = 9;
+         * 
+ * + * string newToAddr = 10; + * + * @return The bytes for newToAddr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewToAddrBytes() { + java.lang.Object ref = newToAddr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newToAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - } + memoizedIsInitialized = 1; + return true; + } - public interface ReplySeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplySeed) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); + } + if (!getPrivkeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privkey_); + } + if (!getTxHexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, txHex_); + } + if (!getExpireBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); + } + if (index_ != 0) { + output.writeInt32(5, index_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, token_); + } + if (fee_ != 0L) { + output.writeInt64(8, fee_); + } + if (!getNewToAddrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, newToAddr_); + } + unknownFields.writeTo(output); + } - /** - * string seed = 1; - * @return The seed. - */ - java.lang.String getSeed(); - /** - * string seed = 1; - * @return The bytes for seed. - */ - com.google.protobuf.ByteString - getSeedBytes(); - } - /** - * Protobuf type {@code ReplySeed} - */ - public static final class ReplySeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplySeed) - ReplySeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplySeed.newBuilder() to construct. - private ReplySeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplySeed() { - seed_ = ""; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplySeed(); - } + size = 0; + if (!getAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); + } + if (!getPrivkeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privkey_); + } + if (!getTxHexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, txHex_); + } + if (!getExpireBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, index_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, token_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, fee_); + } + if (!getNewToAddrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, newToAddr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplySeed( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - seed_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) obj; + + if (!getAddr().equals(other.getAddr())) + return false; + if (!getPrivkey().equals(other.getPrivkey())) + return false; + if (!getTxHex().equals(other.getTxHex())) + return false; + if (!getExpire().equals(other.getExpire())) + return false; + if (getIndex() != other.getIndex()) + return false; + if (!getToken().equals(other.getToken())) + return false; + if (getFee() != other.getFee()) + return false; + if (!getNewToAddr().equals(other.getNewToAddr())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDR_FIELD_NUMBER; + hash = (53 * hash) + getAddr().hashCode(); + hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivkey().hashCode(); + hash = (37 * hash) + TXHEX_FIELD_NUMBER; + hash = (53 * hash) + getTxHex().hashCode(); + hash = (37 * hash) + EXPIRE_FIELD_NUMBER; + hash = (53 * hash) + getExpire().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFee()); + hash = (37 * hash) + NEWTOADDR_FIELD_NUMBER; + hash = (53 * hash) + getNewToAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int SEED_FIELD_NUMBER = 1; - private volatile java.lang.Object seed_; - /** - * string seed = 1; - * @return The seed. - */ - public java.lang.String getSeed() { - java.lang.Object ref = seed_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - seed_ = s; - return s; - } - } - /** - * string seed = 1; - * @return The bytes for seed. - */ - public com.google.protobuf.ByteString - getSeedBytes() { - java.lang.Object ref = seed_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seed_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSeedBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, seed_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSeedBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, seed_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed) obj; - - if (!getSeed() - .equals(other.getSeed())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEED_FIELD_NUMBER; - hash = (53 * hash) + getSeed().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplySeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplySeed) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - seed_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySeed_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed(this); - result.seed_ = seed_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance()) return this; - if (!other.getSeed().isEmpty()) { - seed_ = other.seed_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object seed_ = ""; - /** - * string seed = 1; - * @return The seed. - */ - public java.lang.String getSeed() { - java.lang.Object ref = seed_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - seed_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string seed = 1; - * @return The bytes for seed. - */ - public com.google.protobuf.ByteString - getSeedBytes() { - java.lang.Object ref = seed_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seed_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string seed = 1; - * @param value The seed to set. - * @return This builder for chaining. - */ - public Builder setSeed( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - seed_ = value; - onChanged(); - return this; - } - /** - * string seed = 1; - * @return This builder for chaining. - */ - public Builder clearSeed() { - - seed_ = getDefaultInstance().getSeed(); - onChanged(); - return this; - } - /** - * string seed = 1; - * @param value The bytes for seed to set. - * @return This builder for chaining. - */ - public Builder setSeedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - seed_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplySeed) - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:ReplySeed) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplySeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplySeed(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + 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; + } - public interface ReqWalletSetPasswdOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqWalletSetPasswd) - com.google.protobuf.MessageOrBuilder { + /** + * Protobuf type {@code ReqSignRawTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqSignRawTx) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_descriptor; + } - /** - * string oldPass = 1; - * @return The oldPass. - */ - java.lang.String getOldPass(); - /** - * string oldPass = 1; - * @return The bytes for oldPass. - */ - com.google.protobuf.ByteString - getOldPassBytes(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.Builder.class); + } - /** - * string newPass = 2; - * @return The newPass. - */ - java.lang.String getNewPass(); - /** - * string newPass = 2; - * @return The bytes for newPass. - */ - com.google.protobuf.ByteString - getNewPassBytes(); - } - /** - * Protobuf type {@code ReqWalletSetPasswd} - */ - public static final class ReqWalletSetPasswd extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqWalletSetPasswd) - ReqWalletSetPasswdOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqWalletSetPasswd.newBuilder() to construct. - private ReqWalletSetPasswd(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqWalletSetPasswd() { - oldPass_ = ""; - newPass_ = ""; - } + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqWalletSetPasswd(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqWalletSetPasswd( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - oldPass_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - newPass_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_descriptor; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.Builder.class); - } + @java.lang.Override + public Builder clear() { + super.clear(); + addr_ = ""; - public static final int OLDPASS_FIELD_NUMBER = 1; - private volatile java.lang.Object oldPass_; - /** - * string oldPass = 1; - * @return The oldPass. - */ - public java.lang.String getOldPass() { - java.lang.Object ref = oldPass_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oldPass_ = s; - return s; - } - } - /** - * string oldPass = 1; - * @return The bytes for oldPass. - */ - public com.google.protobuf.ByteString - getOldPassBytes() { - java.lang.Object ref = oldPass_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oldPass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + privkey_ = ""; - public static final int NEWPASS_FIELD_NUMBER = 2; - private volatile java.lang.Object newPass_; - /** - * string newPass = 2; - * @return The newPass. - */ - public java.lang.String getNewPass() { - java.lang.Object ref = newPass_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newPass_ = s; - return s; - } - } - /** - * string newPass = 2; - * @return The bytes for newPass. - */ - public com.google.protobuf.ByteString - getNewPassBytes() { - java.lang.Object ref = newPass_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newPass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + txHex_ = ""; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + expire_ = ""; - memoizedIsInitialized = 1; - return true; - } + index_ = 0; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getOldPassBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oldPass_); - } - if (!getNewPassBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newPass_); - } - unknownFields.writeTo(output); - } + token_ = ""; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOldPassBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oldPass_); - } - if (!getNewPassBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newPass_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + fee_ = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) obj; - - if (!getOldPass() - .equals(other.getOldPass())) return false; - if (!getNewPass() - .equals(other.getNewPass())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + newToAddr_ = ""; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OLDPASS_FIELD_NUMBER; - hash = (53 * hash) + getOldPass().hashCode(); - hash = (37 * hash) + NEWPASS_FIELD_NUMBER; - hash = (53 * hash) + getNewPass().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqWalletSetPasswd} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqWalletSetPasswd) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - oldPass_ = ""; - - newPass_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetPasswd_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd(this); - result.oldPass_ = oldPass_; - result.newPass_ = newPass_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.getDefaultInstance()) return this; - if (!other.getOldPass().isEmpty()) { - oldPass_ = other.oldPass_; - onChanged(); - } - if (!other.getNewPass().isEmpty()) { - newPass_ = other.newPass_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object oldPass_ = ""; - /** - * string oldPass = 1; - * @return The oldPass. - */ - public java.lang.String getOldPass() { - java.lang.Object ref = oldPass_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oldPass_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string oldPass = 1; - * @return The bytes for oldPass. - */ - public com.google.protobuf.ByteString - getOldPassBytes() { - java.lang.Object ref = oldPass_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oldPass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string oldPass = 1; - * @param value The oldPass to set. - * @return This builder for chaining. - */ - public Builder setOldPass( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - oldPass_ = value; - onChanged(); - return this; - } - /** - * string oldPass = 1; - * @return This builder for chaining. - */ - public Builder clearOldPass() { - - oldPass_ = getDefaultInstance().getOldPass(); - onChanged(); - return this; - } - /** - * string oldPass = 1; - * @param value The bytes for oldPass to set. - * @return This builder for chaining. - */ - public Builder setOldPassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - oldPass_ = value; - onChanged(); - return this; - } - - private java.lang.Object newPass_ = ""; - /** - * string newPass = 2; - * @return The newPass. - */ - public java.lang.String getNewPass() { - java.lang.Object ref = newPass_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newPass_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string newPass = 2; - * @return The bytes for newPass. - */ - public com.google.protobuf.ByteString - getNewPassBytes() { - java.lang.Object ref = newPass_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newPass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string newPass = 2; - * @param value The newPass to set. - * @return This builder for chaining. - */ - public Builder setNewPass( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - newPass_ = value; - onChanged(); - return this; - } - /** - * string newPass = 2; - * @return This builder for chaining. - */ - public Builder clearNewPass() { - - newPass_ = getDefaultInstance().getNewPass(); - onChanged(); - return this; - } - /** - * string newPass = 2; - * @param value The bytes for newPass to set. - * @return This builder for chaining. - */ - public Builder setNewPassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - newPass_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqWalletSetPasswd) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:ReqWalletSetPasswd) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx( + this); + result.addr_ = addr_; + result.privkey_ = privkey_; + result.txHex_ = txHex_; + result.expire_ = expire_; + result.index_ = index_; + result.token_ = token_; + result.fee_ = fee_; + result.newToAddr_ = newToAddr_; + onBuilt(); + return result; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqWalletSetPasswd parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqWalletSetPasswd(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public interface ReqNewAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqNewAccount) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - /** - * string label = 1; - * @return The label. - */ - java.lang.String getLabel(); - /** - * string label = 1; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code ReqNewAccount} - */ - public static final class ReqNewAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqNewAccount) - ReqNewAccountOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqNewAccount.newBuilder() to construct. - private ReqNewAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqNewAccount() { - label_ = ""; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqNewAccount(); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.getDefaultInstance()) + return this; + if (!other.getAddr().isEmpty()) { + addr_ = other.addr_; + onChanged(); + } + if (!other.getPrivkey().isEmpty()) { + privkey_ = other.privkey_; + onChanged(); + } + if (!other.getTxHex().isEmpty()) { + txHex_ = other.txHex_; + onChanged(); + } + if (!other.getExpire().isEmpty()) { + expire_ = other.expire_; + onChanged(); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (!other.getNewToAddr().isEmpty()) { + newToAddr_ = other.newToAddr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqNewAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - label_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.Builder.class); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * string label = 1; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } - } - /** - * string label = 1; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private java.lang.Object addr_ = ""; + + /** + * string addr = 1; + * + * @return The addr. + */ + public java.lang.String getAddr() { + java.lang.Object ref = addr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string addr = 1; + * + * @return The bytes for addr. + */ + public com.google.protobuf.ByteString getAddrBytes() { + java.lang.Object ref = addr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + addr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string addr = 1; + * + * @param value + * The addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + addr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); - } - unknownFields.writeTo(output); - } + /** + * string addr = 1; + * + * @return This builder for chaining. + */ + public Builder clearAddr() { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + addr_ = getDefaultInstance().getAddr(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) obj; - - if (!getLabel() - .equals(other.getLabel())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string addr = 1; + * + * @param value + * The bytes for addr to set. + * + * @return This builder for chaining. + */ + public Builder setAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + addr_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object privkey_ = ""; + + /** + * string privkey = 2; + * + * @return The privkey. + */ + public java.lang.String getPrivkey() { + java.lang.Object ref = privkey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privkey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string privkey = 2; + * + * @return The bytes for privkey. + */ + public com.google.protobuf.ByteString getPrivkeyBytes() { + java.lang.Object ref = privkey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + privkey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string privkey = 2; + * + * @param value + * The privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privkey_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqNewAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqNewAccount) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - label_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqNewAccount_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount(this); - result.label_ = label_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.getDefaultInstance()) return this; - if (!other.getLabel().isEmpty()) { - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object label_ = ""; - /** - * string label = 1; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string label = 1; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string label = 1; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - onChanged(); - return this; - } - /** - * string label = 1; - * @return This builder for chaining. - */ - public Builder clearLabel() { - - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * string label = 1; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqNewAccount) - } + /** + * string privkey = 2; + * + * @return This builder for chaining. + */ + public Builder clearPrivkey() { - // @@protoc_insertion_point(class_scope:ReqNewAccount) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount(); - } + privkey_ = getDefaultInstance().getPrivkey(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string privkey = 2; + * + * @param value + * The bytes for privkey to set. + * + * @return This builder for chaining. + */ + public Builder setPrivkeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privkey_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqNewAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqNewAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object txHex_ = ""; + + /** + * string txHex = 3; + * + * @return The txHex. + */ + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string txHex = 3; + * + * @return The bytes for txHex. + */ + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string txHex = 3; + * + * @param value + * The txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txHex_ = value; + onChanged(); + return this; + } - } + /** + * string txHex = 3; + * + * @return This builder for chaining. + */ + public Builder clearTxHex() { - public interface ReqGetAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqGetAccount) - com.google.protobuf.MessageOrBuilder { + txHex_ = getDefaultInstance().getTxHex(); + onChanged(); + return this; + } - /** - * string label = 1; - * @return The label. - */ - java.lang.String getLabel(); - /** - * string label = 1; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - *
-   *根据label获取账户地址
-   * 
- * - * Protobuf type {@code ReqGetAccount} - */ - public static final class ReqGetAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqGetAccount) - ReqGetAccountOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqGetAccount.newBuilder() to construct. - private ReqGetAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqGetAccount() { - label_ = ""; - } + /** + * string txHex = 3; + * + * @param value + * The bytes for txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txHex_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqGetAccount(); - } + private java.lang.Object expire_ = ""; + + /** + * string expire = 4; + * + * @return The expire. + */ + public java.lang.String getExpire() { + java.lang.Object ref = expire_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expire_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqGetAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - label_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_descriptor; - } + /** + * string expire = 4; + * + * @return The bytes for expire. + */ + public com.google.protobuf.ByteString getExpireBytes() { + java.lang.Object ref = expire_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + expire_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.Builder.class); - } + /** + * string expire = 4; + * + * @param value + * The expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpire(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expire_ = value; + onChanged(); + return this; + } - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * string label = 1; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } - } - /** - * string label = 1; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string expire = 4; + * + * @return This builder for chaining. + */ + public Builder clearExpire() { - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + expire_ = getDefaultInstance().getExpire(); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string expire = 4; + * + * @param value + * The bytes for expire to set. + * + * @return This builder for chaining. + */ + public Builder setExpireBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expire_ = value; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); - } - unknownFields.writeTo(output); - } + private int index_; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int32 index = 5; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) obj; - - if (!getLabel() - .equals(other.getLabel())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int32 index = 5; + * + * @param value + * The index to set. + * + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int32 index = 5; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + index_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + + /** + *
+             * 签名的模式类型
+             * 0:普通交易
+             * 1:隐私交易
+             * int32  mode  = 6;
+             * 
+ * + * string token = 7; + * + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+             * 签名的模式类型
+             * 0:普通交易
+             * 1:隐私交易
+             * int32  mode  = 6;
+             * 
+ * + * string token = 7; + * + * @return The bytes for token. + */ + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *根据label获取账户地址
-     * 
- * - * Protobuf type {@code ReqGetAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqGetAccount) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - label_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqGetAccount_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount(this); - result.label_ = label_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.getDefaultInstance()) return this; - if (!other.getLabel().isEmpty()) { - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object label_ = ""; - /** - * string label = 1; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string label = 1; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string label = 1; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - onChanged(); - return this; - } - /** - * string label = 1; - * @return This builder for chaining. - */ - public Builder clearLabel() { - - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * string label = 1; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqGetAccount) - } + /** + *
+             * 签名的模式类型
+             * 0:普通交易
+             * 1:隐私交易
+             * int32  mode  = 6;
+             * 
+ * + * string token = 7; + * + * @param value + * The token to set. + * + * @return This builder for chaining. + */ + public Builder setToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReqGetAccount) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount(); - } + /** + *
+             * 签名的模式类型
+             * 0:普通交易
+             * 1:隐私交易
+             * int32  mode  = 6;
+             * 
+ * + * string token = 7; + * + * @return This builder for chaining. + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + *
+             * 签名的模式类型
+             * 0:普通交易
+             * 1:隐私交易
+             * int32  mode  = 6;
+             * 
+ * + * string token = 7; + * + * @param value + * The bytes for token to set. + * + * @return This builder for chaining. + */ + public Builder setTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqGetAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqGetAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private long fee_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * int64 fee = 8; + * + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * int64 fee = 8; + * + * @param value + * The fee to set. + * + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } - } + /** + * int64 fee = 8; + * + * @return This builder for chaining. + */ + public Builder clearFee() { - public interface ReqWalletTransactionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqWalletTransactionList) - com.google.protobuf.MessageOrBuilder { + fee_ = 0L; + onChanged(); + return this; + } - /** - * bytes fromTx = 1; - * @return The fromTx. - */ - com.google.protobuf.ByteString getFromTx(); + private java.lang.Object newToAddr_ = ""; + + /** + *
+             * bytes newExecer = 9;
+             * 
+ * + * string newToAddr = 10; + * + * @return The newToAddr. + */ + public java.lang.String getNewToAddr() { + java.lang.Object ref = newToAddr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newToAddr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * int32 count = 2; - * @return The count. - */ - int getCount(); + /** + *
+             * bytes newExecer = 9;
+             * 
+ * + * string newToAddr = 10; + * + * @return The bytes for newToAddr. + */ + public com.google.protobuf.ByteString getNewToAddrBytes() { + java.lang.Object ref = newToAddr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + newToAddr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * int32 direction = 3; - * @return The direction. - */ - int getDirection(); - } - /** - *
-   *获取钱包交易的详细信息
-   * 	 fromTx : []byte( Sprintf("%018d", height*100000 + index),
-   *				表示从高度 height 中的 index 开始获取交易列表;
-   *			    第一次传参为空,获取最新的交易。)
-   *	 count :获取交易列表的个数。
-   *	 direction :查找方式;0,上一页;1,下一页。
-   * 
- * - * Protobuf type {@code ReqWalletTransactionList} - */ - public static final class ReqWalletTransactionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqWalletTransactionList) - ReqWalletTransactionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqWalletTransactionList.newBuilder() to construct. - private ReqWalletTransactionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqWalletTransactionList() { - fromTx_ = com.google.protobuf.ByteString.EMPTY; - } + /** + *
+             * bytes newExecer = 9;
+             * 
+ * + * string newToAddr = 10; + * + * @param value + * The newToAddr to set. + * + * @return This builder for chaining. + */ + public Builder setNewToAddr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + newToAddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqWalletTransactionList(); - } + /** + *
+             * bytes newExecer = 9;
+             * 
+ * + * string newToAddr = 10; + * + * @return This builder for chaining. + */ + public Builder clearNewToAddr() { + + newToAddr_ = getDefaultInstance().getNewToAddr(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqWalletTransactionList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - fromTx_ = input.readBytes(); - break; - } - case 16: { - - count_ = input.readInt32(); - break; - } - case 24: { - - direction_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_descriptor; - } + /** + *
+             * bytes newExecer = 9;
+             * 
+ * + * string newToAddr = 10; + * + * @param value + * The bytes for newToAddr to set. + * + * @return This builder for chaining. + */ + public Builder setNewToAddrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + newToAddr_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.Builder.class); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int FROMTX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString fromTx_; - /** - * bytes fromTx = 1; - * @return The fromTx. - */ - public com.google.protobuf.ByteString getFromTx() { - return fromTx_; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int COUNT_FIELD_NUMBER = 2; - private int count_; - /** - * int32 count = 2; - * @return The count. - */ - public int getCount() { - return count_; - } + // @@protoc_insertion_point(builder_scope:ReqSignRawTx) + } - public static final int DIRECTION_FIELD_NUMBER = 3; - private int direction_; - /** - * int32 direction = 3; - * @return The direction. - */ - public int getDirection() { - return direction_; - } + // @@protoc_insertion_point(class_scope:ReqSignRawTx) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqSignRawTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqSignRawTx(input, extensionRegistry); + } + }; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!fromTx_.isEmpty()) { - output.writeBytes(1, fromTx_); - } - if (count_ != 0) { - output.writeInt32(2, count_); - } - if (direction_ != 0) { - output.writeInt32(3, direction_); - } - unknownFields.writeTo(output); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!fromTx_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, fromTx_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, count_); - } - if (direction_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, direction_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) obj; - - if (!getFromTx() - .equals(other.getFromTx())) return false; - if (getCount() - != other.getCount()) return false; - if (getDirection() - != other.getDirection()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROMTX_FIELD_NUMBER; - hash = (53 * hash) + getFromTx().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + getDirection(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public interface ReplySignRawTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReplySignRawTx) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string txHex = 1; + * + * @return The txHex. + */ + java.lang.String getTxHex(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + com.google.protobuf.ByteString getTxHexBytes(); } + /** - *
-     *获取钱包交易的详细信息
-     * 	 fromTx : []byte( Sprintf("%018d", height*100000 + index),
-     *				表示从高度 height 中的 index 开始获取交易列表;
-     *			    第一次传参为空,获取最新的交易。)
-     *	 count :获取交易列表的个数。
-     *	 direction :查找方式;0,上一页;1,下一页。
-     * 
- * - * Protobuf type {@code ReqWalletTransactionList} + * Protobuf type {@code ReplySignRawTx} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqWalletTransactionList) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fromTx_ = com.google.protobuf.ByteString.EMPTY; - - count_ = 0; - - direction_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletTransactionList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList(this); - result.fromTx_ = fromTx_; - result.count_ = count_; - result.direction_ = direction_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.getDefaultInstance()) return this; - if (other.getFromTx() != com.google.protobuf.ByteString.EMPTY) { - setFromTx(other.getFromTx()); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.getDirection() != 0) { - setDirection(other.getDirection()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString fromTx_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes fromTx = 1; - * @return The fromTx. - */ - public com.google.protobuf.ByteString getFromTx() { - return fromTx_; - } - /** - * bytes fromTx = 1; - * @param value The fromTx to set. - * @return This builder for chaining. - */ - public Builder setFromTx(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - fromTx_ = value; - onChanged(); - return this; - } - /** - * bytes fromTx = 1; - * @return This builder for chaining. - */ - public Builder clearFromTx() { - - fromTx_ = getDefaultInstance().getFromTx(); - onChanged(); - return this; - } - - private int count_ ; - /** - * int32 count = 2; - * @return The count. - */ - public int getCount() { - return count_; - } - /** - * int32 count = 2; - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * int32 count = 2; - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private int direction_ ; - /** - * int32 direction = 3; - * @return The direction. - */ - public int getDirection() { - return direction_; - } - /** - * int32 direction = 3; - * @param value The direction to set. - * @return This builder for chaining. - */ - public Builder setDirection(int value) { - - direction_ = value; - onChanged(); - return this; - } - /** - * int32 direction = 3; - * @return This builder for chaining. - */ - public Builder clearDirection() { - - direction_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqWalletTransactionList) - } + public static final class ReplySignRawTx extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReplySignRawTx) + ReplySignRawTxOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ReqWalletTransactionList) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList(); - } + // Use ReplySignRawTx.newBuilder() to construct. + private ReplySignRawTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private ReplySignRawTx() { + txHex_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqWalletTransactionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqWalletTransactionList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplySignRawTx(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ReplySignRawTx(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + txHex_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_descriptor; + } - public interface ReqWalletImportPrivkeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqWalletImportPrivkey) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.Builder.class); + } - /** - *
-     * bitcoin 的私钥格式
-     * 
- * - * string privkey = 1; - * @return The privkey. - */ - java.lang.String getPrivkey(); - /** - *
-     * bitcoin 的私钥格式
-     * 
- * - * string privkey = 1; - * @return The bytes for privkey. - */ - com.google.protobuf.ByteString - getPrivkeyBytes(); + public static final int TXHEX_FIELD_NUMBER = 1; + private volatile java.lang.Object txHex_; - /** - * string label = 2; - * @return The label. - */ - java.lang.String getLabel(); - /** - * string label = 2; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code ReqWalletImportPrivkey} - */ - public static final class ReqWalletImportPrivkey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqWalletImportPrivkey) - ReqWalletImportPrivkeyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqWalletImportPrivkey.newBuilder() to construct. - private ReqWalletImportPrivkey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqWalletImportPrivkey() { - privkey_ = ""; - label_ = ""; - } + /** + * string txHex = 1; + * + * @return The txHex. + */ + @java.lang.Override + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqWalletImportPrivkey(); - } + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqWalletImportPrivkey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - privkey_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - label_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_descriptor; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.Builder.class); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static final int PRIVKEY_FIELD_NUMBER = 1; - private volatile java.lang.Object privkey_; - /** - *
-     * bitcoin 的私钥格式
-     * 
- * - * string privkey = 1; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } - } - /** - *
-     * bitcoin 的私钥格式
-     * 
- * - * string privkey = 1; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + memoizedIsInitialized = 1; + return true; + } - public static final int LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object label_; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTxHexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHex_); + } + unknownFields.writeTo(output); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - memoizedIsInitialized = 1; - return true; - } + size = 0; + if (!getTxHexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHex_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPrivkeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privkey_); - } - if (!getLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx) obj; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPrivkeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privkey_); - } - if (!getLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + if (!getTxHex().equals(other.getTxHex())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) obj; - - if (!getPrivkey() - .equals(other.getPrivkey())) return false; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHEX_FIELD_NUMBER; + hash = (53 * hash) + getTxHex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivkey().hashCode(); - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqWalletImportPrivkey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqWalletImportPrivkey) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - privkey_ = ""; - - label_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletImportPrivkey_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey(this); - result.privkey_ = privkey_; - result.label_ = label_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.getDefaultInstance()) return this; - if (!other.getPrivkey().isEmpty()) { - privkey_ = other.privkey_; - onChanged(); - } - if (!other.getLabel().isEmpty()) { - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object privkey_ = ""; - /** - *
-       * bitcoin 的私钥格式
-       * 
- * - * string privkey = 1; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * bitcoin 的私钥格式
-       * 
- * - * string privkey = 1; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * bitcoin 的私钥格式
-       * 
- * - * string privkey = 1; - * @param value The privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privkey_ = value; - onChanged(); - return this; - } - /** - *
-       * bitcoin 的私钥格式
-       * 
- * - * string privkey = 1; - * @return This builder for chaining. - */ - public Builder clearPrivkey() { - - privkey_ = getDefaultInstance().getPrivkey(); - onChanged(); - return this; - } - /** - *
-       * bitcoin 的私钥格式
-       * 
- * - * string privkey = 1; - * @param value The bytes for privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privkey_ = value; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string label = 2; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - onChanged(); - return this; - } - /** - * string label = 2; - * @return This builder for chaining. - */ - public Builder clearLabel() { - - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * string label = 2; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqWalletImportPrivkey) - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:ReqWalletImportPrivkey) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqWalletImportPrivkey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqWalletImportPrivkey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public interface ReqWalletSendToAddressOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqWalletSendToAddress) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * string from = 1; - * @return The from. - */ - java.lang.String getFrom(); - /** - * string from = 1; - * @return The bytes for from. - */ - com.google.protobuf.ByteString - getFromBytes(); + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * string to = 2; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 2; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * int64 amount = 3; - * @return The amount. - */ - long getAmount(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * string note = 4; - * @return The note. - */ - java.lang.String getNote(); - /** - * string note = 4; - * @return The bytes for note. - */ - com.google.protobuf.ByteString - getNoteBytes(); + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * bool isToken = 5; - * @return The isToken. - */ - boolean getIsToken(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * string tokenSymbol = 6; - * @return The tokenSymbol. - */ - java.lang.String getTokenSymbol(); - /** - * string tokenSymbol = 6; - * @return The bytes for tokenSymbol. - */ - com.google.protobuf.ByteString - getTokenSymbolBytes(); - } - /** - *
-   *发送交易
-   * 	 from : 打出地址
-   *	 to :接受地址
-   * 	 amount : 转账额度
-   *	 note :转账备注
-   * 
- * - * Protobuf type {@code ReqWalletSendToAddress} - */ - public static final class ReqWalletSendToAddress extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqWalletSendToAddress) - ReqWalletSendToAddressOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqWalletSendToAddress.newBuilder() to construct. - private ReqWalletSendToAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqWalletSendToAddress() { - from_ = ""; - to_ = ""; - note_ = ""; - tokenSymbol_ = ""; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqWalletSendToAddress(); - } + /** + * Protobuf type {@code ReplySignRawTx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReplySignRawTx) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqWalletSendToAddress( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - from_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 24: { - - amount_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - note_ = s; - break; - } - case 40: { - - isToken_ = input.readBool(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - tokenSymbol_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.Builder.class); - } + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int FROM_FIELD_NUMBER = 1; - private volatile java.lang.Object from_; - /** - * string from = 1; - * @return The from. - */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } - } - /** - * string from = 1; - * @return The bytes for from. - */ - public com.google.protobuf.ByteString - getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + txHex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.getDefaultInstance(); + } - public static final int TO_FIELD_NUMBER = 2; - private volatile java.lang.Object to_; - /** - * string to = 2; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 2; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int AMOUNT_FIELD_NUMBER = 3; - private long amount_; - /** - * int64 amount = 3; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx( + this); + result.txHex_ = txHex_; + onBuilt(); + return result; + } - public static final int NOTE_FIELD_NUMBER = 4; - private volatile java.lang.Object note_; - /** - * string note = 4; - * @return The note. - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } - } - /** - * string note = 4; - * @return The bytes for note. - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int ISTOKEN_FIELD_NUMBER = 5; - private boolean isToken_; - /** - * bool isToken = 5; - * @return The isToken. - */ - public boolean getIsToken() { - return isToken_; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int TOKENSYMBOL_FIELD_NUMBER = 6; - private volatile java.lang.Object tokenSymbol_; - /** - * string tokenSymbol = 6; - * @return The tokenSymbol. - */ - public java.lang.String getTokenSymbol() { - java.lang.Object ref = tokenSymbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenSymbol_ = s; - return s; - } - } - /** - * string tokenSymbol = 6; - * @return The bytes for tokenSymbol. - */ - public com.google.protobuf.ByteString - getTokenSymbolBytes() { - java.lang.Object ref = tokenSymbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFromBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, from_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, to_); - } - if (amount_ != 0L) { - output.writeInt64(3, amount_); - } - if (!getNoteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, note_); - } - if (isToken_ != false) { - output.writeBool(5, isToken_); - } - if (!getTokenSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tokenSymbol_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFromBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, from_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, to_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, amount_); - } - if (!getNoteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, note_); - } - if (isToken_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isToken_); - } - if (!getTokenSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tokenSymbol_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) obj; - - if (!getFrom() - .equals(other.getFrom())) return false; - if (!getTo() - .equals(other.getTo())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!getNote() - .equals(other.getNote())) return false; - if (getIsToken() - != other.getIsToken()) return false; - if (!getTokenSymbol() - .equals(other.getTokenSymbol())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.getDefaultInstance()) + return this; + if (!other.getTxHex().isEmpty()) { + txHex_ = other.txHex_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + ISTOKEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsToken()); - hash = (37 * hash) + TOKENSYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getTokenSymbol().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object txHex_ = ""; + + /** + * string txHex = 1; + * + * @return The txHex. + */ + public java.lang.String getTxHex() { + java.lang.Object ref = txHex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txHex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     *发送交易
-     * 	 from : 打出地址
-     *	 to :接受地址
-     * 	 amount : 转账额度
-     *	 note :转账备注
-     * 
- * - * Protobuf type {@code ReqWalletSendToAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqWalletSendToAddress) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - from_ = ""; - - to_ = ""; - - amount_ = 0L; - - note_ = ""; - - isToken_ = false; - - tokenSymbol_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSendToAddress_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress(this); - result.from_ = from_; - result.to_ = to_; - result.amount_ = amount_; - result.note_ = note_; - result.isToken_ = isToken_; - result.tokenSymbol_ = tokenSymbol_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.getDefaultInstance()) return this; - if (!other.getFrom().isEmpty()) { - from_ = other.from_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getNote().isEmpty()) { - note_ = other.note_; - onChanged(); - } - if (other.getIsToken() != false) { - setIsToken(other.getIsToken()); - } - if (!other.getTokenSymbol().isEmpty()) { - tokenSymbol_ = other.tokenSymbol_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object from_ = ""; - /** - * string from = 1; - * @return The from. - */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from = 1; - * @return The bytes for from. - */ - public com.google.protobuf.ByteString - getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from = 1; - * @param value The from to set. - * @return This builder for chaining. - */ - public Builder setFrom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * string from = 1; - * @return This builder for chaining. - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - /** - * string from = 1; - * @param value The bytes for from to set. - * @return This builder for chaining. - */ - public Builder setFromBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - from_ = value; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 2; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 2; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 2; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 2; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 2; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 3; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 3; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 3; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object note_ = ""; - /** - * string note = 4; - * @return The note. - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string note = 4; - * @return The bytes for note. - */ - public com.google.protobuf.ByteString - getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string note = 4; - * @param value The note to set. - * @return This builder for chaining. - */ - public Builder setNote( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * string note = 4; - * @return This builder for chaining. - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - /** - * string note = 4; - * @param value The bytes for note to set. - * @return This builder for chaining. - */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - note_ = value; - onChanged(); - return this; - } - - private boolean isToken_ ; - /** - * bool isToken = 5; - * @return The isToken. - */ - public boolean getIsToken() { - return isToken_; - } - /** - * bool isToken = 5; - * @param value The isToken to set. - * @return This builder for chaining. - */ - public Builder setIsToken(boolean value) { - - isToken_ = value; - onChanged(); - return this; - } - /** - * bool isToken = 5; - * @return This builder for chaining. - */ - public Builder clearIsToken() { - - isToken_ = false; - onChanged(); - return this; - } - - private java.lang.Object tokenSymbol_ = ""; - /** - * string tokenSymbol = 6; - * @return The tokenSymbol. - */ - public java.lang.String getTokenSymbol() { - java.lang.Object ref = tokenSymbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenSymbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tokenSymbol = 6; - * @return The bytes for tokenSymbol. - */ - public com.google.protobuf.ByteString - getTokenSymbolBytes() { - java.lang.Object ref = tokenSymbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenSymbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tokenSymbol = 6; - * @param value The tokenSymbol to set. - * @return This builder for chaining. - */ - public Builder setTokenSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tokenSymbol_ = value; - onChanged(); - return this; - } - /** - * string tokenSymbol = 6; - * @return This builder for chaining. - */ - public Builder clearTokenSymbol() { - - tokenSymbol_ = getDefaultInstance().getTokenSymbol(); - onChanged(); - return this; - } - /** - * string tokenSymbol = 6; - * @param value The bytes for tokenSymbol to set. - * @return This builder for chaining. - */ - public Builder setTokenSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tokenSymbol_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqWalletSendToAddress) - } + /** + * string txHex = 1; + * + * @return The bytes for txHex. + */ + public com.google.protobuf.ByteString getTxHexBytes() { + java.lang.Object ref = txHex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + txHex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:ReqWalletSendToAddress) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress(); - } + /** + * string txHex = 1; + * + * @param value + * The txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txHex_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string txHex = 1; + * + * @return This builder for chaining. + */ + public Builder clearTxHex() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqWalletSendToAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqWalletSendToAddress(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + txHex_ = getDefaultInstance().getTxHex(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string txHex = 1; + * + * @param value + * The bytes for txHex to set. + * + * @return This builder for chaining. + */ + public Builder setTxHexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txHex_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public interface ReqWalletSetFeeOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqWalletSetFee) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:ReplySignRawTx) + } - /** - * int64 amount = 1; - * @return The amount. - */ - long getAmount(); - } - /** - * Protobuf type {@code ReqWalletSetFee} - */ - public static final class ReqWalletSetFee extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqWalletSetFee) - ReqWalletSetFeeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqWalletSetFee.newBuilder() to construct. - private ReqWalletSetFee(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqWalletSetFee() { - } + // @@protoc_insertion_point(class_scope:ReplySignRawTx) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqWalletSetFee(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqWalletSetFee( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - amount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_descriptor; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplySignRawTx parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplySignRawTx(input, extensionRegistry); + } + }; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.Builder.class); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int AMOUNT_FIELD_NUMBER = 1; - private long amount_; - /** - * int64 amount = 1; - * @return The amount. - */ - public long getAmount() { - return amount_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (amount_ != 0L) { - output.writeInt64(1, amount_); - } - unknownFields.writeTo(output); - } + public interface ReportErrEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReportErrEvent) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, amount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string frommodule = 1; + * + * @return The frommodule. + */ + java.lang.String getFrommodule(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) obj; - - if (getAmount() - != other.getAmount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * string frommodule = 1; + * + * @return The bytes for frommodule. + */ + com.google.protobuf.ByteString getFrommoduleBytes(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string tomodule = 2; + * + * @return The tomodule. + */ + java.lang.String getTomodule(); - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string tomodule = 2; + * + * @return The bytes for tomodule. + */ + com.google.protobuf.ByteString getTomoduleBytes(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string error = 3; + * + * @return The error. + */ + java.lang.String getError(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string error = 3; + * + * @return The bytes for error. + */ + com.google.protobuf.ByteString getErrorBytes(); } + /** - * Protobuf type {@code ReqWalletSetFee} + * Protobuf type {@code ReportErrEvent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqWalletSetFee) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFeeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - amount_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetFee_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee(this); - result.amount_ = amount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.getDefaultInstance()) return this; - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long amount_ ; - /** - * int64 amount = 1; - * @return The amount. - */ - public long getAmount() { - return amount_; - } - /** - * int64 amount = 1; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 1; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqWalletSetFee) - } + public static final class ReportErrEvent extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReportErrEvent) + ReportErrEventOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ReqWalletSetFee) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee(); - } + // Use ReportErrEvent.newBuilder() to construct. + private ReportErrEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private ReportErrEvent() { + frommodule_ = ""; + tomodule_ = ""; + error_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqWalletSetFee parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqWalletSetFee(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportErrEvent(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ReportErrEvent(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + frommodule_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tomodule_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_descriptor; + } - public interface ReqWalletSetLabelOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqWalletSetLabel) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.Builder.class); + } - /** - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + public static final int FROMMODULE_FIELD_NUMBER = 1; + private volatile java.lang.Object frommodule_; - /** - * string label = 2; - * @return The label. - */ - java.lang.String getLabel(); - /** - * string label = 2; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code ReqWalletSetLabel} - */ - public static final class ReqWalletSetLabel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqWalletSetLabel) - ReqWalletSetLabelOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqWalletSetLabel.newBuilder() to construct. - private ReqWalletSetLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqWalletSetLabel() { - addr_ = ""; - label_ = ""; - } + /** + * string frommodule = 1; + * + * @return The frommodule. + */ + @java.lang.Override + public java.lang.String getFrommodule() { + java.lang.Object ref = frommodule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frommodule_ = s; + return s; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqWalletSetLabel(); - } + /** + * string frommodule = 1; + * + * @return The bytes for frommodule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrommoduleBytes() { + java.lang.Object ref = frommodule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frommodule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqWalletSetLabel( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - label_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_descriptor; - } + public static final int TOMODULE_FIELD_NUMBER = 2; + private volatile java.lang.Object tomodule_; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.Builder.class); - } + /** + * string tomodule = 2; + * + * @return The tomodule. + */ + @java.lang.Override + public java.lang.String getTomodule() { + java.lang.Object ref = tomodule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tomodule_ = s; + return s; + } + } - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string tomodule = 2; + * + * @return The bytes for tomodule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTomoduleBytes() { + java.lang.Object ref = tomodule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tomodule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object label_; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int ERROR_FIELD_NUMBER = 3; + private volatile java.lang.Object error_; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string error = 3; + * + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * string error = 3; + * + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (!getLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); - } - unknownFields.writeTo(output); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (!getLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getFrommoduleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, frommodule_); + } + if (!getTomoduleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tomodule_); + } + if (!getErrorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); + } + unknownFields.writeTo(output); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + size = 0; + if (!getFrommoduleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, frommodule_); + } + if (!getTomoduleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tomodule_); + } + if (!getErrorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqWalletSetLabel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqWalletSetLabel) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - label_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletSetLabel_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel(this); - result.addr_ = addr_; - result.label_ = label_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (!other.getLabel().isEmpty()) { - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - * string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string label = 2; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - label_ = value; - onChanged(); - return this; - } - /** - * string label = 2; - * @return This builder for chaining. - */ - public Builder clearLabel() { - - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * string label = 2; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - label_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqWalletSetLabel) - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent) obj; + + if (!getFrommodule().equals(other.getFrommodule())) + return false; + if (!getTomodule().equals(other.getTomodule())) + return false; + if (!getError().equals(other.getError())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROMMODULE_FIELD_NUMBER; + hash = (53 * hash) + getFrommodule().hashCode(); + hash = (37 * hash) + TOMODULE_FIELD_NUMBER; + hash = (53 * hash) + getTomodule().hashCode(); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:ReqWalletSetLabel) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqWalletSetLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqWalletSetLabel(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface ReqWalletMergeBalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqWalletMergeBalance) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * string to = 1; - * @return The to. - */ - java.lang.String getTo(); - /** - * string to = 1; - * @return The bytes for to. - */ - com.google.protobuf.ByteString - getToBytes(); - } - /** - * Protobuf type {@code ReqWalletMergeBalance} - */ - public static final class ReqWalletMergeBalance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqWalletMergeBalance) - ReqWalletMergeBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqWalletMergeBalance.newBuilder() to construct. - private ReqWalletMergeBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqWalletMergeBalance() { - to_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqWalletMergeBalance(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqWalletMergeBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int TO_FIELD_NUMBER = 1; - private volatile java.lang.Object to_; - /** - * string to = 1; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 1; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, to_); - } - unknownFields.writeTo(output); - } + /** + * Protobuf type {@code ReportErrEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReportErrEvent) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, to_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.Builder.class); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) obj; - - if (!getTo() - .equals(other.getTo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clear() { + super.clear(); + frommodule_ = ""; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqWalletMergeBalance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqWalletMergeBalance) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - to_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqWalletMergeBalance_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance(this); - result.to_ = to_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.getDefaultInstance()) return this; - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 1; - * @return The to. - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 1; - * @return The bytes for to. - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 1; - * @param value The to to set. - * @return This builder for chaining. - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 1; - * @return This builder for chaining. - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 1; - * @param value The bytes for to to set. - * @return This builder for chaining. - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqWalletMergeBalance) - } + tomodule_ = ""; - // @@protoc_insertion_point(class_scope:ReqWalletMergeBalance) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance(); - } + error_ = ""; - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqWalletMergeBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqWalletMergeBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.getDefaultInstance(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent( + this); + result.frommodule_ = frommodule_; + result.tomodule_ = tomodule_; + result.error_ = error_; + onBuilt(); + return result; + } - public interface ReqTokenPreCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqTokenPreCreate) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - * string creator_addr = 1; - * @return The creatorAddr. - */ - java.lang.String getCreatorAddr(); - /** - * string creator_addr = 1; - * @return The bytes for creatorAddr. - */ - com.google.protobuf.ByteString - getCreatorAddrBytes(); + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * string name = 2; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 2; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - * string symbol = 3; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 3; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * string introduction = 4; - * @return The introduction. - */ - java.lang.String getIntroduction(); - /** - * string introduction = 4; - * @return The bytes for introduction. - */ - com.google.protobuf.ByteString - getIntroductionBytes(); + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * string owner_addr = 5; - * @return The ownerAddr. - */ - java.lang.String getOwnerAddr(); - /** - * string owner_addr = 5; - * @return The bytes for ownerAddr. - */ - com.google.protobuf.ByteString - getOwnerAddrBytes(); + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - /** - * int64 total = 6; - * @return The total. - */ - long getTotal(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * int64 price = 7; - * @return The price. - */ - long getPrice(); - } - /** - * Protobuf type {@code ReqTokenPreCreate} - */ - public static final class ReqTokenPreCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqTokenPreCreate) - ReqTokenPreCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqTokenPreCreate.newBuilder() to construct. - private ReqTokenPreCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqTokenPreCreate() { - creatorAddr_ = ""; - name_ = ""; - symbol_ = ""; - introduction_ = ""; - ownerAddr_ = ""; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.getDefaultInstance()) + return this; + if (!other.getFrommodule().isEmpty()) { + frommodule_ = other.frommodule_; + onChanged(); + } + if (!other.getTomodule().isEmpty()) { + tomodule_ = other.tomodule_; + onChanged(); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqTokenPreCreate(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqTokenPreCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - creatorAddr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - introduction_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddr_ = s; - break; - } - case 48: { - - total_ = input.readInt64(); - break; - } - case 56: { - - price_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.Builder.class); - } + private java.lang.Object frommodule_ = ""; + + /** + * string frommodule = 1; + * + * @return The frommodule. + */ + public java.lang.String getFrommodule() { + java.lang.Object ref = frommodule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frommodule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int CREATOR_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object creatorAddr_; - /** - * string creator_addr = 1; - * @return The creatorAddr. - */ - public java.lang.String getCreatorAddr() { - java.lang.Object ref = creatorAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creatorAddr_ = s; - return s; - } - } - /** - * string creator_addr = 1; - * @return The bytes for creatorAddr. - */ - public com.google.protobuf.ByteString - getCreatorAddrBytes() { - java.lang.Object ref = creatorAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string frommodule = 1; + * + * @return The bytes for frommodule. + */ + public com.google.protobuf.ByteString getFrommoduleBytes() { + java.lang.Object ref = frommodule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + frommodule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 2; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string frommodule = 1; + * + * @param value + * The frommodule to set. + * + * @return This builder for chaining. + */ + public Builder setFrommodule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + frommodule_ = value; + onChanged(); + return this; + } - public static final int SYMBOL_FIELD_NUMBER = 3; - private volatile java.lang.Object symbol_; - /** - * string symbol = 3; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 3; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string frommodule = 1; + * + * @return This builder for chaining. + */ + public Builder clearFrommodule() { - public static final int INTRODUCTION_FIELD_NUMBER = 4; - private volatile java.lang.Object introduction_; - /** - * string introduction = 4; - * @return The introduction. - */ - public java.lang.String getIntroduction() { - java.lang.Object ref = introduction_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - introduction_ = s; - return s; - } - } - /** - * string introduction = 4; - * @return The bytes for introduction. - */ - public com.google.protobuf.ByteString - getIntroductionBytes() { - java.lang.Object ref = introduction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - introduction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + frommodule_ = getDefaultInstance().getFrommodule(); + onChanged(); + return this; + } - public static final int OWNER_ADDR_FIELD_NUMBER = 5; - private volatile java.lang.Object ownerAddr_; - /** - * string owner_addr = 5; - * @return The ownerAddr. - */ - public java.lang.String getOwnerAddr() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddr_ = s; - return s; - } - } - /** - * string owner_addr = 5; - * @return The bytes for ownerAddr. - */ - public com.google.protobuf.ByteString - getOwnerAddrBytes() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * string frommodule = 1; + * + * @param value + * The bytes for frommodule to set. + * + * @return This builder for chaining. + */ + public Builder setFrommoduleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + frommodule_ = value; + onChanged(); + return this; + } - public static final int TOTAL_FIELD_NUMBER = 6; - private long total_; - /** - * int64 total = 6; - * @return The total. - */ - public long getTotal() { - return total_; - } + private java.lang.Object tomodule_ = ""; + + /** + * string tomodule = 2; + * + * @return The tomodule. + */ + public java.lang.String getTomodule() { + java.lang.Object ref = tomodule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tomodule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int PRICE_FIELD_NUMBER = 7; - private long price_; - /** - * int64 price = 7; - * @return The price. - */ - public long getPrice() { - return price_; - } + /** + * string tomodule = 2; + * + * @return The bytes for tomodule. + */ + public com.google.protobuf.ByteString getTomoduleBytes() { + java.lang.Object ref = tomodule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tomodule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string tomodule = 2; + * + * @param value + * The tomodule to set. + * + * @return This builder for chaining. + */ + public Builder setTomodule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tomodule_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string tomodule = 2; + * + * @return This builder for chaining. + */ + public Builder clearTomodule() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCreatorAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, creatorAddr_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, symbol_); - } - if (!getIntroductionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, introduction_); - } - if (!getOwnerAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownerAddr_); - } - if (total_ != 0L) { - output.writeInt64(6, total_); - } - if (price_ != 0L) { - output.writeInt64(7, price_); - } - unknownFields.writeTo(output); - } + tomodule_ = getDefaultInstance().getTomodule(); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCreatorAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, creatorAddr_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, symbol_); - } - if (!getIntroductionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, introduction_); - } - if (!getOwnerAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownerAddr_); - } - if (total_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, total_); - } - if (price_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, price_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string tomodule = 2; + * + * @param value + * The bytes for tomodule to set. + * + * @return This builder for chaining. + */ + public Builder setTomoduleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tomodule_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate) obj; - - if (!getCreatorAddr() - .equals(other.getCreatorAddr())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (!getIntroduction() - .equals(other.getIntroduction())) return false; - if (!getOwnerAddr() - .equals(other.getOwnerAddr())) return false; - if (getTotal() - != other.getTotal()) return false; - if (getPrice() - != other.getPrice()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private java.lang.Object error_ = ""; + + /** + * string error = 3; + * + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATOR_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getCreatorAddr().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + INTRODUCTION_FIELD_NUMBER; - hash = (53 * hash) + getIntroduction().hashCode(); - hash = (37 * hash) + OWNER_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddr().hashCode(); - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotal()); - hash = (37 * hash) + PRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * string error = 3; + * + * @return The bytes for error. + */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string error = 3; + * + * @param value + * The error to set. + * + * @return This builder for chaining. + */ + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string error = 3; + * + * @return This builder for chaining. + */ + public Builder clearError() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqTokenPreCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqTokenPreCreate) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - creatorAddr_ = ""; - - name_ = ""; - - symbol_ = ""; - - introduction_ = ""; - - ownerAddr_ = ""; - - total_ = 0L; - - price_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenPreCreate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate(this); - result.creatorAddr_ = creatorAddr_; - result.name_ = name_; - result.symbol_ = symbol_; - result.introduction_ = introduction_; - result.ownerAddr_ = ownerAddr_; - result.total_ = total_; - result.price_ = price_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate.getDefaultInstance()) return this; - if (!other.getCreatorAddr().isEmpty()) { - creatorAddr_ = other.creatorAddr_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (!other.getIntroduction().isEmpty()) { - introduction_ = other.introduction_; - onChanged(); - } - if (!other.getOwnerAddr().isEmpty()) { - ownerAddr_ = other.ownerAddr_; - onChanged(); - } - if (other.getTotal() != 0L) { - setTotal(other.getTotal()); - } - if (other.getPrice() != 0L) { - setPrice(other.getPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object creatorAddr_ = ""; - /** - * string creator_addr = 1; - * @return The creatorAddr. - */ - public java.lang.String getCreatorAddr() { - java.lang.Object ref = creatorAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creatorAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string creator_addr = 1; - * @return The bytes for creatorAddr. - */ - public com.google.protobuf.ByteString - getCreatorAddrBytes() { - java.lang.Object ref = creatorAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creatorAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string creator_addr = 1; - * @param value The creatorAddr to set. - * @return This builder for chaining. - */ - public Builder setCreatorAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - creatorAddr_ = value; - onChanged(); - return this; - } - /** - * string creator_addr = 1; - * @return This builder for chaining. - */ - public Builder clearCreatorAddr() { - - creatorAddr_ = getDefaultInstance().getCreatorAddr(); - onChanged(); - return this; - } - /** - * string creator_addr = 1; - * @param value The bytes for creatorAddr to set. - * @return This builder for chaining. - */ - public Builder setCreatorAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - creatorAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 3; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 3; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 3; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 3; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 3; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private java.lang.Object introduction_ = ""; - /** - * string introduction = 4; - * @return The introduction. - */ - public java.lang.String getIntroduction() { - java.lang.Object ref = introduction_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - introduction_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string introduction = 4; - * @return The bytes for introduction. - */ - public com.google.protobuf.ByteString - getIntroductionBytes() { - java.lang.Object ref = introduction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - introduction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string introduction = 4; - * @param value The introduction to set. - * @return This builder for chaining. - */ - public Builder setIntroduction( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - introduction_ = value; - onChanged(); - return this; - } - /** - * string introduction = 4; - * @return This builder for chaining. - */ - public Builder clearIntroduction() { - - introduction_ = getDefaultInstance().getIntroduction(); - onChanged(); - return this; - } - /** - * string introduction = 4; - * @param value The bytes for introduction to set. - * @return This builder for chaining. - */ - public Builder setIntroductionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - introduction_ = value; - onChanged(); - return this; - } - - private java.lang.Object ownerAddr_ = ""; - /** - * string owner_addr = 5; - * @return The ownerAddr. - */ - public java.lang.String getOwnerAddr() { - java.lang.Object ref = ownerAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_addr = 5; - * @return The bytes for ownerAddr. - */ - public com.google.protobuf.ByteString - getOwnerAddrBytes() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_addr = 5; - * @param value The ownerAddr to set. - * @return This builder for chaining. - */ - public Builder setOwnerAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddr_ = value; - onChanged(); - return this; - } - /** - * string owner_addr = 5; - * @return This builder for chaining. - */ - public Builder clearOwnerAddr() { - - ownerAddr_ = getDefaultInstance().getOwnerAddr(); - onChanged(); - return this; - } - /** - * string owner_addr = 5; - * @param value The bytes for ownerAddr to set. - * @return This builder for chaining. - */ - public Builder setOwnerAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddr_ = value; - onChanged(); - return this; - } - - private long total_ ; - /** - * int64 total = 6; - * @return The total. - */ - public long getTotal() { - return total_; - } - /** - * int64 total = 6; - * @param value The total to set. - * @return This builder for chaining. - */ - public Builder setTotal(long value) { - - total_ = value; - onChanged(); - return this; - } - /** - * int64 total = 6; - * @return This builder for chaining. - */ - public Builder clearTotal() { - - total_ = 0L; - onChanged(); - return this; - } - - private long price_ ; - /** - * int64 price = 7; - * @return The price. - */ - public long getPrice() { - return price_; - } - /** - * int64 price = 7; - * @param value The price to set. - * @return This builder for chaining. - */ - public Builder setPrice(long value) { - - price_ = value; - onChanged(); - return this; - } - /** - * int64 price = 7; - * @return This builder for chaining. - */ - public Builder clearPrice() { - - price_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqTokenPreCreate) - } + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:ReqTokenPreCreate) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate(); - } + /** + * string error = 3; + * + * @param value + * The bytes for error to set. + * + * @return This builder for chaining. + */ + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqTokenPreCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqTokenPreCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:ReportErrEvent) + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenPreCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:ReportErrEvent) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent(); + } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public interface ReqTokenFinishCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqTokenFinishCreate) - com.google.protobuf.MessageOrBuilder { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportErrEvent parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReportErrEvent(input, extensionRegistry); + } + }; - /** - * string finisher_addr = 1; - * @return The finisherAddr. - */ - java.lang.String getFinisherAddr(); - /** - * string finisher_addr = 1; - * @return The bytes for finisherAddr. - */ - com.google.protobuf.ByteString - getFinisherAddrBytes(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * string symbol = 2; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * string owner_addr = 3; - * @return The ownerAddr. - */ - java.lang.String getOwnerAddr(); - /** - * string owner_addr = 3; - * @return The bytes for ownerAddr. - */ - com.google.protobuf.ByteString - getOwnerAddrBytes(); - } - /** - * Protobuf type {@code ReqTokenFinishCreate} - */ - public static final class ReqTokenFinishCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqTokenFinishCreate) - ReqTokenFinishCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqTokenFinishCreate.newBuilder() to construct. - private ReqTokenFinishCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqTokenFinishCreate() { - finisherAddr_ = ""; - symbol_ = ""; - ownerAddr_ = ""; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqTokenFinishCreate(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqTokenFinishCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - finisherAddr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_descriptor; - } + public interface Int32OrBuilder extends + // @@protoc_insertion_point(interface_extends:Int32) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.Builder.class); + /** + * int32 data = 1; + * + * @return The data. + */ + int getData(); } - public static final int FINISHER_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object finisherAddr_; /** - * string finisher_addr = 1; - * @return The finisherAddr. - */ - public java.lang.String getFinisherAddr() { - java.lang.Object ref = finisherAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - finisherAddr_ = s; - return s; - } - } - /** - * string finisher_addr = 1; - * @return The bytes for finisherAddr. + * Protobuf type {@code Int32} */ - public com.google.protobuf.ByteString - getFinisherAddrBytes() { - java.lang.Object ref = finisherAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - finisherAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class Int32 extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Int32) + Int32OrBuilder { + private static final long serialVersionUID = 0L; - public static final int SYMBOL_FIELD_NUMBER = 2; - private volatile java.lang.Object symbol_; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Use Int32.newBuilder() to construct. + private Int32(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int OWNER_ADDR_FIELD_NUMBER = 3; - private volatile java.lang.Object ownerAddr_; - /** - * string owner_addr = 3; - * @return The ownerAddr. - */ - public java.lang.String getOwnerAddr() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddr_ = s; - return s; - } - } - /** - * string owner_addr = 3; - * @return The bytes for ownerAddr. - */ - public com.google.protobuf.ByteString - getOwnerAddrBytes() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Int32() { + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Int32(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFinisherAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, finisherAddr_); - } - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); - } - if (!getOwnerAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerAddr_); - } - unknownFields.writeTo(output); - } + private Int32(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + data_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFinisherAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, finisherAddr_); - } - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); - } - if (!getOwnerAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate) obj; - - if (!getFinisherAddr() - .equals(other.getFinisherAddr())) return false; - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (!getOwnerAddr() - .equals(other.getOwnerAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FINISHER_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getFinisherAddr().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + OWNER_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int DATA_FIELD_NUMBER = 1; + private int data_; - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int32 data = 1; + * + * @return The data. + */ + @java.lang.Override + public int getData() { + return data_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqTokenFinishCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqTokenFinishCreate) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - finisherAddr_ = ""; - - symbol_ = ""; - - ownerAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenFinishCreate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate(this); - result.finisherAddr_ = finisherAddr_; - result.symbol_ = symbol_; - result.ownerAddr_ = ownerAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate.getDefaultInstance()) return this; - if (!other.getFinisherAddr().isEmpty()) { - finisherAddr_ = other.finisherAddr_; - onChanged(); - } - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (!other.getOwnerAddr().isEmpty()) { - ownerAddr_ = other.ownerAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object finisherAddr_ = ""; - /** - * string finisher_addr = 1; - * @return The finisherAddr. - */ - public java.lang.String getFinisherAddr() { - java.lang.Object ref = finisherAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - finisherAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string finisher_addr = 1; - * @return The bytes for finisherAddr. - */ - public com.google.protobuf.ByteString - getFinisherAddrBytes() { - java.lang.Object ref = finisherAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - finisherAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string finisher_addr = 1; - * @param value The finisherAddr to set. - * @return This builder for chaining. - */ - public Builder setFinisherAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - finisherAddr_ = value; - onChanged(); - return this; - } - /** - * string finisher_addr = 1; - * @return This builder for chaining. - */ - public Builder clearFinisherAddr() { - - finisherAddr_ = getDefaultInstance().getFinisherAddr(); - onChanged(); - return this; - } - /** - * string finisher_addr = 1; - * @param value The bytes for finisherAddr to set. - * @return This builder for chaining. - */ - public Builder setFinisherAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - finisherAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 2; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 2; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 2; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private java.lang.Object ownerAddr_ = ""; - /** - * string owner_addr = 3; - * @return The ownerAddr. - */ - public java.lang.String getOwnerAddr() { - java.lang.Object ref = ownerAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_addr = 3; - * @return The bytes for ownerAddr. - */ - public com.google.protobuf.ByteString - getOwnerAddrBytes() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_addr = 3; - * @param value The ownerAddr to set. - * @return This builder for chaining. - */ - public Builder setOwnerAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddr_ = value; - onChanged(); - return this; - } - /** - * string owner_addr = 3; - * @return This builder for chaining. - */ - public Builder clearOwnerAddr() { - - ownerAddr_ = getDefaultInstance().getOwnerAddr(); - onChanged(); - return this; - } - /** - * string owner_addr = 3; - * @param value The bytes for ownerAddr to set. - * @return This builder for chaining. - */ - public Builder setOwnerAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqTokenFinishCreate) - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - // @@protoc_insertion_point(class_scope:ReqTokenFinishCreate) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate(); - } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (data_ != 0) { + output.writeInt32(1, data_); + } + unknownFields.writeTo(output); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqTokenFinishCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqTokenFinishCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + size = 0; + if (data_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32) obj; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenFinishCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + if (getData() != other.getData()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public interface ReqTokenRevokeCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqTokenRevokeCreate) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * string revoker_addr = 1; - * @return The revokerAddr. - */ - java.lang.String getRevokerAddr(); - /** - * string revoker_addr = 1; - * @return The bytes for revokerAddr. - */ - com.google.protobuf.ByteString - getRevokerAddrBytes(); + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * string symbol = 2; - * @return The symbol. - */ - java.lang.String getSymbol(); - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - com.google.protobuf.ByteString - getSymbolBytes(); + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * string owner_addr = 3; - * @return The ownerAddr. - */ - java.lang.String getOwnerAddr(); - /** - * string owner_addr = 3; - * @return The bytes for ownerAddr. - */ - com.google.protobuf.ByteString - getOwnerAddrBytes(); - } - /** - * Protobuf type {@code ReqTokenRevokeCreate} - */ - public static final class ReqTokenRevokeCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqTokenRevokeCreate) - ReqTokenRevokeCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqTokenRevokeCreate.newBuilder() to construct. - private ReqTokenRevokeCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqTokenRevokeCreate() { - revokerAddr_ = ""; - symbol_ = ""; - ownerAddr_ = ""; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqTokenRevokeCreate(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqTokenRevokeCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - revokerAddr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - symbol_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int REVOKER_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object revokerAddr_; - /** - * string revoker_addr = 1; - * @return The revokerAddr. - */ - public java.lang.String getRevokerAddr() { - java.lang.Object ref = revokerAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - revokerAddr_ = s; - return s; - } - } - /** - * string revoker_addr = 1; - * @return The bytes for revokerAddr. - */ - public com.google.protobuf.ByteString - getRevokerAddrBytes() { - java.lang.Object ref = revokerAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - revokerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int SYMBOL_FIELD_NUMBER = 2; - private volatile java.lang.Object symbol_; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int OWNER_ADDR_FIELD_NUMBER = 3; - private volatile java.lang.Object ownerAddr_; - /** - * string owner_addr = 3; - * @return The ownerAddr. - */ - public java.lang.String getOwnerAddr() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddr_ = s; - return s; - } - } - /** - * string owner_addr = 3; - * @return The bytes for ownerAddr. - */ - public com.google.protobuf.ByteString - getOwnerAddrBytes() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getRevokerAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, revokerAddr_); - } - if (!getSymbolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); - } - if (!getOwnerAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerAddr_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRevokerAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, revokerAddr_); - } - if (!getSymbolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); - } - if (!getOwnerAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate) obj; - - if (!getRevokerAddr() - .equals(other.getRevokerAddr())) return false; - if (!getSymbol() - .equals(other.getSymbol())) return false; - if (!getOwnerAddr() - .equals(other.getOwnerAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REVOKER_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getRevokerAddr().hashCode(); - hash = (37 * hash) + SYMBOL_FIELD_NUMBER; - hash = (53 * hash) + getSymbol().hashCode(); - hash = (37 * hash) + OWNER_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getOwnerAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * Protobuf type {@code Int32} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Int32) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqTokenRevokeCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqTokenRevokeCreate) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - revokerAddr_ = ""; - - symbol_ = ""; - - ownerAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqTokenRevokeCreate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate(this); - result.revokerAddr_ = revokerAddr_; - result.symbol_ = symbol_; - result.ownerAddr_ = ownerAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate.getDefaultInstance()) return this; - if (!other.getRevokerAddr().isEmpty()) { - revokerAddr_ = other.revokerAddr_; - onChanged(); - } - if (!other.getSymbol().isEmpty()) { - symbol_ = other.symbol_; - onChanged(); - } - if (!other.getOwnerAddr().isEmpty()) { - ownerAddr_ = other.ownerAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object revokerAddr_ = ""; - /** - * string revoker_addr = 1; - * @return The revokerAddr. - */ - public java.lang.String getRevokerAddr() { - java.lang.Object ref = revokerAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - revokerAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string revoker_addr = 1; - * @return The bytes for revokerAddr. - */ - public com.google.protobuf.ByteString - getRevokerAddrBytes() { - java.lang.Object ref = revokerAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - revokerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string revoker_addr = 1; - * @param value The revokerAddr to set. - * @return This builder for chaining. - */ - public Builder setRevokerAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - revokerAddr_ = value; - onChanged(); - return this; - } - /** - * string revoker_addr = 1; - * @return This builder for chaining. - */ - public Builder clearRevokerAddr() { - - revokerAddr_ = getDefaultInstance().getRevokerAddr(); - onChanged(); - return this; - } - /** - * string revoker_addr = 1; - * @param value The bytes for revokerAddr to set. - * @return This builder for chaining. - */ - public Builder setRevokerAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - revokerAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object symbol_ = ""; - /** - * string symbol = 2; - * @return The symbol. - */ - public java.lang.String getSymbol() { - java.lang.Object ref = symbol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - symbol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string symbol = 2; - * @return The bytes for symbol. - */ - public com.google.protobuf.ByteString - getSymbolBytes() { - java.lang.Object ref = symbol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string symbol = 2; - * @param value The symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - symbol_ = value; - onChanged(); - return this; - } - /** - * string symbol = 2; - * @return This builder for chaining. - */ - public Builder clearSymbol() { - - symbol_ = getDefaultInstance().getSymbol(); - onChanged(); - return this; - } - /** - * string symbol = 2; - * @param value The bytes for symbol to set. - * @return This builder for chaining. - */ - public Builder setSymbolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - symbol_ = value; - onChanged(); - return this; - } - - private java.lang.Object ownerAddr_ = ""; - /** - * string owner_addr = 3; - * @return The ownerAddr. - */ - public java.lang.String getOwnerAddr() { - java.lang.Object ref = ownerAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string owner_addr = 3; - * @return The bytes for ownerAddr. - */ - public com.google.protobuf.ByteString - getOwnerAddrBytes() { - java.lang.Object ref = ownerAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string owner_addr = 3; - * @param value The ownerAddr to set. - * @return This builder for chaining. - */ - public Builder setOwnerAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerAddr_ = value; - onChanged(); - return this; - } - /** - * string owner_addr = 3; - * @return This builder for chaining. - */ - public Builder clearOwnerAddr() { - - ownerAddr_ = getDefaultInstance().getOwnerAddr(); - onChanged(); - return this; - } - /** - * string owner_addr = 3; - * @param value The bytes for ownerAddr to set. - * @return This builder for chaining. - */ - public Builder setOwnerAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqTokenRevokeCreate) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.Builder.class); + } - // @@protoc_insertion_point(class_scope:ReqTokenRevokeCreate) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate(); - } + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqTokenRevokeCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqTokenRevokeCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = 0; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqTokenRevokeCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + return this; + } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_descriptor; + } - public interface ReqModifyConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqModifyConfig) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.getDefaultInstance(); + } - /** - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * string op = 2; - * @return The op. - */ - java.lang.String getOp(); - /** - * string op = 2; - * @return The bytes for op. - */ - com.google.protobuf.ByteString - getOpBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32( + this); + result.data_ = data_; + onBuilt(); + return result; + } - /** - * string value = 3; - * @return The value. - */ - java.lang.String getValue(); - /** - * string value = 3; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - * string modifier = 4; - * @return The modifier. - */ - java.lang.String getModifier(); - /** - * string modifier = 4; - * @return The bytes for modifier. - */ - com.google.protobuf.ByteString - getModifierBytes(); - } - /** - * Protobuf type {@code ReqModifyConfig} - */ - public static final class ReqModifyConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqModifyConfig) - ReqModifyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqModifyConfig.newBuilder() to construct. - private ReqModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqModifyConfig() { - key_ = ""; - op_ = ""; - value_ = ""; - modifier_ = ""; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqModifyConfig(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqModifyConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - op_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - modifier_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_descriptor; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.Builder.class); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int OP_FIELD_NUMBER = 2; - private volatile java.lang.Object op_; - /** - * string op = 2; - * @return The op. - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - op_ = s; - return s; - } - } - /** - * string op = 2; - * @return The bytes for op. - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int VALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object value_; - /** - * string value = 3; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 3; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.getDefaultInstance()) + return this; + if (other.getData() != 0) { + setData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int MODIFIER_FIELD_NUMBER = 4; - private volatile java.lang.Object modifier_; - /** - * string modifier = 4; - * @return The modifier. - */ - public java.lang.String getModifier() { - java.lang.Object ref = modifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - modifier_ = s; - return s; - } - } - /** - * string modifier = 4; - * @return The bytes for modifier. - */ - public com.google.protobuf.ByteString - getModifierBytes() { - java.lang.Object ref = modifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - modifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + private int data_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getOpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, op_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - if (!getModifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modifier_); - } - unknownFields.writeTo(output); - } + /** + * int32 data = 1; + * + * @return The data. + */ + @java.lang.Override + public int getData() { + return data_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getOpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, op_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - if (!getModifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modifier_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * int32 data = 1; + * + * @param value + * The data to set. + * + * @return This builder for chaining. + */ + public Builder setData(int value) { + + data_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getOp() - .equals(other.getOp())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!getModifier() - .equals(other.getModifier())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + /** + * int32 data = 1; + * + * @return This builder for chaining. + */ + public Builder clearData() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOp().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + MODIFIER_FIELD_NUMBER; - hash = (53 * hash) + getModifier().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + data_ = 0; + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqModifyConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqModifyConfig) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - op_ = ""; - - value_ = ""; - - modifier_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqModifyConfig_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig(this); - result.key_ = key_; - result.op_ = op_; - result.value_ = value_; - result.modifier_ = modifier_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getOp().isEmpty()) { - op_ = other.op_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (!other.getModifier().isEmpty()) { - modifier_ = other.modifier_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object op_ = ""; - /** - * string op = 2; - * @return The op. - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - op_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string op = 2; - * @return The bytes for op. - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string op = 2; - * @param value The op to set. - * @return This builder for chaining. - */ - public Builder setOp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - op_ = value; - onChanged(); - return this; - } - /** - * string op = 2; - * @return This builder for chaining. - */ - public Builder clearOp() { - - op_ = getDefaultInstance().getOp(); - onChanged(); - return this; - } - /** - * string op = 2; - * @param value The bytes for op to set. - * @return This builder for chaining. - */ - public Builder setOpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - op_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 3; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 3; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 3; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 3; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 3; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private java.lang.Object modifier_ = ""; - /** - * string modifier = 4; - * @return The modifier. - */ - public java.lang.String getModifier() { - java.lang.Object ref = modifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - modifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string modifier = 4; - * @return The bytes for modifier. - */ - public com.google.protobuf.ByteString - getModifierBytes() { - java.lang.Object ref = modifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - modifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string modifier = 4; - * @param value The modifier to set. - * @return This builder for chaining. - */ - public Builder setModifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - modifier_ = value; - onChanged(); - return this; - } - /** - * string modifier = 4; - * @return This builder for chaining. - */ - public Builder clearModifier() { - - modifier_ = getDefaultInstance().getModifier(); - onChanged(); - return this; - } - /** - * string modifier = 4; - * @param value The bytes for modifier to set. - * @return This builder for chaining. - */ - public Builder setModifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - modifier_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqModifyConfig) - } + // @@protoc_insertion_point(builder_scope:Int32) + } - // @@protoc_insertion_point(class_scope:ReqModifyConfig) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig(); - } + // @@protoc_insertion_point(class_scope:Int32) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32(); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqModifyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqModifyConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Int32 parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Int32(input, extensionRegistry); + } + }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqModifyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public interface ReqSignRawTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqSignRawTx) - com.google.protobuf.MessageOrBuilder { + } - /** - * string addr = 1; - * @return The addr. - */ - java.lang.String getAddr(); - /** - * string addr = 1; - * @return The bytes for addr. - */ - com.google.protobuf.ByteString - getAddrBytes(); + public interface ReqAccountListOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqAccountList) + com.google.protobuf.MessageOrBuilder { - /** - * string privkey = 2; - * @return The privkey. - */ - java.lang.String getPrivkey(); - /** - * string privkey = 2; - * @return The bytes for privkey. - */ - com.google.protobuf.ByteString - getPrivkeyBytes(); + /** + * bool withoutBalance = 1; + * + * @return The withoutBalance. + */ + boolean getWithoutBalance(); + } /** - * string txHex = 3; - * @return The txHex. - */ - java.lang.String getTxHex(); - /** - * string txHex = 3; - * @return The bytes for txHex. + * Protobuf type {@code ReqAccountList} */ - com.google.protobuf.ByteString - getTxHexBytes(); + public static final class ReqAccountList extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqAccountList) + ReqAccountListOrBuilder { + private static final long serialVersionUID = 0L; - /** - * string expire = 4; - * @return The expire. - */ - java.lang.String getExpire(); - /** - * string expire = 4; - * @return The bytes for expire. - */ - com.google.protobuf.ByteString - getExpireBytes(); + // Use ReqAccountList.newBuilder() to construct. + private ReqAccountList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * int32 index = 5; - * @return The index. - */ - int getIndex(); + private ReqAccountList() { + } - /** - *
-     * 签名的模式类型
-     * 0:普通交易
-     * 1:隐私交易
-     * int32  mode  = 6;
-     * 
- * - * string token = 7; - * @return The token. - */ - java.lang.String getToken(); - /** - *
-     * 签名的模式类型
-     * 0:普通交易
-     * 1:隐私交易
-     * int32  mode  = 6;
-     * 
- * - * string token = 7; - * @return The bytes for token. - */ - com.google.protobuf.ByteString - getTokenBytes(); + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqAccountList(); + } - /** - * int64 fee = 8; - * @return The fee. - */ - long getFee(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - /** - *
-     * bytes  newExecer = 9;
-     * 
- * - * string newToAddr = 10; - * @return The newToAddr. - */ - java.lang.String getNewToAddr(); - /** - *
-     * bytes  newExecer = 9;
-     * 
- * - * string newToAddr = 10; - * @return The bytes for newToAddr. - */ - com.google.protobuf.ByteString - getNewToAddrBytes(); - } - /** - * Protobuf type {@code ReqSignRawTx} - */ - public static final class ReqSignRawTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqSignRawTx) - ReqSignRawTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqSignRawTx.newBuilder() to construct. - private ReqSignRawTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqSignRawTx() { - addr_ = ""; - privkey_ = ""; - txHex_ = ""; - expire_ = ""; - token_ = ""; - newToAddr_ = ""; - } + private ReqAccountList(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + withoutBalance_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqSignRawTx(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqSignRawTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - addr_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - privkey_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - txHex_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - expire_ = s; - break; - } - case 40: { - - index_ = input.readInt32(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 64: { - - fee_ = input.readInt64(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - newToAddr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.Builder.class); - } + public static final int WITHOUTBALANCE_FIELD_NUMBER = 1; + private boolean withoutBalance_; - public static final int ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object addr_; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * bool withoutBalance = 1; + * + * @return The withoutBalance. + */ + @java.lang.Override + public boolean getWithoutBalance() { + return withoutBalance_; + } - public static final int PRIVKEY_FIELD_NUMBER = 2; - private volatile java.lang.Object privkey_; - /** - * string privkey = 2; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } - } - /** - * string privkey = 2; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private byte memoizedIsInitialized = -1; - public static final int TXHEX_FIELD_NUMBER = 3; - private volatile java.lang.Object txHex_; - /** - * string txHex = 3; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } - } - /** - * string txHex = 3; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - public static final int EXPIRE_FIELD_NUMBER = 4; - private volatile java.lang.Object expire_; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + memoizedIsInitialized = 1; + return true; + } - public static final int INDEX_FIELD_NUMBER = 5; - private int index_; - /** - * int32 index = 5; - * @return The index. - */ - public int getIndex() { - return index_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (withoutBalance_ != false) { + output.writeBool(1, withoutBalance_); + } + unknownFields.writeTo(output); + } - public static final int TOKEN_FIELD_NUMBER = 7; - private volatile java.lang.Object token_; - /** - *
-     * 签名的模式类型
-     * 0:普通交易
-     * 1:隐私交易
-     * int32  mode  = 6;
-     * 
- * - * string token = 7; - * @return The token. - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * 签名的模式类型
-     * 0:普通交易
-     * 1:隐私交易
-     * int32  mode  = 6;
-     * 
- * - * string token = 7; - * @return The bytes for token. - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int FEE_FIELD_NUMBER = 8; - private long fee_; - /** - * int64 fee = 8; - * @return The fee. - */ - public long getFee() { - return fee_; - } + size = 0; + if (withoutBalance_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, withoutBalance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int NEWTOADDR_FIELD_NUMBER = 10; - private volatile java.lang.Object newToAddr_; - /** - *
-     * bytes  newExecer = 9;
-     * 
- * - * string newToAddr = 10; - * @return The newToAddr. - */ - public java.lang.String getNewToAddr() { - java.lang.Object ref = newToAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newToAddr_ = s; - return s; - } - } - /** - *
-     * bytes  newExecer = 9;
-     * 
- * - * string newToAddr = 10; - * @return The bytes for newToAddr. - */ - public com.google.protobuf.ByteString - getNewToAddrBytes() { - java.lang.Object ref = newToAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newToAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList) obj; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (getWithoutBalance() != other.getWithoutBalance()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WITHOUTBALANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWithoutBalance()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addr_); - } - if (!getPrivkeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privkey_); - } - if (!getTxHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, txHex_); - } - if (!getExpireBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expire_); - } - if (index_ != 0) { - output.writeInt32(5, index_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, token_); - } - if (fee_ != 0L) { - output.writeInt64(8, fee_); - } - if (!getNewToAddrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, newToAddr_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addr_); - } - if (!getPrivkeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privkey_); - } - if (!getTxHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, txHex_); - } - if (!getExpireBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expire_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, index_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, token_); - } - if (fee_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, fee_); - } - if (!getNewToAddrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, newToAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) obj; - - if (!getAddr() - .equals(other.getAddr())) return false; - if (!getPrivkey() - .equals(other.getPrivkey())) return false; - if (!getTxHex() - .equals(other.getTxHex())) return false; - if (!getExpire() - .equals(other.getExpire())) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (getFee() - != other.getFee()) return false; - if (!getNewToAddr() - .equals(other.getNewToAddr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDR_FIELD_NUMBER; - hash = (53 * hash) + getAddr().hashCode(); - hash = (37 * hash) + PRIVKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivkey().hashCode(); - hash = (37 * hash) + TXHEX_FIELD_NUMBER; - hash = (53 * hash) + getTxHex().hashCode(); - hash = (37 * hash) + EXPIRE_FIELD_NUMBER; - hash = (53 * hash) + getExpire().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFee()); - hash = (37 * hash) + NEWTOADDR_FIELD_NUMBER; - hash = (53 * hash) + getNewToAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqSignRawTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqSignRawTx) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addr_ = ""; - - privkey_ = ""; - - txHex_ = ""; - - expire_ = ""; - - index_ = 0; - - token_ = ""; - - fee_ = 0L; - - newToAddr_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqSignRawTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx(this); - result.addr_ = addr_; - result.privkey_ = privkey_; - result.txHex_ = txHex_; - result.expire_ = expire_; - result.index_ = index_; - result.token_ = token_; - result.fee_ = fee_; - result.newToAddr_ = newToAddr_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.getDefaultInstance()) return this; - if (!other.getAddr().isEmpty()) { - addr_ = other.addr_; - onChanged(); - } - if (!other.getPrivkey().isEmpty()) { - privkey_ = other.privkey_; - onChanged(); - } - if (!other.getTxHex().isEmpty()) { - txHex_ = other.txHex_; - onChanged(); - } - if (!other.getExpire().isEmpty()) { - expire_ = other.expire_; - onChanged(); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.getFee() != 0L) { - setFee(other.getFee()); - } - if (!other.getNewToAddr().isEmpty()) { - newToAddr_ = other.newToAddr_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object addr_ = ""; - /** - * string addr = 1; - * @return The addr. - */ - public java.lang.String getAddr() { - java.lang.Object ref = addr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - addr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string addr = 1; - * @return The bytes for addr. - */ - public com.google.protobuf.ByteString - getAddrBytes() { - java.lang.Object ref = addr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - addr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string addr = 1; - * @param value The addr to set. - * @return This builder for chaining. - */ - public Builder setAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - addr_ = value; - onChanged(); - return this; - } - /** - * string addr = 1; - * @return This builder for chaining. - */ - public Builder clearAddr() { - - addr_ = getDefaultInstance().getAddr(); - onChanged(); - return this; - } - /** - * string addr = 1; - * @param value The bytes for addr to set. - * @return This builder for chaining. - */ - public Builder setAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - addr_ = value; - onChanged(); - return this; - } - - private java.lang.Object privkey_ = ""; - /** - * string privkey = 2; - * @return The privkey. - */ - public java.lang.String getPrivkey() { - java.lang.Object ref = privkey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privkey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string privkey = 2; - * @return The bytes for privkey. - */ - public com.google.protobuf.ByteString - getPrivkeyBytes() { - java.lang.Object ref = privkey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string privkey = 2; - * @param value The privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privkey_ = value; - onChanged(); - return this; - } - /** - * string privkey = 2; - * @return This builder for chaining. - */ - public Builder clearPrivkey() { - - privkey_ = getDefaultInstance().getPrivkey(); - onChanged(); - return this; - } - /** - * string privkey = 2; - * @param value The bytes for privkey to set. - * @return This builder for chaining. - */ - public Builder setPrivkeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privkey_ = value; - onChanged(); - return this; - } - - private java.lang.Object txHex_ = ""; - /** - * string txHex = 3; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string txHex = 3; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string txHex = 3; - * @param value The txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txHex_ = value; - onChanged(); - return this; - } - /** - * string txHex = 3; - * @return This builder for chaining. - */ - public Builder clearTxHex() { - - txHex_ = getDefaultInstance().getTxHex(); - onChanged(); - return this; - } - /** - * string txHex = 3; - * @param value The bytes for txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txHex_ = value; - onChanged(); - return this; - } - - private java.lang.Object expire_ = ""; - /** - * string expire = 4; - * @return The expire. - */ - public java.lang.String getExpire() { - java.lang.Object ref = expire_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expire_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string expire = 4; - * @return The bytes for expire. - */ - public com.google.protobuf.ByteString - getExpireBytes() { - java.lang.Object ref = expire_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expire_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expire = 4; - * @param value The expire to set. - * @return This builder for chaining. - */ - public Builder setExpire( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expire_ = value; - onChanged(); - return this; - } - /** - * string expire = 4; - * @return This builder for chaining. - */ - public Builder clearExpire() { - - expire_ = getDefaultInstance().getExpire(); - onChanged(); - return this; - } - /** - * string expire = 4; - * @param value The bytes for expire to set. - * @return This builder for chaining. - */ - public Builder setExpireBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expire_ = value; - onChanged(); - return this; - } - - private int index_ ; - /** - * int32 index = 5; - * @return The index. - */ - public int getIndex() { - return index_; - } - /** - * int32 index = 5; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * int32 index = 5; - * @return This builder for chaining. - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * 签名的模式类型
-       * 0:普通交易
-       * 1:隐私交易
-       * int32  mode  = 6;
-       * 
- * - * string token = 7; - * @return The token. - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * 签名的模式类型
-       * 0:普通交易
-       * 1:隐私交易
-       * int32  mode  = 6;
-       * 
- * - * string token = 7; - * @return The bytes for token. - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * 签名的模式类型
-       * 0:普通交易
-       * 1:隐私交易
-       * int32  mode  = 6;
-       * 
- * - * string token = 7; - * @param value The token to set. - * @return This builder for chaining. - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * 签名的模式类型
-       * 0:普通交易
-       * 1:隐私交易
-       * int32  mode  = 6;
-       * 
- * - * string token = 7; - * @return This builder for chaining. - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * 签名的模式类型
-       * 0:普通交易
-       * 1:隐私交易
-       * int32  mode  = 6;
-       * 
- * - * string token = 7; - * @param value The bytes for token to set. - * @return This builder for chaining. - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private long fee_ ; - /** - * int64 fee = 8; - * @return The fee. - */ - public long getFee() { - return fee_; - } - /** - * int64 fee = 8; - * @param value The fee to set. - * @return This builder for chaining. - */ - public Builder setFee(long value) { - - fee_ = value; - onChanged(); - return this; - } - /** - * int64 fee = 8; - * @return This builder for chaining. - */ - public Builder clearFee() { - - fee_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object newToAddr_ = ""; - /** - *
-       * bytes  newExecer = 9;
-       * 
- * - * string newToAddr = 10; - * @return The newToAddr. - */ - public java.lang.String getNewToAddr() { - java.lang.Object ref = newToAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newToAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * bytes  newExecer = 9;
-       * 
- * - * string newToAddr = 10; - * @return The bytes for newToAddr. - */ - public com.google.protobuf.ByteString - getNewToAddrBytes() { - java.lang.Object ref = newToAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newToAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * bytes  newExecer = 9;
-       * 
- * - * string newToAddr = 10; - * @param value The newToAddr to set. - * @return This builder for chaining. - */ - public Builder setNewToAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - newToAddr_ = value; - onChanged(); - return this; - } - /** - *
-       * bytes  newExecer = 9;
-       * 
- * - * string newToAddr = 10; - * @return This builder for chaining. - */ - public Builder clearNewToAddr() { - - newToAddr_ = getDefaultInstance().getNewToAddr(); - onChanged(); - return this; - } - /** - *
-       * bytes  newExecer = 9;
-       * 
- * - * string newToAddr = 10; - * @param value The bytes for newToAddr to set. - * @return This builder for chaining. - */ - public Builder setNewToAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - newToAddr_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqSignRawTx) - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:ReqSignRawTx) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqSignRawTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqSignRawTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public interface ReplySignRawTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReplySignRawTx) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * string txHex = 1; - * @return The txHex. - */ - java.lang.String getTxHex(); - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - com.google.protobuf.ByteString - getTxHexBytes(); - } - /** - * Protobuf type {@code ReplySignRawTx} - */ - public static final class ReplySignRawTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReplySignRawTx) - ReplySignRawTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReplySignRawTx.newBuilder() to construct. - private ReplySignRawTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplySignRawTx() { - txHex_ = ""; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplySignRawTx(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReplySignRawTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - txHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.Builder.class); - } + /** + * Protobuf type {@code ReqAccountList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqAccountList) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_descriptor; + } - public static final int TXHEX_FIELD_NUMBER = 1; - private volatile java.lang.Object txHex_; - /** - * string txHex = 1; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } - } - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.Builder.class); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHex_); - } - unknownFields.writeTo(output); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clear() { + super.clear(); + withoutBalance_ = false; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx) obj; - - if (!getTxHex() - .equals(other.getTxHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHEX_FIELD_NUMBER; - hash = (53 * hash) + getTxHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_descriptor; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.getDefaultInstance(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReplySignRawTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReplySignRawTx) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txHex_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReplySignRawTx_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx(this); - result.txHex_ = txHex_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.getDefaultInstance()) return this; - if (!other.getTxHex().isEmpty()) { - txHex_ = other.txHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object txHex_ = ""; - /** - * string txHex = 1; - * @return The txHex. - */ - public java.lang.String getTxHex() { - java.lang.Object ref = txHex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txHex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string txHex = 1; - * @return The bytes for txHex. - */ - public com.google.protobuf.ByteString - getTxHexBytes() { - java.lang.Object ref = txHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string txHex = 1; - * @param value The txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txHex_ = value; - onChanged(); - return this; - } - /** - * string txHex = 1; - * @return This builder for chaining. - */ - public Builder clearTxHex() { - - txHex_ = getDefaultInstance().getTxHex(); - onChanged(); - return this; - } - /** - * string txHex = 1; - * @param value The bytes for txHex to set. - * @return This builder for chaining. - */ - public Builder setTxHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txHex_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReplySignRawTx) - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList( + this); + result.withoutBalance_ = withoutBalance_; + onBuilt(); + return result; + } - // @@protoc_insertion_point(class_scope:ReplySignRawTx) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplySignRawTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplySignRawTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public interface ReportErrEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReportErrEvent) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * string frommodule = 1; - * @return The frommodule. - */ - java.lang.String getFrommodule(); - /** - * string frommodule = 1; - * @return The bytes for frommodule. - */ - com.google.protobuf.ByteString - getFrommoduleBytes(); + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.getDefaultInstance()) + return this; + if (other.getWithoutBalance() != false) { + setWithoutBalance(other.getWithoutBalance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - /** - * string tomodule = 2; - * @return The tomodule. - */ - java.lang.String getTomodule(); - /** - * string tomodule = 2; - * @return The bytes for tomodule. - */ - com.google.protobuf.ByteString - getTomoduleBytes(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * string error = 3; - * @return The error. - */ - java.lang.String getError(); - /** - * string error = 3; - * @return The bytes for error. - */ - com.google.protobuf.ByteString - getErrorBytes(); - } - /** - * Protobuf type {@code ReportErrEvent} - */ - public static final class ReportErrEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReportErrEvent) - ReportErrEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReportErrEvent.newBuilder() to construct. - private ReportErrEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReportErrEvent() { - frommodule_ = ""; - tomodule_ = ""; - error_ = ""; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReportErrEvent(); - } + private boolean withoutBalance_; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReportErrEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - frommodule_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tomodule_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_descriptor; - } + /** + * bool withoutBalance = 1; + * + * @return The withoutBalance. + */ + @java.lang.Override + public boolean getWithoutBalance() { + return withoutBalance_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.Builder.class); - } + /** + * bool withoutBalance = 1; + * + * @param value + * The withoutBalance to set. + * + * @return This builder for chaining. + */ + public Builder setWithoutBalance(boolean value) { + + withoutBalance_ = value; + onChanged(); + return this; + } - public static final int FROMMODULE_FIELD_NUMBER = 1; - private volatile java.lang.Object frommodule_; - /** - * string frommodule = 1; - * @return The frommodule. - */ - public java.lang.String getFrommodule() { - java.lang.Object ref = frommodule_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - frommodule_ = s; - return s; - } - } - /** - * string frommodule = 1; - * @return The bytes for frommodule. - */ - public com.google.protobuf.ByteString - getFrommoduleBytes() { - java.lang.Object ref = frommodule_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - frommodule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * bool withoutBalance = 1; + * + * @return This builder for chaining. + */ + public Builder clearWithoutBalance() { - public static final int TOMODULE_FIELD_NUMBER = 2; - private volatile java.lang.Object tomodule_; - /** - * string tomodule = 2; - * @return The tomodule. - */ - public java.lang.String getTomodule() { - java.lang.Object ref = tomodule_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tomodule_ = s; - return s; - } - } - /** - * string tomodule = 2; - * @return The bytes for tomodule. - */ - public com.google.protobuf.ByteString - getTomoduleBytes() { - java.lang.Object ref = tomodule_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tomodule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + withoutBalance_ = false; + onChanged(); + return this; + } - public static final int ERROR_FIELD_NUMBER = 3; - private volatile java.lang.Object error_; - /** - * string error = 3; - * @return The error. - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * string error = 3; - * @return The bytes for error. - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(builder_scope:ReqAccountList) + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFrommoduleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, frommodule_); - } - if (!getTomoduleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tomodule_); - } - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); - } - unknownFields.writeTo(output); - } + // @@protoc_insertion_point(class_scope:ReqAccountList) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFrommoduleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, frommodule_); - } - if (!getTomoduleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tomodule_); - } - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent) obj; - - if (!getFrommodule() - .equals(other.getFrommodule())) return false; - if (!getTomodule() - .equals(other.getTomodule())) return false; - if (!getError() - .equals(other.getError())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqAccountList parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqAccountList(input, extensionRegistry); + } + }; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROMMODULE_FIELD_NUMBER; - hash = (53 * hash) + getFrommodule().hashCode(); - hash = (37 * hash) + TOMODULE_FIELD_NUMBER; - hash = (53 * hash) + getTomodule().hashCode(); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - 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; + public interface ReqPrivkeysFileOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReqPrivkeysFile) + com.google.protobuf.MessageOrBuilder { + + /** + * string fileName = 1; + * + * @return The fileName. + */ + java.lang.String getFileName(); + + /** + * string fileName = 1; + * + * @return The bytes for fileName. + */ + com.google.protobuf.ByteString getFileNameBytes(); + + /** + * string passwd = 2; + * + * @return The passwd. + */ + java.lang.String getPasswd(); + + /** + * string passwd = 2; + * + * @return The bytes for passwd. + */ + com.google.protobuf.ByteString getPasswdBytes(); } + /** - * Protobuf type {@code ReportErrEvent} + * Protobuf type {@code ReqPrivkeysFile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReportErrEvent) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - frommodule_ = ""; - - tomodule_ = ""; - - error_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReportErrEvent_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent(this); - result.frommodule_ = frommodule_; - result.tomodule_ = tomodule_; - result.error_ = error_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent.getDefaultInstance()) return this; - if (!other.getFrommodule().isEmpty()) { - frommodule_ = other.frommodule_; - onChanged(); - } - if (!other.getTomodule().isEmpty()) { - tomodule_ = other.tomodule_; - onChanged(); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object frommodule_ = ""; - /** - * string frommodule = 1; - * @return The frommodule. - */ - public java.lang.String getFrommodule() { - java.lang.Object ref = frommodule_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - frommodule_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string frommodule = 1; - * @return The bytes for frommodule. - */ - public com.google.protobuf.ByteString - getFrommoduleBytes() { - java.lang.Object ref = frommodule_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - frommodule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string frommodule = 1; - * @param value The frommodule to set. - * @return This builder for chaining. - */ - public Builder setFrommodule( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - frommodule_ = value; - onChanged(); - return this; - } - /** - * string frommodule = 1; - * @return This builder for chaining. - */ - public Builder clearFrommodule() { - - frommodule_ = getDefaultInstance().getFrommodule(); - onChanged(); - return this; - } - /** - * string frommodule = 1; - * @param value The bytes for frommodule to set. - * @return This builder for chaining. - */ - public Builder setFrommoduleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - frommodule_ = value; - onChanged(); - return this; - } - - private java.lang.Object tomodule_ = ""; - /** - * string tomodule = 2; - * @return The tomodule. - */ - public java.lang.String getTomodule() { - java.lang.Object ref = tomodule_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tomodule_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tomodule = 2; - * @return The bytes for tomodule. - */ - public com.google.protobuf.ByteString - getTomoduleBytes() { - java.lang.Object ref = tomodule_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tomodule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tomodule = 2; - * @param value The tomodule to set. - * @return This builder for chaining. - */ - public Builder setTomodule( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tomodule_ = value; - onChanged(); - return this; - } - /** - * string tomodule = 2; - * @return This builder for chaining. - */ - public Builder clearTomodule() { - - tomodule_ = getDefaultInstance().getTomodule(); - onChanged(); - return this; - } - /** - * string tomodule = 2; - * @param value The bytes for tomodule to set. - * @return This builder for chaining. - */ - public Builder setTomoduleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tomodule_ = value; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * string error = 3; - * @return The error. - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string error = 3; - * @return The bytes for error. - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string error = 3; - * @param value The error to set. - * @return This builder for chaining. - */ - public Builder setError( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * string error = 3; - * @return This builder for chaining. - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * string error = 3; - * @param value The bytes for error to set. - * @return This builder for chaining. - */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReportErrEvent) - } + public static final class ReqPrivkeysFile extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReqPrivkeysFile) + ReqPrivkeysFileOrBuilder { + private static final long serialVersionUID = 0L; - // @@protoc_insertion_point(class_scope:ReportErrEvent) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent(); - } + // Use ReqPrivkeysFile.newBuilder() to construct. + private ReqPrivkeysFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private ReqPrivkeysFile() { + fileName_ = ""; + passwd_ = ""; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReportErrEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportErrEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReqPrivkeysFile(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReportErrEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ReqPrivkeysFile(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + fileName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + passwd_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_descriptor; + } - public interface Int32OrBuilder extends - // @@protoc_insertion_point(interface_extends:Int32) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.Builder.class); + } - /** - * int32 data = 1; - * @return The data. - */ - int getData(); - } - /** - * Protobuf type {@code Int32} - */ - public static final class Int32 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Int32) - Int32OrBuilder { - private static final long serialVersionUID = 0L; - // Use Int32.newBuilder() to construct. - private Int32(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Int32() { - } + public static final int FILENAME_FIELD_NUMBER = 1; + private volatile java.lang.Object fileName_; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int32(); - } + /** + * string fileName = 1; + * + * @return The fileName. + */ + @java.lang.Override + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Int32( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - data_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_descriptor; - } + /** + * string fileName = 1; + * + * @return The bytes for fileName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.Builder.class); - } + public static final int PASSWD_FIELD_NUMBER = 2; + private volatile java.lang.Object passwd_; - public static final int DATA_FIELD_NUMBER = 1; - private int data_; - /** - * int32 data = 1; - * @return The data. - */ - public int getData() { - return data_; - } + /** + * string passwd = 2; + * + * @return The passwd. + */ + @java.lang.Override + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string passwd = 2; + * + * @return The bytes for passwd. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != 0) { - output.writeInt32(1, data_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32) obj; - - if (getData() - != other.getData()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getFileNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_); + } + if (!getPasswdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwd_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + if (!getFileNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_); + } + if (!getPasswdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwd_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) obj; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Int32} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Int32) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_Int32_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32(this); - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.getDefaultInstance()) return this; - if (other.getData() != 0) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int data_ ; - /** - * int32 data = 1; - * @return The data. - */ - public int getData() { - return data_; - } - /** - * int32 data = 1; - * @param value The data to set. - * @return This builder for chaining. - */ - public Builder setData(int value) { - - data_ = value; - onChanged(); - return this; - } - /** - * int32 data = 1; - * @return This builder for chaining. - */ - public Builder clearData() { - - data_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Int32) - } + if (!getFileName().equals(other.getFileName())) + return false; + if (!getPasswd().equals(other.getPasswd())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - // @@protoc_insertion_point(class_scope:Int32) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (37 * hash) + PASSWD_FIELD_NUMBER; + hash = (53 * hash) + getPasswd().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Int32(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public interface ReqAccountListOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqAccountList) - com.google.protobuf.MessageOrBuilder { + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * bool withoutBalance = 1; - * @return The withoutBalance. - */ - boolean getWithoutBalance(); - } - /** - * Protobuf type {@code ReqAccountList} - */ - public static final class ReqAccountList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqAccountList) - ReqAccountListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqAccountList.newBuilder() to construct. - private ReqAccountList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqAccountList() { - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqAccountList(); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqAccountList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - withoutBalance_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static final int WITHOUTBALANCE_FIELD_NUMBER = 1; - private boolean withoutBalance_; - /** - * bool withoutBalance = 1; - * @return The withoutBalance. - */ - public boolean getWithoutBalance() { - return withoutBalance_; - } + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (withoutBalance_ != false) { - output.writeBool(1, withoutBalance_); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (withoutBalance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, withoutBalance_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList) obj; - - if (getWithoutBalance() - != other.getWithoutBalance()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WITHOUTBALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWithoutBalance()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * Protobuf type {@code ReqPrivkeysFile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReqPrivkeysFile) + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqAccountList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqAccountList) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - withoutBalance_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqAccountList_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList(this); - result.withoutBalance_ = withoutBalance_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList.getDefaultInstance()) return this; - if (other.getWithoutBalance() != false) { - setWithoutBalance(other.getWithoutBalance()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean withoutBalance_ ; - /** - * bool withoutBalance = 1; - * @return The withoutBalance. - */ - public boolean getWithoutBalance() { - return withoutBalance_; - } - /** - * bool withoutBalance = 1; - * @param value The withoutBalance to set. - * @return This builder for chaining. - */ - public Builder setWithoutBalance(boolean value) { - - withoutBalance_ = value; - onChanged(); - return this; - } - /** - * bool withoutBalance = 1; - * @return This builder for chaining. - */ - public Builder clearWithoutBalance() { - - withoutBalance_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqAccountList) - } + // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:ReqAccountList) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqAccountList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqAccountList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clear() { + super.clear(); + fileName_ = ""; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + passwd_ = ""; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqAccountList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + return this; + } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_descriptor; + } - public interface ReqPrivkeysFileOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReqPrivkeysFile) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.getDefaultInstance(); + } - /** - * string fileName = 1; - * @return The fileName. - */ - java.lang.String getFileName(); - /** - * string fileName = 1; - * @return The bytes for fileName. - */ - com.google.protobuf.ByteString - getFileNameBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile build() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * string passwd = 2; - * @return The passwd. - */ - java.lang.String getPasswd(); - /** - * string passwd = 2; - * @return The bytes for passwd. - */ - com.google.protobuf.ByteString - getPasswdBytes(); - } - /** - * Protobuf type {@code ReqPrivkeysFile} - */ - public static final class ReqPrivkeysFile extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReqPrivkeysFile) - ReqPrivkeysFileOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReqPrivkeysFile.newBuilder() to construct. - private ReqPrivkeysFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReqPrivkeysFile() { - fileName_ = ""; - passwd_ = ""; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile buildPartial() { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile( + this); + result.fileName_ = fileName_; + result.passwd_ = passwd_; + onBuilt(); + return result; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReqPrivkeysFile(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReqPrivkeysFile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - fileName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - passwd_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_descriptor; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.Builder.class); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int FILENAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fileName_; - /** - * string fileName = 1; - * @return The fileName. - */ - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fileName_ = s; - return s; - } - } - /** - * string fileName = 1; - * @return The bytes for fileName. - */ - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int PASSWD_FIELD_NUMBER = 2; - private volatile java.lang.Object passwd_; - /** - * string passwd = 2; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } - } - /** - * string passwd = 2; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFileNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_); - } - if (!getPasswdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwd_); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile other) { + if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.getDefaultInstance()) + return this; + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + onChanged(); + } + if (!other.getPasswd().isEmpty()) { + passwd_ = other.passwd_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFileNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_); - } - if (!getPasswdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile other = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) obj; - - if (!getFileName() - .equals(other.getFileName())) return false; - if (!getPasswd() - .equals(other.getPasswd())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILENAME_FIELD_NUMBER; - hash = (53 * hash) + getFileName().hashCode(); - hash = (37 * hash) + PASSWD_FIELD_NUMBER; - hash = (53 * hash) + getPasswd().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object fileName_ = ""; + + /** + * string fileName = 1; + * + * @return The fileName. + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string fileName = 1; + * + * @return The bytes for fileName. + */ + public com.google.protobuf.ByteString getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string fileName = 1; + * + * @param value + * The fileName to set. + * + * @return This builder for chaining. + */ + public Builder setFileName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fileName_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReqPrivkeysFile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ReqPrivkeysFile) - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fileName_ = ""; - - passwd_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.internal_static_ReqPrivkeysFile_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile build() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile buildPartial() { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile result = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile(this); - result.fileName_ = fileName_; - result.passwd_ = passwd_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile other) { - if (other == cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.getDefaultInstance()) return this; - if (!other.getFileName().isEmpty()) { - fileName_ = other.fileName_; - onChanged(); - } - if (!other.getPasswd().isEmpty()) { - passwd_ = other.passwd_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object fileName_ = ""; - /** - * string fileName = 1; - * @return The fileName. - */ - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fileName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string fileName = 1; - * @return The bytes for fileName. - */ - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string fileName = 1; - * @param value The fileName to set. - * @return This builder for chaining. - */ - public Builder setFileName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fileName_ = value; - onChanged(); - return this; - } - /** - * string fileName = 1; - * @return This builder for chaining. - */ - public Builder clearFileName() { - - fileName_ = getDefaultInstance().getFileName(); - onChanged(); - return this; - } - /** - * string fileName = 1; - * @param value The bytes for fileName to set. - * @return This builder for chaining. - */ - public Builder setFileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fileName_ = value; - onChanged(); - return this; - } - - private java.lang.Object passwd_ = ""; - /** - * string passwd = 2; - * @return The passwd. - */ - public java.lang.String getPasswd() { - java.lang.Object ref = passwd_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - passwd_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string passwd = 2; - * @return The bytes for passwd. - */ - public com.google.protobuf.ByteString - getPasswdBytes() { - java.lang.Object ref = passwd_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - passwd_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string passwd = 2; - * @param value The passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswd( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - passwd_ = value; - onChanged(); - return this; - } - /** - * string passwd = 2; - * @return This builder for chaining. - */ - public Builder clearPasswd() { - - passwd_ = getDefaultInstance().getPasswd(); - onChanged(); - return this; - } - /** - * string passwd = 2; - * @param value The bytes for passwd to set. - * @return This builder for chaining. - */ - public Builder setPasswdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - passwd_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReqPrivkeysFile) - } + /** + * string fileName = 1; + * + * @return This builder for chaining. + */ + public Builder clearFileName() { - // @@protoc_insertion_point(class_scope:ReqPrivkeysFile) - private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile(); - } + fileName_ = getDefaultInstance().getFileName(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string fileName = 1; + * + * @param value + * The bytes for fileName to set. + * + * @return This builder for chaining. + */ + public Builder setFileNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fileName_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReqPrivkeysFile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReqPrivkeysFile(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object passwd_ = ""; + + /** + * string passwd = 2; + * + * @return The passwd. + */ + public java.lang.String getPasswd() { + java.lang.Object ref = passwd_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passwd_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string passwd = 2; + * + * @return The bytes for passwd. + */ + public com.google.protobuf.ByteString getPasswdBytes() { + java.lang.Object ref = passwd_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + passwd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string passwd = 2; + * + * @param value + * The passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswd(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + passwd_ = value; + onChanged(); + return this; + } + + /** + * string passwd = 2; + * + * @return This builder for chaining. + */ + public Builder clearPasswd() { - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletTxDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletTxDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletTxDetails_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletTxDetails_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletAccountStore_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletAccountStore_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletPwHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletPwHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletAccounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletAccount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletAccount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WalletUnLock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WalletUnLock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GenSeedLang_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GenSeedLang_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetSeedByPw_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetSeedByPw_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SaveSeedByPw_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SaveSeedByPw_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplySeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplySeed_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqWalletSetPasswd_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqWalletSetPasswd_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqNewAccount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqNewAccount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqGetAccount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqGetAccount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqWalletTransactionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqWalletTransactionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqWalletImportPrivkey_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqWalletImportPrivkey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqWalletSendToAddress_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqWalletSendToAddress_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqWalletSetFee_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqWalletSetFee_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqWalletSetLabel_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqWalletSetLabel_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqWalletMergeBalance_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqWalletMergeBalance_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqTokenPreCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqTokenPreCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqTokenFinishCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqTokenFinishCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqTokenRevokeCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqTokenRevokeCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqModifyConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqModifyConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqSignRawTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqSignRawTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReplySignRawTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReplySignRawTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReportErrEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReportErrEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Int32_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Int32_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqAccountList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqAccountList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReqPrivkeysFile_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReqPrivkeysFile_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014wallet.proto\032\021transaction.proto\032\raccou" + - "nt.proto\"\322\001\n\016WalletTxDetail\022\030\n\002tx\030\001 \001(\0132" + - "\014.Transaction\022\035\n\007receipt\030\002 \001(\0132\014.Receipt" + - "Data\022\016\n\006height\030\003 \001(\003\022\r\n\005index\030\004 \001(\003\022\021\n\tb" + - "locktime\030\005 \001(\003\022\016\n\006amount\030\006 \001(\003\022\020\n\010fromad" + - "dr\030\007 \001(\t\022\016\n\006txhash\030\010 \001(\014\022\022\n\nactionName\030\t" + - " \001(\t\022\017\n\007payload\030\n \001(\014\"5\n\017WalletTxDetails" + - "\022\"\n\ttxDetails\030\001 \003(\0132\017.WalletTxDetail\"U\n\022" + - "WalletAccountStore\022\017\n\007privkey\030\001 \001(\t\022\r\n\005l" + - "abel\030\002 \001(\t\022\014\n\004addr\030\003 \001(\t\022\021\n\ttimeStamp\030\004 " + - "\001(\t\"/\n\014WalletPwHash\022\016\n\006pwHash\030\001 \001(\014\022\017\n\007r" + - "andstr\030\002 \001(\t\"c\n\014WalletStatus\022\024\n\014isWallet" + - "Lock\030\001 \001(\010\022\024\n\014isAutoMining\030\002 \001(\010\022\021\n\tisHa" + - "sSeed\030\003 \001(\010\022\024\n\014isTicketLock\030\004 \001(\010\"1\n\016Wal" + - "letAccounts\022\037\n\007wallets\030\001 \003(\0132\016.WalletAcc" + - "ount\"5\n\rWalletAccount\022\025\n\003acc\030\001 \001(\0132\010.Acc" + - "ount\022\r\n\005label\030\002 \001(\t\"G\n\014WalletUnLock\022\016\n\006p" + - "asswd\030\001 \001(\t\022\017\n\007timeout\030\002 \001(\003\022\026\n\016walletOr" + - "Ticket\030\003 \001(\010\"\033\n\013GenSeedLang\022\014\n\004lang\030\001 \001(" + - "\005\"\035\n\013GetSeedByPw\022\016\n\006passwd\030\001 \001(\t\",\n\014Save" + - "SeedByPw\022\014\n\004seed\030\001 \001(\t\022\016\n\006passwd\030\002 \001(\t\"\031" + - "\n\tReplySeed\022\014\n\004seed\030\001 \001(\t\"6\n\022ReqWalletSe" + - "tPasswd\022\017\n\007oldPass\030\001 \001(\t\022\017\n\007newPass\030\002 \001(" + - "\t\"\036\n\rReqNewAccount\022\r\n\005label\030\001 \001(\t\"\036\n\rReq" + - "GetAccount\022\r\n\005label\030\001 \001(\t\"L\n\030ReqWalletTr" + - "ansactionList\022\016\n\006fromTx\030\001 \001(\014\022\r\n\005count\030\002" + - " \001(\005\022\021\n\tdirection\030\003 \001(\005\"8\n\026ReqWalletImpo" + - "rtPrivkey\022\017\n\007privkey\030\001 \001(\t\022\r\n\005label\030\002 \001(" + - "\t\"v\n\026ReqWalletSendToAddress\022\014\n\004from\030\001 \001(" + - "\t\022\n\n\002to\030\002 \001(\t\022\016\n\006amount\030\003 \001(\003\022\014\n\004note\030\004 " + - "\001(\t\022\017\n\007isToken\030\005 \001(\010\022\023\n\013tokenSymbol\030\006 \001(" + - "\t\"!\n\017ReqWalletSetFee\022\016\n\006amount\030\001 \001(\003\"0\n\021" + - "ReqWalletSetLabel\022\014\n\004addr\030\001 \001(\t\022\r\n\005label" + - "\030\002 \001(\t\"#\n\025ReqWalletMergeBalance\022\n\n\002to\030\001 " + - "\001(\t\"\217\001\n\021ReqTokenPreCreate\022\024\n\014creator_add" + - "r\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006symbol\030\003 \001(\t\022\024\n" + - "\014introduction\030\004 \001(\t\022\022\n\nowner_addr\030\005 \001(\t\022" + - "\r\n\005total\030\006 \001(\003\022\r\n\005price\030\007 \001(\003\"Q\n\024ReqToke" + - "nFinishCreate\022\025\n\rfinisher_addr\030\001 \001(\t\022\016\n\006" + - "symbol\030\002 \001(\t\022\022\n\nowner_addr\030\003 \001(\t\"P\n\024ReqT" + - "okenRevokeCreate\022\024\n\014revoker_addr\030\001 \001(\t\022\016" + - "\n\006symbol\030\002 \001(\t\022\022\n\nowner_addr\030\003 \001(\t\"K\n\017Re" + - "qModifyConfig\022\013\n\003key\030\001 \001(\t\022\n\n\002op\030\002 \001(\t\022\r" + - "\n\005value\030\003 \001(\t\022\020\n\010modifier\030\004 \001(\t\"\212\001\n\014ReqS" + - "ignRawTx\022\014\n\004addr\030\001 \001(\t\022\017\n\007privkey\030\002 \001(\t\022" + - "\r\n\005txHex\030\003 \001(\t\022\016\n\006expire\030\004 \001(\t\022\r\n\005index\030" + - "\005 \001(\005\022\r\n\005token\030\007 \001(\t\022\013\n\003fee\030\010 \001(\003\022\021\n\tnew" + - "ToAddr\030\n \001(\t\"\037\n\016ReplySignRawTx\022\r\n\005txHex\030" + - "\001 \001(\t\"E\n\016ReportErrEvent\022\022\n\nfrommodule\030\001 " + - "\001(\t\022\020\n\010tomodule\030\002 \001(\t\022\r\n\005error\030\003 \001(\t\"\025\n\005" + - "Int32\022\014\n\004data\030\001 \001(\005\"(\n\016ReqAccountList\022\026\n" + - "\016withoutBalance\030\001 \001(\010\"3\n\017ReqPrivkeysFile" + - "\022\020\n\010fileName\030\001 \001(\t\022\016\n\006passwd\030\002 \001(\tB3\n!cn" + - ".chain33.javasdk.model.protobufB\016WalletP" + - "rotobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), - cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(), - }); - internal_static_WalletTxDetail_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WalletTxDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletTxDetail_descriptor, - new java.lang.String[] { "Tx", "Receipt", "Height", "Index", "Blocktime", "Amount", "Fromaddr", "Txhash", "ActionName", "Payload", }); - internal_static_WalletTxDetails_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_WalletTxDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletTxDetails_descriptor, - new java.lang.String[] { "TxDetails", }); - internal_static_WalletAccountStore_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_WalletAccountStore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletAccountStore_descriptor, - new java.lang.String[] { "Privkey", "Label", "Addr", "TimeStamp", }); - internal_static_WalletPwHash_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_WalletPwHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletPwHash_descriptor, - new java.lang.String[] { "PwHash", "Randstr", }); - internal_static_WalletStatus_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_WalletStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletStatus_descriptor, - new java.lang.String[] { "IsWalletLock", "IsAutoMining", "IsHasSeed", "IsTicketLock", }); - internal_static_WalletAccounts_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_WalletAccounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletAccounts_descriptor, - new java.lang.String[] { "Wallets", }); - internal_static_WalletAccount_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_WalletAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletAccount_descriptor, - new java.lang.String[] { "Acc", "Label", }); - internal_static_WalletUnLock_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_WalletUnLock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WalletUnLock_descriptor, - new java.lang.String[] { "Passwd", "Timeout", "WalletOrTicket", }); - internal_static_GenSeedLang_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_GenSeedLang_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GenSeedLang_descriptor, - new java.lang.String[] { "Lang", }); - internal_static_GetSeedByPw_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_GetSeedByPw_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetSeedByPw_descriptor, - new java.lang.String[] { "Passwd", }); - internal_static_SaveSeedByPw_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_SaveSeedByPw_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SaveSeedByPw_descriptor, - new java.lang.String[] { "Seed", "Passwd", }); - internal_static_ReplySeed_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_ReplySeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplySeed_descriptor, - new java.lang.String[] { "Seed", }); - internal_static_ReqWalletSetPasswd_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_ReqWalletSetPasswd_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqWalletSetPasswd_descriptor, - new java.lang.String[] { "OldPass", "NewPass", }); - internal_static_ReqNewAccount_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_ReqNewAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqNewAccount_descriptor, - new java.lang.String[] { "Label", }); - internal_static_ReqGetAccount_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_ReqGetAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqGetAccount_descriptor, - new java.lang.String[] { "Label", }); - internal_static_ReqWalletTransactionList_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_ReqWalletTransactionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqWalletTransactionList_descriptor, - new java.lang.String[] { "FromTx", "Count", "Direction", }); - internal_static_ReqWalletImportPrivkey_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_ReqWalletImportPrivkey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqWalletImportPrivkey_descriptor, - new java.lang.String[] { "Privkey", "Label", }); - internal_static_ReqWalletSendToAddress_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_ReqWalletSendToAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqWalletSendToAddress_descriptor, - new java.lang.String[] { "From", "To", "Amount", "Note", "IsToken", "TokenSymbol", }); - internal_static_ReqWalletSetFee_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_ReqWalletSetFee_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqWalletSetFee_descriptor, - new java.lang.String[] { "Amount", }); - internal_static_ReqWalletSetLabel_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_ReqWalletSetLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqWalletSetLabel_descriptor, - new java.lang.String[] { "Addr", "Label", }); - internal_static_ReqWalletMergeBalance_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_ReqWalletMergeBalance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqWalletMergeBalance_descriptor, - new java.lang.String[] { "To", }); - internal_static_ReqTokenPreCreate_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_ReqTokenPreCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqTokenPreCreate_descriptor, - new java.lang.String[] { "CreatorAddr", "Name", "Symbol", "Introduction", "OwnerAddr", "Total", "Price", }); - internal_static_ReqTokenFinishCreate_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_ReqTokenFinishCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqTokenFinishCreate_descriptor, - new java.lang.String[] { "FinisherAddr", "Symbol", "OwnerAddr", }); - internal_static_ReqTokenRevokeCreate_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_ReqTokenRevokeCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqTokenRevokeCreate_descriptor, - new java.lang.String[] { "RevokerAddr", "Symbol", "OwnerAddr", }); - internal_static_ReqModifyConfig_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_ReqModifyConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqModifyConfig_descriptor, - new java.lang.String[] { "Key", "Op", "Value", "Modifier", }); - internal_static_ReqSignRawTx_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_ReqSignRawTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqSignRawTx_descriptor, - new java.lang.String[] { "Addr", "Privkey", "TxHex", "Expire", "Index", "Token", "Fee", "NewToAddr", }); - internal_static_ReplySignRawTx_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_ReplySignRawTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReplySignRawTx_descriptor, - new java.lang.String[] { "TxHex", }); - internal_static_ReportErrEvent_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_ReportErrEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReportErrEvent_descriptor, - new java.lang.String[] { "Frommodule", "Tomodule", "Error", }); - internal_static_Int32_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_Int32_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Int32_descriptor, - new java.lang.String[] { "Data", }); - internal_static_ReqAccountList_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_ReqAccountList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqAccountList_descriptor, - new java.lang.String[] { "WithoutBalance", }); - internal_static_ReqPrivkeysFile_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_ReqPrivkeysFile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReqPrivkeysFile_descriptor, - new java.lang.String[] { "FileName", "Passwd", }); - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); - cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) + passwd_ = getDefaultInstance().getPasswd(); + onChanged(); + return this; + } + + /** + * string passwd = 2; + * + * @param value + * The bytes for passwd to set. + * + * @return This builder for chaining. + */ + public Builder setPasswdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + passwd_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:ReqPrivkeysFile) + } + + // @@protoc_insertion_point(class_scope:ReqPrivkeysFile) + private static final cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile(); + } + + public static cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqPrivkeysFile parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReqPrivkeysFile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletTxDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletTxDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletTxDetails_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletTxDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletAccountStore_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletAccountStore_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletPwHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletPwHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletStatus_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletAccounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletAccount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletAccount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_WalletUnLock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_WalletUnLock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_GenSeedLang_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_GenSeedLang_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_GetSeedByPw_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_GetSeedByPw_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_SaveSeedByPw_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SaveSeedByPw_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplySeed_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplySeed_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqWalletSetPasswd_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqWalletSetPasswd_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqNewAccount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqNewAccount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqGetAccount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqGetAccount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqWalletTransactionList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqWalletTransactionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqWalletImportPrivkey_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqWalletImportPrivkey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqWalletSendToAddress_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqWalletSendToAddress_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqWalletSetFee_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqWalletSetFee_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqWalletSetLabel_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqWalletSetLabel_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqWalletMergeBalance_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqWalletMergeBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqTokenPreCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqTokenPreCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqTokenFinishCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqTokenFinishCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqTokenRevokeCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqTokenRevokeCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqModifyConfig_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqModifyConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqSignRawTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqSignRawTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReplySignRawTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReplySignRawTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReportErrEvent_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReportErrEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_Int32_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Int32_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqAccountList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqAccountList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ReqPrivkeysFile_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReqPrivkeysFile_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\014wallet.proto\032\021transaction.proto\032\raccou" + + "nt.proto\"\322\001\n\016WalletTxDetail\022\030\n\002tx\030\001 \001(\0132" + + "\014.Transaction\022\035\n\007receipt\030\002 \001(\0132\014.Receipt" + + "Data\022\016\n\006height\030\003 \001(\003\022\r\n\005index\030\004 \001(\003\022\021\n\tb" + + "locktime\030\005 \001(\003\022\016\n\006amount\030\006 \001(\003\022\020\n\010fromad" + + "dr\030\007 \001(\t\022\016\n\006txhash\030\010 \001(\014\022\022\n\nactionName\030\t" + + " \001(\t\022\017\n\007payload\030\n \001(\014\"5\n\017WalletTxDetails" + + "\022\"\n\ttxDetails\030\001 \003(\0132\017.WalletTxDetail\"U\n\022" + + "WalletAccountStore\022\017\n\007privkey\030\001 \001(\t\022\r\n\005l" + + "abel\030\002 \001(\t\022\014\n\004addr\030\003 \001(\t\022\021\n\ttimeStamp\030\004 " + + "\001(\t\"/\n\014WalletPwHash\022\016\n\006pwHash\030\001 \001(\014\022\017\n\007r" + + "andstr\030\002 \001(\t\"c\n\014WalletStatus\022\024\n\014isWallet" + + "Lock\030\001 \001(\010\022\024\n\014isAutoMining\030\002 \001(\010\022\021\n\tisHa" + + "sSeed\030\003 \001(\010\022\024\n\014isTicketLock\030\004 \001(\010\"1\n\016Wal" + + "letAccounts\022\037\n\007wallets\030\001 \003(\0132\016.WalletAcc" + + "ount\"5\n\rWalletAccount\022\025\n\003acc\030\001 \001(\0132\010.Acc" + + "ount\022\r\n\005label\030\002 \001(\t\"G\n\014WalletUnLock\022\016\n\006p" + + "asswd\030\001 \001(\t\022\017\n\007timeout\030\002 \001(\003\022\026\n\016walletOr" + + "Ticket\030\003 \001(\010\"\033\n\013GenSeedLang\022\014\n\004lang\030\001 \001(" + + "\005\"\035\n\013GetSeedByPw\022\016\n\006passwd\030\001 \001(\t\",\n\014Save" + + "SeedByPw\022\014\n\004seed\030\001 \001(\t\022\016\n\006passwd\030\002 \001(\t\"\031" + + "\n\tReplySeed\022\014\n\004seed\030\001 \001(\t\"6\n\022ReqWalletSe" + + "tPasswd\022\017\n\007oldPass\030\001 \001(\t\022\017\n\007newPass\030\002 \001(" + + "\t\"\036\n\rReqNewAccount\022\r\n\005label\030\001 \001(\t\"\036\n\rReq" + + "GetAccount\022\r\n\005label\030\001 \001(\t\"L\n\030ReqWalletTr" + + "ansactionList\022\016\n\006fromTx\030\001 \001(\014\022\r\n\005count\030\002" + + " \001(\005\022\021\n\tdirection\030\003 \001(\005\"8\n\026ReqWalletImpo" + + "rtPrivkey\022\017\n\007privkey\030\001 \001(\t\022\r\n\005label\030\002 \001(" + + "\t\"v\n\026ReqWalletSendToAddress\022\014\n\004from\030\001 \001(" + + "\t\022\n\n\002to\030\002 \001(\t\022\016\n\006amount\030\003 \001(\003\022\014\n\004note\030\004 " + + "\001(\t\022\017\n\007isToken\030\005 \001(\010\022\023\n\013tokenSymbol\030\006 \001(" + + "\t\"!\n\017ReqWalletSetFee\022\016\n\006amount\030\001 \001(\003\"0\n\021" + + "ReqWalletSetLabel\022\014\n\004addr\030\001 \001(\t\022\r\n\005label" + + "\030\002 \001(\t\"#\n\025ReqWalletMergeBalance\022\n\n\002to\030\001 " + + "\001(\t\"\217\001\n\021ReqTokenPreCreate\022\024\n\014creator_add" + + "r\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006symbol\030\003 \001(\t\022\024\n" + + "\014introduction\030\004 \001(\t\022\022\n\nowner_addr\030\005 \001(\t\022" + + "\r\n\005total\030\006 \001(\003\022\r\n\005price\030\007 \001(\003\"Q\n\024ReqToke" + + "nFinishCreate\022\025\n\rfinisher_addr\030\001 \001(\t\022\016\n\006" + + "symbol\030\002 \001(\t\022\022\n\nowner_addr\030\003 \001(\t\"P\n\024ReqT" + + "okenRevokeCreate\022\024\n\014revoker_addr\030\001 \001(\t\022\016" + + "\n\006symbol\030\002 \001(\t\022\022\n\nowner_addr\030\003 \001(\t\"K\n\017Re" + + "qModifyConfig\022\013\n\003key\030\001 \001(\t\022\n\n\002op\030\002 \001(\t\022\r" + + "\n\005value\030\003 \001(\t\022\020\n\010modifier\030\004 \001(\t\"\212\001\n\014ReqS" + + "ignRawTx\022\014\n\004addr\030\001 \001(\t\022\017\n\007privkey\030\002 \001(\t\022" + + "\r\n\005txHex\030\003 \001(\t\022\016\n\006expire\030\004 \001(\t\022\r\n\005index\030" + + "\005 \001(\005\022\r\n\005token\030\007 \001(\t\022\013\n\003fee\030\010 \001(\003\022\021\n\tnew" + + "ToAddr\030\n \001(\t\"\037\n\016ReplySignRawTx\022\r\n\005txHex\030" + + "\001 \001(\t\"E\n\016ReportErrEvent\022\022\n\nfrommodule\030\001 " + + "\001(\t\022\020\n\010tomodule\030\002 \001(\t\022\r\n\005error\030\003 \001(\t\"\025\n\005" + + "Int32\022\014\n\004data\030\001 \001(\005\"(\n\016ReqAccountList\022\026\n" + + "\016withoutBalance\030\001 \001(\010\"3\n\017ReqPrivkeysFile" + + "\022\020\n\010fileName\030\001 \001(\t\022\016\n\006passwd\030\002 \001(\tB3\n!cn" + + ".chain33.javasdk.model.protobufB\016WalletP" + "rotobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(), + cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(), }); + internal_static_WalletTxDetail_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_WalletTxDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletTxDetail_descriptor, new java.lang.String[] { "Tx", "Receipt", "Height", "Index", + "Blocktime", "Amount", "Fromaddr", "Txhash", "ActionName", "Payload", }); + internal_static_WalletTxDetails_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_WalletTxDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletTxDetails_descriptor, new java.lang.String[] { "TxDetails", }); + internal_static_WalletAccountStore_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_WalletAccountStore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletAccountStore_descriptor, + new java.lang.String[] { "Privkey", "Label", "Addr", "TimeStamp", }); + internal_static_WalletPwHash_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_WalletPwHash_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletPwHash_descriptor, new java.lang.String[] { "PwHash", "Randstr", }); + internal_static_WalletStatus_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_WalletStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletStatus_descriptor, + new java.lang.String[] { "IsWalletLock", "IsAutoMining", "IsHasSeed", "IsTicketLock", }); + internal_static_WalletAccounts_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_WalletAccounts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletAccounts_descriptor, new java.lang.String[] { "Wallets", }); + internal_static_WalletAccount_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_WalletAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletAccount_descriptor, new java.lang.String[] { "Acc", "Label", }); + internal_static_WalletUnLock_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_WalletUnLock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WalletUnLock_descriptor, + new java.lang.String[] { "Passwd", "Timeout", "WalletOrTicket", }); + internal_static_GenSeedLang_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_GenSeedLang_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_GenSeedLang_descriptor, new java.lang.String[] { "Lang", }); + internal_static_GetSeedByPw_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_GetSeedByPw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_GetSeedByPw_descriptor, new java.lang.String[] { "Passwd", }); + internal_static_SaveSeedByPw_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_SaveSeedByPw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SaveSeedByPw_descriptor, new java.lang.String[] { "Seed", "Passwd", }); + internal_static_ReplySeed_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_ReplySeed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplySeed_descriptor, new java.lang.String[] { "Seed", }); + internal_static_ReqWalletSetPasswd_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_ReqWalletSetPasswd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqWalletSetPasswd_descriptor, new java.lang.String[] { "OldPass", "NewPass", }); + internal_static_ReqNewAccount_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_ReqNewAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqNewAccount_descriptor, new java.lang.String[] { "Label", }); + internal_static_ReqGetAccount_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_ReqGetAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqGetAccount_descriptor, new java.lang.String[] { "Label", }); + internal_static_ReqWalletTransactionList_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_ReqWalletTransactionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqWalletTransactionList_descriptor, + new java.lang.String[] { "FromTx", "Count", "Direction", }); + internal_static_ReqWalletImportPrivkey_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_ReqWalletImportPrivkey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqWalletImportPrivkey_descriptor, new java.lang.String[] { "Privkey", "Label", }); + internal_static_ReqWalletSendToAddress_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_ReqWalletSendToAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqWalletSendToAddress_descriptor, + new java.lang.String[] { "From", "To", "Amount", "Note", "IsToken", "TokenSymbol", }); + internal_static_ReqWalletSetFee_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_ReqWalletSetFee_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqWalletSetFee_descriptor, new java.lang.String[] { "Amount", }); + internal_static_ReqWalletSetLabel_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_ReqWalletSetLabel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqWalletSetLabel_descriptor, new java.lang.String[] { "Addr", "Label", }); + internal_static_ReqWalletMergeBalance_descriptor = getDescriptor().getMessageTypes().get(20); + internal_static_ReqWalletMergeBalance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqWalletMergeBalance_descriptor, new java.lang.String[] { "To", }); + internal_static_ReqTokenPreCreate_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_ReqTokenPreCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqTokenPreCreate_descriptor, new java.lang.String[] { "CreatorAddr", "Name", "Symbol", + "Introduction", "OwnerAddr", "Total", "Price", }); + internal_static_ReqTokenFinishCreate_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_ReqTokenFinishCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqTokenFinishCreate_descriptor, + new java.lang.String[] { "FinisherAddr", "Symbol", "OwnerAddr", }); + internal_static_ReqTokenRevokeCreate_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_ReqTokenRevokeCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqTokenRevokeCreate_descriptor, + new java.lang.String[] { "RevokerAddr", "Symbol", "OwnerAddr", }); + internal_static_ReqModifyConfig_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_ReqModifyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqModifyConfig_descriptor, + new java.lang.String[] { "Key", "Op", "Value", "Modifier", }); + internal_static_ReqSignRawTx_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_ReqSignRawTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqSignRawTx_descriptor, + new java.lang.String[] { "Addr", "Privkey", "TxHex", "Expire", "Index", "Token", "Fee", "NewToAddr", }); + internal_static_ReplySignRawTx_descriptor = getDescriptor().getMessageTypes().get(26); + internal_static_ReplySignRawTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReplySignRawTx_descriptor, new java.lang.String[] { "TxHex", }); + internal_static_ReportErrEvent_descriptor = getDescriptor().getMessageTypes().get(27); + internal_static_ReportErrEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReportErrEvent_descriptor, + new java.lang.String[] { "Frommodule", "Tomodule", "Error", }); + internal_static_Int32_descriptor = getDescriptor().getMessageTypes().get(28); + internal_static_Int32_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Int32_descriptor, new java.lang.String[] { "Data", }); + internal_static_ReqAccountList_descriptor = getDescriptor().getMessageTypes().get(29); + internal_static_ReqAccountList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqAccountList_descriptor, new java.lang.String[] { "WithoutBalance", }); + internal_static_ReqPrivkeysFile_descriptor = getDescriptor().getMessageTypes().get(30); + internal_static_ReqPrivkeysFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReqPrivkeysFile_descriptor, new java.lang.String[] { "FileName", "Passwd", }); + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.getDescriptor(); + cn.chain33.javasdk.model.protobuf.AccountProtobuf.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/WasmProtobuf.java b/src/main/java/cn/chain33/javasdk/model/protobuf/WasmProtobuf.java index fbf2550..6d81c0c 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/WasmProtobuf.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/WasmProtobuf.java @@ -4,8489 +4,8813 @@ package cn.chain33.javasdk.model.protobuf; public final class WasmProtobuf { - private WasmProtobuf() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface wasmActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.wasmAction) - com.google.protobuf.MessageOrBuilder { + private WasmProtobuf() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface wasmActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.wasmAction) + com.google.protobuf.MessageOrBuilder { + + /** + * .types.wasmCreate create = 1; + * + * @return Whether the create field is set. + */ + boolean hasCreate(); + + /** + * .types.wasmCreate create = 1; + * + * @return The create. + */ + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getCreate(); + + /** + * .types.wasmCreate create = 1; + */ + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder getCreateOrBuilder(); + + /** + * .types.wasmUpdate update = 2; + * + * @return Whether the update field is set. + */ + boolean hasUpdate(); + + /** + * .types.wasmUpdate update = 2; + * + * @return The update. + */ + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getUpdate(); + + /** + * .types.wasmUpdate update = 2; + */ + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder getUpdateOrBuilder(); + + /** + * .types.wasmCall call = 3; + * + * @return Whether the call field is set. + */ + boolean hasCall(); + + /** + * .types.wasmCall call = 3; + * + * @return The call. + */ + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getCall(); + + /** + * .types.wasmCall call = 3; + */ + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder getCallOrBuilder(); + + /** + * int32 ty = 4; + * + * @return The ty. + */ + int getTy(); + + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.ValueCase getValueCase(); + } + + /** + * Protobuf type {@code types.wasmAction} + */ + public static final class wasmAction extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.wasmAction) + wasmActionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use wasmAction.newBuilder() to construct. + private wasmAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private wasmAction() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new wasmAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private wasmAction(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_) + .toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_) + .toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_).toBuilder(); + } + value_ = input.readMessage(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 32: { + + ty_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE(1), UPDATE(2), CALL(3), VALUE_NOT_SET(0); + + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value + * The number of the enum to look for. + * + * @return The enum associated with the given number. + * + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return CREATE; + case 2: + return UPDATE; + case 3: + return CALL; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int CREATE_FIELD_NUMBER = 1; + + /** + * .types.wasmCreate create = 1; + * + * @return Whether the create field is set. + */ + @java.lang.Override + public boolean hasCreate() { + return valueCase_ == 1; + } + + /** + * .types.wasmCreate create = 1; + * + * @return The create. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getCreate() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); + } + + /** + * .types.wasmCreate create = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder getCreateOrBuilder() { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); + } + + public static final int UPDATE_FIELD_NUMBER = 2; + + /** + * .types.wasmUpdate update = 2; + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return valueCase_ == 2; + } + + /** + * .types.wasmUpdate update = 2; + * + * @return The update. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getUpdate() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); + } + + /** + * .types.wasmUpdate update = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder getUpdateOrBuilder() { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); + } + + public static final int CALL_FIELD_NUMBER = 3; + + /** + * .types.wasmCall call = 3; + * + * @return Whether the call field is set. + */ + @java.lang.Override + public boolean hasCall() { + return valueCase_ == 3; + } + + /** + * .types.wasmCall call = 3; + * + * @return The call. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getCall() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); + } + + /** + * .types.wasmCall call = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder getCallOrBuilder() { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); + } + + public static final int TY_FIELD_NUMBER = 4; + private int ty_; + + /** + * int32 ty = 4; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_); + } + if (ty_ != 0) { + output.writeInt32(4, ty_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, + (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, + (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, + (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_); + } + if (ty_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, ty_); + } + 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 cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction) obj; + + if (getTy() != other.getTy()) + return false; + if (!getValueCase().equals(other.getValueCase())) + return false; + switch (valueCase_) { + case 1: + if (!getCreate().equals(other.getCreate())) + return false; + break; + case 2: + if (!getUpdate().equals(other.getUpdate())) + return false; + break; + case 3: + if (!getCall().equals(other.getCall())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + CREATE_FIELD_NUMBER; + hash = (53 * hash) + getCreate().hashCode(); + break; + case 2: + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().hashCode(); + break; + case 3: + hash = (37 * hash) + CALL_FIELD_NUMBER; + hash = (53 * hash) + getCall().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.wasmAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.wasmAction) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ty_ = 0; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction( + this); + if (valueCase_ == 1) { + if (createBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = createBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (updateBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = updateBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (callBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = callBuilder_.build(); + } + } + result.ty_ = ty_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.getDefaultInstance()) + return this; + if (other.getTy() != 0) { + setTy(other.getTy()); + } + switch (other.getValueCase()) { + case CREATE: { + mergeCreate(other.getCreate()); + break; + } + case UPDATE: { + mergeUpdate(other.getUpdate()); + break; + } + case CALL: { + mergeCall(other.getCall()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 createBuilder_; + + /** + * .types.wasmCreate create = 1; + * + * @return Whether the create field is set. + */ + @java.lang.Override + public boolean hasCreate() { + return valueCase_ == 1; + } + + /** + * .types.wasmCreate create = 1; + * + * @return The create. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getCreate() { + if (createBuilder_ == null) { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return createBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); + } + } + + /** + * .types.wasmCreate create = 1; + */ + public Builder setCreate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate value) { + if (createBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + createBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .types.wasmCreate create = 1; + */ + public Builder setCreate( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder builderForValue) { + if (createBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + createBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + + /** + * .types.wasmCreate create = 1; + */ + public Builder mergeCreate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate value) { + if (createBuilder_ == null) { + if (valueCase_ == 1 && value_ != cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate + .newBuilder((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + createBuilder_.mergeFrom(value); + } + createBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + + /** + * .types.wasmCreate create = 1; + */ + public Builder clearCreate() { + if (createBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + createBuilder_.clear(); + } + return this; + } + + /** + * .types.wasmCreate create = 1; + */ + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder getCreateBuilder() { + return getCreateFieldBuilder().getBuilder(); + } + + /** + * .types.wasmCreate create = 1; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder getCreateOrBuilder() { + if ((valueCase_ == 1) && (createBuilder_ != null)) { + return createBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); + } + } + + /** + * .types.wasmCreate create = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCreateFieldBuilder() { + if (createBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); + } + createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged(); + ; + return createBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 updateBuilder_; + + /** + * .types.wasmUpdate update = 2; + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return valueCase_ == 2; + } + + /** + * .types.wasmUpdate update = 2; + * + * @return The update. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getUpdate() { + if (updateBuilder_ == null) { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return updateBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); + } + } + + /** + * .types.wasmUpdate update = 2; + */ + public Builder setUpdate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .types.wasmUpdate update = 2; + */ + public Builder setUpdate( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder builderForValue) { + if (updateBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + + /** + * .types.wasmUpdate update = 2; + */ + public Builder mergeUpdate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate value) { + if (updateBuilder_ == null) { + if (valueCase_ == 2 && value_ != cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate + .getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate + .newBuilder((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + updateBuilder_.mergeFrom(value); + } + updateBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + + /** + * .types.wasmUpdate update = 2; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + updateBuilder_.clear(); + } + return this; + } + + /** + * .types.wasmUpdate update = 2; + */ + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder getUpdateBuilder() { + return getUpdateFieldBuilder().getBuilder(); + } + + /** + * .types.wasmUpdate update = 2; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder getUpdateOrBuilder() { + if ((valueCase_ == 2) && (updateBuilder_ != null)) { + return updateBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); + } + } + + /** + * .types.wasmUpdate update = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); + } + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged(); + ; + return updateBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 callBuilder_; + + /** + * .types.wasmCall call = 3; + * + * @return Whether the call field is set. + */ + @java.lang.Override + public boolean hasCall() { + return valueCase_ == 3; + } + + /** + * .types.wasmCall call = 3; + * + * @return The call. + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getCall() { + if (callBuilder_ == null) { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return callBuilder_.getMessage(); + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); + } + } + + /** + * .types.wasmCall call = 3; + */ + public Builder setCall(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall value) { + if (callBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + callBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .types.wasmCall call = 3; + */ + public Builder setCall(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder builderForValue) { + if (callBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + callBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + + /** + * .types.wasmCall call = 3; + */ + public Builder mergeCall(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall value) { + if (callBuilder_ == null) { + if (valueCase_ == 3 + && value_ != cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance()) { + value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall + .newBuilder((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + callBuilder_.mergeFrom(value); + } + callBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + + /** + * .types.wasmCall call = 3; + */ + public Builder clearCall() { + if (callBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + callBuilder_.clear(); + } + return this; + } + + /** + * .types.wasmCall call = 3; + */ + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder getCallBuilder() { + return getCallFieldBuilder().getBuilder(); + } + + /** + * .types.wasmCall call = 3; + */ + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder getCallOrBuilder() { + if ((valueCase_ == 3) && (callBuilder_ != null)) { + return callBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; + } + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); + } + } + + /** + * .types.wasmCall call = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCallFieldBuilder() { + if (callBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); + } + callBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_, getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return callBuilder_; + } + + private int ty_; + + /** + * int32 ty = 4; + * + * @return The ty. + */ + @java.lang.Override + public int getTy() { + return ty_; + } + + /** + * int32 ty = 4; + * + * @param value + * The ty to set. + * + * @return This builder for chaining. + */ + public Builder setTy(int value) { + + ty_ = value; + onChanged(); + return this; + } + + /** + * int32 ty = 4; + * + * @return This builder for chaining. + */ + public Builder clearTy() { + + ty_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.wasmAction) + } + + // @@protoc_insertion_point(class_scope:types.wasmAction) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public wasmAction parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new wasmAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface wasmCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.wasmCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * bytes code = 2; + * + * @return The code. + */ + com.google.protobuf.ByteString getCode(); + } + + /** + * Protobuf type {@code types.wasmCreate} + */ + public static final class wasmCreate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.wasmCreate) + wasmCreateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use wasmCreate.newBuilder() to construct. + private wasmCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private wasmCreate() { + name_ = ""; + code_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new wasmCreate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private wasmCreate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + + code_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString code_; + + /** + * bytes code = 2; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!code_.isEmpty()) { + output.writeBytes(2, code_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!code_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.wasmCreate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.wasmCreate) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + code_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate( + this); + result.name_ = name_; + result.code_ = code_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes code = 2; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + /** + * bytes code = 2; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + + /** + * bytes code = 2; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.wasmCreate) + } + + // @@protoc_insertion_point(class_scope:types.wasmCreate) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public wasmCreate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new wasmCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface wasmUpdateOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.wasmUpdate) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * bytes code = 2; + * + * @return The code. + */ + com.google.protobuf.ByteString getCode(); + } + + /** + * Protobuf type {@code types.wasmUpdate} + */ + public static final class wasmUpdate extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.wasmUpdate) + wasmUpdateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use wasmUpdate.newBuilder() to construct. + private wasmUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private wasmUpdate() { + name_ = ""; + code_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new wasmUpdate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private wasmUpdate(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + + code_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString code_; + + /** + * bytes code = 2; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!code_.isEmpty()) { + output.writeBytes(2, code_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!code_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.wasmUpdate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.wasmUpdate) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + code_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate( + this); + result.name_ = name_; + result.code_ = code_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; + + /** + * bytes code = 2; + * + * @return The code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCode() { + return code_; + } + + /** + * bytes code = 2; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + + /** + * bytes code = 2; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.wasmUpdate) + } + + // @@protoc_insertion_point(class_scope:types.wasmUpdate) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public wasmUpdate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new wasmUpdate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface wasmCallOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.wasmCall) + com.google.protobuf.MessageOrBuilder { + + /** + * string contract = 1; + * + * @return The contract. + */ + java.lang.String getContract(); + + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + com.google.protobuf.ByteString getContractBytes(); + + /** + * string method = 2; + * + * @return The method. + */ + java.lang.String getMethod(); + + /** + * string method = 2; + * + * @return The bytes for method. + */ + com.google.protobuf.ByteString getMethodBytes(); + + /** + * repeated int64 parameters = 3; + * + * @return A list containing the parameters. + */ + java.util.List getParametersList(); + + /** + * repeated int64 parameters = 3; + * + * @return The count of parameters. + */ + int getParametersCount(); + + /** + * repeated int64 parameters = 3; + * + * @param index + * The index of the element to return. + * + * @return The parameters at the given index. + */ + long getParameters(int index); + + /** + * repeated string env = 4; + * + * @return A list containing the env. + */ + java.util.List getEnvList(); + + /** + * repeated string env = 4; + * + * @return The count of env. + */ + int getEnvCount(); + + /** + * repeated string env = 4; + * + * @param index + * The index of the element to return. + * + * @return The env at the given index. + */ + java.lang.String getEnv(int index); + + /** + * repeated string env = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the env at the given index. + */ + com.google.protobuf.ByteString getEnvBytes(int index); + } + + /** + * Protobuf type {@code types.wasmCall} + */ + public static final class wasmCall extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.wasmCall) + wasmCallOrBuilder { + private static final long serialVersionUID = 0L; + + // Use wasmCall.newBuilder() to construct. + private wasmCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private wasmCall() { + contract_ = ""; + method_ = ""; + parameters_ = emptyLongList(); + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new wasmCall(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private wasmCall(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + contract_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + method_ = s; + break; + } + case 24: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameters_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + parameters_.addLong(input.readInt64()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + parameters_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + parameters_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + env_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + env_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + parameters_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + env_ = env_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder.class); + } + + public static final int CONTRACT_FIELD_NUMBER = 1; + private volatile java.lang.Object contract_; + + /** + * string contract = 1; + * + * @return The contract. + */ + @java.lang.Override + public java.lang.String getContract() { + java.lang.Object ref = contract_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contract_ = s; + return s; + } + } + + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractBytes() { + java.lang.Object ref = contract_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contract_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METHOD_FIELD_NUMBER = 2; + private volatile java.lang.Object method_; + + /** + * string method = 2; + * + * @return The method. + */ + @java.lang.Override + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } + } + + /** + * string method = 2; + * + * @return The bytes for method. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.LongList parameters_; + + /** + * repeated int64 parameters = 3; + * + * @return A list containing the parameters. + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * repeated int64 parameters = 3; + * + * @return The count of parameters. + */ + public int getParametersCount() { + return parameters_.size(); + } + + /** + * repeated int64 parameters = 3; + * + * @param index + * The index of the element to return. + * + * @return The parameters at the given index. + */ + public long getParameters(int index) { + return parameters_.getLong(index); + } + + private int parametersMemoizedSerializedSize = -1; + + public static final int ENV_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList env_; + + /** + * repeated string env = 4; + * + * @return A list containing the env. + */ + public com.google.protobuf.ProtocolStringList getEnvList() { + return env_; + } + + /** + * repeated string env = 4; + * + * @return The count of env. + */ + public int getEnvCount() { + return env_.size(); + } + + /** + * repeated string env = 4; + * + * @param index + * The index of the element to return. + * + * @return The env at the given index. + */ + public java.lang.String getEnv(int index) { + return env_.get(index); + } + + /** + * repeated string env = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the env at the given index. + */ + public com.google.protobuf.ByteString getEnvBytes(int index) { + return env_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getContractBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contract_); + } + if (!getMethodBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + if (getParametersList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(parametersMemoizedSerializedSize); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeInt64NoTag(parameters_.getLong(i)); + } + for (int i = 0; i < env_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, env_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getContractBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contract_); + } + if (!getMethodBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + { + int dataSize = 0; + for (int i = 0; i < parameters_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(parameters_.getLong(i)); + } + size += dataSize; + if (!getParametersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + parametersMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < env_.size(); i++) { + dataSize += computeStringSizeNoTag(env_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnvList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) obj; + + if (!getContract().equals(other.getContract())) + return false; + if (!getMethod().equals(other.getMethod())) + return false; + if (!getParametersList().equals(other.getParametersList())) + return false; + if (!getEnvList().equals(other.getEnvList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTRACT_FIELD_NUMBER; + hash = (53 * hash) + getContract().hashCode(); + hash = (37 * hash) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + getMethod().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.wasmCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.wasmCall) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + contract_ = ""; + + method_ = ""; + + parameters_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall( + this); + int from_bitField0_ = bitField0_; + result.contract_ = contract_; + result.method_ = method_; + if (((bitField0_ & 0x00000001) != 0)) { + parameters_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.parameters_ = parameters_; + if (((bitField0_ & 0x00000002) != 0)) { + env_ = env_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.env_ = env_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance()) + return this; + if (!other.getContract().isEmpty()) { + contract_ = other.contract_; + onChanged(); + } + if (!other.getMethod().isEmpty()) { + method_ = other.method_; + onChanged(); + } + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object contract_ = ""; + + /** + * string contract = 1; + * + * @return The contract. + */ + public java.lang.String getContract() { + java.lang.Object ref = contract_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contract_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + public com.google.protobuf.ByteString getContractBytes() { + java.lang.Object ref = contract_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contract_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contract = 1; + * + * @param value + * The contract to set. + * + * @return This builder for chaining. + */ + public Builder setContract(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contract_ = value; + onChanged(); + return this; + } + + /** + * string contract = 1; + * + * @return This builder for chaining. + */ + public Builder clearContract() { + + contract_ = getDefaultInstance().getContract(); + onChanged(); + return this; + } + + /** + * string contract = 1; + * + * @param value + * The bytes for contract to set. + * + * @return This builder for chaining. + */ + public Builder setContractBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contract_ = value; + onChanged(); + return this; + } + + private java.lang.Object method_ = ""; + + /** + * string method = 2; + * + * @return The method. + */ + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string method = 2; + * + * @return The bytes for method. + */ + public com.google.protobuf.ByteString getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string method = 2; + * + * @param value + * The method to set. + * + * @return This builder for chaining. + */ + public Builder setMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + method_ = value; + onChanged(); + return this; + } + + /** + * string method = 2; + * + * @return This builder for chaining. + */ + public Builder clearMethod() { + + method_ = getDefaultInstance().getMethod(); + onChanged(); + return this; + } + + /** + * string method = 2; + * + * @param value + * The bytes for method to set. + * + * @return This builder for chaining. + */ + public Builder setMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + method_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList parameters_ = emptyLongList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + parameters_ = mutableCopy(parameters_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated int64 parameters = 3; + * + * @return A list containing the parameters. + */ + public java.util.List getParametersList() { + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(parameters_) + : parameters_; + } + + /** + * repeated int64 parameters = 3; + * + * @return The count of parameters. + */ + public int getParametersCount() { + return parameters_.size(); + } + + /** + * repeated int64 parameters = 3; + * + * @param index + * The index of the element to return. + * + * @return The parameters at the given index. + */ + public long getParameters(int index) { + return parameters_.getLong(index); + } + + /** + * repeated int64 parameters = 3; + * + * @param index + * The index to set the value at. + * @param value + * The parameters to set. + * + * @return This builder for chaining. + */ + public Builder setParameters(int index, long value) { + ensureParametersIsMutable(); + parameters_.setLong(index, value); + onChanged(); + return this; + } + + /** + * repeated int64 parameters = 3; + * + * @param value + * The parameters to add. + * + * @return This builder for chaining. + */ + public Builder addParameters(long value) { + ensureParametersIsMutable(); + parameters_.addLong(value); + onChanged(); + return this; + } + + /** + * repeated int64 parameters = 3; + * + * @param values + * The parameters to add. + * + * @return This builder for chaining. + */ + public Builder addAllParameters(java.lang.Iterable values) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + return this; + } + + /** + * repeated int64 parameters = 3; + * + * @return This builder for chaining. + */ + public Builder clearParameters() { + parameters_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + env_ = new com.google.protobuf.LazyStringArrayList(env_); + bitField0_ |= 0x00000002; + } + } + + /** + * repeated string env = 4; + * + * @return A list containing the env. + */ + public com.google.protobuf.ProtocolStringList getEnvList() { + return env_.getUnmodifiableView(); + } + + /** + * repeated string env = 4; + * + * @return The count of env. + */ + public int getEnvCount() { + return env_.size(); + } + + /** + * repeated string env = 4; + * + * @param index + * The index of the element to return. + * + * @return The env at the given index. + */ + public java.lang.String getEnv(int index) { + return env_.get(index); + } + + /** + * repeated string env = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the env at the given index. + */ + public com.google.protobuf.ByteString getEnvBytes(int index) { + return env_.getByteString(index); + } + + /** + * repeated string env = 4; + * + * @param index + * The index to set the value at. + * @param value + * The env to set. + * + * @return This builder for chaining. + */ + public Builder setEnv(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string env = 4; + * + * @param value + * The env to add. + * + * @return This builder for chaining. + */ + public Builder addEnv(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + return this; + } + + /** + * repeated string env = 4; + * + * @param values + * The env to add. + * + * @return This builder for chaining. + */ + public Builder addAllEnv(java.lang.Iterable values) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); + onChanged(); + return this; + } + + /** + * repeated string env = 4; + * + * @return This builder for chaining. + */ + public Builder clearEnv() { + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * repeated string env = 4; + * + * @param value + * The bytes of the env to add. + * + * @return This builder for chaining. + */ + public Builder addEnvBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.wasmCall) + } + + // @@protoc_insertion_point(class_scope:types.wasmCall) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public wasmCall parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new wasmCall(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface queryCheckContractOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.queryCheckContract) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * Protobuf type {@code types.queryCheckContract} + */ + public static final class queryCheckContract extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.queryCheckContract) + queryCheckContractOrBuilder { + private static final long serialVersionUID = 0L; + + // Use queryCheckContract.newBuilder() to construct. + private queryCheckContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private queryCheckContract() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new queryCheckContract(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private queryCheckContract(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract) obj; + + if (!getName().equals(other.getName())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.queryCheckContract} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.queryCheckContract) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContractOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract( + this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.queryCheckContract) + } + + // @@protoc_insertion_point(class_scope:types.queryCheckContract) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public queryCheckContract parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new queryCheckContract(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface queryContractDBOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.queryContractDB) + com.google.protobuf.MessageOrBuilder { + + /** + * string contract = 1; + * + * @return The contract. + */ + java.lang.String getContract(); + + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + com.google.protobuf.ByteString getContractBytes(); + + /** + * string key = 2; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * string key = 2; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + } + + /** + * Protobuf type {@code types.queryContractDB} + */ + public static final class queryContractDB extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.queryContractDB) + queryContractDBOrBuilder { + private static final long serialVersionUID = 0L; + + // Use queryContractDB.newBuilder() to construct. + private queryContractDB(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private queryContractDB() { + contract_ = ""; + key_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new queryContractDB(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private queryContractDB(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + contract_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.Builder.class); + } + + public static final int CONTRACT_FIELD_NUMBER = 1; + private volatile java.lang.Object contract_; + + /** + * string contract = 1; + * + * @return The contract. + */ + @java.lang.Override + public java.lang.String getContract() { + java.lang.Object ref = contract_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contract_ = s; + return s; + } + } + + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractBytes() { + java.lang.Object ref = contract_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contract_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + + /** + * string key = 2; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * string key = 2; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getContractBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contract_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getContractBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contract_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + 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 cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB) obj; + + if (!getContract().equals(other.getContract())) + return false; + if (!getKey().equals(other.getKey())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTRACT_FIELD_NUMBER; + hash = (53 * hash) + getContract().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.queryContractDB} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.queryContractDB) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDBOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + contract_ = ""; + + key_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB( + this); + result.contract_ = contract_; + result.key_ = key_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.getDefaultInstance()) + return this; + if (!other.getContract().isEmpty()) { + contract_ = other.contract_; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object contract_ = ""; + + /** + * string contract = 1; + * + * @return The contract. + */ + public java.lang.String getContract() { + java.lang.Object ref = contract_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contract_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + public com.google.protobuf.ByteString getContractBytes() { + java.lang.Object ref = contract_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contract_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string contract = 1; + * + * @param value + * The contract to set. + * + * @return This builder for chaining. + */ + public Builder setContract(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contract_ = value; + onChanged(); + return this; + } + + /** + * string contract = 1; + * + * @return This builder for chaining. + */ + public Builder clearContract() { + + contract_ = getDefaultInstance().getContract(); + onChanged(); + return this; + } + + /** + * string contract = 1; + * + * @param value + * The bytes for contract to set. + * + * @return This builder for chaining. + */ + public Builder setContractBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contract_ = value; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + * string key = 2; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string key = 2; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string key = 2; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + + /** + * string key = 2; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + /** + * string key = 2; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.queryContractDB) + } + + // @@protoc_insertion_point(class_scope:types.queryContractDB) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public queryContractDB parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new queryContractDB(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface customLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.customLog) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string info = 1; + * + * @return A list containing the info. + */ + java.util.List getInfoList(); + + /** + * repeated string info = 1; + * + * @return The count of info. + */ + int getInfoCount(); + + /** + * repeated string info = 1; + * + * @param index + * The index of the element to return. + * + * @return The info at the given index. + */ + java.lang.String getInfo(int index); + + /** + * repeated string info = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the info at the given index. + */ + com.google.protobuf.ByteString getInfoBytes(int index); + } + + /** + * Protobuf type {@code types.customLog} + */ + public static final class customLog extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.customLog) + customLogOrBuilder { + private static final long serialVersionUID = 0L; + + // Use customLog.newBuilder() to construct. + private customLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private customLog() { + info_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new customLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private customLog(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + info_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + info_.add(s); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + info_ = info_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.Builder.class); + } + + public static final int INFO_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList info_; + + /** + * repeated string info = 1; + * + * @return A list containing the info. + */ + public com.google.protobuf.ProtocolStringList getInfoList() { + return info_; + } + + /** + * repeated string info = 1; + * + * @return The count of info. + */ + public int getInfoCount() { + return info_.size(); + } + + /** + * repeated string info = 1; + * + * @param index + * The index of the element to return. + * + * @return The info at the given index. + */ + public java.lang.String getInfo(int index) { + return info_.get(index); + } + + /** + * repeated string info = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the info at the given index. + */ + public com.google.protobuf.ByteString getInfoBytes(int index) { + return info_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < info_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, info_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < info_.size(); i++) { + dataSize += computeStringSizeNoTag(info_.getRaw(i)); + } + size += dataSize; + size += 1 * getInfoList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog) obj; + + if (!getInfoList().equals(other.getInfoList())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInfoCount() > 0) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfoList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.customLog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.customLog) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.Builder.class); + } + + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + info_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_descriptor; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.getDefaultInstance(); + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + info_ = info_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.info_ = info_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.getDefaultInstance()) + return this; + if (!other.info_.isEmpty()) { + if (info_.isEmpty()) { + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoIsMutable(); + info_.addAll(other.info_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList info_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + info_ = new com.google.protobuf.LazyStringArrayList(info_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string info = 1; + * + * @return A list containing the info. + */ + public com.google.protobuf.ProtocolStringList getInfoList() { + return info_.getUnmodifiableView(); + } + + /** + * repeated string info = 1; + * + * @return The count of info. + */ + public int getInfoCount() { + return info_.size(); + } + + /** + * repeated string info = 1; + * + * @param index + * The index of the element to return. + * + * @return The info at the given index. + */ + public java.lang.String getInfo(int index) { + return info_.get(index); + } + + /** + * repeated string info = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the info at the given index. + */ + public com.google.protobuf.ByteString getInfoBytes(int index) { + return info_.getByteString(index); + } + + /** + * repeated string info = 1; + * + * @param index + * The index to set the value at. + * @param value + * The info to set. + * + * @return This builder for chaining. + */ + public Builder setInfo(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string info = 1; + * + * @param value + * The info to add. + * + * @return This builder for chaining. + */ + public Builder addInfo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(value); + onChanged(); + return this; + } + + /** + * repeated string info = 1; + * + * @param values + * The info to add. + * + * @return This builder for chaining. + */ + public Builder addAllInfo(java.lang.Iterable values) { + ensureInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, info_); + onChanged(); + return this; + } + + /** + * repeated string info = 1; + * + * @return This builder for chaining. + */ + public Builder clearInfo() { + info_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string info = 1; + * + * @param value + * The bytes of the info to add. + * + * @return This builder for chaining. + */ + public Builder addInfoBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInfoIsMutable(); + info_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.customLog) + } + + // @@protoc_insertion_point(class_scope:types.customLog) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public customLog parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new customLog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface createContractLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.createContractLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string code = 2; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + * string code = 2; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + } + + /** + * Protobuf type {@code types.createContractLog} + */ + public static final class createContractLog extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.createContractLog) + createContractLogOrBuilder { + private static final long serialVersionUID = 0L; + + // Use createContractLog.newBuilder() to construct. + private createContractLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private createContractLog() { + name_ = ""; + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new createContractLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private createContractLog(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 2; + private volatile java.lang.Object code_; + + /** + * string code = 2; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + + /** + * string code = 2; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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; + } - /** - * .types.wasmCreate create = 1; - * @return Whether the create field is set. - */ - boolean hasCreate(); - /** - * .types.wasmCreate create = 1; - * @return The create. - */ - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getCreate(); - /** - * .types.wasmCreate create = 1; - */ - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder getCreateOrBuilder(); + /** + * Protobuf type {@code types.createContractLog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.createContractLog) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_descriptor; + } - /** - * .types.wasmUpdate update = 2; - * @return Whether the update field is set. - */ - boolean hasUpdate(); - /** - * .types.wasmUpdate update = 2; - * @return The update. - */ - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getUpdate(); - /** - * .types.wasmUpdate update = 2; - */ - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder getUpdateOrBuilder(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.Builder.class); + } - /** - * .types.wasmCall call = 3; - * @return Whether the call field is set. - */ - boolean hasCall(); - /** - * .types.wasmCall call = 3; - * @return The call. - */ - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getCall(); - /** - * .types.wasmCall call = 3; - */ - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder getCallOrBuilder(); + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * int32 ty = 4; - * @return The ty. - */ - int getTy(); - - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.ValueCase getValueCase(); - } - /** - * Protobuf type {@code types.wasmAction} - */ - public static final class wasmAction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.wasmAction) - wasmActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use wasmAction.newBuilder() to construct. - private wasmAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private wasmAction() { - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new wasmAction(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private wasmAction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_).toBuilder(); - } - value_ = - input.readMessage(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 32: { - - ty_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_descriptor; - } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.Builder.class); - } + code_ = ""; - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CREATE(1), - UPDATE(2), - CALL(3), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return CREATE; - case 2: return UPDATE; - case 3: return CALL; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } + return this; + } - public static final int CREATE_FIELD_NUMBER = 1; - /** - * .types.wasmCreate create = 1; - * @return Whether the create field is set. - */ - public boolean hasCreate() { - return valueCase_ == 1; - } - /** - * .types.wasmCreate create = 1; - * @return The create. - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getCreate() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); - } - /** - * .types.wasmCreate create = 1; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder getCreateOrBuilder() { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_descriptor; + } - public static final int UPDATE_FIELD_NUMBER = 2; - /** - * .types.wasmUpdate update = 2; - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return valueCase_ == 2; - } - /** - * .types.wasmUpdate update = 2; - * @return The update. - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getUpdate() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); - } - /** - * .types.wasmUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder getUpdateOrBuilder() { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.getDefaultInstance(); + } - public static final int CALL_FIELD_NUMBER = 3; - /** - * .types.wasmCall call = 3; - * @return Whether the call field is set. - */ - public boolean hasCall() { - return valueCase_ == 3; - } - /** - * .types.wasmCall call = 3; - * @return The call. - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getCall() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); - } - /** - * .types.wasmCall call = 3; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder getCallOrBuilder() { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int TY_FIELD_NUMBER = 4; - private int ty_; - /** - * int32 ty = 4; - * @return The ty. - */ - public int getTy() { - return ty_; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog( + this); + result.name_ = name_; + result.code_ = code_; + onBuilt(); + return result; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clone() { + return super.clone(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_); - } - if (ty_ != 0) { - output.writeInt32(4, ty_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_); - } - if (ty_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, ty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction) obj; - - if (getTy() - != other.getTy()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getCreate() - .equals(other.getCreate())) return false; - break; - case 2: - if (!getUpdate() - .equals(other.getUpdate())) return false; - break; - case 3: - if (!getCall() - .equals(other.getCall())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TY_FIELD_NUMBER; - hash = (53 * hash) + getTy(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + CREATE_FIELD_NUMBER; - hash = (53 * hash) + getCreate().hashCode(); - break; - case 2: - hash = (37 * hash) + UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getUpdate().hashCode(); - break; - case 3: - hash = (37 * hash) + CALL_FIELD_NUMBER; - hash = (53 * hash) + getCall().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.wasmAction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.wasmAction) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ty_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmAction_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction(this); - if (valueCase_ == 1) { - if (createBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = createBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (updateBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = updateBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (callBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = callBuilder_.build(); - } - } - result.ty_ = ty_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction.getDefaultInstance()) return this; - if (other.getTy() != 0) { - setTy(other.getTy()); - } - switch (other.getValueCase()) { - case CREATE: { - mergeCreate(other.getCreate()); - break; - } - case UPDATE: { - mergeUpdate(other.getUpdate()); - break; - } - case CALL: { - mergeCall(other.getCall()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder> createBuilder_; - /** - * .types.wasmCreate create = 1; - * @return Whether the create field is set. - */ - public boolean hasCreate() { - return valueCase_ == 1; - } - /** - * .types.wasmCreate create = 1; - * @return The create. - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getCreate() { - if (createBuilder_ == null) { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return createBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); - } - } - /** - * .types.wasmCreate create = 1; - */ - public Builder setCreate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate value) { - if (createBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - createBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .types.wasmCreate create = 1; - */ - public Builder setCreate( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder builderForValue) { - if (createBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - createBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .types.wasmCreate create = 1; - */ - public Builder mergeCreate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate value) { - if (createBuilder_ == null) { - if (valueCase_ == 1 && - value_ != cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.newBuilder((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - createBuilder_.mergeFrom(value); - } - createBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .types.wasmCreate create = 1; - */ - public Builder clearCreate() { - if (createBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - createBuilder_.clear(); - } - return this; - } - /** - * .types.wasmCreate create = 1; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder getCreateBuilder() { - return getCreateFieldBuilder().getBuilder(); - } - /** - * .types.wasmCreate create = 1; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder getCreateOrBuilder() { - if ((valueCase_ == 1) && (createBuilder_ != null)) { - return createBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); - } - } - /** - * .types.wasmCreate create = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder> - getCreateFieldBuilder() { - if (createBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); - } - createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder>( - (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return createBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder> updateBuilder_; - /** - * .types.wasmUpdate update = 2; - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return valueCase_ == 2; - } - /** - * .types.wasmUpdate update = 2; - * @return The update. - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getUpdate() { - if (updateBuilder_ == null) { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return updateBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); - } - } - /** - * .types.wasmUpdate update = 2; - */ - public Builder setUpdate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .types.wasmUpdate update = 2; - */ - public Builder setUpdate( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder builderForValue) { - if (updateBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .types.wasmUpdate update = 2; - */ - public Builder mergeUpdate(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate value) { - if (updateBuilder_ == null) { - if (valueCase_ == 2 && - value_ != cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.newBuilder((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - updateBuilder_.mergeFrom(value); - } - updateBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .types.wasmUpdate update = 2; - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - updateBuilder_.clear(); - } - return this; - } - /** - * .types.wasmUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder getUpdateBuilder() { - return getUpdateFieldBuilder().getBuilder(); - } - /** - * .types.wasmUpdate update = 2; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder getUpdateOrBuilder() { - if ((valueCase_ == 2) && (updateBuilder_ != null)) { - return updateBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); - } - } - /** - * .types.wasmUpdate update = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); - } - updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder>( - (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return updateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder> callBuilder_; - /** - * .types.wasmCall call = 3; - * @return Whether the call field is set. - */ - public boolean hasCall() { - return valueCase_ == 3; - } - /** - * .types.wasmCall call = 3; - * @return The call. - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getCall() { - if (callBuilder_ == null) { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return callBuilder_.getMessage(); - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); - } - } - /** - * .types.wasmCall call = 3; - */ - public Builder setCall(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall value) { - if (callBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - callBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .types.wasmCall call = 3; - */ - public Builder setCall( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder builderForValue) { - if (callBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - callBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .types.wasmCall call = 3; - */ - public Builder mergeCall(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall value) { - if (callBuilder_ == null) { - if (valueCase_ == 3 && - value_ != cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance()) { - value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.newBuilder((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - callBuilder_.mergeFrom(value); - } - callBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .types.wasmCall call = 3; - */ - public Builder clearCall() { - if (callBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - callBuilder_.clear(); - } - return this; - } - /** - * .types.wasmCall call = 3; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder getCallBuilder() { - return getCallFieldBuilder().getBuilder(); - } - /** - * .types.wasmCall call = 3; - */ - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder getCallOrBuilder() { - if ((valueCase_ == 3) && (callBuilder_ != null)) { - return callBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_; - } - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); - } - } - /** - * .types.wasmCall call = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder> - getCallFieldBuilder() { - if (callBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); - } - callBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder>( - (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return callBuilder_; - } - - private int ty_ ; - /** - * int32 ty = 4; - * @return The ty. - */ - public int getTy() { - return ty_; - } - /** - * int32 ty = 4; - * @param value The ty to set. - * @return This builder for chaining. - */ - public Builder setTy(int value) { - - ty_ = value; - onChanged(); - return this; - } - /** - * int32 ty = 4; - * @return This builder for chaining. - */ - public Builder clearTy() { - - ty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.wasmAction) - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - // @@protoc_insertion_point(class_scope:types.wasmAction) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public wasmAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new wasmAction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { - } + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } - public interface wasmCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.wasmCreate) - com.google.protobuf.MessageOrBuilder { + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + private java.lang.Object code_ = ""; + + /** + * string code = 2; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * bytes code = 2; - * @return The code. - */ - com.google.protobuf.ByteString getCode(); - } - /** - * Protobuf type {@code types.wasmCreate} - */ - public static final class wasmCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.wasmCreate) - wasmCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use wasmCreate.newBuilder() to construct. - private wasmCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private wasmCreate() { - name_ = ""; - code_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * string code = 2; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new wasmCreate(); - } + /** + * string code = 2; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private wasmCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - - code_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_descriptor; - } + /** + * string code = 2; + * + * @return This builder for chaining. + */ + public Builder clearCode() { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder.class); - } + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + /** + * string code = 2; + * + * @param value + * The bytes for code to set. + * + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:types.createContractLog) + } + + // @@protoc_insertion_point(class_scope:types.createContractLog) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog(); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public createContractLog parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new createContractLog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + + public interface updateContractLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.updateContractLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string code = 2; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + * string code = 2; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); } - public static final int CODE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString code_; /** - * bytes code = 2; - * @return The code. + * Protobuf type {@code types.updateContractLog} */ - public com.google.protobuf.ByteString getCode() { - return code_; - } + public static final class updateContractLog extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.updateContractLog) + updateContractLogOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use updateContractLog.newBuilder() to construct. + private updateContractLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private updateContractLog() { + name_ = ""; + code_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!code_.isEmpty()) { - output.writeBytes(2, code_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new updateContractLog(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!code_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private updateContractLog(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 2; + private volatile java.lang.Object code_; + + /** + * string code = 2; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + + /** + * string code = 2; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + 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 types.updateContractLog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.updateContractLog) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.wasmCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.wasmCreate) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - code_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCreate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate(this); - result.name_ = name_; - result.code_ = code_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { - setCode(other.getCode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes code = 2; - * @return The code. - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - /** - * bytes code = 2; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * bytes code = 2; - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.wasmCreate) - } + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:types.wasmCreate) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public wasmCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new wasmCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + code_ = ""; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + return this; + } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_descriptor; + } - public interface wasmUpdateOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.wasmUpdate) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.getDefaultInstance(); + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * bytes code = 2; - * @return The code. - */ - com.google.protobuf.ByteString getCode(); - } - /** - * Protobuf type {@code types.wasmUpdate} - */ - public static final class wasmUpdate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.wasmUpdate) - wasmUpdateOrBuilder { - private static final long serialVersionUID = 0L; - // Use wasmUpdate.newBuilder() to construct. - private wasmUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private wasmUpdate() { - name_ = ""; - code_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog( + this); + result.name_ = name_; + result.code_ = code_; + onBuilt(); + return result; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new wasmUpdate(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private wasmUpdate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - - code_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_descriptor; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder.class); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int CODE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString code_; - /** - * bytes code = 2; - * @return The code. - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!code_.isEmpty()) { - output.writeBytes(2, code_); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!code_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string name = 1; + * + * @param value + * The name to set. + * + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.wasmUpdate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.wasmUpdate) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - code_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmUpdate_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate(this); - result.name_ = name_; - result.code_ = code_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { - setCode(other.getCode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes code = 2; - * @return The code. - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - /** - * bytes code = 2; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * bytes code = 2; - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.wasmUpdate) - } + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { - // @@protoc_insertion_point(class_scope:types.wasmUpdate) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate(); - } + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * string name = 1; + * + * @param value + * The bytes for name to set. + * + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public wasmUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new wasmUpdate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object code_ = ""; + + /** + * string code = 2; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * string code = 2; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmUpdate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * string code = 2; + * + * @param value + * The code to set. + * + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } - } + /** + * string code = 2; + * + * @return This builder for chaining. + */ + public Builder clearCode() { - public interface wasmCallOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.wasmCall) - com.google.protobuf.MessageOrBuilder { + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } - /** - * string contract = 1; - * @return The contract. - */ - java.lang.String getContract(); - /** - * string contract = 1; - * @return The bytes for contract. - */ - com.google.protobuf.ByteString - getContractBytes(); + /** + * string code = 2; + * + * @param value + * The bytes for code to set. + * + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } - /** - * string method = 2; - * @return The method. - */ - java.lang.String getMethod(); - /** - * string method = 2; - * @return The bytes for method. - */ - com.google.protobuf.ByteString - getMethodBytes(); + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * repeated int64 parameters = 3; - * @return A list containing the parameters. - */ - java.util.List getParametersList(); - /** - * repeated int64 parameters = 3; - * @return The count of parameters. - */ - int getParametersCount(); - /** - * repeated int64 parameters = 3; - * @param index The index of the element to return. - * @return The parameters at the given index. - */ - long getParameters(int index); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - * repeated string env = 4; - * @return A list containing the env. - */ - java.util.List - getEnvList(); - /** - * repeated string env = 4; - * @return The count of env. - */ - int getEnvCount(); - /** - * repeated string env = 4; - * @param index The index of the element to return. - * @return The env at the given index. - */ - java.lang.String getEnv(int index); - /** - * repeated string env = 4; - * @param index The index of the value to return. - * @return The bytes of the env at the given index. - */ - com.google.protobuf.ByteString - getEnvBytes(int index); - } - /** - * Protobuf type {@code types.wasmCall} - */ - public static final class wasmCall extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.wasmCall) - wasmCallOrBuilder { - private static final long serialVersionUID = 0L; - // Use wasmCall.newBuilder() to construct. - private wasmCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private wasmCall() { - contract_ = ""; - method_ = ""; - parameters_ = emptyLongList(); - env_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + // @@protoc_insertion_point(builder_scope:types.updateContractLog) + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new wasmCall(); - } + // @@protoc_insertion_point(class_scope:types.updateContractLog) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private wasmCall( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - contract_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - method_ = s; - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - parameters_.addLong(input.readInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - parameters_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - parameters_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - env_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - env_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - env_ = env_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder.class); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public updateContractLog parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new updateContractLog(input, extensionRegistry); + } + }; - public static final int CONTRACT_FIELD_NUMBER = 1; - private volatile java.lang.Object contract_; - /** - * string contract = 1; - * @return The contract. - */ - public java.lang.String getContract() { - java.lang.Object ref = contract_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contract_ = s; - return s; - } - } - /** - * string contract = 1; - * @return The bytes for contract. - */ - public com.google.protobuf.ByteString - getContractBytes() { - java.lang.Object ref = contract_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contract_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int METHOD_FIELD_NUMBER = 2; - private volatile java.lang.Object method_; - /** - * string method = 2; - * @return The method. - */ - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } - } - /** - * string method = 2; - * @return The bytes for method. - */ - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int PARAMETERS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.LongList parameters_; - /** - * repeated int64 parameters = 3; - * @return A list containing the parameters. - */ - public java.util.List - getParametersList() { - return parameters_; - } - /** - * repeated int64 parameters = 3; - * @return The count of parameters. - */ - public int getParametersCount() { - return parameters_.size(); - } - /** - * repeated int64 parameters = 3; - * @param index The index of the element to return. - * @return The parameters at the given index. - */ - public long getParameters(int index) { - return parameters_.getLong(index); - } - private int parametersMemoizedSerializedSize = -1; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int ENV_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList env_; - /** - * repeated string env = 4; - * @return A list containing the env. - */ - public com.google.protobuf.ProtocolStringList - getEnvList() { - return env_; - } - /** - * repeated string env = 4; - * @return The count of env. - */ - public int getEnvCount() { - return env_.size(); } - /** - * repeated string env = 4; - * @param index The index of the element to return. - * @return The env at the given index. - */ - public java.lang.String getEnv(int index) { - return env_.get(index); + + public interface callContractLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.callContractLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string contract = 1; + * + * @return The contract. + */ + java.lang.String getContract(); + + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + com.google.protobuf.ByteString getContractBytes(); + + /** + * string method = 2; + * + * @return The method. + */ + java.lang.String getMethod(); + + /** + * string method = 2; + * + * @return The bytes for method. + */ + com.google.protobuf.ByteString getMethodBytes(); + + /** + * int32 result = 3; + * + * @return The result. + */ + int getResult(); } + /** - * repeated string env = 4; - * @param index The index of the value to return. - * @return The bytes of the env at the given index. + * Protobuf type {@code types.callContractLog} */ - public com.google.protobuf.ByteString - getEnvBytes(int index) { - return env_.getByteString(index); - } + public static final class callContractLog extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.callContractLog) + callContractLogOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Use callContractLog.newBuilder() to construct. + private callContractLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - memoizedIsInitialized = 1; - return true; - } + private callContractLog() { + contract_ = ""; + method_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!getContractBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contract_); - } - if (!getMethodBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); - } - if (getParametersList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(parametersMemoizedSerializedSize); - } - for (int i = 0; i < parameters_.size(); i++) { - output.writeInt64NoTag(parameters_.getLong(i)); - } - for (int i = 0; i < env_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, env_.getRaw(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new callContractLog(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getContractBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contract_); - } - if (!getMethodBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); - } - { - int dataSize = 0; - for (int i = 0; i < parameters_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(parameters_.getLong(i)); - } - size += dataSize; - if (!getParametersList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - parametersMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < env_.size(); i++) { - dataSize += computeStringSizeNoTag(env_.getRaw(i)); - } - size += dataSize; - size += 1 * getEnvList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) obj; - - if (!getContract() - .equals(other.getContract())) return false; - if (!getMethod() - .equals(other.getMethod())) return false; - if (!getParametersList() - .equals(other.getParametersList())) return false; - if (!getEnvList() - .equals(other.getEnvList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private callContractLog(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + contract_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + method_ = s; + break; + } + case 24: { + + result_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + getContract().hashCode(); - hash = (37 * hash) + METHOD_FIELD_NUMBER; - hash = (53 * hash) + getMethod().hashCode(); - if (getParametersCount() > 0) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getParametersList().hashCode(); - } - if (getEnvCount() > 0) { - hash = (37 * hash) + ENV_FIELD_NUMBER; - hash = (53 * hash) + getEnvList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.Builder.class); + } + + public static final int CONTRACT_FIELD_NUMBER = 1; + private volatile java.lang.Object contract_; + + /** + * string contract = 1; + * + * @return The contract. + */ + @java.lang.Override + public java.lang.String getContract() { + java.lang.Object ref = contract_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contract_ = s; + return s; + } + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContractBytes() { + java.lang.Object ref = contract_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contract_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int METHOD_FIELD_NUMBER = 2; + private volatile java.lang.Object method_; + + /** + * string method = 2; + * + * @return The method. + */ + @java.lang.Override + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.wasmCall} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.wasmCall) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCallOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contract_ = ""; - - method_ = ""; - - parameters_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - env_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_wasmCall_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall(this); - int from_bitField0_ = bitField0_; - result.contract_ = contract_; - result.method_ = method_; - if (((bitField0_ & 0x00000001) != 0)) { - parameters_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.parameters_ = parameters_; - if (((bitField0_ & 0x00000002) != 0)) { - env_ = env_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.env_ = env_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall.getDefaultInstance()) return this; - if (!other.getContract().isEmpty()) { - contract_ = other.contract_; - onChanged(); - } - if (!other.getMethod().isEmpty()) { - method_ = other.method_; - onChanged(); - } - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } - onChanged(); - } - if (!other.env_.isEmpty()) { - if (env_.isEmpty()) { - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureEnvIsMutable(); - env_.addAll(other.env_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object contract_ = ""; - /** - * string contract = 1; - * @return The contract. - */ - public java.lang.String getContract() { - java.lang.Object ref = contract_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contract_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contract = 1; - * @return The bytes for contract. - */ - public com.google.protobuf.ByteString - getContractBytes() { - java.lang.Object ref = contract_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contract_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contract = 1; - * @param value The contract to set. - * @return This builder for chaining. - */ - public Builder setContract( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contract_ = value; - onChanged(); - return this; - } - /** - * string contract = 1; - * @return This builder for chaining. - */ - public Builder clearContract() { - - contract_ = getDefaultInstance().getContract(); - onChanged(); - return this; - } - /** - * string contract = 1; - * @param value The bytes for contract to set. - * @return This builder for chaining. - */ - public Builder setContractBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contract_ = value; - onChanged(); - return this; - } - - private java.lang.Object method_ = ""; - /** - * string method = 2; - * @return The method. - */ - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string method = 2; - * @return The bytes for method. - */ - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string method = 2; - * @param value The method to set. - * @return This builder for chaining. - */ - public Builder setMethod( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - method_ = value; - onChanged(); - return this; - } - /** - * string method = 2; - * @return This builder for chaining. - */ - public Builder clearMethod() { - - method_ = getDefaultInstance().getMethod(); - onChanged(); - return this; - } - /** - * string method = 2; - * @param value The bytes for method to set. - * @return This builder for chaining. - */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - method_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList parameters_ = emptyLongList(); - private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - parameters_ = mutableCopy(parameters_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 parameters = 3; - * @return A list containing the parameters. - */ - public java.util.List - getParametersList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(parameters_) : parameters_; - } - /** - * repeated int64 parameters = 3; - * @return The count of parameters. - */ - public int getParametersCount() { - return parameters_.size(); - } - /** - * repeated int64 parameters = 3; - * @param index The index of the element to return. - * @return The parameters at the given index. - */ - public long getParameters(int index) { - return parameters_.getLong(index); - } - /** - * repeated int64 parameters = 3; - * @param index The index to set the value at. - * @param value The parameters to set. - * @return This builder for chaining. - */ - public Builder setParameters( - int index, long value) { - ensureParametersIsMutable(); - parameters_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 parameters = 3; - * @param value The parameters to add. - * @return This builder for chaining. - */ - public Builder addParameters(long value) { - ensureParametersIsMutable(); - parameters_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 parameters = 3; - * @param values The parameters to add. - * @return This builder for chaining. - */ - public Builder addAllParameters( - java.lang.Iterable values) { - ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameters_); - onChanged(); - return this; - } - /** - * repeated int64 parameters = 3; - * @return This builder for chaining. - */ - public Builder clearParameters() { - parameters_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList env_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - env_ = new com.google.protobuf.LazyStringArrayList(env_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string env = 4; - * @return A list containing the env. - */ - public com.google.protobuf.ProtocolStringList - getEnvList() { - return env_.getUnmodifiableView(); - } - /** - * repeated string env = 4; - * @return The count of env. - */ - public int getEnvCount() { - return env_.size(); - } - /** - * repeated string env = 4; - * @param index The index of the element to return. - * @return The env at the given index. - */ - public java.lang.String getEnv(int index) { - return env_.get(index); - } - /** - * repeated string env = 4; - * @param index The index of the value to return. - * @return The bytes of the env at the given index. - */ - public com.google.protobuf.ByteString - getEnvBytes(int index) { - return env_.getByteString(index); - } - /** - * repeated string env = 4; - * @param index The index to set the value at. - * @param value The env to set. - * @return This builder for chaining. - */ - public Builder setEnv( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string env = 4; - * @param value The env to add. - * @return This builder for chaining. - */ - public Builder addEnv( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(value); - onChanged(); - return this; - } - /** - * repeated string env = 4; - * @param values The env to add. - * @return This builder for chaining. - */ - public Builder addAllEnv( - java.lang.Iterable values) { - ensureEnvIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, env_); - onChanged(); - return this; - } - /** - * repeated string env = 4; - * @return This builder for chaining. - */ - public Builder clearEnv() { - env_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string env = 4; - * @param value The bytes of the env to add. - * @return This builder for chaining. - */ - public Builder addEnvBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEnvIsMutable(); - env_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.wasmCall) - } + /** + * string method = 2; + * + * @return The bytes for method. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:types.wasmCall) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall(); - } + public static final int RESULT_FIELD_NUMBER = 3; + private int result_; - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * int32 result = 3; + * + * @return The result. + */ + @java.lang.Override + public int getResult() { + return result_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public wasmCall parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new wasmCall(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.wasmCall getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getContractBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contract_); + } + if (!getMethodBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + if (result_ != 0) { + output.writeInt32(3, result_); + } + unknownFields.writeTo(output); + } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public interface queryCheckContractOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.queryCheckContract) - com.google.protobuf.MessageOrBuilder { + size = 0; + if (!getContractBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contract_); + } + if (!getMethodBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + if (result_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, result_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code types.queryCheckContract} - */ - public static final class queryCheckContract extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.queryCheckContract) - queryCheckContractOrBuilder { - private static final long serialVersionUID = 0L; - // Use queryCheckContract.newBuilder() to construct. - private queryCheckContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private queryCheckContract() { - name_ = ""; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog) obj; + + if (!getContract().equals(other.getContract())) + return false; + if (!getMethod().equals(other.getMethod())) + return false; + if (getResult() != other.getResult()) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTRACT_FIELD_NUMBER; + hash = (53 * hash) + getContract().hashCode(); + hash = (37 * hash) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + getMethod().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new queryCheckContract(); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private queryCheckContract( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_descriptor; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.Builder.class); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.queryCheckContract} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.queryCheckContract) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContractOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryCheckContract_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.queryCheckContract) - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:types.queryCheckContract) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public queryCheckContract parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new queryCheckContract(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryCheckContract getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * Protobuf type {@code types.callContractLog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.callContractLog) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.Builder.class); + } - public interface queryContractDBOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.queryContractDB) - com.google.protobuf.MessageOrBuilder { + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * string contract = 1; - * @return The contract. - */ - java.lang.String getContract(); - /** - * string contract = 1; - * @return The bytes for contract. - */ - com.google.protobuf.ByteString - getContractBytes(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * string key = 2; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 2; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); - } - /** - * Protobuf type {@code types.queryContractDB} - */ - public static final class queryContractDB extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.queryContractDB) - queryContractDBOrBuilder { - private static final long serialVersionUID = 0L; - // Use queryContractDB.newBuilder() to construct. - private queryContractDB(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private queryContractDB() { - contract_ = ""; - key_ = ""; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new queryContractDB(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + contract_ = ""; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private queryContractDB( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - contract_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_descriptor; - } + method_ = ""; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.Builder.class); - } + result_ = 0; - public static final int CONTRACT_FIELD_NUMBER = 1; - private volatile java.lang.Object contract_; - /** - * string contract = 1; - * @return The contract. - */ - public java.lang.String getContract() { - java.lang.Object ref = contract_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contract_ = s; - return s; - } - } - /** - * string contract = 1; - * @return The bytes for contract. - */ - public com.google.protobuf.ByteString - getContractBytes() { - java.lang.Object ref = contract_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contract_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + return this; + } - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * string key = 2; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 2; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getContractBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contract_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog( + this); + result.contract_ = contract_; + result.method_ = method_; + result.result_ = result_; + onBuilt(); + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getContractBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contract_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB) obj; - - if (!getContract() - .equals(other.getContract())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + getContract().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.queryContractDB} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.queryContractDB) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDBOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contract_ = ""; - - key_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_queryContractDB_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB(this); - result.contract_ = contract_; - result.key_ = key_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB.getDefaultInstance()) return this; - if (!other.getContract().isEmpty()) { - contract_ = other.contract_; - onChanged(); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object contract_ = ""; - /** - * string contract = 1; - * @return The contract. - */ - public java.lang.String getContract() { - java.lang.Object ref = contract_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contract_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contract = 1; - * @return The bytes for contract. - */ - public com.google.protobuf.ByteString - getContractBytes() { - java.lang.Object ref = contract_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contract_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contract = 1; - * @param value The contract to set. - * @return This builder for chaining. - */ - public Builder setContract( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contract_ = value; - onChanged(); - return this; - } - /** - * string contract = 1; - * @return This builder for chaining. - */ - public Builder clearContract() { - - contract_ = getDefaultInstance().getContract(); - onChanged(); - return this; - } - /** - * string contract = 1; - * @param value The bytes for contract to set. - * @return This builder for chaining. - */ - public Builder setContractBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contract_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 2; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 2; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 2; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 2; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 2; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.queryContractDB) - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - // @@protoc_insertion_point(class_scope:types.queryContractDB) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.getDefaultInstance()) + return this; + if (!other.getContract().isEmpty()) { + contract_ = other.contract_; + onChanged(); + } + if (!other.getMethod().isEmpty()) { + method_ = other.method_; + onChanged(); + } + if (other.getResult() != 0) { + setResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public queryContractDB parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new queryContractDB(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.queryContractDB getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private java.lang.Object contract_ = ""; + + /** + * string contract = 1; + * + * @return The contract. + */ + public java.lang.String getContract() { + java.lang.Object ref = contract_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contract_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - } + /** + * string contract = 1; + * + * @return The bytes for contract. + */ + public com.google.protobuf.ByteString getContractBytes() { + java.lang.Object ref = contract_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + contract_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface customLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.customLog) - com.google.protobuf.MessageOrBuilder { + /** + * string contract = 1; + * + * @param value + * The contract to set. + * + * @return This builder for chaining. + */ + public Builder setContract(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contract_ = value; + onChanged(); + return this; + } - /** - * repeated string info = 1; - * @return A list containing the info. - */ - java.util.List - getInfoList(); - /** - * repeated string info = 1; - * @return The count of info. - */ - int getInfoCount(); - /** - * repeated string info = 1; - * @param index The index of the element to return. - * @return The info at the given index. - */ - java.lang.String getInfo(int index); - /** - * repeated string info = 1; - * @param index The index of the value to return. - * @return The bytes of the info at the given index. - */ - com.google.protobuf.ByteString - getInfoBytes(int index); - } - /** - * Protobuf type {@code types.customLog} - */ - public static final class customLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.customLog) - customLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use customLog.newBuilder() to construct. - private customLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private customLog() { - info_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + /** + * string contract = 1; + * + * @return This builder for chaining. + */ + public Builder clearContract() { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new customLog(); - } + contract_ = getDefaultInstance().getContract(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private customLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - info_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - info_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - info_ = info_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_descriptor; - } + /** + * string contract = 1; + * + * @param value + * The bytes for contract to set. + * + * @return This builder for chaining. + */ + public Builder setContractBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contract_ = value; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.Builder.class); - } + private java.lang.Object method_ = ""; + + /** + * string method = 2; + * + * @return The method. + */ + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int INFO_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList info_; - /** - * repeated string info = 1; - * @return A list containing the info. - */ - public com.google.protobuf.ProtocolStringList - getInfoList() { - return info_; - } - /** - * repeated string info = 1; - * @return The count of info. - */ - public int getInfoCount() { - return info_.size(); - } - /** - * repeated string info = 1; - * @param index The index of the element to return. - * @return The info at the given index. - */ - public java.lang.String getInfo(int index) { - return info_.get(index); - } - /** - * repeated string info = 1; - * @param index The index of the value to return. - * @return The bytes of the info at the given index. - */ - public com.google.protobuf.ByteString - getInfoBytes(int index) { - return info_.getByteString(index); - } + /** + * string method = 2; + * + * @return The bytes for method. + */ + public com.google.protobuf.ByteString getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * string method = 2; + * + * @param value + * The method to set. + * + * @return This builder for chaining. + */ + public Builder setMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + method_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * string method = 2; + * + * @return This builder for chaining. + */ + public Builder clearMethod() { - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < info_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, info_.getRaw(i)); - } - unknownFields.writeTo(output); - } + method_ = getDefaultInstance().getMethod(); + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < info_.size(); i++) { - dataSize += computeStringSizeNoTag(info_.getRaw(i)); - } - size += dataSize; - size += 1 * getInfoList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * string method = 2; + * + * @param value + * The bytes for method to set. + * + * @return This builder for chaining. + */ + public Builder setMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + method_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog) obj; - - if (!getInfoList() - .equals(other.getInfoList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + private int result_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInfoCount() > 0) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfoList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * int32 result = 3; + * + * @return The result. + */ + @java.lang.Override + public int getResult() { + return result_; + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + * int32 result = 3; + * + * @param value + * The result to set. + * + * @return This builder for chaining. + */ + public Builder setResult(int value) { + + result_ = value; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * int32 result = 3; + * + * @return This builder for chaining. + */ + public Builder clearResult() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.customLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.customLog) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - info_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_customLog_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - info_ = info_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.info_ = info_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog.getDefaultInstance()) return this; - if (!other.info_.isEmpty()) { - if (info_.isEmpty()) { - info_ = other.info_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInfoIsMutable(); - info_.addAll(other.info_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList info_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - info_ = new com.google.protobuf.LazyStringArrayList(info_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string info = 1; - * @return A list containing the info. - */ - public com.google.protobuf.ProtocolStringList - getInfoList() { - return info_.getUnmodifiableView(); - } - /** - * repeated string info = 1; - * @return The count of info. - */ - public int getInfoCount() { - return info_.size(); - } - /** - * repeated string info = 1; - * @param index The index of the element to return. - * @return The info at the given index. - */ - public java.lang.String getInfo(int index) { - return info_.get(index); - } - /** - * repeated string info = 1; - * @param index The index of the value to return. - * @return The bytes of the info at the given index. - */ - public com.google.protobuf.ByteString - getInfoBytes(int index) { - return info_.getByteString(index); - } - /** - * repeated string info = 1; - * @param index The index to set the value at. - * @param value The info to set. - * @return This builder for chaining. - */ - public Builder setInfo( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string info = 1; - * @param value The info to add. - * @return This builder for chaining. - */ - public Builder addInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoIsMutable(); - info_.add(value); - onChanged(); - return this; - } - /** - * repeated string info = 1; - * @param values The info to add. - * @return This builder for chaining. - */ - public Builder addAllInfo( - java.lang.Iterable values) { - ensureInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, info_); - onChanged(); - return this; - } - /** - * repeated string info = 1; - * @return This builder for chaining. - */ - public Builder clearInfo() { - info_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string info = 1; - * @param value The bytes of the info to add. - * @return This builder for chaining. - */ - public Builder addInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInfoIsMutable(); - info_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.customLog) - } + result_ = 0; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:types.customLog) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog(); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public customLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new customLog(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:types.callContractLog) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:types.callContractLog) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog(); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.customLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public callContractLog parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new callContractLog(input, extensionRegistry); + } + }; - public interface createContractLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.createContractLog) - com.google.protobuf.MessageOrBuilder { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * string code = 2; - * @return The code. - */ - java.lang.String getCode(); - /** - * string code = 2; - * @return The bytes for code. - */ - com.google.protobuf.ByteString - getCodeBytes(); - } - /** - * Protobuf type {@code types.createContractLog} - */ - public static final class createContractLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.createContractLog) - createContractLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use createContractLog.newBuilder() to construct. - private createContractLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private createContractLog() { - name_ = ""; - code_ = ""; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new createContractLog(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private createContractLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_descriptor; - } + public interface localDataLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:types.localDataLog) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.Builder.class); - } + /** + * bytes key = 1; + * + * @return The key. + */ + com.google.protobuf.ByteString getKey(); - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * bytes value = 2; + * + * @return The value. + */ + com.google.protobuf.ByteString getValue(); } - public static final int CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object code_; /** - * string code = 2; - * @return The code. - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * string code = 2; - * @return The bytes for code. + * Protobuf type {@code types.localDataLog} */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public static final class localDataLog extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:types.localDataLog) + localDataLogOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Use localDataLog.newBuilder() to construct. + private localDataLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private localDataLog() { + key_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new localDataLog(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.createContractLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.createContractLog) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - code_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_createContractLog_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog(this); - result.name_ = name_; - result.code_ = code_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object code_ = ""; - /** - * string code = 2; - * @return The code. - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string code = 2; - * @return The bytes for code. - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string code = 2; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * string code = 2; - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * string code = 2; - * @param value The bytes for code to set. - * @return This builder for chaining. - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.createContractLog) - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - // @@protoc_insertion_point(class_scope:types.createContractLog) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog(); - } + private localDataLog(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet + .newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + key_ = input.readBytes(); + break; + } + case 18: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public createContractLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new createContractLog(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_fieldAccessorTable + .ensureFieldAccessorsInitialized(cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.createContractLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } - } + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; - public interface updateContractLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.updateContractLog) - com.google.protobuf.MessageOrBuilder { + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); + private byte memoizedIsInitialized = -1; - /** - * string code = 2; - * @return The code. - */ - java.lang.String getCode(); - /** - * string code = 2; - * @return The bytes for code. - */ - com.google.protobuf.ByteString - getCodeBytes(); - } - /** - * Protobuf type {@code types.updateContractLog} - */ - public static final class updateContractLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.updateContractLog) - updateContractLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use updateContractLog.newBuilder() to construct. - private updateContractLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private updateContractLog() { - name_ = ""; - code_ = ""; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new updateContractLog(); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private updateContractLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_descriptor; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.Builder.class); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object code_; - /** - * string code = 2; - * @return The code. - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * string code = 2; - * @return The bytes for code. - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog)) { + return super.equals(obj); + } + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog) obj; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (!getKey().equals(other.getKey())) + return false; + if (!getValue().equals(other.getValue())) + return false; + if (!unknownFields.equals(other.unknownFields)) + return false; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); - } - unknownFields.writeTo(output); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.updateContractLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.updateContractLog) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - code_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_updateContractLog_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog(this); - result.name_ = name_; - result.code_ = code_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object code_ = ""; - /** - * string code = 2; - * @return The code. - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string code = 2; - * @return The bytes for code. - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string code = 2; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * string code = 2; - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * string code = 2; - * @param value The bytes for code to set. - * @return This builder for chaining. - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.updateContractLog) - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:types.updateContractLog) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog(); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public updateContractLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new updateContractLog(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.updateContractLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public interface callContractLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.callContractLog) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * string contract = 1; - * @return The contract. - */ - java.lang.String getContract(); - /** - * string contract = 1; - * @return The bytes for contract. - */ - com.google.protobuf.ByteString - getContractBytes(); + public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * string method = 2; - * @return The method. - */ - java.lang.String getMethod(); - /** - * string method = 2; - * @return The bytes for method. - */ - com.google.protobuf.ByteString - getMethodBytes(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * int32 result = 3; - * @return The result. - */ - int getResult(); - } - /** - * Protobuf type {@code types.callContractLog} - */ - public static final class callContractLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.callContractLog) - callContractLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use callContractLog.newBuilder() to construct. - private callContractLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private callContractLog() { - contract_ = ""; - method_ = ""; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new callContractLog(); - } + /** + * Protobuf type {@code types.localDataLog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:types.localDataLog) + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private callContractLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - contract_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - method_ = s; - break; - } - case 24: { - - result_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.class, + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.Builder.class); - } + // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int CONTRACT_FIELD_NUMBER = 1; - private volatile java.lang.Object contract_; - /** - * string contract = 1; - * @return The contract. - */ - public java.lang.String getContract() { - java.lang.Object ref = contract_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contract_ = s; - return s; - } - } - /** - * string contract = 1; - * @return The bytes for contract. - */ - public com.google.protobuf.ByteString - getContractBytes() { - java.lang.Object ref = contract_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contract_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int METHOD_FIELD_NUMBER = 2; - private volatile java.lang.Object method_; - /** - * string method = 2; - * @return The method. - */ - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } - } - /** - * string method = 2; - * @return The bytes for method. - */ - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + } + } - public static final int RESULT_FIELD_NUMBER = 3; - private int result_; - /** - * int32 result = 3; - * @return The result. - */ - public int getResult() { - return result_; - } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = com.google.protobuf.ByteString.EMPTY; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + value_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getContractBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contract_); - } - if (!getMethodBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); - } - if (result_ != 0) { - output.writeInt32(3, result_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getContractBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contract_); - } - if (!getMethodBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); - } - if (result_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, result_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog getDefaultInstanceForType() { + return cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog) obj; - - if (!getContract() - .equals(other.getContract())) return false; - if (!getMethod() - .equals(other.getMethod())) return false; - if (getResult() - != other.getResult()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog build() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + getContract().hashCode(); - hash = (37 * hash) + METHOD_FIELD_NUMBER; - hash = (53 * hash) + getMethod().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog buildPartial() { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog( + this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.callContractLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.callContractLog) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - contract_ = ""; - - method_ = ""; - - result_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_callContractLog_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog(this); - result.contract_ = contract_; - result.method_ = method_; - result.result_ = result_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog.getDefaultInstance()) return this; - if (!other.getContract().isEmpty()) { - contract_ = other.contract_; - onChanged(); - } - if (!other.getMethod().isEmpty()) { - method_ = other.method_; - onChanged(); - } - if (other.getResult() != 0) { - setResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object contract_ = ""; - /** - * string contract = 1; - * @return The contract. - */ - public java.lang.String getContract() { - java.lang.Object ref = contract_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contract_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string contract = 1; - * @return The bytes for contract. - */ - public com.google.protobuf.ByteString - getContractBytes() { - java.lang.Object ref = contract_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contract_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string contract = 1; - * @param value The contract to set. - * @return This builder for chaining. - */ - public Builder setContract( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contract_ = value; - onChanged(); - return this; - } - /** - * string contract = 1; - * @return This builder for chaining. - */ - public Builder clearContract() { - - contract_ = getDefaultInstance().getContract(); - onChanged(); - return this; - } - /** - * string contract = 1; - * @param value The bytes for contract to set. - * @return This builder for chaining. - */ - public Builder setContractBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contract_ = value; - onChanged(); - return this; - } - - private java.lang.Object method_ = ""; - /** - * string method = 2; - * @return The method. - */ - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string method = 2; - * @return The bytes for method. - */ - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string method = 2; - * @param value The method to set. - * @return This builder for chaining. - */ - public Builder setMethod( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - method_ = value; - onChanged(); - return this; - } - /** - * string method = 2; - * @return This builder for chaining. - */ - public Builder clearMethod() { - - method_ = getDefaultInstance().getMethod(); - onChanged(); - return this; - } - /** - * string method = 2; - * @param value The bytes for method to set. - * @return This builder for chaining. - */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - method_ = value; - onChanged(); - return this; - } - - private int result_ ; - /** - * int32 result = 3; - * @return The result. - */ - public int getResult() { - return result_; - } - /** - * int32 result = 3; - * @param value The result to set. - * @return This builder for chaining. - */ - public Builder setResult(int value) { - - result_ = value; - onChanged(); - return this; - } - /** - * int32 result = 3; - * @return This builder for chaining. - */ - public Builder clearResult() { - - result_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.callContractLog) - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - // @@protoc_insertion_point(class_scope:types.callContractLog) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog(); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public callContractLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new callContractLog(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog) { + return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.callContractLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog other) { + if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.getDefaultInstance()) + return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog) e + .getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public interface localDataLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:types.localDataLog) - com.google.protobuf.MessageOrBuilder { + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - * @return The key. - */ - com.google.protobuf.ByteString getKey(); + /** + * bytes key = 1; + * + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } - /** - * bytes value = 2; - * @return The value. - */ - com.google.protobuf.ByteString getValue(); - } - /** - * Protobuf type {@code types.localDataLog} - */ - public static final class localDataLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:types.localDataLog) - localDataLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use localDataLog.newBuilder() to construct. - private localDataLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private localDataLog() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } + /** + * bytes key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new localDataLog(); - } + /** + * bytes key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private localDataLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_descriptor; - } + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.Builder.class); - } + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - * @return The key. - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } + /** + * bytes value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - * @return The value. - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + /** + * bytes value = 2; + * + * @param value + * The value to set. + * + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * bytes value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { - memoizedIsInitialized = 1; - return true; - } + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog)) { - return super.equals(obj); - } - cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog other = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:types.localDataLog) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:types.localDataLog) + private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog(); + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public localDataLog parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new localDataLog(input, extensionRegistry); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code types.localDataLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:types.localDataLog) - cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.class, cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.Builder.class); - } - - // Construct using cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.internal_static_types_localDataLog_descriptor; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog getDefaultInstanceForType() { - return cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.getDefaultInstance(); - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog build() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog buildPartial() { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog result = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog) { - return mergeFrom((cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog other) { - if (other == cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - * @return The key. - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - * @return The value. - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:types.localDataLog) - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:types.localDataLog) - private static final cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public localDataLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new localDataLog(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_wasmAction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_wasmAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_wasmCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_wasmCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_wasmUpdate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_wasmUpdate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_wasmCall_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_wasmCall_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_queryCheckContract_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_queryCheckContract_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_queryContractDB_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_queryContractDB_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_customLog_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_customLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_createContractLog_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_createContractLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_updateContractLog_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_updateContractLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_callContractLog_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_callContractLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_localDataLog_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_localDataLog_fieldAccessorTable; - @java.lang.Override - public cn.chain33.javasdk.model.protobuf.WasmProtobuf.localDataLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_wasmAction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_wasmAction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_wasmCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_wasmCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_wasmUpdate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_wasmUpdate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_wasmCall_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_wasmCall_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_queryCheckContract_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_queryCheckContract_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_queryContractDB_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_queryContractDB_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_customLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_customLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_createContractLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_createContractLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_updateContractLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_updateContractLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_callContractLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_callContractLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_types_localDataLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_types_localDataLog_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nwasm.proto\022\005types\"\214\001\n\nwasmAction\022#\n\006cr" + - "eate\030\001 \001(\0132\021.types.wasmCreateH\000\022#\n\006updat" + - "e\030\002 \001(\0132\021.types.wasmUpdateH\000\022\037\n\004call\030\003 \001" + - "(\0132\017.types.wasmCallH\000\022\n\n\002ty\030\004 \001(\005B\007\n\005val" + - "ue\"(\n\nwasmCreate\022\014\n\004name\030\001 \001(\t\022\014\n\004code\030\002" + - " \001(\014\"(\n\nwasmUpdate\022\014\n\004name\030\001 \001(\t\022\014\n\004code" + - "\030\002 \001(\014\"M\n\010wasmCall\022\020\n\010contract\030\001 \001(\t\022\016\n\006" + - "method\030\002 \001(\t\022\022\n\nparameters\030\003 \003(\003\022\013\n\003env\030" + - "\004 \003(\t\"\"\n\022queryCheckContract\022\014\n\004name\030\001 \001(" + - "\t\"0\n\017queryContractDB\022\020\n\010contract\030\001 \001(\t\022\013" + - "\n\003key\030\002 \001(\t\"\031\n\tcustomLog\022\014\n\004info\030\001 \003(\t\"/" + - "\n\021createContractLog\022\014\n\004name\030\001 \001(\t\022\014\n\004cod" + - "e\030\002 \001(\t\"/\n\021updateContractLog\022\014\n\004name\030\001 \001" + - "(\t\022\014\n\004code\030\002 \001(\t\"C\n\017callContractLog\022\020\n\010c" + - "ontract\030\001 \001(\t\022\016\n\006method\030\002 \001(\t\022\016\n\006result\030" + - "\003 \001(\005\"*\n\014localDataLog\022\013\n\003key\030\001 \001(\014\022\r\n\005va" + - "lue\030\002 \001(\014B1\n!cn.chain33.javasdk.model.pr" + - "otobufB\014WasmProtobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_types_wasmAction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_types_wasmAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_wasmAction_descriptor, - new java.lang.String[] { "Create", "Update", "Call", "Ty", "Value", }); - internal_static_types_wasmCreate_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_types_wasmCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_wasmCreate_descriptor, - new java.lang.String[] { "Name", "Code", }); - internal_static_types_wasmUpdate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_types_wasmUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_wasmUpdate_descriptor, - new java.lang.String[] { "Name", "Code", }); - internal_static_types_wasmCall_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_types_wasmCall_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_wasmCall_descriptor, - new java.lang.String[] { "Contract", "Method", "Parameters", "Env", }); - internal_static_types_queryCheckContract_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_types_queryCheckContract_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_queryCheckContract_descriptor, - new java.lang.String[] { "Name", }); - internal_static_types_queryContractDB_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_types_queryContractDB_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_queryContractDB_descriptor, - new java.lang.String[] { "Contract", "Key", }); - internal_static_types_customLog_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_types_customLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_customLog_descriptor, - new java.lang.String[] { "Info", }); - internal_static_types_createContractLog_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_types_createContractLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_createContractLog_descriptor, - new java.lang.String[] { "Name", "Code", }); - internal_static_types_updateContractLog_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_types_updateContractLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_updateContractLog_descriptor, - new java.lang.String[] { "Name", "Code", }); - internal_static_types_callContractLog_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_types_callContractLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_callContractLog_descriptor, - new java.lang.String[] { "Contract", "Method", "Result", }); - internal_static_types_localDataLog_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_types_localDataLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_types_localDataLog_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\nwasm.proto\022\005types\"\214\001\n\nwasmAction\022#\n\006cr" + + "eate\030\001 \001(\0132\021.types.wasmCreateH\000\022#\n\006updat" + + "e\030\002 \001(\0132\021.types.wasmUpdateH\000\022\037\n\004call\030\003 \001" + + "(\0132\017.types.wasmCallH\000\022\n\n\002ty\030\004 \001(\005B\007\n\005val" + + "ue\"(\n\nwasmCreate\022\014\n\004name\030\001 \001(\t\022\014\n\004code\030\002" + + " \001(\014\"(\n\nwasmUpdate\022\014\n\004name\030\001 \001(\t\022\014\n\004code" + + "\030\002 \001(\014\"M\n\010wasmCall\022\020\n\010contract\030\001 \001(\t\022\016\n\006" + + "method\030\002 \001(\t\022\022\n\nparameters\030\003 \003(\003\022\013\n\003env\030" + + "\004 \003(\t\"\"\n\022queryCheckContract\022\014\n\004name\030\001 \001(" + + "\t\"0\n\017queryContractDB\022\020\n\010contract\030\001 \001(\t\022\013" + + "\n\003key\030\002 \001(\t\"\031\n\tcustomLog\022\014\n\004info\030\001 \003(\t\"/" + + "\n\021createContractLog\022\014\n\004name\030\001 \001(\t\022\014\n\004cod" + + "e\030\002 \001(\t\"/\n\021updateContractLog\022\014\n\004name\030\001 \001" + + "(\t\022\014\n\004code\030\002 \001(\t\"C\n\017callContractLog\022\020\n\010c" + + "ontract\030\001 \001(\t\022\016\n\006method\030\002 \001(\t\022\016\n\006result\030" + + "\003 \001(\005\"*\n\014localDataLog\022\013\n\003key\030\001 \001(\014\022\r\n\005va" + + "lue\030\002 \001(\014B1\n!cn.chain33.javasdk.model.pr" + "otobufB\014WasmProtobufb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_types_wasmAction_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_types_wasmAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_wasmAction_descriptor, + new java.lang.String[] { "Create", "Update", "Call", "Ty", "Value", }); + internal_static_types_wasmCreate_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_types_wasmCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_wasmCreate_descriptor, new java.lang.String[] { "Name", "Code", }); + internal_static_types_wasmUpdate_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_types_wasmUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_wasmUpdate_descriptor, new java.lang.String[] { "Name", "Code", }); + internal_static_types_wasmCall_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_types_wasmCall_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_wasmCall_descriptor, + new java.lang.String[] { "Contract", "Method", "Parameters", "Env", }); + internal_static_types_queryCheckContract_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_types_queryCheckContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_queryCheckContract_descriptor, new java.lang.String[] { "Name", }); + internal_static_types_queryContractDB_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_types_queryContractDB_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_queryContractDB_descriptor, new java.lang.String[] { "Contract", "Key", }); + internal_static_types_customLog_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_types_customLog_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_customLog_descriptor, new java.lang.String[] { "Info", }); + internal_static_types_createContractLog_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_types_createContractLog_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_createContractLog_descriptor, new java.lang.String[] { "Name", "Code", }); + internal_static_types_updateContractLog_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_types_updateContractLog_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_updateContractLog_descriptor, new java.lang.String[] { "Name", "Code", }); + internal_static_types_callContractLog_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_types_callContractLog_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_callContractLog_descriptor, + new java.lang.String[] { "Contract", "Method", "Result", }); + internal_static_types_localDataLog_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_types_localDataLog_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_types_localDataLog_descriptor, new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/chain33Grpc.java b/src/main/java/cn/chain33/javasdk/model/protobuf/chain33Grpc.java index 5cfc51e..b39d8c3 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/chain33Grpc.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/chain33Grpc.java @@ -1,5266 +1,4697 @@ package cn.chain33.javasdk.model.protobuf; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.31.1)", - comments = "Source: grpc.proto") +@javax.annotation.Generated(value = "by gRPC proto compiler (version 1.39.0)", comments = "Source: grpc.proto") public final class chain33Grpc { - private chain33Grpc() {} + private chain33Grpc() { + } - public static final String SERVICE_NAME = "types.chain33"; + public static final String SERVICE_NAME = "chain33"; - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetBlocksMethod; + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetBlocksMethod; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlocks", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlocksMethod() { - io.grpc.MethodDescriptor getGetBlocksMethod; - if ((getGetBlocksMethod = chain33Grpc.getGetBlocksMethod) == null) { - synchronized (chain33Grpc.class) { + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetBlocks", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBlocksMethod() { + io.grpc.MethodDescriptor getGetBlocksMethod; if ((getGetBlocksMethod = chain33Grpc.getGetBlocksMethod) == null) { - chain33Grpc.getGetBlocksMethod = getGetBlocksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlocks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlocks")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetBlocksMethod = chain33Grpc.getGetBlocksMethod) == null) { + chain33Grpc.getGetBlocksMethod = getGetBlocksMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlocks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlocks")).build(); + } + } + } + return getGetBlocksMethod; } - return getGetBlocksMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLastHeaderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLastHeader", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLastHeaderMethod() { - io.grpc.MethodDescriptor getGetLastHeaderMethod; - if ((getGetLastHeaderMethod = chain33Grpc.getGetLastHeaderMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetLastHeaderMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetLastHeader", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLastHeaderMethod() { + io.grpc.MethodDescriptor getGetLastHeaderMethod; if ((getGetLastHeaderMethod = chain33Grpc.getGetLastHeaderMethod) == null) { - chain33Grpc.getGetLastHeaderMethod = getGetLastHeaderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLastHeader")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetLastHeader")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetLastHeaderMethod = chain33Grpc.getGetLastHeaderMethod) == null) { + chain33Grpc.getGetLastHeaderMethod = getGetLastHeaderMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLastHeader")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetLastHeader")).build(); + } + } + } + return getGetLastHeaderMethod; } - return getGetLastHeaderMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRawTransactionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRawTransaction", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRawTransactionMethod() { - io.grpc.MethodDescriptor getCreateRawTransactionMethod; - if ((getCreateRawTransactionMethod = chain33Grpc.getCreateRawTransactionMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getCreateRawTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CreateRawTransaction", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRawTransactionMethod() { + io.grpc.MethodDescriptor getCreateRawTransactionMethod; if ((getCreateRawTransactionMethod = chain33Grpc.getCreateRawTransactionMethod) == null) { - chain33Grpc.getCreateRawTransactionMethod = getCreateRawTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRawTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateRawTransaction")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getCreateRawTransactionMethod = chain33Grpc.getCreateRawTransactionMethod) == null) { + chain33Grpc.getCreateRawTransactionMethod = getCreateRawTransactionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRawTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateRawTransaction")).build(); + } + } + } + return getCreateRawTransactionMethod; } - return getCreateRawTransactionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRawTxGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRawTxGroup", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRawTxGroupMethod() { - io.grpc.MethodDescriptor getCreateRawTxGroupMethod; - if ((getCreateRawTxGroupMethod = chain33Grpc.getCreateRawTxGroupMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getCreateRawTxGroupMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CreateRawTxGroup", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRawTxGroupMethod() { + io.grpc.MethodDescriptor getCreateRawTxGroupMethod; if ((getCreateRawTxGroupMethod = chain33Grpc.getCreateRawTxGroupMethod) == null) { - chain33Grpc.getCreateRawTxGroupMethod = getCreateRawTxGroupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRawTxGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateRawTxGroup")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getCreateRawTxGroupMethod = chain33Grpc.getCreateRawTxGroupMethod) == null) { + chain33Grpc.getCreateRawTxGroupMethod = getCreateRawTxGroupMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRawTxGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateRawTxGroup")).build(); + } + } + } + return getCreateRawTxGroupMethod; } - return getCreateRawTxGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryTransactionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryTransaction", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryTransactionMethod() { - io.grpc.MethodDescriptor getQueryTransactionMethod; - if ((getQueryTransactionMethod = chain33Grpc.getQueryTransactionMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getQueryTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "QueryTransaction", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getQueryTransactionMethod() { + io.grpc.MethodDescriptor getQueryTransactionMethod; if ((getQueryTransactionMethod = chain33Grpc.getQueryTransactionMethod) == null) { - chain33Grpc.getQueryTransactionMethod = getQueryTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryTransaction")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getQueryTransactionMethod = chain33Grpc.getQueryTransactionMethod) == null) { + chain33Grpc.getQueryTransactionMethod = getQueryTransactionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryTransaction")).build(); + } + } + } + return getQueryTransactionMethod; } - return getQueryTransactionMethod; - } - - private static volatile io.grpc.MethodDescriptor getSendTransactionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendTransaction", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSendTransactionMethod() { - io.grpc.MethodDescriptor getSendTransactionMethod; - if ((getSendTransactionMethod = chain33Grpc.getSendTransactionMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getSendTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SendTransaction", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSendTransactionMethod() { + io.grpc.MethodDescriptor getSendTransactionMethod; if ((getSendTransactionMethod = chain33Grpc.getSendTransactionMethod) == null) { - chain33Grpc.getSendTransactionMethod = getSendTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SendTransaction")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getSendTransactionMethod = chain33Grpc.getSendTransactionMethod) == null) { + chain33Grpc.getSendTransactionMethod = getSendTransactionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SendTransaction")).build(); + } + } + } + return getSendTransactionMethod; } - return getSendTransactionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTransactionByAddrMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionByAddr", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionByAddrMethod() { - io.grpc.MethodDescriptor getGetTransactionByAddrMethod; - if ((getGetTransactionByAddrMethod = chain33Grpc.getGetTransactionByAddrMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetTransactionByAddrMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetTransactionByAddr", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTransactionByAddrMethod() { + io.grpc.MethodDescriptor getGetTransactionByAddrMethod; if ((getGetTransactionByAddrMethod = chain33Grpc.getGetTransactionByAddrMethod) == null) { - chain33Grpc.getGetTransactionByAddrMethod = getGetTransactionByAddrMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionByAddr")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetTransactionByAddr")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetTransactionByAddrMethod = chain33Grpc.getGetTransactionByAddrMethod) == null) { + chain33Grpc.getGetTransactionByAddrMethod = getGetTransactionByAddrMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionByAddr")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetTransactionByAddr")).build(); + } + } + } + return getGetTransactionByAddrMethod; } - return getGetTransactionByAddrMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTransactionByHashesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTransactionByHashes", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTransactionByHashesMethod() { - io.grpc.MethodDescriptor getGetTransactionByHashesMethod; - if ((getGetTransactionByHashesMethod = chain33Grpc.getGetTransactionByHashesMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetTransactionByHashesMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetTransactionByHashes", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTransactionByHashesMethod() { + io.grpc.MethodDescriptor getGetTransactionByHashesMethod; if ((getGetTransactionByHashesMethod = chain33Grpc.getGetTransactionByHashesMethod) == null) { - chain33Grpc.getGetTransactionByHashesMethod = getGetTransactionByHashesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionByHashes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetTransactionByHashes")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetTransactionByHashesMethod = chain33Grpc.getGetTransactionByHashesMethod) == null) { + chain33Grpc.getGetTransactionByHashesMethod = getGetTransactionByHashesMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionByHashes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetTransactionByHashes")).build(); + } + } + } + return getGetTransactionByHashesMethod; } - return getGetTransactionByHashesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMemPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMemPool", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMemPoolMethod() { - io.grpc.MethodDescriptor getGetMemPoolMethod; - if ((getGetMemPoolMethod = chain33Grpc.getGetMemPoolMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetMemPoolMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetMemPool", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMemPoolMethod() { + io.grpc.MethodDescriptor getGetMemPoolMethod; if ((getGetMemPoolMethod = chain33Grpc.getGetMemPoolMethod) == null) { - chain33Grpc.getGetMemPoolMethod = getGetMemPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMemPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetMemPool")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetMemPoolMethod = chain33Grpc.getGetMemPoolMethod) == null) { + chain33Grpc.getGetMemPoolMethod = getGetMemPoolMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMemPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetMemPool")).build(); + } + } + } + return getGetMemPoolMethod; } - return getGetMemPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAccountsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccounts", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountsMethod() { - io.grpc.MethodDescriptor getGetAccountsMethod; - if ((getGetAccountsMethod = chain33Grpc.getGetAccountsMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetAccountsMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetAccounts", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAccountsMethod() { + io.grpc.MethodDescriptor getGetAccountsMethod; if ((getGetAccountsMethod = chain33Grpc.getGetAccountsMethod) == null) { - chain33Grpc.getGetAccountsMethod = getGetAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAccounts")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetAccountsMethod = chain33Grpc.getGetAccountsMethod) == null) { + chain33Grpc.getGetAccountsMethod = getGetAccountsMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccounts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAccounts")).build(); + } + } + } + return getGetAccountsMethod; } - return getGetAccountsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccount", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountMethod() { - io.grpc.MethodDescriptor getGetAccountMethod; - if ((getGetAccountMethod = chain33Grpc.getGetAccountMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetAccountMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetAccount", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAccountMethod() { + io.grpc.MethodDescriptor getGetAccountMethod; if ((getGetAccountMethod = chain33Grpc.getGetAccountMethod) == null) { - chain33Grpc.getGetAccountMethod = getGetAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAccount")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetAccountMethod = chain33Grpc.getGetAccountMethod) == null) { + chain33Grpc.getGetAccountMethod = getGetAccountMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAccount")).build(); + } + } + } + return getGetAccountMethod; } - return getGetAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getNewAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "NewAccount", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getNewAccountMethod() { - io.grpc.MethodDescriptor getNewAccountMethod; - if ((getNewAccountMethod = chain33Grpc.getNewAccountMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getNewAccountMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "NewAccount", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getNewAccountMethod() { + io.grpc.MethodDescriptor getNewAccountMethod; if ((getNewAccountMethod = chain33Grpc.getNewAccountMethod) == null) { - chain33Grpc.getNewAccountMethod = getNewAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NewAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("NewAccount")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getNewAccountMethod = chain33Grpc.getNewAccountMethod) == null) { + chain33Grpc.getNewAccountMethod = getNewAccountMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NewAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("NewAccount")).build(); + } + } + } + return getNewAccountMethod; } - return getNewAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getWalletTransactionListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WalletTransactionList", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWalletTransactionListMethod() { - io.grpc.MethodDescriptor getWalletTransactionListMethod; - if ((getWalletTransactionListMethod = chain33Grpc.getWalletTransactionListMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getWalletTransactionListMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "WalletTransactionList", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getWalletTransactionListMethod() { + io.grpc.MethodDescriptor getWalletTransactionListMethod; if ((getWalletTransactionListMethod = chain33Grpc.getWalletTransactionListMethod) == null) { - chain33Grpc.getWalletTransactionListMethod = getWalletTransactionListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WalletTransactionList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("WalletTransactionList")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getWalletTransactionListMethod = chain33Grpc.getWalletTransactionListMethod) == null) { + chain33Grpc.getWalletTransactionListMethod = getWalletTransactionListMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WalletTransactionList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("WalletTransactionList")).build(); + } + } + } + return getWalletTransactionListMethod; } - return getWalletTransactionListMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportPrivkeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportPrivkey", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getImportPrivkeyMethod() { - io.grpc.MethodDescriptor getImportPrivkeyMethod; - if ((getImportPrivkeyMethod = chain33Grpc.getImportPrivkeyMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getImportPrivkeyMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "ImportPrivkey", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportPrivkeyMethod() { + io.grpc.MethodDescriptor getImportPrivkeyMethod; if ((getImportPrivkeyMethod = chain33Grpc.getImportPrivkeyMethod) == null) { - chain33Grpc.getImportPrivkeyMethod = getImportPrivkeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportPrivkey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("ImportPrivkey")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getImportPrivkeyMethod = chain33Grpc.getImportPrivkeyMethod) == null) { + chain33Grpc.getImportPrivkeyMethod = getImportPrivkeyMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportPrivkey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("ImportPrivkey")).build(); + } + } + } + return getImportPrivkeyMethod; } - return getImportPrivkeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSendToAddressMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendToAddress", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSendToAddressMethod() { - io.grpc.MethodDescriptor getSendToAddressMethod; - if ((getSendToAddressMethod = chain33Grpc.getSendToAddressMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getSendToAddressMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SendToAddress", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSendToAddressMethod() { + io.grpc.MethodDescriptor getSendToAddressMethod; if ((getSendToAddressMethod = chain33Grpc.getSendToAddressMethod) == null) { - chain33Grpc.getSendToAddressMethod = getSendToAddressMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendToAddress")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SendToAddress")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getSendToAddressMethod = chain33Grpc.getSendToAddressMethod) == null) { + chain33Grpc.getSendToAddressMethod = getSendToAddressMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendToAddress")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SendToAddress")).build(); + } + } + } + return getSendToAddressMethod; } - return getSendToAddressMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetTxFeeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetTxFee", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetTxFeeMethod() { - io.grpc.MethodDescriptor getSetTxFeeMethod; - if ((getSetTxFeeMethod = chain33Grpc.getSetTxFeeMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getSetTxFeeMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SetTxFee", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetTxFeeMethod() { + io.grpc.MethodDescriptor getSetTxFeeMethod; if ((getSetTxFeeMethod = chain33Grpc.getSetTxFeeMethod) == null) { - chain33Grpc.getSetTxFeeMethod = getSetTxFeeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetTxFee")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SetTxFee")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getSetTxFeeMethod = chain33Grpc.getSetTxFeeMethod) == null) { + chain33Grpc.getSetTxFeeMethod = getSetTxFeeMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetTxFee")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SetTxFee")).build(); + } + } + } + return getSetTxFeeMethod; } - return getSetTxFeeMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetLablMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLabl", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetLablMethod() { - io.grpc.MethodDescriptor getSetLablMethod; - if ((getSetLablMethod = chain33Grpc.getSetLablMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getSetLablMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SetLabl", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetLablMethod() { + io.grpc.MethodDescriptor getSetLablMethod; if ((getSetLablMethod = chain33Grpc.getSetLablMethod) == null) { - chain33Grpc.getSetLablMethod = getSetLablMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLabl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SetLabl")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getSetLablMethod = chain33Grpc.getSetLablMethod) == null) { + chain33Grpc.getSetLablMethod = getSetLablMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLabl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SetLabl")).build(); + } + } + } + return getSetLablMethod; } - return getSetLablMethod; - } - - private static volatile io.grpc.MethodDescriptor getMergeBalanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MergeBalance", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMergeBalanceMethod() { - io.grpc.MethodDescriptor getMergeBalanceMethod; - if ((getMergeBalanceMethod = chain33Grpc.getMergeBalanceMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getMergeBalanceMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "MergeBalance", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMergeBalanceMethod() { + io.grpc.MethodDescriptor getMergeBalanceMethod; if ((getMergeBalanceMethod = chain33Grpc.getMergeBalanceMethod) == null) { - chain33Grpc.getMergeBalanceMethod = getMergeBalanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MergeBalance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("MergeBalance")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getMergeBalanceMethod = chain33Grpc.getMergeBalanceMethod) == null) { + chain33Grpc.getMergeBalanceMethod = getMergeBalanceMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MergeBalance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("MergeBalance")).build(); + } + } + } + return getMergeBalanceMethod; } - return getMergeBalanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetPasswdMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetPasswd", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetPasswdMethod() { - io.grpc.MethodDescriptor getSetPasswdMethod; - if ((getSetPasswdMethod = chain33Grpc.getSetPasswdMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getSetPasswdMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SetPasswd", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetPasswdMethod() { + io.grpc.MethodDescriptor getSetPasswdMethod; if ((getSetPasswdMethod = chain33Grpc.getSetPasswdMethod) == null) { - chain33Grpc.getSetPasswdMethod = getSetPasswdMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetPasswd")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SetPasswd")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getSetPasswdMethod = chain33Grpc.getSetPasswdMethod) == null) { + chain33Grpc.getSetPasswdMethod = getSetPasswdMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetPasswd")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SetPasswd")).build(); + } + } + } + return getSetPasswdMethod; } - return getSetPasswdMethod; - } - - private static volatile io.grpc.MethodDescriptor getLockMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Lock", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLockMethod() { - io.grpc.MethodDescriptor getLockMethod; - if ((getLockMethod = chain33Grpc.getLockMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getLockMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "Lock", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLockMethod() { + io.grpc.MethodDescriptor getLockMethod; if ((getLockMethod = chain33Grpc.getLockMethod) == null) { - chain33Grpc.getLockMethod = getLockMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Lock")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("Lock")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getLockMethod = chain33Grpc.getLockMethod) == null) { + chain33Grpc.getLockMethod = getLockMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Lock")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("Lock")).build(); + } + } + } + return getLockMethod; } - return getLockMethod; - } - - private static volatile io.grpc.MethodDescriptor getUnLockMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnLock", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnLockMethod() { - io.grpc.MethodDescriptor getUnLockMethod; - if ((getUnLockMethod = chain33Grpc.getUnLockMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getUnLockMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "UnLock", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUnLockMethod() { + io.grpc.MethodDescriptor getUnLockMethod; if ((getUnLockMethod = chain33Grpc.getUnLockMethod) == null) { - chain33Grpc.getUnLockMethod = getUnLockMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnLock")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("UnLock")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getUnLockMethod = chain33Grpc.getUnLockMethod) == null) { + chain33Grpc.getUnLockMethod = getUnLockMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnLock")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("UnLock")).build(); + } + } + } + return getUnLockMethod; } - return getUnLockMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLastMemPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLastMemPool", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLastMemPoolMethod() { - io.grpc.MethodDescriptor getGetLastMemPoolMethod; - if ((getGetLastMemPoolMethod = chain33Grpc.getGetLastMemPoolMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetLastMemPoolMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetLastMemPool", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLastMemPoolMethod() { + io.grpc.MethodDescriptor getGetLastMemPoolMethod; if ((getGetLastMemPoolMethod = chain33Grpc.getGetLastMemPoolMethod) == null) { - chain33Grpc.getGetLastMemPoolMethod = getGetLastMemPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLastMemPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetLastMemPool")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetLastMemPoolMethod = chain33Grpc.getGetLastMemPoolMethod) == null) { + chain33Grpc.getGetLastMemPoolMethod = getGetLastMemPoolMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLastMemPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetLastMemPool")).build(); + } + } + } + return getGetLastMemPoolMethod; } - return getGetLastMemPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetProperFeeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProperFee", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetProperFeeMethod() { - io.grpc.MethodDescriptor getGetProperFeeMethod; - if ((getGetProperFeeMethod = chain33Grpc.getGetProperFeeMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetProperFeeMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetProperFee", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetProperFeeMethod() { + io.grpc.MethodDescriptor getGetProperFeeMethod; if ((getGetProperFeeMethod = chain33Grpc.getGetProperFeeMethod) == null) { - chain33Grpc.getGetProperFeeMethod = getGetProperFeeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProperFee")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetProperFee")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetProperFeeMethod = chain33Grpc.getGetProperFeeMethod) == null) { + chain33Grpc.getGetProperFeeMethod = getGetProperFeeMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProperFee")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetProperFee")).build(); + } + } + } + return getGetProperFeeMethod; } - return getGetProperFeeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWalletStatusMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWalletStatus", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWalletStatusMethod() { - io.grpc.MethodDescriptor getGetWalletStatusMethod; - if ((getGetWalletStatusMethod = chain33Grpc.getGetWalletStatusMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetWalletStatusMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetWalletStatus", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWalletStatusMethod() { + io.grpc.MethodDescriptor getGetWalletStatusMethod; if ((getGetWalletStatusMethod = chain33Grpc.getGetWalletStatusMethod) == null) { - chain33Grpc.getGetWalletStatusMethod = getGetWalletStatusMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWalletStatus")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetWalletStatus")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetWalletStatusMethod = chain33Grpc.getGetWalletStatusMethod) == null) { + chain33Grpc.getGetWalletStatusMethod = getGetWalletStatusMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWalletStatus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetWalletStatus")).build(); + } + } + } + return getGetWalletStatusMethod; } - return getGetWalletStatusMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBlockOverviewMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockOverview", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockOverviewMethod() { - io.grpc.MethodDescriptor getGetBlockOverviewMethod; - if ((getGetBlockOverviewMethod = chain33Grpc.getGetBlockOverviewMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetBlockOverviewMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetBlockOverview", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBlockOverviewMethod() { + io.grpc.MethodDescriptor getGetBlockOverviewMethod; if ((getGetBlockOverviewMethod = chain33Grpc.getGetBlockOverviewMethod) == null) { - chain33Grpc.getGetBlockOverviewMethod = getGetBlockOverviewMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockOverview")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockOverview")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetBlockOverviewMethod = chain33Grpc.getGetBlockOverviewMethod) == null) { + chain33Grpc.getGetBlockOverviewMethod = getGetBlockOverviewMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockOverview")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockOverview")).build(); + } + } + } + return getGetBlockOverviewMethod; } - return getGetBlockOverviewMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAddrOverviewMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAddrOverview", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAddrOverviewMethod() { - io.grpc.MethodDescriptor getGetAddrOverviewMethod; - if ((getGetAddrOverviewMethod = chain33Grpc.getGetAddrOverviewMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetAddrOverviewMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetAddrOverview", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAddrOverviewMethod() { + io.grpc.MethodDescriptor getGetAddrOverviewMethod; if ((getGetAddrOverviewMethod = chain33Grpc.getGetAddrOverviewMethod) == null) { - chain33Grpc.getGetAddrOverviewMethod = getGetAddrOverviewMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddrOverview")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAddrOverview")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetAddrOverviewMethod = chain33Grpc.getGetAddrOverviewMethod) == null) { + chain33Grpc.getGetAddrOverviewMethod = getGetAddrOverviewMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddrOverview")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAddrOverview")).build(); + } + } + } + return getGetAddrOverviewMethod; } - return getGetAddrOverviewMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBlockHashMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockHash", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockHashMethod() { - io.grpc.MethodDescriptor getGetBlockHashMethod; - if ((getGetBlockHashMethod = chain33Grpc.getGetBlockHashMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetBlockHashMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetBlockHash", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBlockHashMethod() { + io.grpc.MethodDescriptor getGetBlockHashMethod; if ((getGetBlockHashMethod = chain33Grpc.getGetBlockHashMethod) == null) { - chain33Grpc.getGetBlockHashMethod = getGetBlockHashMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockHash")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockHash")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetBlockHashMethod = chain33Grpc.getGetBlockHashMethod) == null) { + chain33Grpc.getGetBlockHashMethod = getGetBlockHashMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockHash")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockHash")).build(); + } + } + } + return getGetBlockHashMethod; } - return getGetBlockHashMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenSeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenSeed", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenSeedMethod() { - io.grpc.MethodDescriptor getGenSeedMethod; - if ((getGenSeedMethod = chain33Grpc.getGenSeedMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGenSeedMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GenSeed", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenSeedMethod() { + io.grpc.MethodDescriptor getGenSeedMethod; if ((getGenSeedMethod = chain33Grpc.getGenSeedMethod) == null) { - chain33Grpc.getGenSeedMethod = getGenSeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenSeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GenSeed")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGenSeedMethod = chain33Grpc.getGenSeedMethod) == null) { + chain33Grpc.getGenSeedMethod = getGenSeedMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenSeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GenSeed")).build(); + } + } + } + return getGenSeedMethod; } - return getGenSeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSeed", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSeedMethod() { - io.grpc.MethodDescriptor getGetSeedMethod; - if ((getGetSeedMethod = chain33Grpc.getGetSeedMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetSeedMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetSeed", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSeedMethod() { + io.grpc.MethodDescriptor getGetSeedMethod; if ((getGetSeedMethod = chain33Grpc.getGetSeedMethod) == null) { - chain33Grpc.getGetSeedMethod = getGetSeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetSeed")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetSeedMethod = chain33Grpc.getGetSeedMethod) == null) { + chain33Grpc.getGetSeedMethod = getGetSeedMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetSeed")).build(); + } + } + } + return getGetSeedMethod; } - return getGetSeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getSaveSeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SaveSeed", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSaveSeedMethod() { - io.grpc.MethodDescriptor getSaveSeedMethod; - if ((getSaveSeedMethod = chain33Grpc.getSaveSeedMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getSaveSeedMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SaveSeed", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSaveSeedMethod() { + io.grpc.MethodDescriptor getSaveSeedMethod; if ((getSaveSeedMethod = chain33Grpc.getSaveSeedMethod) == null) { - chain33Grpc.getSaveSeedMethod = getSaveSeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SaveSeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SaveSeed")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getSaveSeedMethod = chain33Grpc.getSaveSeedMethod) == null) { + chain33Grpc.getSaveSeedMethod = getSaveSeedMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SaveSeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SaveSeed")).build(); + } + } + } + return getSaveSeedMethod; } - return getSaveSeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBalanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBalance", - requestType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.class, - responseType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBalanceMethod() { - io.grpc.MethodDescriptor getGetBalanceMethod; - if ((getGetBalanceMethod = chain33Grpc.getGetBalanceMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetBalanceMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetBalance", requestType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.class, responseType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBalanceMethod() { + io.grpc.MethodDescriptor getGetBalanceMethod; if ((getGetBalanceMethod = chain33Grpc.getGetBalanceMethod) == null) { - chain33Grpc.getGetBalanceMethod = getGetBalanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBalance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBalance")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetBalanceMethod = chain33Grpc.getGetBalanceMethod) == null) { + chain33Grpc.getGetBalanceMethod = getGetBalanceMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBalance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBalance")).build(); + } + } + } + return getGetBalanceMethod; } - return getGetBalanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryChainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryChain", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryChainMethod() { - io.grpc.MethodDescriptor getQueryChainMethod; - if ((getQueryChainMethod = chain33Grpc.getQueryChainMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getQueryChainMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "QueryChain", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getQueryChainMethod() { + io.grpc.MethodDescriptor getQueryChainMethod; if ((getQueryChainMethod = chain33Grpc.getQueryChainMethod) == null) { - chain33Grpc.getQueryChainMethod = getQueryChainMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryChain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryChain")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getQueryChainMethod = chain33Grpc.getQueryChainMethod) == null) { + chain33Grpc.getQueryChainMethod = getQueryChainMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryChain")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryChain")).build(); + } + } + } + return getQueryChainMethod; } - return getQueryChainMethod; - } - - private static volatile io.grpc.MethodDescriptor getExecWalletMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExecWallet", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExecWalletMethod() { - io.grpc.MethodDescriptor getExecWalletMethod; - if ((getExecWalletMethod = chain33Grpc.getExecWalletMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getExecWalletMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "ExecWallet", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExecWalletMethod() { + io.grpc.MethodDescriptor getExecWalletMethod; if ((getExecWalletMethod = chain33Grpc.getExecWalletMethod) == null) { - chain33Grpc.getExecWalletMethod = getExecWalletMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecWallet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("ExecWallet")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getExecWalletMethod = chain33Grpc.getExecWalletMethod) == null) { + chain33Grpc.getExecWalletMethod = getExecWalletMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecWallet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("ExecWallet")).build(); + } + } + } + return getExecWalletMethod; } - return getExecWalletMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryConsensusMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryConsensus", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryConsensusMethod() { - io.grpc.MethodDescriptor getQueryConsensusMethod; - if ((getQueryConsensusMethod = chain33Grpc.getQueryConsensusMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getQueryConsensusMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "QueryConsensus", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getQueryConsensusMethod() { + io.grpc.MethodDescriptor getQueryConsensusMethod; if ((getQueryConsensusMethod = chain33Grpc.getQueryConsensusMethod) == null) { - chain33Grpc.getQueryConsensusMethod = getQueryConsensusMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryConsensus")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryConsensus")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getQueryConsensusMethod = chain33Grpc.getQueryConsensusMethod) == null) { + chain33Grpc.getQueryConsensusMethod = getQueryConsensusMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryConsensus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryConsensus")).build(); + } + } + } + return getQueryConsensusMethod; } - return getQueryConsensusMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateTransactionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTransaction", - requestType = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTransactionMethod() { - io.grpc.MethodDescriptor getCreateTransactionMethod; - if ((getCreateTransactionMethod = chain33Grpc.getCreateTransactionMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getCreateTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CreateTransaction", requestType = cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateTransactionMethod() { + io.grpc.MethodDescriptor getCreateTransactionMethod; if ((getCreateTransactionMethod = chain33Grpc.getCreateTransactionMethod) == null) { - chain33Grpc.getCreateTransactionMethod = getCreateTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateTransaction")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getCreateTransactionMethod = chain33Grpc.getCreateTransactionMethod) == null) { + chain33Grpc.getCreateTransactionMethod = getCreateTransactionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateTransaction")).build(); + } + } + } + return getCreateTransactionMethod; } - return getCreateTransactionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHexTxByHashMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHexTxByHash", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, - responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHexTxByHashMethod() { - io.grpc.MethodDescriptor getGetHexTxByHashMethod; - if ((getGetHexTxByHashMethod = chain33Grpc.getGetHexTxByHashMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetHexTxByHashMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetHexTxByHash", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, responseType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHexTxByHashMethod() { + io.grpc.MethodDescriptor getGetHexTxByHashMethod; if ((getGetHexTxByHashMethod = chain33Grpc.getGetHexTxByHashMethod) == null) { - chain33Grpc.getGetHexTxByHashMethod = getGetHexTxByHashMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHexTxByHash")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetHexTxByHash")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetHexTxByHashMethod = chain33Grpc.getGetHexTxByHashMethod) == null) { + chain33Grpc.getGetHexTxByHashMethod = getGetHexTxByHashMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHexTxByHash")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetHexTxByHash")).build(); + } + } + } + return getGetHexTxByHashMethod; } - return getGetHexTxByHashMethod; - } - - private static volatile io.grpc.MethodDescriptor getDumpPrivkeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DumpPrivkey", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDumpPrivkeyMethod() { - io.grpc.MethodDescriptor getDumpPrivkeyMethod; - if ((getDumpPrivkeyMethod = chain33Grpc.getDumpPrivkeyMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getDumpPrivkeyMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "DumpPrivkey", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDumpPrivkeyMethod() { + io.grpc.MethodDescriptor getDumpPrivkeyMethod; if ((getDumpPrivkeyMethod = chain33Grpc.getDumpPrivkeyMethod) == null) { - chain33Grpc.getDumpPrivkeyMethod = getDumpPrivkeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DumpPrivkey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("DumpPrivkey")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getDumpPrivkeyMethod = chain33Grpc.getDumpPrivkeyMethod) == null) { + chain33Grpc.getDumpPrivkeyMethod = getDumpPrivkeyMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DumpPrivkey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("DumpPrivkey")).build(); + } + } + } + return getDumpPrivkeyMethod; } - return getDumpPrivkeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDumpPrivkeysFileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DumpPrivkeysFile", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDumpPrivkeysFileMethod() { - io.grpc.MethodDescriptor getDumpPrivkeysFileMethod; - if ((getDumpPrivkeysFileMethod = chain33Grpc.getDumpPrivkeysFileMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getDumpPrivkeysFileMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "DumpPrivkeysFile", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDumpPrivkeysFileMethod() { + io.grpc.MethodDescriptor getDumpPrivkeysFileMethod; if ((getDumpPrivkeysFileMethod = chain33Grpc.getDumpPrivkeysFileMethod) == null) { - chain33Grpc.getDumpPrivkeysFileMethod = getDumpPrivkeysFileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DumpPrivkeysFile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("DumpPrivkeysFile")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getDumpPrivkeysFileMethod = chain33Grpc.getDumpPrivkeysFileMethod) == null) { + chain33Grpc.getDumpPrivkeysFileMethod = getDumpPrivkeysFileMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DumpPrivkeysFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("DumpPrivkeysFile")).build(); + } + } + } + return getDumpPrivkeysFileMethod; } - return getDumpPrivkeysFileMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportPrivkeysFileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportPrivkeysFile", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getImportPrivkeysFileMethod() { - io.grpc.MethodDescriptor getImportPrivkeysFileMethod; - if ((getImportPrivkeysFileMethod = chain33Grpc.getImportPrivkeysFileMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getImportPrivkeysFileMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "ImportPrivkeysFile", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportPrivkeysFileMethod() { + io.grpc.MethodDescriptor getImportPrivkeysFileMethod; if ((getImportPrivkeysFileMethod = chain33Grpc.getImportPrivkeysFileMethod) == null) { - chain33Grpc.getImportPrivkeysFileMethod = getImportPrivkeysFileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportPrivkeysFile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("ImportPrivkeysFile")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getImportPrivkeysFileMethod = chain33Grpc.getImportPrivkeysFileMethod) == null) { + chain33Grpc.getImportPrivkeysFileMethod = getImportPrivkeysFileMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportPrivkeysFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("ImportPrivkeysFile")).build(); + } + } + } + return getImportPrivkeysFileMethod; } - return getImportPrivkeysFileMethod; - } - - private static volatile io.grpc.MethodDescriptor getVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Version", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVersionMethod() { - io.grpc.MethodDescriptor getVersionMethod; - if ((getVersionMethod = chain33Grpc.getVersionMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getVersionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "Version", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVersionMethod() { + io.grpc.MethodDescriptor getVersionMethod; if ((getVersionMethod = chain33Grpc.getVersionMethod) == null) { - chain33Grpc.getVersionMethod = getVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Version")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("Version")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getVersionMethod = chain33Grpc.getVersionMethod) == null) { + chain33Grpc.getVersionMethod = getVersionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Version")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("Version")).build(); + } + } + } + return getVersionMethod; } - return getVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getIsSyncMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "IsSync", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getIsSyncMethod() { - io.grpc.MethodDescriptor getIsSyncMethod; - if ((getIsSyncMethod = chain33Grpc.getIsSyncMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getIsSyncMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "IsSync", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getIsSyncMethod() { + io.grpc.MethodDescriptor getIsSyncMethod; if ((getIsSyncMethod = chain33Grpc.getIsSyncMethod) == null) { - chain33Grpc.getIsSyncMethod = getIsSyncMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsSync")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("IsSync")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getIsSyncMethod = chain33Grpc.getIsSyncMethod) == null) { + chain33Grpc.getIsSyncMethod = getIsSyncMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsSync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("IsSync")).build(); + } + } + } + return getIsSyncMethod; } - return getIsSyncMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPeerInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPeerInfo", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPeerInfoMethod() { - io.grpc.MethodDescriptor getGetPeerInfoMethod; - if ((getGetPeerInfoMethod = chain33Grpc.getGetPeerInfoMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetPeerInfoMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetPeerInfo", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPeerInfoMethod() { + io.grpc.MethodDescriptor getGetPeerInfoMethod; if ((getGetPeerInfoMethod = chain33Grpc.getGetPeerInfoMethod) == null) { - chain33Grpc.getGetPeerInfoMethod = getGetPeerInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPeerInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetPeerInfo")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetPeerInfoMethod = chain33Grpc.getGetPeerInfoMethod) == null) { + chain33Grpc.getGetPeerInfoMethod = getGetPeerInfoMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPeerInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetPeerInfo")).build(); + } + } + } + return getGetPeerInfoMethod; } - return getGetPeerInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getNetInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "NetInfo", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getNetInfoMethod() { - io.grpc.MethodDescriptor getNetInfoMethod; - if ((getNetInfoMethod = chain33Grpc.getNetInfoMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getNetInfoMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "NetInfo", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getNetInfoMethod() { + io.grpc.MethodDescriptor getNetInfoMethod; if ((getNetInfoMethod = chain33Grpc.getNetInfoMethod) == null) { - chain33Grpc.getNetInfoMethod = getNetInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NetInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("NetInfo")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getNetInfoMethod = chain33Grpc.getNetInfoMethod) == null) { + chain33Grpc.getNetInfoMethod = getNetInfoMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NetInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("NetInfo")).build(); + } + } + } + return getNetInfoMethod; } - return getNetInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getIsNtpClockSyncMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "IsNtpClockSync", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getIsNtpClockSyncMethod() { - io.grpc.MethodDescriptor getIsNtpClockSyncMethod; - if ((getIsNtpClockSyncMethod = chain33Grpc.getIsNtpClockSyncMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getIsNtpClockSyncMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "IsNtpClockSync", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getIsNtpClockSyncMethod() { + io.grpc.MethodDescriptor getIsNtpClockSyncMethod; if ((getIsNtpClockSyncMethod = chain33Grpc.getIsNtpClockSyncMethod) == null) { - chain33Grpc.getIsNtpClockSyncMethod = getIsNtpClockSyncMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsNtpClockSync")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("IsNtpClockSync")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getIsNtpClockSyncMethod = chain33Grpc.getIsNtpClockSyncMethod) == null) { + chain33Grpc.getIsNtpClockSyncMethod = getIsNtpClockSyncMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsNtpClockSync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("IsNtpClockSync")).build(); + } + } + } + return getIsNtpClockSyncMethod; } - return getIsNtpClockSyncMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFatalFailureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFatalFailure", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFatalFailureMethod() { - io.grpc.MethodDescriptor getGetFatalFailureMethod; - if ((getGetFatalFailureMethod = chain33Grpc.getGetFatalFailureMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetFatalFailureMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetFatalFailure", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFatalFailureMethod() { + io.grpc.MethodDescriptor getGetFatalFailureMethod; if ((getGetFatalFailureMethod = chain33Grpc.getGetFatalFailureMethod) == null) { - chain33Grpc.getGetFatalFailureMethod = getGetFatalFailureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFatalFailure")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetFatalFailure")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetFatalFailureMethod = chain33Grpc.getGetFatalFailureMethod) == null) { + chain33Grpc.getGetFatalFailureMethod = getGetFatalFailureMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFatalFailure")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetFatalFailure")).build(); + } + } + } + return getGetFatalFailureMethod; } - return getGetFatalFailureMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLastBlockSequenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLastBlockSequence", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLastBlockSequenceMethod() { - io.grpc.MethodDescriptor getGetLastBlockSequenceMethod; - if ((getGetLastBlockSequenceMethod = chain33Grpc.getGetLastBlockSequenceMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetLastBlockSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetLastBlockSequence", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLastBlockSequenceMethod() { + io.grpc.MethodDescriptor getGetLastBlockSequenceMethod; if ((getGetLastBlockSequenceMethod = chain33Grpc.getGetLastBlockSequenceMethod) == null) { - chain33Grpc.getGetLastBlockSequenceMethod = getGetLastBlockSequenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLastBlockSequence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetLastBlockSequence")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetLastBlockSequenceMethod = chain33Grpc.getGetLastBlockSequenceMethod) == null) { + chain33Grpc.getGetLastBlockSequenceMethod = getGetLastBlockSequenceMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLastBlockSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetLastBlockSequence")).build(); + } + } + } + return getGetLastBlockSequenceMethod; } - return getGetLastBlockSequenceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSequenceByHashMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSequenceByHash", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSequenceByHashMethod() { - io.grpc.MethodDescriptor getGetSequenceByHashMethod; - if ((getGetSequenceByHashMethod = chain33Grpc.getGetSequenceByHashMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetSequenceByHashMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetSequenceByHash", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSequenceByHashMethod() { + io.grpc.MethodDescriptor getGetSequenceByHashMethod; if ((getGetSequenceByHashMethod = chain33Grpc.getGetSequenceByHashMethod) == null) { - chain33Grpc.getGetSequenceByHashMethod = getGetSequenceByHashMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSequenceByHash")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetSequenceByHash")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetSequenceByHashMethod = chain33Grpc.getGetSequenceByHashMethod) == null) { + chain33Grpc.getGetSequenceByHashMethod = getGetSequenceByHashMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSequenceByHash")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetSequenceByHash")).build(); + } + } + } + return getGetSequenceByHashMethod; } - return getGetSequenceByHashMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBlockByHashesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockByHashes", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockByHashesMethod() { - io.grpc.MethodDescriptor getGetBlockByHashesMethod; - if ((getGetBlockByHashesMethod = chain33Grpc.getGetBlockByHashesMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetBlockByHashesMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetBlockByHashes", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBlockByHashesMethod() { + io.grpc.MethodDescriptor getGetBlockByHashesMethod; if ((getGetBlockByHashesMethod = chain33Grpc.getGetBlockByHashesMethod) == null) { - chain33Grpc.getGetBlockByHashesMethod = getGetBlockByHashesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByHashes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockByHashes")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetBlockByHashesMethod = chain33Grpc.getGetBlockByHashesMethod) == null) { + chain33Grpc.getGetBlockByHashesMethod = getGetBlockByHashesMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByHashes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockByHashes")).build(); + } + } + } + return getGetBlockByHashesMethod; } - return getGetBlockByHashesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBlockBySeqMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlockBySeq", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlockBySeqMethod() { - io.grpc.MethodDescriptor getGetBlockBySeqMethod; - if ((getGetBlockBySeqMethod = chain33Grpc.getGetBlockBySeqMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetBlockBySeqMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetBlockBySeq", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBlockBySeqMethod() { + io.grpc.MethodDescriptor getGetBlockBySeqMethod; if ((getGetBlockBySeqMethod = chain33Grpc.getGetBlockBySeqMethod) == null) { - chain33Grpc.getGetBlockBySeqMethod = getGetBlockBySeqMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockBySeq")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockBySeq")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetBlockBySeqMethod = chain33Grpc.getGetBlockBySeqMethod) == null) { + chain33Grpc.getGetBlockBySeqMethod = getGetBlockBySeqMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockBySeq")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetBlockBySeq")).build(); + } + } + } + return getGetBlockBySeqMethod; } - return getGetBlockBySeqMethod; - } - - private static volatile io.grpc.MethodDescriptor getCloseQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CloseQueue", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCloseQueueMethod() { - io.grpc.MethodDescriptor getCloseQueueMethod; - if ((getCloseQueueMethod = chain33Grpc.getCloseQueueMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getCloseQueueMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CloseQueue", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCloseQueueMethod() { + io.grpc.MethodDescriptor getCloseQueueMethod; if ((getCloseQueueMethod = chain33Grpc.getCloseQueueMethod) == null) { - chain33Grpc.getCloseQueueMethod = getCloseQueueMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CloseQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CloseQueue")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getCloseQueueMethod = chain33Grpc.getCloseQueueMethod) == null) { + chain33Grpc.getCloseQueueMethod = getCloseQueueMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CloseQueue")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CloseQueue")).build(); + } + } + } + return getCloseQueueMethod; } - return getCloseQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAllExecBalanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAllExecBalance", - requestType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.class, - responseType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAllExecBalanceMethod() { - io.grpc.MethodDescriptor getGetAllExecBalanceMethod; - if ((getGetAllExecBalanceMethod = chain33Grpc.getGetAllExecBalanceMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetAllExecBalanceMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetAllExecBalance", requestType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.class, responseType = cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAllExecBalanceMethod() { + io.grpc.MethodDescriptor getGetAllExecBalanceMethod; if ((getGetAllExecBalanceMethod = chain33Grpc.getGetAllExecBalanceMethod) == null) { - chain33Grpc.getGetAllExecBalanceMethod = getGetAllExecBalanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAllExecBalance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAllExecBalance")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetAllExecBalanceMethod = chain33Grpc.getGetAllExecBalanceMethod) == null) { + chain33Grpc.getGetAllExecBalanceMethod = getGetAllExecBalanceMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAllExecBalance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetAllExecBalance")).build(); + } + } + } + return getGetAllExecBalanceMethod; } - return getGetAllExecBalanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getSignRawTxMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SignRawTx", - requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSignRawTxMethod() { - io.grpc.MethodDescriptor getSignRawTxMethod; - if ((getSignRawTxMethod = chain33Grpc.getSignRawTxMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getSignRawTxMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SignRawTx", requestType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSignRawTxMethod() { + io.grpc.MethodDescriptor getSignRawTxMethod; if ((getSignRawTxMethod = chain33Grpc.getSignRawTxMethod) == null) { - chain33Grpc.getSignRawTxMethod = getSignRawTxMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SignRawTx")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SignRawTx")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getSignRawTxMethod = chain33Grpc.getSignRawTxMethod) == null) { + chain33Grpc.getSignRawTxMethod = getSignRawTxMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SignRawTx")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("SignRawTx")).build(); + } + } + } + return getSignRawTxMethod; } - return getSignRawTxMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNoBalanceTransactionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNoBalanceTransaction", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNoBalanceTransactionMethod() { - io.grpc.MethodDescriptor getCreateNoBalanceTransactionMethod; - if ((getCreateNoBalanceTransactionMethod = chain33Grpc.getCreateNoBalanceTransactionMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getCreateNoBalanceTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CreateNoBalanceTransaction", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNoBalanceTransactionMethod() { + io.grpc.MethodDescriptor getCreateNoBalanceTransactionMethod; if ((getCreateNoBalanceTransactionMethod = chain33Grpc.getCreateNoBalanceTransactionMethod) == null) { - chain33Grpc.getCreateNoBalanceTransactionMethod = getCreateNoBalanceTransactionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNoBalanceTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateNoBalanceTransaction")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getCreateNoBalanceTransactionMethod = chain33Grpc.getCreateNoBalanceTransactionMethod) == null) { + chain33Grpc.getCreateNoBalanceTransactionMethod = getCreateNoBalanceTransactionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNoBalanceTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateNoBalanceTransaction")) + .build(); + } + } + } + return getCreateNoBalanceTransactionMethod; } - return getCreateNoBalanceTransactionMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryRandNumMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryRandNum", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryRandNumMethod() { - io.grpc.MethodDescriptor getQueryRandNumMethod; - if ((getQueryRandNumMethod = chain33Grpc.getQueryRandNumMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getQueryRandNumMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "QueryRandNum", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getQueryRandNumMethod() { + io.grpc.MethodDescriptor getQueryRandNumMethod; if ((getQueryRandNumMethod = chain33Grpc.getQueryRandNumMethod) == null) { - chain33Grpc.getQueryRandNumMethod = getQueryRandNumMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryRandNum")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryRandNum")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getQueryRandNumMethod = chain33Grpc.getQueryRandNumMethod) == null) { + chain33Grpc.getQueryRandNumMethod = getQueryRandNumMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryRandNum")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("QueryRandNum")).build(); + } + } + } + return getQueryRandNumMethod; } - return getQueryRandNumMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetForkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFork", - requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetForkMethod() { - io.grpc.MethodDescriptor getGetForkMethod; - if ((getGetForkMethod = chain33Grpc.getGetForkMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetForkMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetFork", requestType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetForkMethod() { + io.grpc.MethodDescriptor getGetForkMethod; if ((getGetForkMethod = chain33Grpc.getGetForkMethod) == null) { - chain33Grpc.getGetForkMethod = getGetForkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetFork")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetForkMethod = chain33Grpc.getGetForkMethod) == null) { + chain33Grpc.getGetForkMethod = getGetForkMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetFork")).build(); + } + } + } + return getGetForkMethod; } - return getGetForkMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNoBalanceTxsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNoBalanceTxs", - requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.class, - responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNoBalanceTxsMethod() { - io.grpc.MethodDescriptor getCreateNoBalanceTxsMethod; - if ((getCreateNoBalanceTxsMethod = chain33Grpc.getCreateNoBalanceTxsMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getCreateNoBalanceTxsMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CreateNoBalanceTxs", requestType = cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.class, responseType = cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNoBalanceTxsMethod() { + io.grpc.MethodDescriptor getCreateNoBalanceTxsMethod; if ((getCreateNoBalanceTxsMethod = chain33Grpc.getCreateNoBalanceTxsMethod) == null) { - chain33Grpc.getCreateNoBalanceTxsMethod = getCreateNoBalanceTxsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNoBalanceTxs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateNoBalanceTxs")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getCreateNoBalanceTxsMethod = chain33Grpc.getCreateNoBalanceTxsMethod) == null) { + chain33Grpc.getCreateNoBalanceTxsMethod = getCreateNoBalanceTxsMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNoBalanceTxs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("CreateNoBalanceTxs")).build(); + } + } + } + return getCreateNoBalanceTxsMethod; } - return getCreateNoBalanceTxsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetParaTxByTitleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetParaTxByTitle", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetParaTxByTitleMethod() { - io.grpc.MethodDescriptor getGetParaTxByTitleMethod; - if ((getGetParaTxByTitleMethod = chain33Grpc.getGetParaTxByTitleMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetParaTxByTitleMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetParaTxByTitle", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetParaTxByTitleMethod() { + io.grpc.MethodDescriptor getGetParaTxByTitleMethod; if ((getGetParaTxByTitleMethod = chain33Grpc.getGetParaTxByTitleMethod) == null) { - chain33Grpc.getGetParaTxByTitleMethod = getGetParaTxByTitleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParaTxByTitle")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetParaTxByTitle")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getGetParaTxByTitleMethod = chain33Grpc.getGetParaTxByTitleMethod) == null) { + chain33Grpc.getGetParaTxByTitleMethod = getGetParaTxByTitleMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParaTxByTitle")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetParaTxByTitle")).build(); + } + } + } + return getGetParaTxByTitleMethod; } - return getGetParaTxByTitleMethod; - } - - private static volatile io.grpc.MethodDescriptor getLoadParaTxByTitleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LoadParaTxByTitle", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLoadParaTxByTitleMethod() { - io.grpc.MethodDescriptor getLoadParaTxByTitleMethod; - if ((getLoadParaTxByTitleMethod = chain33Grpc.getLoadParaTxByTitleMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getLoadParaTxByTitleMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "LoadParaTxByTitle", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLoadParaTxByTitleMethod() { + io.grpc.MethodDescriptor getLoadParaTxByTitleMethod; if ((getLoadParaTxByTitleMethod = chain33Grpc.getLoadParaTxByTitleMethod) == null) { - chain33Grpc.getLoadParaTxByTitleMethod = getLoadParaTxByTitleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LoadParaTxByTitle")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("LoadParaTxByTitle")) - .build(); - } - } + synchronized (chain33Grpc.class) { + if ((getLoadParaTxByTitleMethod = chain33Grpc.getLoadParaTxByTitleMethod) == null) { + chain33Grpc.getLoadParaTxByTitleMethod = getLoadParaTxByTitleMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LoadParaTxByTitle")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("LoadParaTxByTitle")).build(); + } + } + } + return getLoadParaTxByTitleMethod; } - return getLoadParaTxByTitleMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetParaTxByHeightMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetParaTxByHeight", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetParaTxByHeightMethod() { - io.grpc.MethodDescriptor getGetParaTxByHeightMethod; - if ((getGetParaTxByHeightMethod = chain33Grpc.getGetParaTxByHeightMethod) == null) { - synchronized (chain33Grpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetParaTxByHeightMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetParaTxByHeight", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetParaTxByHeightMethod() { + io.grpc.MethodDescriptor getGetParaTxByHeightMethod; if ((getGetParaTxByHeightMethod = chain33Grpc.getGetParaTxByHeightMethod) == null) { - chain33Grpc.getGetParaTxByHeightMethod = getGetParaTxByHeightMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParaTxByHeight")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetParaTxByHeight")) - .build(); - } - } - } - return getGetParaTxByHeightMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHeadersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHeaders", - requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, - responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHeadersMethod() { - io.grpc.MethodDescriptor getGetHeadersMethod; - if ((getGetHeadersMethod = chain33Grpc.getGetHeadersMethod) == null) { - synchronized (chain33Grpc.class) { - if ((getGetHeadersMethod = chain33Grpc.getGetHeadersMethod) == null) { - chain33Grpc.getGetHeadersMethod = getGetHeadersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHeaders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance())) - .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetHeaders")) - .build(); - } - } - } - return getGetHeadersMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static chain33Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public chain33Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new chain33Stub(channel, callOptions); - } - }; - return chain33Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static chain33BlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public chain33BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new chain33BlockingStub(channel, callOptions); - } - }; - return chain33BlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static chain33FutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public chain33FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new chain33FutureStub(channel, callOptions); + synchronized (chain33Grpc.class) { + if ((getGetParaTxByHeightMethod = chain33Grpc.getGetParaTxByHeightMethod) == null) { + chain33Grpc.getGetParaTxByHeightMethod = getGetParaTxByHeightMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParaTxByHeight")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails + .getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetParaTxByHeight")).build(); + } + } } - }; - return chain33FutureStub.newStub(factory, channel); - } + return getGetParaTxByHeightMethod; + } - /** - */ - public static abstract class chain33ImplBase implements io.grpc.BindableService { + private static volatile io.grpc.MethodDescriptor getGetHeadersMethod; - /** - *
-     * chain33 对外提供服务的接口
-     *区块链接口
-     * 
- */ - public void getBlocks(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlocksMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetHeaders", requestType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks.class, responseType = cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHeadersMethod() { + io.grpc.MethodDescriptor getGetHeadersMethod; + if ((getGetHeadersMethod = chain33Grpc.getGetHeadersMethod) == null) { + synchronized (chain33Grpc.class) { + if ((getGetHeadersMethod = chain33Grpc.getGetHeadersMethod) == null) { + chain33Grpc.getGetHeadersMethod = getGetHeadersMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHeaders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils + .marshaller(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks + .getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers.getDefaultInstance())) + .setSchemaDescriptor(new chain33MethodDescriptorSupplier("GetHeaders")).build(); + } + } + } + return getGetHeadersMethod; } /** - *
-     *获取最新的区块头
-     * 
+ * Creates a new async stub that supports all call types for the service */ - public void getLastHeader(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetLastHeaderMethod(), responseObserver); + public static chain33Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public chain33Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new chain33Stub(channel, callOptions); + } + }; + return chain33Stub.newStub(factory, channel); } /** - *
-     *交易接口
-     * 
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public void createRawTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateRawTransactionMethod(), responseObserver); + public static chain33BlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public chain33BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new chain33BlockingStub(channel, callOptions); + } + }; + return chain33BlockingStub.newStub(factory, channel); } /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public void createRawTxGroup(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateRawTxGroupMethod(), responseObserver); + public static chain33FutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public chain33FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new chain33FutureStub(channel, callOptions); + } + }; + return chain33FutureStub.newStub(factory, channel); } /** - *
-     * 根据哈希查询交易
-     * 
*/ - public void queryTransaction(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getQueryTransactionMethod(), responseObserver); - } + public static abstract class chain33ImplBase implements io.grpc.BindableService { - /** - *
-     * 发送交易
-     * 
- */ - public void sendTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSendTransactionMethod(), responseObserver); - } + /** + *
+         * chain33 对外提供服务的接口
+         *区块链接口
+         * 
+ */ + public void getBlocks(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlocksMethod(), responseObserver); + } - /** - *
-     *通过地址获取交易信息
-     * 
- */ - public void getTransactionByAddr(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionByAddrMethod(), responseObserver); - } + /** + *
+         * 获取最新的区块头
+         * 
+ */ + public void getLastHeader(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLastHeaderMethod(), responseObserver); + } - /** - *
-     *通过哈希数组获取对应的交易
-     * 
- */ - public void getTransactionByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTransactionByHashesMethod(), responseObserver); - } + /** + *
+         * 交易接口
+         * 
+ */ + public void createRawTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRawTransactionMethod(), responseObserver); + } - /** - *
-     *缓存接口
-     * 
- */ - public void getMemPool(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetMemPoolMethod(), responseObserver); - } + /** + */ + public void createRawTxGroup( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRawTxGroupMethod(), responseObserver); + } - /** - *
-     *钱包接口
-     *获取钱包账户信息
-     * 
- */ - public void getAccounts(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAccountsMethod(), responseObserver); - } + /** + *
+         * 根据哈希查询交易
+         * 
+ */ + public void queryTransaction(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryTransactionMethod(), responseObserver); + } - /** - *
-     *根据账户lable信息获取账户地址
-     * 
- */ - public void getAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); - } + /** + *
+         * 发送交易
+         * 
+ */ + public void sendTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTransactionMethod(), responseObserver); + } - /** - *
-     *创建钱包账户
-     * 
- */ - public void newAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getNewAccountMethod(), responseObserver); - } + /** + *
+         * 通过地址获取交易信息
+         * 
+ */ + public void getTransactionByAddr(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionByAddrMethod(), responseObserver); + } - /** - *
-     *获取钱包的交易列表
-     * 
- */ - public void walletTransactionList(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getWalletTransactionListMethod(), responseObserver); - } + /** + *
+         * 通过哈希数组获取对应的交易
+         * 
+ */ + public void getTransactionByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionByHashesMethod(), responseObserver); + } - /** - *
-     *导入钱包私钥
-     * 
- */ - public void importPrivkey(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportPrivkeyMethod(), responseObserver); - } + /** + *
+         * 缓存接口
+         * 
+ */ + public void getMemPool(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMemPoolMethod(), responseObserver); + } - /** - *
-     * 发送交易
-     * 
- */ - public void sendToAddress(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSendToAddressMethod(), responseObserver); - } + /** + *
+         *钱包接口
+         *获取钱包账户信息
+         * 
+ */ + public void getAccounts(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountsMethod(), responseObserver); + } - /** - *
-     *设置交易手续费
-     * 
- */ - public void setTxFee(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetTxFeeMethod(), responseObserver); - } + /** + *
+         * 根据账户lable信息获取账户地址
+         * 
+ */ + public void getAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); + } - /** - *
-     *设置标签
-     * 
- */ - public void setLabl(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetLablMethod(), responseObserver); - } + /** + *
+         * 创建钱包账户
+         * 
+ */ + public void newAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNewAccountMethod(), responseObserver); + } - /** - *
-     *合并钱包余额
-     * 
- */ - public void mergeBalance(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getMergeBalanceMethod(), responseObserver); - } + /** + *
+         * 获取钱包的交易列表
+         * 
+ */ + public void walletTransactionList( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWalletTransactionListMethod(), responseObserver); + } - /** - *
-     *设置钱包密码
-     * 
- */ - public void setPasswd(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetPasswdMethod(), responseObserver); - } + /** + *
+         * 导入钱包私钥
+         * 
+ */ + public void importPrivkey(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportPrivkeyMethod(), responseObserver); + } - /** - *
-     *给钱包上锁
-     * 
- */ - public void lock(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getLockMethod(), responseObserver); - } + /** + *
+         * 发送交易
+         * 
+ */ + public void sendToAddress(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendToAddressMethod(), responseObserver); + } - /** - *
-     *给钱包解锁
-     * 
- */ - public void unLock(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUnLockMethod(), responseObserver); - } + /** + *
+         * 设置交易手续费
+         * 
+ */ + public void setTxFee(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetTxFeeMethod(), responseObserver); + } - /** - *
-     *获取最新的Mempool
-     * 
- */ - public void getLastMemPool(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetLastMemPoolMethod(), responseObserver); - } + /** + *
+         * 设置标签
+         * 
+ */ + public void setLabl(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLablMethod(), responseObserver); + } - /** - *
-     *获取最新的ProperFee
-     * 
- */ - public void getProperFee(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetProperFeeMethod(), responseObserver); - } + /** + *
+         * 合并钱包余额
+         * 
+ */ + public void mergeBalance(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMergeBalanceMethod(), responseObserver); + } - /** - *
-     * 获取钱包状态
-     * 
- */ - public void getWalletStatus(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetWalletStatusMethod(), responseObserver); - } + /** + *
+         * 设置钱包密码
+         * 
+ */ + public void setPasswd(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetPasswdMethod(), responseObserver); + } - /** - *
-     *区块浏览器接口
-     * /
-     * 
- */ - public void getBlockOverview(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockOverviewMethod(), responseObserver); - } + /** + *
+         * 给钱包上锁
+         * 
+ */ + public void lock(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLockMethod(), responseObserver); + } - /** - */ - public void getAddrOverview(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAddrOverviewMethod(), responseObserver); - } + /** + *
+         * 给钱包解锁
+         * 
+ */ + public void unLock(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnLockMethod(), responseObserver); + } - /** - */ - public void getBlockHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockHashMethod(), responseObserver); - } + /** + *
+         * 获取最新的Mempool
+         * 
+ */ + public void getLastMemPool(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLastMemPoolMethod(), responseObserver); + } - /** - *
-     * seed
-     * 创建seed
-     * 
- */ - public void genSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGenSeedMethod(), responseObserver); - } + /** + *
+         * 获取最新的ProperFee
+         * 
+ */ + public void getProperFee(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProperFeeMethod(), responseObserver); + } - /** - *
-     *获取seed
-     * 
- */ - public void getSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSeedMethod(), responseObserver); - } + /** + *
+         * 获取钱包状态
+         * 
+ */ + public void getWalletStatus(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWalletStatusMethod(), responseObserver); + } - /** - *
-     *保存seed
-     * 
- */ - public void saveSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSaveSeedMethod(), responseObserver); - } + /** + *
+         *区块浏览器接口
+         * /
+         * 
+ */ + public void getBlockOverview(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockOverviewMethod(), responseObserver); + } - /** - *
-     * Balance Query
-     *获取余额
-     * 
- */ - public void getBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBalanceMethod(), responseObserver); - } + /** + */ + public void getAddrOverview(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAddrOverviewMethod(), responseObserver); + } - /** - */ - public void queryChain(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getQueryChainMethod(), responseObserver); - } + /** + */ + public void getBlockHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockHashMethod(), responseObserver); + } - /** - */ - public void execWallet(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExecWalletMethod(), responseObserver); - } + /** + *
+         * seed
+         * 创建seed
+         * 
+ */ + public void genSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenSeedMethod(), responseObserver); + } - /** - */ - public void queryConsensus(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getQueryConsensusMethod(), responseObserver); - } + /** + *
+         * 获取seed
+         * 
+ */ + public void getSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSeedMethod(), responseObserver); + } - /** - */ - public void createTransaction(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTransactionMethod(), responseObserver); - } + /** + *
+         * 保存seed
+         * 
+ */ + public void saveSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSaveSeedMethod(), responseObserver); + } - /** - *
-     *获取交易的十六进制编码
-     * 
- */ - public void getHexTxByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetHexTxByHashMethod(), responseObserver); - } + /** + *
+         * Balance Query
+         *获取余额
+         * 
+ */ + public void getBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBalanceMethod(), responseObserver); + } - /** - *
-     * 导出私钥
-     * 
- */ - public void dumpPrivkey(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDumpPrivkeyMethod(), responseObserver); - } + /** + */ + public void queryChain(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryChainMethod(), responseObserver); + } - /** - *
-     * 导出全部私钥到文件
-     * 
- */ - public void dumpPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDumpPrivkeysFileMethod(), responseObserver); - } + /** + */ + public void execWallet(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecWalletMethod(), responseObserver); + } - /** - *
-     * 从文件中批量导入私钥
-     * 
- */ - public void importPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportPrivkeysFileMethod(), responseObserver); - } + /** + */ + public void queryConsensus(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryConsensusMethod(), responseObserver); + } - /** - *
-     *获取程序版本
-     * 
- */ - public void version(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVersionMethod(), responseObserver); - } + /** + */ + public void createTransaction(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTransactionMethod(), responseObserver); + } - /** - *
-     *是否同步
-     * 
- */ - public void isSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getIsSyncMethod(), responseObserver); - } + /** + *
+         * 获取交易的十六进制编码
+         * 
+ */ + public void getHexTxByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHexTxByHashMethod(), responseObserver); + } - /** - *
-     *获取当前节点连接的其他节点信息
-     * 
- */ - public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetPeerInfoMethod(), responseObserver); - } + /** + *
+         * 导出私钥
+         * 
+ */ + public void dumpPrivkey(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDumpPrivkeyMethod(), responseObserver); + } - /** - *
-     *获取当前节点的网络信息
-     * 
- */ - public void netInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getNetInfoMethod(), responseObserver); - } + /** + *
+         * 导出全部私钥到文件
+         * 
+ */ + public void dumpPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDumpPrivkeysFileMethod(), responseObserver); + } - /** - *
-     * ntpclock是否同步
-     * 
- */ - public void isNtpClockSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getIsNtpClockSyncMethod(), responseObserver); - } + /** + *
+         * 从文件中批量导入私钥
+         * 
+ */ + public void importPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportPrivkeysFileMethod(), responseObserver); + } - /** - *
-     *获取系统致命故障信息
-     * 
- */ - public void getFatalFailure(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetFatalFailureMethod(), responseObserver); - } + /** + *
+         * 获取程序版本
+         * 
+ */ + public void version(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVersionMethod(), responseObserver); + } - /** - */ - public void getLastBlockSequence(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetLastBlockSequenceMethod(), responseObserver); - } + /** + *
+         * 是否同步
+         * 
+ */ + public void isSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIsSyncMethod(), responseObserver); + } - /** - *
-     * get add block's sequence by hash
-     * 
- */ - public void getSequenceByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSequenceByHashMethod(), responseObserver); - } + /** + *
+         * 获取当前节点连接的其他节点信息
+         * 
+ */ + public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPeerInfoMethod(), responseObserver); + } - /** - *
-     *通过block hash 获取对应的blocks信息
-     * 
- */ - public void getBlockByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockByHashesMethod(), responseObserver); - } + /** + *
+         * 获取当前节点的网络信息
+         * 
+ */ + public void netInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNetInfoMethod(), responseObserver); + } - /** - *
-     *通过block seq 获取对应的blocks hash 信息
-     * 
- */ - public void getBlockBySeq(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlockBySeqMethod(), responseObserver); - } + /** + *
+         * ntpclock是否同步
+         * 
+ */ + public void isNtpClockSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIsNtpClockSyncMethod(), responseObserver); + } - /** - *
-     *关闭chain33
-     * 
- */ - public void closeQueue(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCloseQueueMethod(), responseObserver); - } + /** + *
+         * 获取系统致命故障信息
+         * 
+ */ + public void getFatalFailure(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFatalFailureMethod(), responseObserver); + } - /** - *
-     *获取地址所以合约下的余额
-     * 
- */ - public void getAllExecBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAllExecBalanceMethod(), responseObserver); - } + /** + */ + public void getLastBlockSequence(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLastBlockSequenceMethod(), responseObserver); + } - /** - *
-     *签名交易
-     * 
- */ - public void signRawTx(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSignRawTxMethod(), responseObserver); - } + /** + *
+         * get add block's sequence by hash
+         * 
+ */ + public void getSequenceByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSequenceByHashMethod(), responseObserver); + } - /** - */ - public void createNoBalanceTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateNoBalanceTransactionMethod(), responseObserver); - } + /** + *
+         *通过block hash 获取对应的blocks信息
+         * 
+ */ + public void getBlockByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockByHashesMethod(), responseObserver); + } - /** - *
-     * 获取随机HASH
-     * 
- */ - public void queryRandNum(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getQueryRandNumMethod(), responseObserver); - } + /** + *
+         *通过block seq 获取对应的blocks hash 信息
+         * 
+ */ + public void getBlockBySeq(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockBySeqMethod(), responseObserver); + } - /** - *
-     * 获取是否达到fork高度
-     * 
- */ - public void getFork(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetForkMethod(), responseObserver); - } + /** + *
+         * 关闭chain33
+         * 
+ */ + public void closeQueue(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCloseQueueMethod(), responseObserver); + } - /** - */ - public void createNoBalanceTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateNoBalanceTxsMethod(), responseObserver); - } + /** + *
+         * 获取地址所以合约下的余额
+         * 
+ */ + public void getAllExecBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAllExecBalanceMethod(), responseObserver); + } - /** - *
-     *通过seq以及title获取对应平行连的交易
-     * 
- */ - public void getParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetParaTxByTitleMethod(), responseObserver); - } + /** + *
+         * 签名交易
+         * 
+ */ + public void signRawTx(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSignRawTxMethod(), responseObserver); + } - /** - *
-     *获取拥有此title交易的区块高度
-     * 
- */ - public void loadParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getLoadParaTxByTitleMethod(), responseObserver); - } + /** + */ + public void createNoBalanceTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNoBalanceTransactionMethod(), + responseObserver); + } - /** - *
-     *通过区块高度列表+title获取平行链交易
-     * 
- */ - public void getParaTxByHeight(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetParaTxByHeightMethod(), responseObserver); - } + /** + *
+         * 获取随机HASH
+         * 
+ */ + public void queryRandNum(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryRandNumMethod(), responseObserver); + } - /** - *
-     *获取区块头信息
-     * 
- */ - public void getHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetHeadersMethod(), responseObserver); - } + /** + *
+         * 获取是否达到fork高度
+         * 
+ */ + public void getFork(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetForkMethod(), responseObserver); + } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetBlocksMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_GET_BLOCKS))) - .addMethod( - getGetLastHeaderMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header>( - this, METHODID_GET_LAST_HEADER))) - .addMethod( - getCreateRawTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx>( - this, METHODID_CREATE_RAW_TRANSACTION))) - .addMethod( - getCreateRawTxGroupMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx>( - this, METHODID_CREATE_RAW_TX_GROUP))) - .addMethod( - getQueryTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail>( - this, METHODID_QUERY_TRANSACTION))) - .addMethod( - getSendTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_SEND_TRANSACTION))) - .addMethod( - getGetTransactionByAddrMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos>( - this, METHODID_GET_TRANSACTION_BY_ADDR))) - .addMethod( - getGetTransactionByHashesMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails>( - this, METHODID_GET_TRANSACTION_BY_HASHES))) - .addMethod( - getGetMemPoolMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList>( - this, METHODID_GET_MEM_POOL))) - .addMethod( - getGetAccountsMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts>( - this, METHODID_GET_ACCOUNTS))) - .addMethod( - getGetAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount>( - this, METHODID_GET_ACCOUNT))) - .addMethod( - getNewAccountMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount>( - this, METHODID_NEW_ACCOUNT))) - .addMethod( - getWalletTransactionListMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails>( - this, METHODID_WALLET_TRANSACTION_LIST))) - .addMethod( - getImportPrivkeyMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount>( - this, METHODID_IMPORT_PRIVKEY))) - .addMethod( - getSendToAddressMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash>( - this, METHODID_SEND_TO_ADDRESS))) - .addMethod( - getSetTxFeeMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_SET_TX_FEE))) - .addMethod( - getSetLablMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount>( - this, METHODID_SET_LABL))) - .addMethod( - getMergeBalanceMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes>( - this, METHODID_MERGE_BALANCE))) - .addMethod( - getSetPasswdMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_SET_PASSWD))) - .addMethod( - getLockMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_LOCK))) - .addMethod( - getUnLockMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_UN_LOCK))) - .addMethod( - getGetLastMemPoolMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList>( - this, METHODID_GET_LAST_MEM_POOL))) - .addMethod( - getGetProperFeeMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee>( - this, METHODID_GET_PROPER_FEE))) - .addMethod( - getGetWalletStatusMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus>( - this, METHODID_GET_WALLET_STATUS))) - .addMethod( - getGetBlockOverviewMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview>( - this, METHODID_GET_BLOCK_OVERVIEW))) - .addMethod( - getGetAddrOverviewMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview>( - this, METHODID_GET_ADDR_OVERVIEW))) - .addMethod( - getGetBlockHashMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash>( - this, METHODID_GET_BLOCK_HASH))) - .addMethod( - getGenSeedMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed>( - this, METHODID_GEN_SEED))) - .addMethod( - getGetSeedMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed>( - this, METHODID_GET_SEED))) - .addMethod( - getSaveSeedMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_SAVE_SEED))) - .addMethod( - getGetBalanceMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance, - cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts>( - this, METHODID_GET_BALANCE))) - .addMethod( - getQueryChainMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_QUERY_CHAIN))) - .addMethod( - getExecWalletMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_EXEC_WALLET))) - .addMethod( - getQueryConsensusMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_QUERY_CONSENSUS))) - .addMethod( - getCreateTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx>( - this, METHODID_CREATE_TRANSACTION))) - .addMethod( - getGetHexTxByHashMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash, - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx>( - this, METHODID_GET_HEX_TX_BY_HASH))) - .addMethod( - getDumpPrivkeyMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString>( - this, METHODID_DUMP_PRIVKEY))) - .addMethod( - getDumpPrivkeysFileMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_DUMP_PRIVKEYS_FILE))) - .addMethod( - getImportPrivkeysFileMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_IMPORT_PRIVKEYS_FILE))) - .addMethod( - getVersionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo>( - this, METHODID_VERSION))) - .addMethod( - getIsSyncMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_IS_SYNC))) - .addMethod( - getGetPeerInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq, - cn.chain33.javasdk.model.protobuf.P2pService.PeerList>( - this, METHODID_GET_PEER_INFO))) - .addMethod( - getNetInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq, - cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo>( - this, METHODID_NET_INFO))) - .addMethod( - getIsNtpClockSyncMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_IS_NTP_CLOCK_SYNC))) - .addMethod( - getGetFatalFailureMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32>( - this, METHODID_GET_FATAL_FAILURE))) - .addMethod( - getGetLastBlockSequenceMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64>( - this, METHODID_GET_LAST_BLOCK_SEQUENCE))) - .addMethod( - getGetSequenceByHashMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64>( - this, METHODID_GET_SEQUENCE_BY_HASH))) - .addMethod( - getGetBlockByHashesMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails>( - this, METHODID_GET_BLOCK_BY_HASHES))) - .addMethod( - getGetBlockBySeqMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq>( - this, METHODID_GET_BLOCK_BY_SEQ))) - .addMethod( - getCloseQueueMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_CLOSE_QUEUE))) - .addMethod( - getGetAllExecBalanceMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance, - cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance>( - this, METHODID_GET_ALL_EXEC_BALANCE))) - .addMethod( - getSignRawTxMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx>( - this, METHODID_SIGN_RAW_TX))) - .addMethod( - getCreateNoBalanceTransactionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx>( - this, METHODID_CREATE_NO_BALANCE_TRANSACTION))) - .addMethod( - getQueryRandNumMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash>( - this, METHODID_QUERY_RAND_NUM))) - .addMethod( - getGetForkMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64>( - this, METHODID_GET_FORK))) - .addMethod( - getCreateNoBalanceTxsMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs, - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx>( - this, METHODID_CREATE_NO_BALANCE_TXS))) - .addMethod( - getGetParaTxByTitleMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails>( - this, METHODID_GET_PARA_TX_BY_TITLE))) - .addMethod( - getLoadParaTxByTitleMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle>( - this, METHODID_LOAD_PARA_TX_BY_TITLE))) - .addMethod( - getGetParaTxByHeightMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails>( - this, METHODID_GET_PARA_TX_BY_HEIGHT))) - .addMethod( - getGetHeadersMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks, - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers>( - this, METHODID_GET_HEADERS))) - .build(); - } - } - - /** - */ - public static final class chain33Stub extends io.grpc.stub.AbstractAsyncStub { - private chain33Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + */ + public void createNoBalanceTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNoBalanceTxsMethod(), responseObserver); + } - @java.lang.Override - protected chain33Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new chain33Stub(channel, callOptions); - } + /** + *
+         * 通过seq以及title获取对应平行连的交易
+         * 
+ */ + public void getParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetParaTxByTitleMethod(), responseObserver); + } - /** - *
-     * chain33 对外提供服务的接口
-     *区块链接口
-     * 
- */ - public void getBlocks(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取拥有此title交易的区块高度
+         * 
+ */ + public void loadParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLoadParaTxByTitleMethod(), responseObserver); + } - /** - *
-     *获取最新的区块头
-     * 
- */ - public void getLastHeader(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetLastHeaderMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 通过区块高度列表 + title获取平行链交易
+         * 
+ */ + public void getParaTxByHeight(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetParaTxByHeightMethod(), responseObserver); + } - /** - *
-     *交易接口
-     * 
- */ - public void createRawTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateRawTransactionMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取区块头信息
+         * 
+ */ + public void getHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHeadersMethod(), responseObserver); + } - /** - */ - public void createRawTxGroup(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateRawTxGroupMethod(), getCallOptions()), request, responseObserver); + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod(getGetBlocksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_BLOCKS))) + .addMethod(getGetLastHeaderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_LAST_HEADER))) + .addMethod(getCreateRawTransactionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_CREATE_RAW_TRANSACTION))) + .addMethod(getCreateRawTxGroupMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_CREATE_RAW_TX_GROUP))) + .addMethod(getQueryTransactionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_QUERY_TRANSACTION))) + .addMethod(getSendTransactionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SEND_TRANSACTION))) + .addMethod(getGetTransactionByAddrMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_TRANSACTION_BY_ADDR))) + .addMethod(getGetTransactionByHashesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_TRANSACTION_BY_HASHES))) + .addMethod(getGetMemPoolMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_MEM_POOL))) + .addMethod(getGetAccountsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_ACCOUNTS))) + .addMethod(getGetAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_ACCOUNT))) + .addMethod(getNewAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_NEW_ACCOUNT))) + .addMethod(getWalletTransactionListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_WALLET_TRANSACTION_LIST))) + .addMethod(getImportPrivkeyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_IMPORT_PRIVKEY))) + .addMethod(getSendToAddressMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SEND_TO_ADDRESS))) + .addMethod(getSetTxFeeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SET_TX_FEE))) + .addMethod(getSetLablMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SET_LABL))) + .addMethod(getMergeBalanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_MERGE_BALANCE))) + .addMethod(getSetPasswdMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SET_PASSWD))) + .addMethod(getLockMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_LOCK))) + .addMethod(getUnLockMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_UN_LOCK))) + .addMethod(getGetLastMemPoolMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_LAST_MEM_POOL))) + .addMethod(getGetProperFeeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_PROPER_FEE))) + .addMethod(getGetWalletStatusMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_WALLET_STATUS))) + .addMethod(getGetBlockOverviewMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_BLOCK_OVERVIEW))) + .addMethod(getGetAddrOverviewMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_ADDR_OVERVIEW))) + .addMethod(getGetBlockHashMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_BLOCK_HASH))) + .addMethod(getGenSeedMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GEN_SEED))) + .addMethod(getGetSeedMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_SEED))) + .addMethod(getSaveSeedMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SAVE_SEED))) + .addMethod(getGetBalanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_BALANCE))) + .addMethod(getQueryChainMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_QUERY_CHAIN))) + .addMethod(getExecWalletMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_EXEC_WALLET))) + .addMethod(getQueryConsensusMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_QUERY_CONSENSUS))) + .addMethod(getCreateTransactionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_CREATE_TRANSACTION))) + .addMethod(getGetHexTxByHashMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_HEX_TX_BY_HASH))) + .addMethod(getDumpPrivkeyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_DUMP_PRIVKEY))) + .addMethod(getDumpPrivkeysFileMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_DUMP_PRIVKEYS_FILE))) + .addMethod(getImportPrivkeysFileMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_IMPORT_PRIVKEYS_FILE))) + .addMethod(getVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_VERSION))) + .addMethod(getIsSyncMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_IS_SYNC))) + .addMethod(getGetPeerInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_PEER_INFO))) + .addMethod(getNetInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_NET_INFO))) + .addMethod(getIsNtpClockSyncMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_IS_NTP_CLOCK_SYNC))) + .addMethod(getGetFatalFailureMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_FATAL_FAILURE))) + .addMethod(getGetLastBlockSequenceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_LAST_BLOCK_SEQUENCE))) + .addMethod(getGetSequenceByHashMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_SEQUENCE_BY_HASH))) + .addMethod(getGetBlockByHashesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_BLOCK_BY_HASHES))) + .addMethod(getGetBlockBySeqMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_BLOCK_BY_SEQ))) + .addMethod(getCloseQueueMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_CLOSE_QUEUE))) + .addMethod(getGetAllExecBalanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_ALL_EXEC_BALANCE))) + .addMethod(getSignRawTxMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SIGN_RAW_TX))) + .addMethod(getCreateNoBalanceTransactionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_CREATE_NO_BALANCE_TRANSACTION))) + .addMethod(getQueryRandNumMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_QUERY_RAND_NUM))) + .addMethod(getGetForkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_FORK))) + .addMethod(getCreateNoBalanceTxsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_CREATE_NO_BALANCE_TXS))) + .addMethod(getGetParaTxByTitleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_PARA_TX_BY_TITLE))) + .addMethod(getLoadParaTxByTitleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_LOAD_PARA_TX_BY_TITLE))) + .addMethod(getGetParaTxByHeightMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_PARA_TX_BY_HEIGHT))) + .addMethod(getGetHeadersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_HEADERS))) + .build(); + } } /** - *
-     * 根据哈希查询交易
-     * 
*/ - public void queryTransaction(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getQueryTransactionMethod(), getCallOptions()), request, responseObserver); - } + public static final class chain33Stub extends io.grpc.stub.AbstractAsyncStub { + private chain33Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - /** - *
-     * 发送交易
-     * 
- */ - public void sendTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request, responseObserver); - } + @java.lang.Override + protected chain33Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new chain33Stub(channel, callOptions); + } - /** - *
-     *通过地址获取交易信息
-     * 
- */ - public void getTransactionByAddr(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionByAddrMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * chain33 对外提供服务的接口
+         *区块链接口
+         * 
+ */ + public void getBlocks(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetBlocksMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *通过哈希数组获取对应的交易
-     * 
- */ - public void getTransactionByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetTransactionByHashesMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取最新的区块头
+         * 
+ */ + public void getLastHeader(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetLastHeaderMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *缓存接口
-     * 
- */ - public void getMemPool(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 交易接口
+         * 
+ */ + public void createRawTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRawTransactionMethod(), getCallOptions()), request, responseObserver); + } - /** - *
-     *钱包接口
-     *获取钱包账户信息
-     * 
- */ - public void getAccounts(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAccountsMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void createRawTxGroup( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getCreateRawTxGroupMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *根据账户lable信息获取账户地址
-     * 
- */ - public void getAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 根据哈希查询交易
+         * 
+ */ + public void queryTransaction(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getQueryTransactionMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *创建钱包账户
-     * 
- */ - public void newAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getNewAccountMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 发送交易
+         * 
+ */ + public void sendTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSendTransactionMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取钱包的交易列表
-     * 
- */ - public void walletTransactionList(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getWalletTransactionListMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 通过地址获取交易信息
+         * 
+ */ + public void getTransactionByAddr(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTransactionByAddrMethod(), getCallOptions()), request, responseObserver); + } - /** - *
-     *导入钱包私钥
-     * 
- */ - public void importPrivkey(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getImportPrivkeyMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 通过哈希数组获取对应的交易
+         * 
+ */ + public void getTransactionByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTransactionByHashesMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     * 发送交易
-     * 
- */ - public void sendToAddress(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSendToAddressMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 缓存接口
+         * 
+ */ + public void getMemPool(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *设置交易手续费
-     * 
- */ - public void setTxFee(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetTxFeeMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         *钱包接口
+         *获取钱包账户信息
+         * 
+ */ + public void getAccounts(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetAccountsMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *设置标签
-     * 
- */ - public void setLabl(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetLablMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 根据账户lable信息获取账户地址
+         * 
+ */ + public void getAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetAccountMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *合并钱包余额
-     * 
- */ - public void mergeBalance(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getMergeBalanceMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 创建钱包账户
+         * 
+ */ + public void newAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getNewAccountMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *设置钱包密码
-     * 
- */ - public void setPasswd(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetPasswdMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取钱包的交易列表
+         * 
+ */ + public void walletTransactionList( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWalletTransactionListMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     *给钱包上锁
-     * 
- */ - public void lock(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getLockMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 导入钱包私钥
+         * 
+ */ + public void importPrivkey(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getImportPrivkeyMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *给钱包解锁
-     * 
- */ - public void unLock(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUnLockMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 发送交易
+         * 
+ */ + public void sendToAddress(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSendToAddressMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取最新的Mempool
-     * 
- */ - public void getLastMemPool(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetLastMemPoolMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 设置交易手续费
+         * 
+ */ + public void setTxFee(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSetTxFeeMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取最新的ProperFee
-     * 
- */ - public void getProperFee(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetProperFeeMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 设置标签
+         * 
+ */ + public void setLabl(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSetLablMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     * 获取钱包状态
-     * 
- */ - public void getWalletStatus(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetWalletStatusMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 合并钱包余额
+         * 
+ */ + public void mergeBalance(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getMergeBalanceMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *区块浏览器接口
-     * /
-     * 
- */ - public void getBlockOverview(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockOverviewMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 设置钱包密码
+         * 
+ */ + public void setPasswd(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSetPasswdMethod(), getCallOptions()), + request, responseObserver); + } - /** - */ - public void getAddrOverview(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAddrOverviewMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 给钱包上锁
+         * 
+ */ + public void lock(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getLockMethod(), getCallOptions()), request, + responseObserver); + } - /** - */ - public void getBlockHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockHashMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 给钱包解锁
+         * 
+ */ + public void unLock(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getUnLockMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     * seed
-     * 创建seed
-     * 
- */ - public void genSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGenSeedMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取最新的Mempool
+         * 
+ */ + public void getLastMemPool(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetLastMemPoolMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取seed
-     * 
- */ - public void getSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetSeedMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取最新的ProperFee
+         * 
+ */ + public void getProperFee(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetProperFeeMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *保存seed
-     * 
- */ - public void saveSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSaveSeedMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取钱包状态
+         * 
+ */ + public void getWalletStatus(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetWalletStatusMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * Balance Query
-     *获取余额
-     * 
- */ - public void getBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBalanceMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         *区块浏览器接口
+         * /
+         * 
+ */ + public void getBlockOverview(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetBlockOverviewMethod(), getCallOptions()), + request, responseObserver); + } - /** - */ - public void queryChain(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getQueryChainMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void getAddrOverview(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetAddrOverviewMethod(), getCallOptions()), + request, responseObserver); + } - /** - */ - public void execWallet(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getExecWalletMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void getBlockHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetBlockHashMethod(), getCallOptions()), + request, responseObserver); + } - /** - */ - public void queryConsensus(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getQueryConsensusMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * seed
+         * 创建seed
+         * 
+ */ + public void genSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGenSeedMethod(), getCallOptions()), request, + responseObserver); + } - /** - */ - public void createTransaction(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateTransactionMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取seed
+         * 
+ */ + public void getSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetSeedMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     *获取交易的十六进制编码
-     * 
- */ - public void getHexTxByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetHexTxByHashMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 保存seed
+         * 
+ */ + public void saveSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSaveSeedMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * 导出私钥
-     * 
- */ - public void dumpPrivkey(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDumpPrivkeyMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * Balance Query
+         *获取余额
+         * 
+ */ + public void getBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetBalanceMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * 导出全部私钥到文件
-     * 
- */ - public void dumpPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDumpPrivkeysFileMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void queryChain(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getQueryChainMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * 从文件中批量导入私钥
-     * 
- */ - public void importPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getImportPrivkeysFileMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void execWallet(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getExecWalletMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取程序版本
-     * 
- */ - public void version(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVersionMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void queryConsensus(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getQueryConsensusMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *是否同步
-     * 
- */ - public void isSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getIsSyncMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void createTransaction(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTransactionMethod(), getCallOptions()), request, responseObserver); + } - /** - *
-     *获取当前节点连接的其他节点信息
-     * 
- */ - public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取交易的十六进制编码
+         * 
+ */ + public void getHexTxByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetHexTxByHashMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取当前节点的网络信息
-     * 
- */ - public void netInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getNetInfoMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 导出私钥
+         * 
+ */ + public void dumpPrivkey(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getDumpPrivkeyMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * ntpclock是否同步
-     * 
- */ - public void isNtpClockSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getIsNtpClockSyncMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 导出全部私钥到文件
+         * 
+ */ + public void dumpPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getDumpPrivkeysFileMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取系统致命故障信息
-     * 
- */ - public void getFatalFailure(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetFatalFailureMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 从文件中批量导入私钥
+         * 
+ */ + public void importPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportPrivkeysFileMethod(), getCallOptions()), request, responseObserver); + } - /** - */ - public void getLastBlockSequence(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetLastBlockSequenceMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取程序版本
+         * 
+ */ + public void version(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getVersionMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     * get add block's sequence by hash
-     * 
- */ - public void getSequenceByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetSequenceByHashMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 是否同步
+         * 
+ */ + public void isSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getIsSyncMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     *通过block hash 获取对应的blocks信息
-     * 
- */ - public void getBlockByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockByHashesMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取当前节点连接的其他节点信息
+         * 
+ */ + public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *通过block seq 获取对应的blocks hash 信息
-     * 
- */ - public void getBlockBySeq(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlockBySeqMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取当前节点的网络信息
+         * 
+ */ + public void netInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getNetInfoMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     *关闭chain33
-     * 
- */ - public void closeQueue(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCloseQueueMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * ntpclock是否同步
+         * 
+ */ + public void isNtpClockSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getIsNtpClockSyncMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取地址所以合约下的余额
-     * 
- */ - public void getAllExecBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAllExecBalanceMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取系统致命故障信息
+         * 
+ */ + public void getFatalFailure(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetFatalFailureMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *签名交易
-     * 
- */ - public void signRawTx(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSignRawTxMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void getLastBlockSequence(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLastBlockSequenceMethod(), getCallOptions()), request, responseObserver); + } - /** - */ - public void createNoBalanceTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateNoBalanceTransactionMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * get add block's sequence by hash
+         * 
+ */ + public void getSequenceByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSequenceByHashMethod(), getCallOptions()), request, responseObserver); + } - /** - *
-     * 获取随机HASH
-     * 
- */ - public void queryRandNum(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getQueryRandNumMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         *通过block hash 获取对应的blocks信息
+         * 
+ */ + public void getBlockByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetBlockByHashesMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * 获取是否达到fork高度
-     * 
- */ - public void getFork(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetForkMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         *通过block seq 获取对应的blocks hash 信息
+         * 
+ */ + public void getBlockBySeq(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetBlockBySeqMethod(), getCallOptions()), + request, responseObserver); + } - /** - */ - public void createNoBalanceTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateNoBalanceTxsMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 关闭chain33
+         * 
+ */ + public void closeQueue(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getCloseQueueMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *通过seq以及title获取对应平行连的交易
-     * 
- */ - public void getParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetParaTxByTitleMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取地址所以合约下的余额
+         * 
+ */ + public void getAllExecBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAllExecBalanceMethod(), getCallOptions()), request, responseObserver); + } - /** - *
-     *获取拥有此title交易的区块高度
-     * 
- */ - public void loadParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getLoadParaTxByTitleMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 签名交易
+         * 
+ */ + public void signRawTx(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSignRawTxMethod(), getCallOptions()), + request, responseObserver); + } + + /** + */ + public void createNoBalanceTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNoBalanceTransactionMethod(), getCallOptions()), request, + responseObserver); + } + + /** + *
+         * 获取随机HASH
+         * 
+ */ + public void queryRandNum(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getQueryRandNumMethod(), getCallOptions()), + request, responseObserver); + } + + /** + *
+         * 获取是否达到fork高度
+         * 
+ */ + public void getFork(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetForkMethod(), getCallOptions()), request, + responseObserver); + } + + /** + */ + public void createNoBalanceTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNoBalanceTxsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+         * 通过seq以及title获取对应平行连的交易
+         * 
+ */ + public void getParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetParaTxByTitleMethod(), getCallOptions()), + request, responseObserver); + } + + /** + *
+         * 获取拥有此title交易的区块高度
+         * 
+ */ + public void loadParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLoadParaTxByTitleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+         * 通过区块高度列表 + title获取平行链交易
+         * 
+ */ + public void getParaTxByHeight(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetParaTxByHeightMethod(), getCallOptions()), request, responseObserver); + } - /** - *
-     *通过区块高度列表+title获取平行链交易
-     * 
- */ - public void getParaTxByHeight(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetParaTxByHeightMethod(), getCallOptions()), request, responseObserver); + /** + *
+         * 获取区块头信息
+         * 
+ */ + public void getHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetHeadersMethod(), getCallOptions()), + request, responseObserver); + } } /** - *
-     *获取区块头信息
-     * 
*/ - public void getHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetHeadersMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - */ - public static final class chain33BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private chain33BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + public static final class chain33BlockingStub extends io.grpc.stub.AbstractBlockingStub { + private chain33BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - @java.lang.Override - protected chain33BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new chain33BlockingStub(channel, callOptions); - } + @java.lang.Override + protected chain33BlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new chain33BlockingStub(channel, callOptions); + } - /** - *
-     * chain33 对外提供服务的接口
-     *区块链接口
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getBlocks(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { - return blockingUnaryCall( - getChannel(), getGetBlocksMethod(), getCallOptions(), request); - } + /** + *
+         * chain33 对外提供服务的接口
+         *区块链接口
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply getBlocks( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetBlocksMethod(), getCallOptions(), + request); + } - /** - *
-     *获取最新的区块头
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getLastHeader(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getGetLastHeaderMethod(), getCallOptions(), request); - } + /** + *
+         * 获取最新的区块头
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Header getLastHeader( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetLastHeaderMethod(), getCallOptions(), + request); + } - /** - *
-     *交易接口
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx createRawTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request) { - return blockingUnaryCall( - getChannel(), getCreateRawTransactionMethod(), getCallOptions(), request); - } + /** + *
+         * 交易接口
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx createRawTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCreateRawTransactionMethod(), + getCallOptions(), request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx createRawTxGroup(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request) { - return blockingUnaryCall( - getChannel(), getCreateRawTxGroupMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx createRawTxGroup( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCreateRawTxGroupMethod(), + getCallOptions(), request); + } - /** - *
-     * 根据哈希查询交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail queryTransaction(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return blockingUnaryCall( - getChannel(), getQueryTransactionMethod(), getCallOptions(), request); - } + /** + *
+         * 根据哈希查询交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetail queryTransaction( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getQueryTransactionMethod(), + getCallOptions(), request); + } - /** - *
-     * 发送交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply sendTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request) { - return blockingUnaryCall( - getChannel(), getSendTransactionMethod(), getCallOptions(), request); - } + /** + *
+         * 发送交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply sendTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSendTransactionMethod(), + getCallOptions(), request); + } - /** - *
-     *通过地址获取交易信息
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getTransactionByAddr(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { - return blockingUnaryCall( - getChannel(), getGetTransactionByAddrMethod(), getCallOptions(), request); - } + /** + *
+         * 通过地址获取交易信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxInfos getTransactionByAddr( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetTransactionByAddrMethod(), + getCallOptions(), request); + } - /** - *
-     *通过哈希数组获取对应的交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getTransactionByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { - return blockingUnaryCall( - getChannel(), getGetTransactionByHashesMethod(), getCallOptions(), request); - } + /** + *
+         * 通过哈希数组获取对应的交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.TransactionDetails getTransactionByHashes( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetTransactionByHashesMethod(), + getCallOptions(), request); + } - /** - *
-     *缓存接口
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getMemPool(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request) { - return blockingUnaryCall( - getChannel(), getGetMemPoolMethod(), getCallOptions(), request); - } + /** + *
+         * 缓存接口
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getMemPool( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetMemPoolMethod(), getCallOptions(), + request); + } - /** - *
-     *钱包接口
-     *获取钱包账户信息
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getAccounts(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getGetAccountsMethod(), getCallOptions(), request); - } + /** + *
+         *钱包接口
+         *获取钱包账户信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccounts getAccounts( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetAccountsMethod(), getCallOptions(), + request); + } - /** - *
-     *根据账户lable信息获取账户地址
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request) { - return blockingUnaryCall( - getChannel(), getGetAccountMethod(), getCallOptions(), request); - } + /** + *
+         * 根据账户lable信息获取账户地址
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount getAccount( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetAccountMethod(), getCallOptions(), + request); + } - /** - *
-     *创建钱包账户
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount newAccount(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request) { - return blockingUnaryCall( - getChannel(), getNewAccountMethod(), getCallOptions(), request); - } + /** + *
+         * 创建钱包账户
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount newAccount( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getNewAccountMethod(), getCallOptions(), + request); + } - /** - *
-     *获取钱包的交易列表
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails walletTransactionList(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request) { - return blockingUnaryCall( - getChannel(), getWalletTransactionListMethod(), getCallOptions(), request); - } + /** + *
+         * 获取钱包的交易列表
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletTxDetails walletTransactionList( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getWalletTransactionListMethod(), + getCallOptions(), request); + } - /** - *
-     *导入钱包私钥
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount importPrivkey(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request) { - return blockingUnaryCall( - getChannel(), getImportPrivkeyMethod(), getCallOptions(), request); - } + /** + *
+         * 导入钱包私钥
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount importPrivkey( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getImportPrivkeyMethod(), getCallOptions(), + request); + } - /** - *
-     * 发送交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash sendToAddress(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request) { - return blockingUnaryCall( - getChannel(), getSendToAddressMethod(), getCallOptions(), request); - } + /** + *
+         * 发送交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash sendToAddress( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSendToAddressMethod(), getCallOptions(), + request); + } - /** - *
-     *设置交易手续费
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply setTxFee(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request) { - return blockingUnaryCall( - getChannel(), getSetTxFeeMethod(), getCallOptions(), request); - } + /** + *
+         * 设置交易手续费
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply setTxFee( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSetTxFeeMethod(), getCallOptions(), + request); + } - /** - *
-     *设置标签
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount setLabl(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request) { - return blockingUnaryCall( - getChannel(), getSetLablMethod(), getCallOptions(), request); - } + /** + *
+         * 设置标签
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletAccount setLabl( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSetLablMethod(), getCallOptions(), + request); + } - /** - *
-     *合并钱包余额
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes mergeBalance(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request) { - return blockingUnaryCall( - getChannel(), getMergeBalanceMethod(), getCallOptions(), request); - } + /** + *
+         * 合并钱包余额
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHashes mergeBalance( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getMergeBalanceMethod(), getCallOptions(), + request); + } - /** - *
-     *设置钱包密码
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply setPasswd(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request) { - return blockingUnaryCall( - getChannel(), getSetPasswdMethod(), getCallOptions(), request); - } + /** + *
+         * 设置钱包密码
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply setPasswd( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSetPasswdMethod(), getCallOptions(), + request); + } - /** - *
-     *给钱包上锁
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply lock(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getLockMethod(), getCallOptions(), request); - } + /** + *
+         * 给钱包上锁
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply lock( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getLockMethod(), getCallOptions(), request); + } - /** - *
-     *给钱包解锁
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply unLock(cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request) { - return blockingUnaryCall( - getChannel(), getUnLockMethod(), getCallOptions(), request); - } + /** + *
+         * 给钱包解锁
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply unLock( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getUnLockMethod(), getCallOptions(), + request); + } - /** - *
-     *获取最新的Mempool
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getLastMemPool(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getGetLastMemPoolMethod(), getCallOptions(), request); - } + /** + *
+         * 获取最新的Mempool
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyTxList getLastMemPool( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetLastMemPoolMethod(), getCallOptions(), + request); + } - /** - *
-     *获取最新的ProperFee
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getProperFee(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request) { - return blockingUnaryCall( - getChannel(), getGetProperFeeMethod(), getCallOptions(), request); - } + /** + *
+         * 获取最新的ProperFee
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReplyProperFee getProperFee( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetProperFeeMethod(), getCallOptions(), + request); + } - /** - *
-     * 获取钱包状态
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getWalletStatus(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getGetWalletStatusMethod(), getCallOptions(), request); - } + /** + *
+         * 获取钱包状态
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletStatus getWalletStatus( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetWalletStatusMethod(), + getCallOptions(), request); + } - /** - *
-     *区块浏览器接口
-     * /
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getBlockOverview(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return blockingUnaryCall( - getChannel(), getGetBlockOverviewMethod(), getCallOptions(), request); - } + /** + *
+         *区块浏览器接口
+         * /
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockOverview getBlockOverview( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetBlockOverviewMethod(), + getCallOptions(), request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getAddrOverview(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { - return blockingUnaryCall( - getChannel(), getGetAddrOverviewMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.AddrOverview getAddrOverview( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetAddrOverviewMethod(), + getCallOptions(), request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getBlockHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request) { - return blockingUnaryCall( - getChannel(), getGetBlockHashMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash getBlockHash( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetBlockHashMethod(), getCallOptions(), + request); + } - /** - *
-     * seed
-     * 创建seed
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed genSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request) { - return blockingUnaryCall( - getChannel(), getGenSeedMethod(), getCallOptions(), request); - } + /** + *
+         * seed
+         * 创建seed
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed genSeed( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGenSeedMethod(), getCallOptions(), + request); + } - /** - *
-     *获取seed
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request) { - return blockingUnaryCall( - getChannel(), getGetSeedMethod(), getCallOptions(), request); - } + /** + *
+         * 获取seed
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySeed getSeed( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetSeedMethod(), getCallOptions(), + request); + } - /** - *
-     *保存seed
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply saveSeed(cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request) { - return blockingUnaryCall( - getChannel(), getSaveSeedMethod(), getCallOptions(), request); - } + /** + *
+         * 保存seed
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply saveSeed( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSaveSeedMethod(), getCallOptions(), + request); + } - /** - *
-     * Balance Query
-     *获取余额
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request) { - return blockingUnaryCall( - getChannel(), getGetBalanceMethod(), getCallOptions(), request); - } + /** + *
+         * Balance Query
+         *获取余额
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.Accounts getBalance( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetBalanceMethod(), getCallOptions(), + request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply queryChain(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { - return blockingUnaryCall( - getChannel(), getQueryChainMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply queryChain( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getQueryChainMethod(), getCallOptions(), + request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply execWallet(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { - return blockingUnaryCall( - getChannel(), getExecWalletMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply execWallet( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getExecWalletMethod(), getCallOptions(), + request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply queryConsensus(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { - return blockingUnaryCall( - getChannel(), getQueryConsensusMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply queryConsensus( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getQueryConsensusMethod(), getCallOptions(), + request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx createTransaction(cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request) { - return blockingUnaryCall( - getChannel(), getCreateTransactionMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.UnsignTx createTransaction( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCreateTransactionMethod(), + getCallOptions(), request); + } - /** - *
-     *获取交易的十六进制编码
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getHexTxByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return blockingUnaryCall( - getChannel(), getGetHexTxByHashMethod(), getCallOptions(), request); - } + /** + *
+         * 获取交易的十六进制编码
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.HexTx getHexTxByHash( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetHexTxByHashMethod(), getCallOptions(), + request); + } - /** - *
-     * 导出私钥
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString dumpPrivkey(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request) { - return blockingUnaryCall( - getChannel(), getDumpPrivkeyMethod(), getCallOptions(), request); - } + /** + *
+         * 导出私钥
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyString dumpPrivkey( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getDumpPrivkeyMethod(), getCallOptions(), + request); + } - /** - *
-     * 导出全部私钥到文件
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply dumpPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { - return blockingUnaryCall( - getChannel(), getDumpPrivkeysFileMethod(), getCallOptions(), request); - } + /** + *
+         * 导出全部私钥到文件
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply dumpPrivkeysFile( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getDumpPrivkeysFileMethod(), + getCallOptions(), request); + } - /** - *
-     * 从文件中批量导入私钥
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply importPrivkeysFile(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { - return blockingUnaryCall( - getChannel(), getImportPrivkeysFileMethod(), getCallOptions(), request); - } + /** + *
+         * 从文件中批量导入私钥
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply importPrivkeysFile( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getImportPrivkeysFileMethod(), + getCallOptions(), request); + } - /** - *
-     *获取程序版本
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo version(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getVersionMethod(), getCallOptions(), request); - } + /** + *
+         * 获取程序版本
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.VersionInfo version( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getVersionMethod(), getCallOptions(), + request); + } - /** - *
-     *是否同步
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply isSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getIsSyncMethod(), getCallOptions(), request); - } + /** + *
+         * 是否同步
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply isSync( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getIsSyncMethod(), getCallOptions(), + request); + } - /** - *
-     *获取当前节点连接的其他节点信息
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeerList getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request) { - return blockingUnaryCall( - getChannel(), getGetPeerInfoMethod(), getCallOptions(), request); - } + /** + *
+         * 获取当前节点连接的其他节点信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeerList getPeerInfo( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetPeerInfoMethod(), getCallOptions(), + request); + } - /** - *
-     *获取当前节点的网络信息
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo netInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request) { - return blockingUnaryCall( - getChannel(), getNetInfoMethod(), getCallOptions(), request); - } + /** + *
+         * 获取当前节点的网络信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.NodeNetInfo netInfo( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getNetInfoMethod(), getCallOptions(), + request); + } - /** - *
-     * ntpclock是否同步
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply isNtpClockSync(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getIsNtpClockSyncMethod(), getCallOptions(), request); - } + /** + *
+         * ntpclock是否同步
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply isNtpClockSync( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getIsNtpClockSyncMethod(), getCallOptions(), + request); + } - /** - *
-     *获取系统致命故障信息
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getFatalFailure(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getGetFatalFailureMethod(), getCallOptions(), request); - } + /** + *
+         * 获取系统致命故障信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.Int32 getFatalFailure( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetFatalFailureMethod(), + getCallOptions(), request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getLastBlockSequence(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getGetLastBlockSequenceMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getLastBlockSequence( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetLastBlockSequenceMethod(), + getCallOptions(), request); + } - /** - *
-     * get add block's sequence by hash
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getSequenceByHash(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return blockingUnaryCall( - getChannel(), getGetSequenceByHashMethod(), getCallOptions(), request); - } + /** + *
+         * get add block's sequence by hash
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getSequenceByHash( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetSequenceByHashMethod(), + getCallOptions(), request); + } - /** - *
-     *通过block hash 获取对应的blocks信息
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getBlockByHashes(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { - return blockingUnaryCall( - getChannel(), getGetBlockByHashesMethod(), getCallOptions(), request); - } + /** + *
+         *通过block hash 获取对应的blocks信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockDetails getBlockByHashes( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetBlockByHashesMethod(), + getCallOptions(), request); + } - /** - *
-     *通过block seq 获取对应的blocks hash 信息
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getBlockBySeq(cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request) { - return blockingUnaryCall( - getChannel(), getGetBlockBySeqMethod(), getCallOptions(), request); - } + /** + *
+         *通过block seq 获取对应的blocks hash 信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.BlockSeq getBlockBySeq( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetBlockBySeqMethod(), getCallOptions(), + request); + } - /** - *
-     *关闭chain33
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply closeQueue(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return blockingUnaryCall( - getChannel(), getCloseQueueMethod(), getCallOptions(), request); - } + /** + *
+         * 关闭chain33
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply closeQueue( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCloseQueueMethod(), getCallOptions(), + request); + } - /** - *
-     *获取地址所以合约下的余额
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getAllExecBalance(cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request) { - return blockingUnaryCall( - getChannel(), getGetAllExecBalanceMethod(), getCallOptions(), request); - } + /** + *
+         * 获取地址所以合约下的余额
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.AccountProtobuf.AllExecBalance getAllExecBalance( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetAllExecBalanceMethod(), + getCallOptions(), request); + } - /** - *
-     *签名交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx signRawTx(cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request) { - return blockingUnaryCall( - getChannel(), getSignRawTxMethod(), getCallOptions(), request); - } + /** + *
+         * 签名交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx signRawTx( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSignRawTxMethod(), getCallOptions(), + request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx createNoBalanceTransaction(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request) { - return blockingUnaryCall( - getChannel(), getCreateNoBalanceTransactionMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx createNoBalanceTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCreateNoBalanceTransactionMethod(), + getCallOptions(), request); + } - /** - *
-     * 获取随机HASH
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash queryRandNum(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request) { - return blockingUnaryCall( - getChannel(), getQueryRandNumMethod(), getCallOptions(), request); - } + /** + *
+         * 获取随机HASH
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReplyHash queryRandNum( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getQueryRandNumMethod(), getCallOptions(), + request); + } - /** - *
-     * 获取是否达到fork高度
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getFork(cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request) { - return blockingUnaryCall( - getChannel(), getGetForkMethod(), getCallOptions(), request); - } + /** + *
+         * 获取是否达到fork高度
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 getFork( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetForkMethod(), getCallOptions(), + request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx createNoBalanceTxs(cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request) { - return blockingUnaryCall( - getChannel(), getCreateNoBalanceTxsMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReplySignRawTx createNoBalanceTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCreateNoBalanceTxsMethod(), + getCallOptions(), request); + } - /** - *
-     *通过seq以及title获取对应平行连的交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request) { - return blockingUnaryCall( - getChannel(), getGetParaTxByTitleMethod(), getCallOptions(), request); - } + /** + *
+         * 通过seq以及title获取对应平行连的交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getParaTxByTitle( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetParaTxByTitleMethod(), + getCallOptions(), request); + } - /** - *
-     *获取拥有此title交易的区块高度
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle loadParaTxByTitle(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request) { - return blockingUnaryCall( - getChannel(), getLoadParaTxByTitleMethod(), getCallOptions(), request); - } + /** + *
+         * 获取拥有此title交易的区块高度
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReplyHeightByTitle loadParaTxByTitle( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getLoadParaTxByTitleMethod(), + getCallOptions(), request); + } - /** - *
-     *通过区块高度列表+title获取平行链交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getParaTxByHeight(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request) { - return blockingUnaryCall( - getChannel(), getGetParaTxByHeightMethod(), getCallOptions(), request); + /** + *
+         * 通过区块高度列表 + title获取平行链交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ParaTxDetails getParaTxByHeight( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetParaTxByHeightMethod(), + getCallOptions(), request); + } + + /** + *
+         * 获取区块头信息
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetHeadersMethod(), getCallOptions(), + request); + } } /** - *
-     *获取区块头信息
-     * 
*/ - public cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.Headers getHeaders(cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { - return blockingUnaryCall( - getChannel(), getGetHeadersMethod(), getCallOptions(), request); - } - } - - /** - */ - public static final class chain33FutureStub extends io.grpc.stub.AbstractFutureStub { - private chain33FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + public static final class chain33FutureStub extends io.grpc.stub.AbstractFutureStub { + private chain33FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - @java.lang.Override - protected chain33FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new chain33FutureStub(channel, callOptions); - } + @java.lang.Override + protected chain33FutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new chain33FutureStub(channel, callOptions); + } + + /** + *
+         * chain33 对外提供服务的接口
+         *区块链接口
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBlocks( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request); + } + + /** + *
+         * 获取最新的区块头
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLastHeader( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetLastHeaderMethod(), getCallOptions()), request); + } - /** - *
-     * chain33 对外提供服务的接口
-     *区块链接口
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBlocks( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { - return futureUnaryCall( - getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request); - } + /** + *
+         * 交易接口
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRawTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getCreateRawTransactionMethod(), getCallOptions()), request); + } - /** - *
-     *获取最新的区块头
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLastHeader( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getGetLastHeaderMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture createRawTxGroup( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getCreateRawTxGroupMethod(), getCallOptions()), request); + } - /** - *
-     *交易接口
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRawTransaction( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx request) { - return futureUnaryCall( - getChannel().newCall(getCreateRawTransactionMethod(), getCallOptions()), request); - } + /** + *
+         * 根据哈希查询交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture queryTransaction( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getQueryTransactionMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture createRawTxGroup( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup request) { - return futureUnaryCall( - getChannel().newCall(getCreateRawTxGroupMethod(), getCallOptions()), request); - } + /** + *
+         * 发送交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture sendTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request); + } - /** - *
-     * 根据哈希查询交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture queryTransaction( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return futureUnaryCall( - getChannel().newCall(getQueryTransactionMethod(), getCallOptions()), request); - } + /** + *
+         * 通过地址获取交易信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTransactionByAddr( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetTransactionByAddrMethod(), getCallOptions()), request); + } - /** - *
-     * 发送交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture sendTransaction( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction request) { - return futureUnaryCall( - getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request); - } + /** + *
+         * 通过哈希数组获取对应的交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTransactionByHashes( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTransactionByHashesMethod(), getCallOptions()), request); + } - /** - *
-     *通过地址获取交易信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTransactionByAddr( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { - return futureUnaryCall( - getChannel().newCall(getGetTransactionByAddrMethod(), getCallOptions()), request); - } + /** + *
+         * 缓存接口
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMemPool( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), request); + } - /** - *
-     *通过哈希数组获取对应的交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTransactionByHashes( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { - return futureUnaryCall( - getChannel().newCall(getGetTransactionByHashesMethod(), getCallOptions()), request); - } + /** + *
+         *钱包接口
+         *获取钱包账户信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAccounts( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetAccountsMethod(), getCallOptions()), request); + } - /** - *
-     *缓存接口
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMemPool( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool request) { - return futureUnaryCall( - getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), request); - } + /** + *
+         * 根据账户lable信息获取账户地址
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAccount( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); + } - /** - *
-     *钱包接口
-     *获取钱包账户信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAccounts( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getGetAccountsMethod(), getCallOptions()), request); - } + /** + *
+         * 创建钱包账户
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture newAccount( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getNewAccountMethod(), getCallOptions()), request); + } - /** - *
-     *根据账户lable信息获取账户地址
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAccount( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount request) { - return futureUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); - } + /** + *
+         * 获取钱包的交易列表
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture walletTransactionList( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getWalletTransactionListMethod(), getCallOptions()), request); + } - /** - *
-     *创建钱包账户
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture newAccount( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount request) { - return futureUnaryCall( - getChannel().newCall(getNewAccountMethod(), getCallOptions()), request); - } + /** + *
+         * 导入钱包私钥
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importPrivkey( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getImportPrivkeyMethod(), getCallOptions()), request); + } - /** - *
-     *获取钱包的交易列表
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture walletTransactionList( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList request) { - return futureUnaryCall( - getChannel().newCall(getWalletTransactionListMethod(), getCallOptions()), request); - } + /** + *
+         * 发送交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture sendToAddress( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getSendToAddressMethod(), getCallOptions()), request); + } - /** - *
-     *导入钱包私钥
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture importPrivkey( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey request) { - return futureUnaryCall( - getChannel().newCall(getImportPrivkeyMethod(), getCallOptions()), request); - } + /** + *
+         * 设置交易手续费
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setTxFee( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getSetTxFeeMethod(), getCallOptions()), + request); + } - /** - *
-     * 发送交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture sendToAddress( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress request) { - return futureUnaryCall( - getChannel().newCall(getSendToAddressMethod(), getCallOptions()), request); - } + /** + *
+         * 设置标签
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLabl( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getSetLablMethod(), getCallOptions()), + request); + } - /** - *
-     *设置交易手续费
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setTxFee( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee request) { - return futureUnaryCall( - getChannel().newCall(getSetTxFeeMethod(), getCallOptions()), request); - } + /** + *
+         * 合并钱包余额
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture mergeBalance( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getMergeBalanceMethod(), getCallOptions()), request); + } - /** - *
-     *设置标签
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setLabl( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel request) { - return futureUnaryCall( - getChannel().newCall(getSetLablMethod(), getCallOptions()), request); - } + /** + *
+         * 设置钱包密码
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setPasswd( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getSetPasswdMethod(), getCallOptions()), request); + } - /** - *
-     *合并钱包余额
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture mergeBalance( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance request) { - return futureUnaryCall( - getChannel().newCall(getMergeBalanceMethod(), getCallOptions()), request); - } + /** + *
+         * 给钱包上锁
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture lock( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getLockMethod(), getCallOptions()), + request); + } - /** - *
-     *设置钱包密码
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setPasswd( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd request) { - return futureUnaryCall( - getChannel().newCall(getSetPasswdMethod(), getCallOptions()), request); - } + /** + *
+         * 给钱包解锁
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture unLock( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getUnLockMethod(), getCallOptions()), + request); + } - /** - *
-     *给钱包上锁
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture lock( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getLockMethod(), getCallOptions()), request); - } + /** + *
+         * 获取最新的Mempool
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLastMemPool( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetLastMemPoolMethod(), getCallOptions()), request); + } - /** - *
-     *给钱包解锁
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture unLock( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock request) { - return futureUnaryCall( - getChannel().newCall(getUnLockMethod(), getCallOptions()), request); - } + /** + *
+         * 获取最新的ProperFee
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getProperFee( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetProperFeeMethod(), getCallOptions()), request); + } - /** - *
-     *获取最新的Mempool
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLastMemPool( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getGetLastMemPoolMethod(), getCallOptions()), request); - } + /** + *
+         * 获取钱包状态
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWalletStatus( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetWalletStatusMethod(), getCallOptions()), request); + } - /** - *
-     *获取最新的ProperFee
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getProperFee( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee request) { - return futureUnaryCall( - getChannel().newCall(getGetProperFeeMethod(), getCallOptions()), request); - } + /** + *
+         *区块浏览器接口
+         * /
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBlockOverview( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetBlockOverviewMethod(), getCallOptions()), request); + } - /** - *
-     * 获取钱包状态
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWalletStatus( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getGetWalletStatusMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture getAddrOverview( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetAddrOverviewMethod(), getCallOptions()), request); + } - /** - *
-     *区块浏览器接口
-     * /
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBlockOverview( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return futureUnaryCall( - getChannel().newCall(getGetBlockOverviewMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture getBlockHash( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetBlockHashMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture getAddrOverview( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr request) { - return futureUnaryCall( - getChannel().newCall(getGetAddrOverviewMethod(), getCallOptions()), request); - } + /** + *
+         * seed
+         * 创建seed
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture genSeed( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGenSeedMethod(), getCallOptions()), + request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture getBlockHash( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt request) { - return futureUnaryCall( - getChannel().newCall(getGetBlockHashMethod(), getCallOptions()), request); - } + /** + *
+         * 获取seed
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSeed( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGetSeedMethod(), getCallOptions()), + request); + } - /** - *
-     * seed
-     * 创建seed
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture genSeed( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang request) { - return futureUnaryCall( - getChannel().newCall(getGenSeedMethod(), getCallOptions()), request); - } + /** + *
+         * 保存seed
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture saveSeed( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getSaveSeedMethod(), getCallOptions()), + request); + } - /** - *
-     *获取seed
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSeed( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw request) { - return futureUnaryCall( - getChannel().newCall(getGetSeedMethod(), getCallOptions()), request); - } + /** + *
+         * Balance Query
+         *获取余额
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBalance( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetBalanceMethod(), getCallOptions()), request); + } - /** - *
-     *保存seed
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture saveSeed( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw request) { - return futureUnaryCall( - getChannel().newCall(getSaveSeedMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture queryChain( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getQueryChainMethod(), getCallOptions()), request); + } - /** - *
-     * Balance Query
-     *获取余额
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBalance( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance request) { - return futureUnaryCall( - getChannel().newCall(getGetBalanceMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture execWallet( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getExecWalletMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture queryChain( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { - return futureUnaryCall( - getChannel().newCall(getQueryChainMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture queryConsensus( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getQueryConsensusMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture execWallet( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { - return futureUnaryCall( - getChannel().newCall(getExecWalletMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture createTransaction( + cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getCreateTransactionMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture queryConsensus( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor request) { - return futureUnaryCall( - getChannel().newCall(getQueryConsensusMethod(), getCallOptions()), request); - } + /** + *
+         * 获取交易的十六进制编码
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHexTxByHash( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetHexTxByHashMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture createTransaction( - cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn request) { - return futureUnaryCall( - getChannel().newCall(getCreateTransactionMethod(), getCallOptions()), request); - } + /** + *
+         * 导出私钥
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture dumpPrivkey( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getDumpPrivkeyMethod(), getCallOptions()), request); + } - /** - *
-     *获取交易的十六进制编码
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHexTxByHash( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return futureUnaryCall( - getChannel().newCall(getGetHexTxByHashMethod(), getCallOptions()), request); - } + /** + *
+         * 导出全部私钥到文件
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture dumpPrivkeysFile( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getDumpPrivkeysFileMethod(), getCallOptions()), request); + } - /** - *
-     * 导出私钥
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture dumpPrivkey( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString request) { - return futureUnaryCall( - getChannel().newCall(getDumpPrivkeyMethod(), getCallOptions()), request); - } + /** + *
+         * 从文件中批量导入私钥
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importPrivkeysFile( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getImportPrivkeysFileMethod(), getCallOptions()), request); + } - /** - *
-     * 导出全部私钥到文件
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture dumpPrivkeysFile( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { - return futureUnaryCall( - getChannel().newCall(getDumpPrivkeysFileMethod(), getCallOptions()), request); - } + /** + *
+         * 获取程序版本
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture version( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getVersionMethod(), getCallOptions()), + request); + } - /** - *
-     * 从文件中批量导入私钥
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture importPrivkeysFile( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile request) { - return futureUnaryCall( - getChannel().newCall(getImportPrivkeysFileMethod(), getCallOptions()), request); - } + /** + *
+         * 是否同步
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture isSync( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getIsSyncMethod(), getCallOptions()), + request); + } - /** - *
-     *获取程序版本
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture version( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getVersionMethod(), getCallOptions()), request); - } + /** + *
+         * 获取当前节点连接的其他节点信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPeerInfo( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), request); + } - /** - *
-     *是否同步
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture isSync( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getIsSyncMethod(), getCallOptions()), request); - } + /** + *
+         * 获取当前节点的网络信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture netInfo( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getNetInfoMethod(), getCallOptions()), + request); + } - /** - *
-     *获取当前节点连接的其他节点信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPeerInfo( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq request) { - return futureUnaryCall( - getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), request); - } + /** + *
+         * ntpclock是否同步
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture isNtpClockSync( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getIsNtpClockSyncMethod(), getCallOptions()), request); + } - /** - *
-     *获取当前节点的网络信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture netInfo( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq request) { - return futureUnaryCall( - getChannel().newCall(getNetInfoMethod(), getCallOptions()), request); - } + /** + *
+         * 获取系统致命故障信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFatalFailure( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetFatalFailureMethod(), getCallOptions()), request); + } - /** - *
-     * ntpclock是否同步
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture isNtpClockSync( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getIsNtpClockSyncMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture getLastBlockSequence( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetLastBlockSequenceMethod(), getCallOptions()), request); + } - /** - *
-     *获取系统致命故障信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFatalFailure( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getGetFatalFailureMethod(), getCallOptions()), request); - } + /** + *
+         * get add block's sequence by hash
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSequenceByHash( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetSequenceByHashMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture getLastBlockSequence( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getGetLastBlockSequenceMethod(), getCallOptions()), request); - } + /** + *
+         *通过block hash 获取对应的blocks信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBlockByHashes( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetBlockByHashesMethod(), getCallOptions()), request); + } - /** - *
-     * get add block's sequence by hash
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSequenceByHash( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash request) { - return futureUnaryCall( - getChannel().newCall(getGetSequenceByHashMethod(), getCallOptions()), request); - } + /** + *
+         *通过block seq 获取对应的blocks hash 信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBlockBySeq( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetBlockBySeqMethod(), getCallOptions()), request); + } - /** - *
-     *通过block hash 获取对应的blocks信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBlockByHashes( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes request) { - return futureUnaryCall( - getChannel().newCall(getGetBlockByHashesMethod(), getCallOptions()), request); - } + /** + *
+         * 关闭chain33
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture closeQueue( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getCloseQueueMethod(), getCallOptions()), request); + } - /** - *
-     *通过block seq 获取对应的blocks hash 信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBlockBySeq( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64 request) { - return futureUnaryCall( - getChannel().newCall(getGetBlockBySeqMethod(), getCallOptions()), request); - } + /** + *
+         * 获取地址所以合约下的余额
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAllExecBalance( + cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetAllExecBalanceMethod(), getCallOptions()), request); + } - /** - *
-     *关闭chain33
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture closeQueue( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil request) { - return futureUnaryCall( - getChannel().newCall(getCloseQueueMethod(), getCallOptions()), request); - } + /** + *
+         * 签名交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture signRawTx( + cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getSignRawTxMethod(), getCallOptions()), request); + } - /** - *
-     *获取地址所以合约下的余额
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAllExecBalance( - cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance request) { - return futureUnaryCall( - getChannel().newCall(getGetAllExecBalanceMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture createNoBalanceTransaction( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNoBalanceTransactionMethod(), getCallOptions()), request); + } - /** - *
-     *签名交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture signRawTx( - cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx request) { - return futureUnaryCall( - getChannel().newCall(getSignRawTxMethod(), getCallOptions()), request); - } + /** + *
+         * 获取随机HASH
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture queryRandNum( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getQueryRandNumMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture createNoBalanceTransaction( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx request) { - return futureUnaryCall( - getChannel().newCall(getCreateNoBalanceTransactionMethod(), getCallOptions()), request); - } + /** + *
+         * 获取是否达到fork高度
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFork( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGetForkMethod(), getCallOptions()), + request); + } - /** - *
-     * 获取随机HASH
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture queryRandNum( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash request) { - return futureUnaryCall( - getChannel().newCall(getQueryRandNumMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture createNoBalanceTxs( + cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getCreateNoBalanceTxsMethod(), getCallOptions()), request); + } - /** - *
-     * 获取是否达到fork高度
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFork( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey request) { - return futureUnaryCall( - getChannel().newCall(getGetForkMethod(), getCallOptions()), request); - } + /** + *
+         * 通过seq以及title获取对应平行连的交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getParaTxByTitle( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetParaTxByTitleMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture createNoBalanceTxs( - cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs request) { - return futureUnaryCall( - getChannel().newCall(getCreateNoBalanceTxsMethod(), getCallOptions()), request); - } + /** + *
+         * 获取拥有此title交易的区块高度
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture loadParaTxByTitle( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getLoadParaTxByTitleMethod(), getCallOptions()), request); + } - /** - *
-     *通过seq以及title获取对应平行连的交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getParaTxByTitle( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle request) { - return futureUnaryCall( - getChannel().newCall(getGetParaTxByTitleMethod(), getCallOptions()), request); - } + /** + *
+         * 通过区块高度列表 + title获取平行链交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getParaTxByHeight( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetParaTxByHeightMethod(), getCallOptions()), request); + } - /** - *
-     *获取拥有此title交易的区块高度
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture loadParaTxByTitle( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle request) { - return futureUnaryCall( - getChannel().newCall(getLoadParaTxByTitleMethod(), getCallOptions()), request); + /** + *
+         * 获取区块头信息
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHeaders( + cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetHeadersMethod(), getCallOptions()), request); + } } - /** - *
-     *通过区块高度列表+title获取平行链交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getParaTxByHeight( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight request) { - return futureUnaryCall( - getChannel().newCall(getGetParaTxByHeightMethod(), getCallOptions()), request); - } + private static final int METHODID_GET_BLOCKS = 0; + private static final int METHODID_GET_LAST_HEADER = 1; + private static final int METHODID_CREATE_RAW_TRANSACTION = 2; + private static final int METHODID_CREATE_RAW_TX_GROUP = 3; + private static final int METHODID_QUERY_TRANSACTION = 4; + private static final int METHODID_SEND_TRANSACTION = 5; + private static final int METHODID_GET_TRANSACTION_BY_ADDR = 6; + private static final int METHODID_GET_TRANSACTION_BY_HASHES = 7; + private static final int METHODID_GET_MEM_POOL = 8; + private static final int METHODID_GET_ACCOUNTS = 9; + private static final int METHODID_GET_ACCOUNT = 10; + private static final int METHODID_NEW_ACCOUNT = 11; + private static final int METHODID_WALLET_TRANSACTION_LIST = 12; + private static final int METHODID_IMPORT_PRIVKEY = 13; + private static final int METHODID_SEND_TO_ADDRESS = 14; + private static final int METHODID_SET_TX_FEE = 15; + private static final int METHODID_SET_LABL = 16; + private static final int METHODID_MERGE_BALANCE = 17; + private static final int METHODID_SET_PASSWD = 18; + private static final int METHODID_LOCK = 19; + private static final int METHODID_UN_LOCK = 20; + private static final int METHODID_GET_LAST_MEM_POOL = 21; + private static final int METHODID_GET_PROPER_FEE = 22; + private static final int METHODID_GET_WALLET_STATUS = 23; + private static final int METHODID_GET_BLOCK_OVERVIEW = 24; + private static final int METHODID_GET_ADDR_OVERVIEW = 25; + private static final int METHODID_GET_BLOCK_HASH = 26; + private static final int METHODID_GEN_SEED = 27; + private static final int METHODID_GET_SEED = 28; + private static final int METHODID_SAVE_SEED = 29; + private static final int METHODID_GET_BALANCE = 30; + private static final int METHODID_QUERY_CHAIN = 31; + private static final int METHODID_EXEC_WALLET = 32; + private static final int METHODID_QUERY_CONSENSUS = 33; + private static final int METHODID_CREATE_TRANSACTION = 34; + private static final int METHODID_GET_HEX_TX_BY_HASH = 35; + private static final int METHODID_DUMP_PRIVKEY = 36; + private static final int METHODID_DUMP_PRIVKEYS_FILE = 37; + private static final int METHODID_IMPORT_PRIVKEYS_FILE = 38; + private static final int METHODID_VERSION = 39; + private static final int METHODID_IS_SYNC = 40; + private static final int METHODID_GET_PEER_INFO = 41; + private static final int METHODID_NET_INFO = 42; + private static final int METHODID_IS_NTP_CLOCK_SYNC = 43; + private static final int METHODID_GET_FATAL_FAILURE = 44; + private static final int METHODID_GET_LAST_BLOCK_SEQUENCE = 45; + private static final int METHODID_GET_SEQUENCE_BY_HASH = 46; + private static final int METHODID_GET_BLOCK_BY_HASHES = 47; + private static final int METHODID_GET_BLOCK_BY_SEQ = 48; + private static final int METHODID_CLOSE_QUEUE = 49; + private static final int METHODID_GET_ALL_EXEC_BALANCE = 50; + private static final int METHODID_SIGN_RAW_TX = 51; + private static final int METHODID_CREATE_NO_BALANCE_TRANSACTION = 52; + private static final int METHODID_QUERY_RAND_NUM = 53; + private static final int METHODID_GET_FORK = 54; + private static final int METHODID_CREATE_NO_BALANCE_TXS = 55; + private static final int METHODID_GET_PARA_TX_BY_TITLE = 56; + private static final int METHODID_LOAD_PARA_TX_BY_TITLE = 57; + private static final int METHODID_GET_PARA_TX_BY_HEIGHT = 58; + private static final int METHODID_GET_HEADERS = 59; + + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final chain33ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(chain33ImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } - /** - *
-     *获取区块头信息
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHeaders( - cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks request) { - return futureUnaryCall( - getChannel().newCall(getGetHeadersMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_BLOCKS = 0; - private static final int METHODID_GET_LAST_HEADER = 1; - private static final int METHODID_CREATE_RAW_TRANSACTION = 2; - private static final int METHODID_CREATE_RAW_TX_GROUP = 3; - private static final int METHODID_QUERY_TRANSACTION = 4; - private static final int METHODID_SEND_TRANSACTION = 5; - private static final int METHODID_GET_TRANSACTION_BY_ADDR = 6; - private static final int METHODID_GET_TRANSACTION_BY_HASHES = 7; - private static final int METHODID_GET_MEM_POOL = 8; - private static final int METHODID_GET_ACCOUNTS = 9; - private static final int METHODID_GET_ACCOUNT = 10; - private static final int METHODID_NEW_ACCOUNT = 11; - private static final int METHODID_WALLET_TRANSACTION_LIST = 12; - private static final int METHODID_IMPORT_PRIVKEY = 13; - private static final int METHODID_SEND_TO_ADDRESS = 14; - private static final int METHODID_SET_TX_FEE = 15; - private static final int METHODID_SET_LABL = 16; - private static final int METHODID_MERGE_BALANCE = 17; - private static final int METHODID_SET_PASSWD = 18; - private static final int METHODID_LOCK = 19; - private static final int METHODID_UN_LOCK = 20; - private static final int METHODID_GET_LAST_MEM_POOL = 21; - private static final int METHODID_GET_PROPER_FEE = 22; - private static final int METHODID_GET_WALLET_STATUS = 23; - private static final int METHODID_GET_BLOCK_OVERVIEW = 24; - private static final int METHODID_GET_ADDR_OVERVIEW = 25; - private static final int METHODID_GET_BLOCK_HASH = 26; - private static final int METHODID_GEN_SEED = 27; - private static final int METHODID_GET_SEED = 28; - private static final int METHODID_SAVE_SEED = 29; - private static final int METHODID_GET_BALANCE = 30; - private static final int METHODID_QUERY_CHAIN = 31; - private static final int METHODID_EXEC_WALLET = 32; - private static final int METHODID_QUERY_CONSENSUS = 33; - private static final int METHODID_CREATE_TRANSACTION = 34; - private static final int METHODID_GET_HEX_TX_BY_HASH = 35; - private static final int METHODID_DUMP_PRIVKEY = 36; - private static final int METHODID_DUMP_PRIVKEYS_FILE = 37; - private static final int METHODID_IMPORT_PRIVKEYS_FILE = 38; - private static final int METHODID_VERSION = 39; - private static final int METHODID_IS_SYNC = 40; - private static final int METHODID_GET_PEER_INFO = 41; - private static final int METHODID_NET_INFO = 42; - private static final int METHODID_IS_NTP_CLOCK_SYNC = 43; - private static final int METHODID_GET_FATAL_FAILURE = 44; - private static final int METHODID_GET_LAST_BLOCK_SEQUENCE = 45; - private static final int METHODID_GET_SEQUENCE_BY_HASH = 46; - private static final int METHODID_GET_BLOCK_BY_HASHES = 47; - private static final int METHODID_GET_BLOCK_BY_SEQ = 48; - private static final int METHODID_CLOSE_QUEUE = 49; - private static final int METHODID_GET_ALL_EXEC_BALANCE = 50; - private static final int METHODID_SIGN_RAW_TX = 51; - private static final int METHODID_CREATE_NO_BALANCE_TRANSACTION = 52; - private static final int METHODID_QUERY_RAND_NUM = 53; - private static final int METHODID_GET_FORK = 54; - private static final int METHODID_CREATE_NO_BALANCE_TXS = 55; - private static final int METHODID_GET_PARA_TX_BY_TITLE = 56; - private static final int METHODID_LOAD_PARA_TX_BY_TITLE = 57; - private static final int METHODID_GET_PARA_TX_BY_HEIGHT = 58; - private static final int METHODID_GET_HEADERS = 59; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final chain33ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(chain33ImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_BLOCKS: + serviceImpl.getBlocks((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LAST_HEADER: + serviceImpl.getLastHeader((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RAW_TRANSACTION: + serviceImpl.createRawTransaction( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RAW_TX_GROUP: + serviceImpl.createRawTxGroup( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_TRANSACTION: + serviceImpl.queryTransaction((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEND_TRANSACTION: + serviceImpl.sendTransaction( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TRANSACTION_BY_ADDR: + serviceImpl.getTransactionByAddr( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TRANSACTION_BY_HASHES: + serviceImpl.getTransactionByHashes((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MEM_POOL: + serviceImpl.getMemPool((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACCOUNTS: + serviceImpl.getAccounts((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACCOUNT: + serviceImpl.getAccount((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_NEW_ACCOUNT: + serviceImpl.newAccount((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_WALLET_TRANSACTION_LIST: + serviceImpl.walletTransactionList( + (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_PRIVKEY: + serviceImpl.importPrivkey( + (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEND_TO_ADDRESS: + serviceImpl.sendToAddress( + (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_TX_FEE: + serviceImpl.setTxFee((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LABL: + serviceImpl.setLabl((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MERGE_BALANCE: + serviceImpl.mergeBalance( + (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_PASSWD: + serviceImpl.setPasswd((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOCK: + serviceImpl.lock((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UN_LOCK: + serviceImpl.unLock((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LAST_MEM_POOL: + serviceImpl.getLastMemPool((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PROPER_FEE: + serviceImpl.getProperFee( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WALLET_STATUS: + serviceImpl.getWalletStatus((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BLOCK_OVERVIEW: + serviceImpl.getBlockOverview((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ADDR_OVERVIEW: + serviceImpl.getAddrOverview((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BLOCK_HASH: + serviceImpl.getBlockHash((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GEN_SEED: + serviceImpl.genSeed((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SEED: + serviceImpl.getSeed((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SAVE_SEED: + serviceImpl.saveSeed((cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BALANCE: + serviceImpl.getBalance((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_CHAIN: + serviceImpl.queryChain((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXEC_WALLET: + serviceImpl.execWallet((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_CONSENSUS: + serviceImpl.queryConsensus((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TRANSACTION: + serviceImpl.createTransaction((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HEX_TX_BY_HASH: + serviceImpl.getHexTxByHash((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DUMP_PRIVKEY: + serviceImpl.dumpPrivkey((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DUMP_PRIVKEYS_FILE: + serviceImpl.dumpPrivkeysFile((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_PRIVKEYS_FILE: + serviceImpl.importPrivkeysFile( + (cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERSION: + serviceImpl.version((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IS_SYNC: + serviceImpl.isSync((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PEER_INFO: + serviceImpl.getPeerInfo((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_NET_INFO: + serviceImpl.netInfo((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IS_NTP_CLOCK_SYNC: + serviceImpl.isNtpClockSync((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FATAL_FAILURE: + serviceImpl.getFatalFailure((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LAST_BLOCK_SEQUENCE: + serviceImpl.getLastBlockSequence((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SEQUENCE_BY_HASH: + serviceImpl.getSequenceByHash((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BLOCK_BY_HASHES: + serviceImpl.getBlockByHashes((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BLOCK_BY_SEQ: + serviceImpl.getBlockBySeq((cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CLOSE_QUEUE: + serviceImpl.closeQueue((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ALL_EXEC_BALANCE: + serviceImpl.getAllExecBalance( + (cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SIGN_RAW_TX: + serviceImpl.signRawTx((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NO_BALANCE_TRANSACTION: + serviceImpl.createNoBalanceTransaction( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_RAND_NUM: + serviceImpl.queryRandNum((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FORK: + serviceImpl.getFork((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NO_BALANCE_TXS: + serviceImpl.createNoBalanceTxs( + (cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PARA_TX_BY_TITLE: + serviceImpl.getParaTxByTitle( + (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOAD_PARA_TX_BY_TITLE: + serviceImpl.loadParaTxByTitle( + (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PARA_TX_BY_HEIGHT: + serviceImpl.getParaTxByHeight( + (cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HEADERS: + serviceImpl.getHeaders((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_BLOCKS: - serviceImpl.getBlocks((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LAST_HEADER: - serviceImpl.getLastHeader((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RAW_TRANSACTION: - serviceImpl.createRawTransaction((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTx) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RAW_TX_GROUP: - serviceImpl.createRawTxGroup((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.CreateTransactionGroup) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_TRANSACTION: - serviceImpl.queryTransaction((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEND_TRANSACTION: - serviceImpl.sendTransaction((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.Transaction) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TRANSACTION_BY_ADDR: - serviceImpl.getTransactionByAddr((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TRANSACTION_BY_HASHES: - serviceImpl.getTransactionByHashes((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MEM_POOL: - serviceImpl.getMemPool((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqGetMempool) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCOUNTS: - serviceImpl.getAccounts((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCOUNT: - serviceImpl.getAccount((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqGetAccount) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_NEW_ACCOUNT: - serviceImpl.newAccount((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqNewAccount) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_WALLET_TRANSACTION_LIST: - serviceImpl.walletTransactionList((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletTransactionList) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_PRIVKEY: - serviceImpl.importPrivkey((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletImportPrivkey) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEND_TO_ADDRESS: - serviceImpl.sendToAddress((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSendToAddress) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_TX_FEE: - serviceImpl.setTxFee((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetFee) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LABL: - serviceImpl.setLabl((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetLabel) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MERGE_BALANCE: - serviceImpl.mergeBalance((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletMergeBalance) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_PASSWD: - serviceImpl.setPasswd((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqWalletSetPasswd) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LOCK: - serviceImpl.lock((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UN_LOCK: - serviceImpl.unLock((cn.chain33.javasdk.model.protobuf.WalletProtobuf.WalletUnLock) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LAST_MEM_POOL: - serviceImpl.getLastMemPool((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PROPER_FEE: - serviceImpl.getProperFee((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqProperFee) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WALLET_STATUS: - serviceImpl.getWalletStatus((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BLOCK_OVERVIEW: - serviceImpl.getBlockOverview((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ADDR_OVERVIEW: - serviceImpl.getAddrOverview((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.ReqAddr) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BLOCK_HASH: - serviceImpl.getBlockHash((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqInt) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GEN_SEED: - serviceImpl.genSeed((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GenSeedLang) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SEED: - serviceImpl.getSeed((cn.chain33.javasdk.model.protobuf.WalletProtobuf.GetSeedByPw) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SAVE_SEED: - serviceImpl.saveSeed((cn.chain33.javasdk.model.protobuf.WalletProtobuf.SaveSeedByPw) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BALANCE: - serviceImpl.getBalance((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqBalance) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_CHAIN: - serviceImpl.queryChain((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXEC_WALLET: - serviceImpl.execWallet((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_CONSENSUS: - serviceImpl.queryConsensus((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ChainExecutor) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TRANSACTION: - serviceImpl.createTransaction((cn.chain33.javasdk.model.protobuf.ExecuterProtobuf.CreateTxIn) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HEX_TX_BY_HASH: - serviceImpl.getHexTxByHash((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DUMP_PRIVKEY: - serviceImpl.dumpPrivkey((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqString) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DUMP_PRIVKEYS_FILE: - serviceImpl.dumpPrivkeysFile((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_PRIVKEYS_FILE: - serviceImpl.importPrivkeysFile((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqPrivkeysFile) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERSION: - serviceImpl.version((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IS_SYNC: - serviceImpl.isSync((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PEER_INFO: - serviceImpl.getPeerInfo((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerReq) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_NET_INFO: - serviceImpl.netInfo((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetNetInfoReq) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IS_NTP_CLOCK_SYNC: - serviceImpl.isNtpClockSync((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FATAL_FAILURE: - serviceImpl.getFatalFailure((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LAST_BLOCK_SEQUENCE: - serviceImpl.getLastBlockSequence((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SEQUENCE_BY_HASH: - serviceImpl.getSequenceByHash((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHash) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BLOCK_BY_HASHES: - serviceImpl.getBlockByHashes((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqHashes) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BLOCK_BY_SEQ: - serviceImpl.getBlockBySeq((cn.chain33.javasdk.model.protobuf.CommonProtobuf.Int64) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CLOSE_QUEUE: - serviceImpl.closeQueue((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ALL_EXEC_BALANCE: - serviceImpl.getAllExecBalance((cn.chain33.javasdk.model.protobuf.AccountProtobuf.ReqAllExecBalance) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIGN_RAW_TX: - serviceImpl.signRawTx((cn.chain33.javasdk.model.protobuf.WalletProtobuf.ReqSignRawTx) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NO_BALANCE_TRANSACTION: - serviceImpl.createNoBalanceTransaction((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTx) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_RAND_NUM: - serviceImpl.queryRandNum((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqRandHash) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FORK: - serviceImpl.getFork((cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqKey) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NO_BALANCE_TXS: - serviceImpl.createNoBalanceTxs((cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf.NoBalanceTxs) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PARA_TX_BY_TITLE: - serviceImpl.getParaTxByTitle((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByTitle) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LOAD_PARA_TX_BY_TITLE: - serviceImpl.loadParaTxByTitle((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqHeightByTitle) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PARA_TX_BY_HEIGHT: - serviceImpl.getParaTxByHeight((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqParaTxByHeight) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HEADERS: - serviceImpl.getHeaders((cn.chain33.javasdk.model.protobuf.BlockchainProtobuf.ReqBlocks) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } } - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } + private static abstract class chain33BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + chain33BaseDescriptorSupplier() { + } - private static abstract class chain33BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - chain33BaseDescriptorSupplier() {} + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return cn.chain33.javasdk.model.protobuf.GrpcService.getDescriptor(); + } - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cn.chain33.javasdk.model.protobuf.GrpcService.getDescriptor(); + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("chain33"); + } } - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("chain33"); + private static final class chain33FileDescriptorSupplier extends chain33BaseDescriptorSupplier { + chain33FileDescriptorSupplier() { + } } - } - private static final class chain33FileDescriptorSupplier - extends chain33BaseDescriptorSupplier { - chain33FileDescriptorSupplier() {} - } + private static final class chain33MethodDescriptorSupplier extends chain33BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; - private static final class chain33MethodDescriptorSupplier - extends chain33BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - chain33MethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } + chain33MethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } } - } - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (chain33Grpc.class) { - result = serviceDescriptor; + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new chain33FileDescriptorSupplier()) - .addMethod(getGetBlocksMethod()) - .addMethod(getGetLastHeaderMethod()) - .addMethod(getCreateRawTransactionMethod()) - .addMethod(getCreateRawTxGroupMethod()) - .addMethod(getQueryTransactionMethod()) - .addMethod(getSendTransactionMethod()) - .addMethod(getGetTransactionByAddrMethod()) - .addMethod(getGetTransactionByHashesMethod()) - .addMethod(getGetMemPoolMethod()) - .addMethod(getGetAccountsMethod()) - .addMethod(getGetAccountMethod()) - .addMethod(getNewAccountMethod()) - .addMethod(getWalletTransactionListMethod()) - .addMethod(getImportPrivkeyMethod()) - .addMethod(getSendToAddressMethod()) - .addMethod(getSetTxFeeMethod()) - .addMethod(getSetLablMethod()) - .addMethod(getMergeBalanceMethod()) - .addMethod(getSetPasswdMethod()) - .addMethod(getLockMethod()) - .addMethod(getUnLockMethod()) - .addMethod(getGetLastMemPoolMethod()) - .addMethod(getGetProperFeeMethod()) - .addMethod(getGetWalletStatusMethod()) - .addMethod(getGetBlockOverviewMethod()) - .addMethod(getGetAddrOverviewMethod()) - .addMethod(getGetBlockHashMethod()) - .addMethod(getGenSeedMethod()) - .addMethod(getGetSeedMethod()) - .addMethod(getSaveSeedMethod()) - .addMethod(getGetBalanceMethod()) - .addMethod(getQueryChainMethod()) - .addMethod(getExecWalletMethod()) - .addMethod(getQueryConsensusMethod()) - .addMethod(getCreateTransactionMethod()) - .addMethod(getGetHexTxByHashMethod()) - .addMethod(getDumpPrivkeyMethod()) - .addMethod(getDumpPrivkeysFileMethod()) - .addMethod(getImportPrivkeysFileMethod()) - .addMethod(getVersionMethod()) - .addMethod(getIsSyncMethod()) - .addMethod(getGetPeerInfoMethod()) - .addMethod(getNetInfoMethod()) - .addMethod(getIsNtpClockSyncMethod()) - .addMethod(getGetFatalFailureMethod()) - .addMethod(getGetLastBlockSequenceMethod()) - .addMethod(getGetSequenceByHashMethod()) - .addMethod(getGetBlockByHashesMethod()) - .addMethod(getGetBlockBySeqMethod()) - .addMethod(getCloseQueueMethod()) - .addMethod(getGetAllExecBalanceMethod()) - .addMethod(getSignRawTxMethod()) - .addMethod(getCreateNoBalanceTransactionMethod()) - .addMethod(getQueryRandNumMethod()) - .addMethod(getGetForkMethod()) - .addMethod(getCreateNoBalanceTxsMethod()) - .addMethod(getGetParaTxByTitleMethod()) - .addMethod(getLoadParaTxByTitleMethod()) - .addMethod(getGetParaTxByHeightMethod()) - .addMethod(getGetHeadersMethod()) - .build(); - } - } + synchronized (chain33Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new chain33FileDescriptorSupplier()).addMethod(getGetBlocksMethod()) + .addMethod(getGetLastHeaderMethod()).addMethod(getCreateRawTransactionMethod()) + .addMethod(getCreateRawTxGroupMethod()).addMethod(getQueryTransactionMethod()) + .addMethod(getSendTransactionMethod()).addMethod(getGetTransactionByAddrMethod()) + .addMethod(getGetTransactionByHashesMethod()).addMethod(getGetMemPoolMethod()) + .addMethod(getGetAccountsMethod()).addMethod(getGetAccountMethod()) + .addMethod(getNewAccountMethod()).addMethod(getWalletTransactionListMethod()) + .addMethod(getImportPrivkeyMethod()).addMethod(getSendToAddressMethod()) + .addMethod(getSetTxFeeMethod()).addMethod(getSetLablMethod()) + .addMethod(getMergeBalanceMethod()).addMethod(getSetPasswdMethod()) + .addMethod(getLockMethod()).addMethod(getUnLockMethod()) + .addMethod(getGetLastMemPoolMethod()).addMethod(getGetProperFeeMethod()) + .addMethod(getGetWalletStatusMethod()).addMethod(getGetBlockOverviewMethod()) + .addMethod(getGetAddrOverviewMethod()).addMethod(getGetBlockHashMethod()) + .addMethod(getGenSeedMethod()).addMethod(getGetSeedMethod()).addMethod(getSaveSeedMethod()) + .addMethod(getGetBalanceMethod()).addMethod(getQueryChainMethod()) + .addMethod(getExecWalletMethod()).addMethod(getQueryConsensusMethod()) + .addMethod(getCreateTransactionMethod()).addMethod(getGetHexTxByHashMethod()) + .addMethod(getDumpPrivkeyMethod()).addMethod(getDumpPrivkeysFileMethod()) + .addMethod(getImportPrivkeysFileMethod()).addMethod(getVersionMethod()) + .addMethod(getIsSyncMethod()).addMethod(getGetPeerInfoMethod()) + .addMethod(getNetInfoMethod()).addMethod(getIsNtpClockSyncMethod()) + .addMethod(getGetFatalFailureMethod()).addMethod(getGetLastBlockSequenceMethod()) + .addMethod(getGetSequenceByHashMethod()).addMethod(getGetBlockByHashesMethod()) + .addMethod(getGetBlockBySeqMethod()).addMethod(getCloseQueueMethod()) + .addMethod(getGetAllExecBalanceMethod()).addMethod(getSignRawTxMethod()) + .addMethod(getCreateNoBalanceTransactionMethod()).addMethod(getQueryRandNumMethod()) + .addMethod(getGetForkMethod()).addMethod(getCreateNoBalanceTxsMethod()) + .addMethod(getGetParaTxByTitleMethod()).addMethod(getLoadParaTxByTitleMethod()) + .addMethod(getGetParaTxByHeightMethod()).addMethod(getGetHeadersMethod()).build(); + } + } + } + return result; } - return result; - } } diff --git a/src/main/java/cn/chain33/javasdk/model/protobuf/p2pgserviceGrpc.java b/src/main/java/cn/chain33/javasdk/model/protobuf/p2pgserviceGrpc.java index 2213f7b..9c58a13 100644 --- a/src/main/java/cn/chain33/javasdk/model/protobuf/p2pgserviceGrpc.java +++ b/src/main/java/cn/chain33/javasdk/model/protobuf/p2pgserviceGrpc.java @@ -1,1608 +1,1402 @@ package cn.chain33.javasdk.model.protobuf; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.31.1)", - comments = "Source: p2p.proto") +@javax.annotation.Generated(value = "by gRPC proto compiler (version 1.39.0)", comments = "Source: p2p.proto") public final class p2pgserviceGrpc { - private p2pgserviceGrpc() {} + private p2pgserviceGrpc() { + } - public static final String SERVICE_NAME = "p2pgservice"; + public static final String SERVICE_NAME = "p2pgservice"; - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getBroadCastTxMethod; + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getBroadCastTxMethod; - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BroadCastTx", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBroadCastTxMethod() { - io.grpc.MethodDescriptor getBroadCastTxMethod; - if ((getBroadCastTxMethod = p2pgserviceGrpc.getBroadCastTxMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "BroadCastTx", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBroadCastTxMethod() { + io.grpc.MethodDescriptor getBroadCastTxMethod; if ((getBroadCastTxMethod = p2pgserviceGrpc.getBroadCastTxMethod) == null) { - p2pgserviceGrpc.getBroadCastTxMethod = getBroadCastTxMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BroadCastTx")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("BroadCastTx")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getBroadCastTxMethod = p2pgserviceGrpc.getBroadCastTxMethod) == null) { + p2pgserviceGrpc.getBroadCastTxMethod = getBroadCastTxMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BroadCastTx")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("BroadCastTx")).build(); + } + } + } + return getBroadCastTxMethod; } - return getBroadCastTxMethod; - } - - private static volatile io.grpc.MethodDescriptor getBroadCastBlockMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BroadCastBlock", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBroadCastBlockMethod() { - io.grpc.MethodDescriptor getBroadCastBlockMethod; - if ((getBroadCastBlockMethod = p2pgserviceGrpc.getBroadCastBlockMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getBroadCastBlockMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "BroadCastBlock", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBroadCastBlockMethod() { + io.grpc.MethodDescriptor getBroadCastBlockMethod; if ((getBroadCastBlockMethod = p2pgserviceGrpc.getBroadCastBlockMethod) == null) { - p2pgserviceGrpc.getBroadCastBlockMethod = getBroadCastBlockMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BroadCastBlock")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("BroadCastBlock")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getBroadCastBlockMethod = p2pgserviceGrpc.getBroadCastBlockMethod) == null) { + p2pgserviceGrpc.getBroadCastBlockMethod = getBroadCastBlockMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BroadCastBlock")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("BroadCastBlock")).build(); + } + } + } + return getBroadCastBlockMethod; } - return getBroadCastBlockMethod; - } - - private static volatile io.grpc.MethodDescriptor getPingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Ping", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPingMethod() { - io.grpc.MethodDescriptor getPingMethod; - if ((getPingMethod = p2pgserviceGrpc.getPingMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getPingMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "Ping", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPingMethod() { + io.grpc.MethodDescriptor getPingMethod; if ((getPingMethod = p2pgserviceGrpc.getPingMethod) == null) { - p2pgserviceGrpc.getPingMethod = getPingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Ping")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("Ping")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getPingMethod = p2pgserviceGrpc.getPingMethod) == null) { + p2pgserviceGrpc.getPingMethod = getPingMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Ping")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPong.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("Ping")).build(); + } + } + } + return getPingMethod; } - return getPingMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAddrMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAddr", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAddrMethod() { - io.grpc.MethodDescriptor getGetAddrMethod; - if ((getGetAddrMethod = p2pgserviceGrpc.getGetAddrMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetAddrMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetAddr", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAddrMethod() { + io.grpc.MethodDescriptor getGetAddrMethod; if ((getGetAddrMethod = p2pgserviceGrpc.getGetAddrMethod) == null) { - p2pgserviceGrpc.getGetAddrMethod = getGetAddrMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddr")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetAddr")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getGetAddrMethod = p2pgserviceGrpc.getGetAddrMethod) == null) { + p2pgserviceGrpc.getGetAddrMethod = getGetAddrMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddr")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetAddr")).build(); + } + } + } + return getGetAddrMethod; } - return getGetAddrMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAddrListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAddrList", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAddrListMethod() { - io.grpc.MethodDescriptor getGetAddrListMethod; - if ((getGetAddrListMethod = p2pgserviceGrpc.getGetAddrListMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetAddrListMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetAddrList", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAddrListMethod() { + io.grpc.MethodDescriptor getGetAddrListMethod; if ((getGetAddrListMethod = p2pgserviceGrpc.getGetAddrListMethod) == null) { - p2pgserviceGrpc.getGetAddrListMethod = getGetAddrListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddrList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetAddrList")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getGetAddrListMethod = p2pgserviceGrpc.getGetAddrListMethod) == null) { + p2pgserviceGrpc.getGetAddrListMethod = getGetAddrListMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddrList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetAddrList")).build(); + } + } + } + return getGetAddrListMethod; } - return getGetAddrListMethod; - } - - private static volatile io.grpc.MethodDescriptor getVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Version", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVersionMethod() { - io.grpc.MethodDescriptor getVersionMethod; - if ((getVersionMethod = p2pgserviceGrpc.getVersionMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getVersionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "Version", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVersionMethod() { + io.grpc.MethodDescriptor getVersionMethod; if ((getVersionMethod = p2pgserviceGrpc.getVersionMethod) == null) { - p2pgserviceGrpc.getVersionMethod = getVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Version")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("Version")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getVersionMethod = p2pgserviceGrpc.getVersionMethod) == null) { + p2pgserviceGrpc.getVersionMethod = getVersionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Version")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("Version")).build(); + } + } + } + return getVersionMethod; } - return getVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getVersion2Method; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Version2", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVersion2Method() { - io.grpc.MethodDescriptor getVersion2Method; - if ((getVersion2Method = p2pgserviceGrpc.getVersion2Method) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getVersion2Method; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "Version2", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVersion2Method() { + io.grpc.MethodDescriptor getVersion2Method; if ((getVersion2Method = p2pgserviceGrpc.getVersion2Method) == null) { - p2pgserviceGrpc.getVersion2Method = getVersion2Method = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Version2")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("Version2")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getVersion2Method = p2pgserviceGrpc.getVersion2Method) == null) { + p2pgserviceGrpc.getVersion2Method = getVersion2Method = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Version2")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("Version2")).build(); + } + } + } + return getVersion2Method; } - return getVersion2Method; - } - - private static volatile io.grpc.MethodDescriptor getSoftVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SoftVersion", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSoftVersionMethod() { - io.grpc.MethodDescriptor getSoftVersionMethod; - if ((getSoftVersionMethod = p2pgserviceGrpc.getSoftVersionMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getSoftVersionMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "SoftVersion", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSoftVersionMethod() { + io.grpc.MethodDescriptor getSoftVersionMethod; if ((getSoftVersionMethod = p2pgserviceGrpc.getSoftVersionMethod) == null) { - p2pgserviceGrpc.getSoftVersionMethod = getSoftVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SoftVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("SoftVersion")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getSoftVersionMethod = p2pgserviceGrpc.getSoftVersionMethod) == null) { + p2pgserviceGrpc.getSoftVersionMethod = getSoftVersionMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SoftVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("SoftVersion")).build(); + } + } + } + return getSoftVersionMethod; } - return getSoftVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBlocksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlocks", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlocksMethod() { - io.grpc.MethodDescriptor getGetBlocksMethod; - if ((getGetBlocksMethod = p2pgserviceGrpc.getGetBlocksMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetBlocksMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetBlocks", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBlocksMethod() { + io.grpc.MethodDescriptor getGetBlocksMethod; if ((getGetBlocksMethod = p2pgserviceGrpc.getGetBlocksMethod) == null) { - p2pgserviceGrpc.getGetBlocksMethod = getGetBlocksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlocks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetBlocks")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getGetBlocksMethod = p2pgserviceGrpc.getGetBlocksMethod) == null) { + p2pgserviceGrpc.getGetBlocksMethod = getGetBlocksMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlocks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetBlocks")).build(); + } + } + } + return getGetBlocksMethod; } - return getGetBlocksMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMemPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMemPool", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMemPoolMethod() { - io.grpc.MethodDescriptor getGetMemPoolMethod; - if ((getGetMemPoolMethod = p2pgserviceGrpc.getGetMemPoolMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetMemPoolMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetMemPool", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMemPoolMethod() { + io.grpc.MethodDescriptor getGetMemPoolMethod; if ((getGetMemPoolMethod = p2pgserviceGrpc.getGetMemPoolMethod) == null) { - p2pgserviceGrpc.getGetMemPoolMethod = getGetMemPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMemPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetMemPool")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getGetMemPoolMethod = p2pgserviceGrpc.getGetMemPoolMethod) == null) { + p2pgserviceGrpc.getGetMemPoolMethod = getGetMemPoolMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMemPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PInv.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetMemPool")).build(); + } + } + } + return getGetMemPoolMethod; } - return getGetMemPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetData", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getGetDataMethod() { - io.grpc.MethodDescriptor getGetDataMethod; - if ((getGetDataMethod = p2pgserviceGrpc.getGetDataMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetDataMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetData", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getGetDataMethod() { + io.grpc.MethodDescriptor getGetDataMethod; if ((getGetDataMethod = p2pgserviceGrpc.getGetDataMethod) == null) { - p2pgserviceGrpc.getGetDataMethod = getGetDataMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetData")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetData")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getGetDataMethod = p2pgserviceGrpc.getGetDataMethod) == null) { + p2pgserviceGrpc.getGetDataMethod = getGetDataMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.InvDatas.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetData")).build(); + } + } + } + return getGetDataMethod; } - return getGetDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHeadersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHeaders", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHeadersMethod() { - io.grpc.MethodDescriptor getGetHeadersMethod; - if ((getGetHeadersMethod = p2pgserviceGrpc.getGetHeadersMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetHeadersMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetHeaders", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHeadersMethod() { + io.grpc.MethodDescriptor getGetHeadersMethod; if ((getGetHeadersMethod = p2pgserviceGrpc.getGetHeadersMethod) == null) { - p2pgserviceGrpc.getGetHeadersMethod = getGetHeadersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHeaders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetHeaders")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getGetHeadersMethod = p2pgserviceGrpc.getGetHeadersMethod) == null) { + p2pgserviceGrpc.getGetHeadersMethod = getGetHeadersMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHeaders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetHeaders")).build(); + } + } + } + return getGetHeadersMethod; } - return getGetHeadersMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPeerInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPeerInfo", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPeerInfoMethod() { - io.grpc.MethodDescriptor getGetPeerInfoMethod; - if ((getGetPeerInfoMethod = p2pgserviceGrpc.getGetPeerInfoMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getGetPeerInfoMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "GetPeerInfo", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPeerInfoMethod() { + io.grpc.MethodDescriptor getGetPeerInfoMethod; if ((getGetPeerInfoMethod = p2pgserviceGrpc.getGetPeerInfoMethod) == null) { - p2pgserviceGrpc.getGetPeerInfoMethod = getGetPeerInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPeerInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetPeerInfo")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getGetPeerInfoMethod = p2pgserviceGrpc.getGetPeerInfoMethod) == null) { + p2pgserviceGrpc.getGetPeerInfoMethod = getGetPeerInfoMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPeerInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("GetPeerInfo")).build(); + } + } + } + return getGetPeerInfoMethod; } - return getGetPeerInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getServerStreamReadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ServerStreamRead", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, - responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, - methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) - public static io.grpc.MethodDescriptor getServerStreamReadMethod() { - io.grpc.MethodDescriptor getServerStreamReadMethod; - if ((getServerStreamReadMethod = p2pgserviceGrpc.getServerStreamReadMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getServerStreamReadMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "ServerStreamRead", requestType = cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, responseType = cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + public static io.grpc.MethodDescriptor getServerStreamReadMethod() { + io.grpc.MethodDescriptor getServerStreamReadMethod; if ((getServerStreamReadMethod = p2pgserviceGrpc.getServerStreamReadMethod) == null) { - p2pgserviceGrpc.getServerStreamReadMethod = getServerStreamReadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ServerStreamRead")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("ServerStreamRead")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getServerStreamReadMethod = p2pgserviceGrpc.getServerStreamReadMethod) == null) { + p2pgserviceGrpc.getServerStreamReadMethod = getServerStreamReadMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ServerStreamRead")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("ServerStreamRead")).build(); + } + } + } + return getServerStreamReadMethod; } - return getServerStreamReadMethod; - } - - private static volatile io.grpc.MethodDescriptor getServerStreamSendMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ServerStreamSend", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getServerStreamSendMethod() { - io.grpc.MethodDescriptor getServerStreamSendMethod; - if ((getServerStreamSendMethod = p2pgserviceGrpc.getServerStreamSendMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getServerStreamSendMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "ServerStreamSend", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getServerStreamSendMethod() { + io.grpc.MethodDescriptor getServerStreamSendMethod; if ((getServerStreamSendMethod = p2pgserviceGrpc.getServerStreamSendMethod) == null) { - p2pgserviceGrpc.getServerStreamSendMethod = getServerStreamSendMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ServerStreamSend")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("ServerStreamSend")) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + if ((getServerStreamSendMethod = p2pgserviceGrpc.getServerStreamSendMethod) == null) { + p2pgserviceGrpc.getServerStreamSendMethod = getServerStreamSendMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ServerStreamSend")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("ServerStreamSend")).build(); + } + } + } + return getServerStreamSendMethod; } - return getServerStreamSendMethod; - } - - private static volatile io.grpc.MethodDescriptor getCollectInPeersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CollectInPeers", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCollectInPeersMethod() { - io.grpc.MethodDescriptor getCollectInPeersMethod; - if ((getCollectInPeersMethod = p2pgserviceGrpc.getCollectInPeersMethod) == null) { - synchronized (p2pgserviceGrpc.class) { + + private static volatile io.grpc.MethodDescriptor getCollectInPeersMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CollectInPeers", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.PeerList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCollectInPeersMethod() { + io.grpc.MethodDescriptor getCollectInPeersMethod; if ((getCollectInPeersMethod = p2pgserviceGrpc.getCollectInPeersMethod) == null) { - p2pgserviceGrpc.getCollectInPeersMethod = getCollectInPeersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectInPeers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("CollectInPeers")) - .build(); - } - } - } - return getCollectInPeersMethod; - } - - private static volatile io.grpc.MethodDescriptor getCollectInPeers2Method; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CollectInPeers2", - requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, - responseType = cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCollectInPeers2Method() { - io.grpc.MethodDescriptor getCollectInPeers2Method; - if ((getCollectInPeers2Method = p2pgserviceGrpc.getCollectInPeers2Method) == null) { - synchronized (p2pgserviceGrpc.class) { - if ((getCollectInPeers2Method = p2pgserviceGrpc.getCollectInPeers2Method) == null) { - p2pgserviceGrpc.getCollectInPeers2Method = getCollectInPeers2Method = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectInPeers2")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.getDefaultInstance())) - .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("CollectInPeers2")) - .build(); - } - } - } - return getCollectInPeers2Method; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static p2pgserviceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public p2pgserviceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new p2pgserviceStub(channel, callOptions); - } - }; - return p2pgserviceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static p2pgserviceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public p2pgserviceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new p2pgserviceBlockingStub(channel, callOptions); - } - }; - return p2pgserviceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static p2pgserviceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public p2pgserviceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new p2pgserviceFutureStub(channel, callOptions); + synchronized (p2pgserviceGrpc.class) { + if ((getCollectInPeersMethod = p2pgserviceGrpc.getCollectInPeersMethod) == null) { + p2pgserviceGrpc.getCollectInPeersMethod = getCollectInPeersMethod = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectInPeers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.PeerList.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("CollectInPeers")).build(); + } + } } - }; - return p2pgserviceFutureStub.newStub(factory, channel); - } + return getCollectInPeersMethod; + } - /** - */ - public static abstract class p2pgserviceImplBase implements io.grpc.BindableService { + private static volatile io.grpc.MethodDescriptor getCollectInPeers2Method; - /** - *
-     *广播交易
-     * 
- */ - public void broadCastTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBroadCastTxMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + + "CollectInPeers2", requestType = cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.class, responseType = cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCollectInPeers2Method() { + io.grpc.MethodDescriptor getCollectInPeers2Method; + if ((getCollectInPeers2Method = p2pgserviceGrpc.getCollectInPeers2Method) == null) { + synchronized (p2pgserviceGrpc.class) { + if ((getCollectInPeers2Method = p2pgserviceGrpc.getCollectInPeers2Method) == null) { + p2pgserviceGrpc.getCollectInPeers2Method = getCollectInPeers2Method = io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectInPeers2")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + cn.chain33.javasdk.model.protobuf.P2pService.PeersReply.getDefaultInstance())) + .setSchemaDescriptor(new p2pgserviceMethodDescriptorSupplier("CollectInPeers2")).build(); + } + } + } + return getCollectInPeers2Method; } /** - *
-     *广播区块
-     * 
+ * Creates a new async stub that supports all call types for the service */ - public void broadCastBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBroadCastBlockMethod(), responseObserver); + public static p2pgserviceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public p2pgserviceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new p2pgserviceStub(channel, callOptions); + } + }; + return p2pgserviceStub.newStub(factory, channel); } /** - *
-     * PING
-     * 
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public void ping(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPingMethod(), responseObserver); + public static p2pgserviceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public p2pgserviceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new p2pgserviceBlockingStub(channel, callOptions); + } + }; + return p2pgserviceBlockingStub.newStub(factory, channel); } /** - *
-     *获取地址
-     * 
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public void getAddr(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAddrMethod(), responseObserver); + public static p2pgserviceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public p2pgserviceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new p2pgserviceFutureStub(channel, callOptions); + } + }; + return p2pgserviceFutureStub.newStub(factory, channel); } /** */ - public void getAddrList(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAddrListMethod(), responseObserver); - } + public static abstract class p2pgserviceImplBase implements io.grpc.BindableService { - /** - *
-     *版本
-     * 
- */ - public void version(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVersionMethod(), responseObserver); - } + /** + *
+         * 广播交易
+         * 
+ */ + public void broadCastTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBroadCastTxMethod(), responseObserver); + } - /** - *
-     *获取p2p协议的版本号
-     * 
- */ - public void version2(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getVersion2Method(), responseObserver); - } + /** + *
+         * 广播区块
+         * 
+ */ + public void broadCastBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBroadCastBlockMethod(), responseObserver); + } - /** - *
-     *获取软件的版本号
-     * 
- */ - public void softVersion(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSoftVersionMethod(), responseObserver); - } + /** + *
+         * PING
+         * 
+ */ + public void ping(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPingMethod(), responseObserver); + } - /** - *
-     *获取区块,最高200
-     * 
- */ - public void getBlocks(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBlocksMethod(), responseObserver); - } + /** + *
+         * 获取地址
+         * 
+ */ + public void getAddr(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAddrMethod(), responseObserver); + } - /** - *
-     *获取mempool
-     * 
- */ - public void getMemPool(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetMemPoolMethod(), responseObserver); - } + /** + */ + public void getAddrList(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAddrListMethod(), responseObserver); + } - /** - *
-     *获取数据
-     * 
- */ - public void getData(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDataMethod(), responseObserver); - } + /** + *
+         * 版本
+         * 
+ */ + public void version(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVersionMethod(), responseObserver); + } - /** - *
-     *获取头部
-     * 
- */ - public void getHeaders(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetHeadersMethod(), responseObserver); - } + /** + *
+         * 获取p2p协议的版本号
+         * 
+ */ + public void version2(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVersion2Method(), responseObserver); + } - /** - *
-     *获取 peerinfo
-     * 
- */ - public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetPeerInfoMethod(), responseObserver); - } + /** + *
+         * 获取软件的版本号
+         * 
+ */ + public void softVersion(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSoftVersionMethod(), responseObserver); + } - /** - *
-     * grpc server 读客户端发送来的数据
-     * 
- */ - public io.grpc.stub.StreamObserver serverStreamRead( - io.grpc.stub.StreamObserver responseObserver) { - return asyncUnimplementedStreamingCall(getServerStreamReadMethod(), responseObserver); - } + /** + *
+         *获取区块,最高200
+         * 
+ */ + public void getBlocks(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlocksMethod(), responseObserver); + } - /** - *
-     * grpc server 发送数据给客户端
-     * 
- */ - public void serverStreamSend(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getServerStreamSendMethod(), responseObserver); - } + /** + *
+         * 获取mempool
+         * 
+ */ + public void getMemPool(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMemPoolMethod(), responseObserver); + } - /** - *
-     * grpc 收集inpeers
-     * 
- */ - public void collectInPeers(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCollectInPeersMethod(), responseObserver); - } + /** + *
+         * 获取数据
+         * 
+ */ + public void getData(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataMethod(), responseObserver); + } - /** - */ - public void collectInPeers2(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCollectInPeers2Method(), responseObserver); - } + /** + *
+         * 获取头部
+         * 
+ */ + public void getHeaders(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHeadersMethod(), responseObserver); + } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getBroadCastTxMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_BROAD_CAST_TX))) - .addMethod( - getBroadCastBlockMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_BROAD_CAST_BLOCK))) - .addMethod( - getPingMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, - cn.chain33.javasdk.model.protobuf.P2pService.P2PPong>( - this, METHODID_PING))) - .addMethod( - getGetAddrMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr, - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr>( - this, METHODID_GET_ADDR))) - .addMethod( - getGetAddrListMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr, - cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList>( - this, METHODID_GET_ADDR_LIST))) - .addMethod( - getVersionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion, - cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck>( - this, METHODID_VERSION))) - .addMethod( - getVersion2Method(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion, - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion>( - this, METHODID_VERSION2))) - .addMethod( - getSoftVersionMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply>( - this, METHODID_SOFT_VERSION))) - .addMethod( - getGetBlocksMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks, - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv>( - this, METHODID_GET_BLOCKS))) - .addMethod( - getGetMemPoolMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool, - cn.chain33.javasdk.model.protobuf.P2pService.P2PInv>( - this, METHODID_GET_MEM_POOL))) - .addMethod( - getGetDataMethod(), - asyncServerStreamingCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData, - cn.chain33.javasdk.model.protobuf.P2pService.InvDatas>( - this, METHODID_GET_DATA))) - .addMethod( - getGetHeadersMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders, - cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders>( - this, METHODID_GET_HEADERS))) - .addMethod( - getGetPeerInfoMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo, - cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo>( - this, METHODID_GET_PEER_INFO))) - .addMethod( - getServerStreamReadMethod(), - asyncClientStreamingCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData, - cn.chain33.javasdk.model.protobuf.CommonProtobuf.ReqNil>( - this, METHODID_SERVER_STREAM_READ))) - .addMethod( - getServerStreamSendMethod(), - asyncServerStreamingCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, - cn.chain33.javasdk.model.protobuf.P2pService.BroadCastData>( - this, METHODID_SERVER_STREAM_SEND))) - .addMethod( - getCollectInPeersMethod(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, - cn.chain33.javasdk.model.protobuf.P2pService.PeerList>( - this, METHODID_COLLECT_IN_PEERS))) - .addMethod( - getCollectInPeers2Method(), - asyncUnaryCall( - new MethodHandlers< - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing, - cn.chain33.javasdk.model.protobuf.P2pService.PeersReply>( - this, METHODID_COLLECT_IN_PEERS2))) - .build(); - } - } - - /** - */ - public static final class p2pgserviceStub extends io.grpc.stub.AbstractAsyncStub { - private p2pgserviceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + *
+         *获取 peerinfo
+         * 
+ */ + public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPeerInfoMethod(), responseObserver); + } - @java.lang.Override - protected p2pgserviceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new p2pgserviceStub(channel, callOptions); - } + /** + *
+         * grpc server 读客户端发送来的数据
+         * 
+ */ + public io.grpc.stub.StreamObserver serverStreamRead( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getServerStreamReadMethod(), + responseObserver); + } - /** - *
-     *广播交易
-     * 
- */ - public void broadCastTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getBroadCastTxMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * grpc server 发送数据给客户端
+         * 
+ */ + public void serverStreamSend(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getServerStreamSendMethod(), responseObserver); + } - /** - *
-     *广播区块
-     * 
- */ - public void broadCastBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getBroadCastBlockMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * grpc 收集inpeers
+         * 
+ */ + public void collectInPeers(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectInPeersMethod(), responseObserver); + } - /** - *
-     * PING
-     * 
- */ - public void ping(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPingMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void collectInPeers2(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectInPeers2Method(), responseObserver); + } - /** - *
-     *获取地址
-     * 
- */ - public void getAddr(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAddrMethod(), getCallOptions()), request, responseObserver); + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod(getBroadCastTxMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_BROAD_CAST_TX))) + .addMethod(getBroadCastBlockMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_BROAD_CAST_BLOCK))) + .addMethod(getPingMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_PING))) + .addMethod(getGetAddrMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_ADDR))) + .addMethod(getGetAddrListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_ADDR_LIST))) + .addMethod(getVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_VERSION))) + .addMethod(getVersion2Method(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_VERSION2))) + .addMethod(getSoftVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_SOFT_VERSION))) + .addMethod(getGetBlocksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_BLOCKS))) + .addMethod(getGetMemPoolMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_MEM_POOL))) + .addMethod(getGetDataMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers( + this, METHODID_GET_DATA))) + .addMethod(getGetHeadersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_HEADERS))) + .addMethod(getGetPeerInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_PEER_INFO))) + .addMethod(getServerStreamReadMethod(), io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers( + this, METHODID_SERVER_STREAM_READ))) + .addMethod(getServerStreamSendMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers( + this, METHODID_SERVER_STREAM_SEND))) + .addMethod(getCollectInPeersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_COLLECT_IN_PEERS))) + .addMethod(getCollectInPeers2Method(), io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_COLLECT_IN_PEERS2))) + .build(); + } } /** */ - public void getAddrList(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAddrListMethod(), getCallOptions()), request, responseObserver); - } + public static final class p2pgserviceStub extends io.grpc.stub.AbstractAsyncStub { + private p2pgserviceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - /** - *
-     *版本
-     * 
- */ - public void version(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVersionMethod(), getCallOptions()), request, responseObserver); - } + @java.lang.Override + protected p2pgserviceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new p2pgserviceStub(channel, callOptions); + } - /** - *
-     *获取p2p协议的版本号
-     * 
- */ - public void version2(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getVersion2Method(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 广播交易
+         * 
+ */ + public void broadCastTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getBroadCastTxMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取软件的版本号
-     * 
- */ - public void softVersion(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSoftVersionMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 广播区块
+         * 
+ */ + public void broadCastBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getBroadCastBlockMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取区块,最高200
-     * 
- */ - public void getBlocks(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * PING
+         * 
+ */ + public void ping(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getPingMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     *获取mempool
-     * 
- */ - public void getMemPool(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取地址
+         * 
+ */ + public void getAddr(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetAddrMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     *获取数据
-     * 
- */ - public void getData(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData request, - io.grpc.stub.StreamObserver responseObserver) { - asyncServerStreamingCall( - getChannel().newCall(getGetDataMethod(), getCallOptions()), request, responseObserver); - } + /** + */ + public void getAddrList(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetAddrListMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *获取头部
-     * 
- */ - public void getHeaders(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetHeadersMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 版本
+         * 
+ */ + public void version(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getVersionMethod(), getCallOptions()), request, + responseObserver); + } - /** - *
-     *获取 peerinfo
-     * 
- */ - public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取p2p协议的版本号
+         * 
+ */ + public void version2(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getVersion2Method(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * grpc server 读客户端发送来的数据
-     * 
- */ - public io.grpc.stub.StreamObserver serverStreamRead( - io.grpc.stub.StreamObserver responseObserver) { - return asyncClientStreamingCall( - getChannel().newCall(getServerStreamReadMethod(), getCallOptions()), responseObserver); - } + /** + *
+         * 获取软件的版本号
+         * 
+ */ + public void softVersion(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSoftVersionMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * grpc server 发送数据给客户端
-     * 
- */ - public void serverStreamSend(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncServerStreamingCall( - getChannel().newCall(getServerStreamSendMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         *获取区块,最高200
+         * 
+ */ + public void getBlocks(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetBlocksMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     * grpc 收集inpeers
-     * 
- */ - public void collectInPeers(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCollectInPeersMethod(), getCallOptions()), request, responseObserver); - } + /** + *
+         * 获取mempool
+         * 
+ */ + public void getMemPool(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), + request, responseObserver); + } - /** - */ - public void collectInPeers2(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCollectInPeers2Method(), getCallOptions()), request, responseObserver); - } - } - - /** - */ - public static final class p2pgserviceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private p2pgserviceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + *
+         * 获取数据
+         * 
+ */ + public void getData(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getGetDataMethod(), getCallOptions()), request, responseObserver); + } - @java.lang.Override - protected p2pgserviceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new p2pgserviceBlockingStub(channel, callOptions); - } + /** + *
+         * 获取头部
+         * 
+ */ + public void getHeaders(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetHeadersMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *广播交易
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply broadCastTx(cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request) { - return blockingUnaryCall( - getChannel(), getBroadCastTxMethod(), getCallOptions(), request); - } + /** + *
+         *获取 peerinfo
+         * 
+ */ + public void getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), + request, responseObserver); + } - /** - *
-     *广播区块
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply broadCastBlock(cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request) { - return blockingUnaryCall( - getChannel(), getBroadCastBlockMethod(), getCallOptions(), request); - } + /** + *
+         * grpc server 读客户端发送来的数据
+         * 
+ */ + public io.grpc.stub.StreamObserver serverStreamRead( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncClientStreamingCall( + getChannel().newCall(getServerStreamReadMethod(), getCallOptions()), responseObserver); + } - /** - *
-     * PING
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong ping(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return blockingUnaryCall( - getChannel(), getPingMethod(), getCallOptions(), request); - } + /** + *
+         * grpc server 发送数据给客户端
+         * 
+ */ + public void serverStreamSend(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getServerStreamSendMethod(), getCallOptions()), request, responseObserver); + } - /** - *
-     *获取地址
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getAddr(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { - return blockingUnaryCall( - getChannel(), getGetAddrMethod(), getCallOptions(), request); - } + /** + *
+         * grpc 收集inpeers
+         * 
+ */ + public void collectInPeers(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getCollectInPeersMethod(), getCallOptions()), + request, responseObserver); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getAddrList(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { - return blockingUnaryCall( - getChannel(), getGetAddrListMethod(), getCallOptions(), request); + /** + */ + public void collectInPeers2(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getCollectInPeers2Method(), getCallOptions()), + request, responseObserver); + } } /** - *
-     *版本
-     * 
*/ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck version(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { - return blockingUnaryCall( - getChannel(), getVersionMethod(), getCallOptions(), request); - } + public static final class p2pgserviceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private p2pgserviceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - /** - *
-     *获取p2p协议的版本号
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion version2(cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { - return blockingUnaryCall( - getChannel(), getVersion2Method(), getCallOptions(), request); - } + @java.lang.Override + protected p2pgserviceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new p2pgserviceBlockingStub(channel, callOptions); + } - /** - *
-     *获取软件的版本号
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply softVersion(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return blockingUnaryCall( - getChannel(), getSoftVersionMethod(), getCallOptions(), request); - } + /** + *
+         * 广播交易
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply broadCastTx( + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getBroadCastTxMethod(), getCallOptions(), + request); + } - /** - *
-     *获取区块,最高200
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getBlocks(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request) { - return blockingUnaryCall( - getChannel(), getGetBlocksMethod(), getCallOptions(), request); - } + /** + *
+         * 广播区块
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply broadCastBlock( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getBroadCastBlockMethod(), getCallOptions(), + request); + } - /** - *
-     *获取mempool
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getMemPool(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request) { - return blockingUnaryCall( - getChannel(), getGetMemPoolMethod(), getCallOptions(), request); - } + /** + *
+         * PING
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPong ping( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getPingMethod(), getCallOptions(), request); + } - /** - *
-     *获取数据
-     * 
- */ - public java.util.Iterator getData( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData request) { - return blockingServerStreamingCall( - getChannel(), getGetDataMethod(), getCallOptions(), request); - } + /** + *
+         * 获取地址
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddr getAddr( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetAddrMethod(), getCallOptions(), + request); + } - /** - *
-     *获取头部
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getHeaders(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request) { - return blockingUnaryCall( - getChannel(), getGetHeadersMethod(), getCallOptions(), request); - } + /** + */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PAddrList getAddrList( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetAddrListMethod(), getCallOptions(), + request); + } - /** - *
-     *获取 peerinfo
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerInfo(cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request) { - return blockingUnaryCall( - getChannel(), getGetPeerInfoMethod(), getCallOptions(), request); - } + /** + *
+         * 版本
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVerAck version( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getVersionMethod(), getCallOptions(), + request); + } - /** - *
-     * grpc server 发送数据给客户端
-     * 
- */ - public java.util.Iterator serverStreamSend( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return blockingServerStreamingCall( - getChannel(), getServerStreamSendMethod(), getCallOptions(), request); - } + /** + *
+         * 获取p2p协议的版本号
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion version2( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getVersion2Method(), getCallOptions(), + request); + } - /** - *
-     * grpc 收集inpeers
-     * 
- */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeerList collectInPeers(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return blockingUnaryCall( - getChannel(), getCollectInPeersMethod(), getCallOptions(), request); - } + /** + *
+         * 获取软件的版本号
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.CommonProtobuf.Reply softVersion( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSoftVersionMethod(), getCallOptions(), + request); + } - /** - */ - public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply collectInPeers2(cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return blockingUnaryCall( - getChannel(), getCollectInPeers2Method(), getCallOptions(), request); - } - } - - /** - */ - public static final class p2pgserviceFutureStub extends io.grpc.stub.AbstractFutureStub { - private p2pgserviceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + *
+         *获取区块,最高200
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getBlocks( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetBlocksMethod(), getCallOptions(), + request); + } - @java.lang.Override - protected p2pgserviceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new p2pgserviceFutureStub(channel, callOptions); - } + /** + *
+         * 获取mempool
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PInv getMemPool( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetMemPoolMethod(), getCallOptions(), + request); + } - /** - *
-     *广播交易
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture broadCastTx( - cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request) { - return futureUnaryCall( - getChannel().newCall(getBroadCastTxMethod(), getCallOptions()), request); - } + /** + *
+         * 获取数据
+         * 
+ */ + public java.util.Iterator getData( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall(getChannel(), getGetDataMethod(), + getCallOptions(), request); + } - /** - *
-     *广播区块
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture broadCastBlock( - cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request) { - return futureUnaryCall( - getChannel().newCall(getBroadCastBlockMethod(), getCallOptions()), request); - } + /** + *
+         * 获取头部
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PHeaders getHeaders( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetHeadersMethod(), getCallOptions(), + request); + } - /** - *
-     * PING
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture ping( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return futureUnaryCall( - getChannel().newCall(getPingMethod(), getCallOptions()), request); - } + /** + *
+         *获取 peerinfo
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.P2PPeerInfo getPeerInfo( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetPeerInfoMethod(), getCallOptions(), + request); + } - /** - *
-     *获取地址
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAddr( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { - return futureUnaryCall( - getChannel().newCall(getGetAddrMethod(), getCallOptions()), request); - } + /** + *
+         * grpc server 发送数据给客户端
+         * 
+ */ + public java.util.Iterator serverStreamSend( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall(getChannel(), getServerStreamSendMethod(), + getCallOptions(), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture getAddrList( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { - return futureUnaryCall( - getChannel().newCall(getGetAddrListMethod(), getCallOptions()), request); - } + /** + *
+         * grpc 收集inpeers
+         * 
+ */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeerList collectInPeers( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCollectInPeersMethod(), getCallOptions(), + request); + } - /** - *
-     *版本
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture version( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { - return futureUnaryCall( - getChannel().newCall(getVersionMethod(), getCallOptions()), request); + /** + */ + public cn.chain33.javasdk.model.protobuf.P2pService.PeersReply collectInPeers2( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getCollectInPeers2Method(), + getCallOptions(), request); + } } /** - *
-     *获取p2p协议的版本号
-     * 
*/ - public com.google.common.util.concurrent.ListenableFuture version2( - cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { - return futureUnaryCall( - getChannel().newCall(getVersion2Method(), getCallOptions()), request); - } + public static final class p2pgserviceFutureStub extends io.grpc.stub.AbstractFutureStub { + private p2pgserviceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - /** - *
-     *获取软件的版本号
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture softVersion( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return futureUnaryCall( - getChannel().newCall(getSoftVersionMethod(), getCallOptions()), request); - } + @java.lang.Override + protected p2pgserviceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new p2pgserviceFutureStub(channel, callOptions); + } - /** - *
-     *获取区块,最高200
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBlocks( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request) { - return futureUnaryCall( - getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request); - } + /** + *
+         * 广播交易
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture broadCastTx( + cn.chain33.javasdk.model.protobuf.P2pService.P2PTx request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getBroadCastTxMethod(), getCallOptions()), request); + } - /** - *
-     *获取mempool
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMemPool( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request) { - return futureUnaryCall( - getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), request); - } + /** + *
+         * 广播区块
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture broadCastBlock( + cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getBroadCastBlockMethod(), getCallOptions()), request); + } - /** - *
-     *获取头部
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHeaders( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request) { - return futureUnaryCall( - getChannel().newCall(getGetHeadersMethod(), getCallOptions()), request); - } + /** + *
+         * PING
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture ping( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getPingMethod(), getCallOptions()), + request); + } - /** - *
-     *获取 peerinfo
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPeerInfo( - cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request) { - return futureUnaryCall( - getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), request); - } + /** + *
+         * 获取地址
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAddr( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGetAddrMethod(), getCallOptions()), + request); + } - /** - *
-     * grpc 收集inpeers
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture collectInPeers( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return futureUnaryCall( - getChannel().newCall(getCollectInPeersMethod(), getCallOptions()), request); - } + /** + */ + public com.google.common.util.concurrent.ListenableFuture getAddrList( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetAddrListMethod(), getCallOptions()), request); + } - /** - */ - public com.google.common.util.concurrent.ListenableFuture collectInPeers2( - cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { - return futureUnaryCall( - getChannel().newCall(getCollectInPeers2Method(), getCallOptions()), request); - } - } - - private static final int METHODID_BROAD_CAST_TX = 0; - private static final int METHODID_BROAD_CAST_BLOCK = 1; - private static final int METHODID_PING = 2; - private static final int METHODID_GET_ADDR = 3; - private static final int METHODID_GET_ADDR_LIST = 4; - private static final int METHODID_VERSION = 5; - private static final int METHODID_VERSION2 = 6; - private static final int METHODID_SOFT_VERSION = 7; - private static final int METHODID_GET_BLOCKS = 8; - private static final int METHODID_GET_MEM_POOL = 9; - private static final int METHODID_GET_DATA = 10; - private static final int METHODID_GET_HEADERS = 11; - private static final int METHODID_GET_PEER_INFO = 12; - private static final int METHODID_SERVER_STREAM_SEND = 13; - private static final int METHODID_COLLECT_IN_PEERS = 14; - private static final int METHODID_COLLECT_IN_PEERS2 = 15; - private static final int METHODID_SERVER_STREAM_READ = 16; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final p2pgserviceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(p2pgserviceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } + /** + *
+         * 版本
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture version( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getVersionMethod(), getCallOptions()), + request); + } - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_BROAD_CAST_TX: - serviceImpl.broadCastTx((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BROAD_CAST_BLOCK: - serviceImpl.broadCastBlock((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PING: - serviceImpl.ping((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ADDR: - serviceImpl.getAddr((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ADDR_LIST: - serviceImpl.getAddrList((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERSION: - serviceImpl.version((cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERSION2: - serviceImpl.version2((cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SOFT_VERSION: - serviceImpl.softVersion((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BLOCKS: - serviceImpl.getBlocks((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MEM_POOL: - serviceImpl.getMemPool((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA: - serviceImpl.getData((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HEADERS: - serviceImpl.getHeaders((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PEER_INFO: - serviceImpl.getPeerInfo((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SERVER_STREAM_SEND: - serviceImpl.serverStreamSend((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COLLECT_IN_PEERS: - serviceImpl.collectInPeers((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COLLECT_IN_PEERS2: - serviceImpl.collectInPeers2((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } + /** + *
+         * 获取p2p协议的版本号
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture version2( + cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getVersion2Method(), getCallOptions()), + request); + } - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SERVER_STREAM_READ: - return (io.grpc.stub.StreamObserver) serviceImpl.serverStreamRead( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } + /** + *
+         * 获取软件的版本号
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture softVersion( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getSoftVersionMethod(), getCallOptions()), request); + } - private static abstract class p2pgserviceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - p2pgserviceBaseDescriptorSupplier() {} + /** + *
+         *获取区块,最高200
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBlocks( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request); + } + + /** + *
+         * 获取mempool
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMemPool( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetMemPoolMethod(), getCallOptions()), request); + } + + /** + *
+         * 获取头部
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHeaders( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetHeadersMethod(), getCallOptions()), request); + } - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return cn.chain33.javasdk.model.protobuf.P2pService.getDescriptor(); + /** + *
+         *获取 peerinfo
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPeerInfo( + cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getGetPeerInfoMethod(), getCallOptions()), request); + } + + /** + *
+         * grpc 收集inpeers
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture collectInPeers( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getCollectInPeersMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture collectInPeers2( + cn.chain33.javasdk.model.protobuf.P2pService.P2PPing request) { + return io.grpc.stub.ClientCalls + .futureUnaryCall(getChannel().newCall(getCollectInPeers2Method(), getCallOptions()), request); + } } - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("p2pgservice"); + private static final int METHODID_BROAD_CAST_TX = 0; + private static final int METHODID_BROAD_CAST_BLOCK = 1; + private static final int METHODID_PING = 2; + private static final int METHODID_GET_ADDR = 3; + private static final int METHODID_GET_ADDR_LIST = 4; + private static final int METHODID_VERSION = 5; + private static final int METHODID_VERSION2 = 6; + private static final int METHODID_SOFT_VERSION = 7; + private static final int METHODID_GET_BLOCKS = 8; + private static final int METHODID_GET_MEM_POOL = 9; + private static final int METHODID_GET_DATA = 10; + private static final int METHODID_GET_HEADERS = 11; + private static final int METHODID_GET_PEER_INFO = 12; + private static final int METHODID_SERVER_STREAM_SEND = 13; + private static final int METHODID_COLLECT_IN_PEERS = 14; + private static final int METHODID_COLLECT_IN_PEERS2 = 15; + private static final int METHODID_SERVER_STREAM_READ = 16; + + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final p2pgserviceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(p2pgserviceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_BROAD_CAST_TX: + serviceImpl.broadCastTx((cn.chain33.javasdk.model.protobuf.P2pService.P2PTx) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BROAD_CAST_BLOCK: + serviceImpl.broadCastBlock((cn.chain33.javasdk.model.protobuf.P2pService.P2PBlock) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PING: + serviceImpl.ping((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ADDR: + serviceImpl.getAddr((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ADDR_LIST: + serviceImpl.getAddrList((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetAddr) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERSION: + serviceImpl.version((cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERSION2: + serviceImpl.version2((cn.chain33.javasdk.model.protobuf.P2pService.P2PVersion) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SOFT_VERSION: + serviceImpl.softVersion((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BLOCKS: + serviceImpl.getBlocks((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetBlocks) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MEM_POOL: + serviceImpl.getMemPool((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetMempool) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATA: + serviceImpl.getData((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetData) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HEADERS: + serviceImpl.getHeaders((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetHeaders) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PEER_INFO: + serviceImpl.getPeerInfo((cn.chain33.javasdk.model.protobuf.P2pService.P2PGetPeerInfo) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SERVER_STREAM_SEND: + serviceImpl.serverStreamSend((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COLLECT_IN_PEERS: + serviceImpl.collectInPeers((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COLLECT_IN_PEERS2: + serviceImpl.collectInPeers2((cn.chain33.javasdk.model.protobuf.P2pService.P2PPing) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke(io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_SERVER_STREAM_READ: + return (io.grpc.stub.StreamObserver) serviceImpl.serverStreamRead( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } } - } - private static final class p2pgserviceFileDescriptorSupplier - extends p2pgserviceBaseDescriptorSupplier { - p2pgserviceFileDescriptorSupplier() {} - } + private static abstract class p2pgserviceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + p2pgserviceBaseDescriptorSupplier() { + } - private static final class p2pgserviceMethodDescriptorSupplier - extends p2pgserviceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return cn.chain33.javasdk.model.protobuf.P2pService.getDescriptor(); + } - p2pgserviceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("p2pgservice"); + } } - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); + private static final class p2pgserviceFileDescriptorSupplier extends p2pgserviceBaseDescriptorSupplier { + p2pgserviceFileDescriptorSupplier() { + } + } + + private static final class p2pgserviceMethodDescriptorSupplier extends p2pgserviceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + p2pgserviceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } } - } - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (p2pgserviceGrpc.class) { - result = serviceDescriptor; + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new p2pgserviceFileDescriptorSupplier()) - .addMethod(getBroadCastTxMethod()) - .addMethod(getBroadCastBlockMethod()) - .addMethod(getPingMethod()) - .addMethod(getGetAddrMethod()) - .addMethod(getGetAddrListMethod()) - .addMethod(getVersionMethod()) - .addMethod(getVersion2Method()) - .addMethod(getSoftVersionMethod()) - .addMethod(getGetBlocksMethod()) - .addMethod(getGetMemPoolMethod()) - .addMethod(getGetDataMethod()) - .addMethod(getGetHeadersMethod()) - .addMethod(getGetPeerInfoMethod()) - .addMethod(getServerStreamReadMethod()) - .addMethod(getServerStreamSendMethod()) - .addMethod(getCollectInPeersMethod()) - .addMethod(getCollectInPeers2Method()) - .build(); - } - } + synchronized (p2pgserviceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new p2pgserviceFileDescriptorSupplier()) + .addMethod(getBroadCastTxMethod()).addMethod(getBroadCastBlockMethod()) + .addMethod(getPingMethod()).addMethod(getGetAddrMethod()).addMethod(getGetAddrListMethod()) + .addMethod(getVersionMethod()).addMethod(getVersion2Method()) + .addMethod(getSoftVersionMethod()).addMethod(getGetBlocksMethod()) + .addMethod(getGetMemPoolMethod()).addMethod(getGetDataMethod()) + .addMethod(getGetHeadersMethod()).addMethod(getGetPeerInfoMethod()) + .addMethod(getServerStreamReadMethod()).addMethod(getServerStreamSendMethod()) + .addMethod(getCollectInPeersMethod()).addMethod(getCollectInPeers2Method()).build(); + } + } + } + return result; } - return result; - } } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountAccResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountAccResult.java index 6570951..9cdbb91 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountAccResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountAccResult.java @@ -1,57 +1,55 @@ package cn.chain33.javasdk.model.rpcresult; public class AccountAccResult { - - //coins标识(token里无视这个值) - private Integer currency; - - //帐号的可用余额 - private Long balance; - - //帐号中冻结余额 - private Long frozen; - - //帐号的地址 - private String addr; - - public Integer getCurrency() { - return currency; - } - - public void setCurrency(Integer currency) { - this.currency = currency; - } - - public Long getBalance() { - return balance; - } - - public void setBalance(Long balance) { - this.balance = balance; - } - - public Long getFrozen() { - return frozen; - } - - public void setFrozen(Long frozen) { - this.frozen = frozen; - } - - public String getAddr() { - return addr; - } - - public void setAddr(String addr) { - this.addr = addr; - } - - @Override - public String toString() { - return "NewAccountAccResult [currency=" + currency + ", balance=" + balance + ", frozen=" + frozen + ", addr=" - + addr + "]"; - } - - - + + // coins标识(token里无视这个值) + private Integer currency; + + // 帐号的可用余额 + private Long balance; + + // 帐号中冻结余额 + private Long frozen; + + // 帐号的地址 + private String addr; + + public Integer getCurrency() { + return currency; + } + + public void setCurrency(Integer currency) { + this.currency = currency; + } + + public Long getBalance() { + return balance; + } + + public void setBalance(Long balance) { + this.balance = balance; + } + + public Long getFrozen() { + return frozen; + } + + public void setFrozen(Long frozen) { + this.frozen = frozen; + } + + public String getAddr() { + return addr; + } + + public void setAddr(String addr) { + this.addr = addr; + } + + @Override + public String toString() { + return "NewAccountAccResult [currency=" + currency + ", balance=" + balance + ", frozen=" + frozen + ", addr=" + + addr + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountResult.java index 867787b..c4df66d 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/AccountResult.java @@ -1,32 +1,30 @@ package cn.chain33.javasdk.model.rpcresult; public class AccountResult { - - private String label; - - private AccountAccResult acc; - - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - public AccountAccResult getAcc() { - return acc; - } - - public void setAcc(AccountAccResult acc) { - this.acc = acc; - } - - @Override - public String toString() { - return "AccountResult [label=" + label + ", acc=" + acc + "]"; - } - - - + + private String label; + + private AccountAccResult acc; + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public AccountAccResult getAcc() { + return acc; + } + + public void setAcc(AccountAccResult acc) { + this.acc = acc; + } + + @Override + public String toString() { + return "AccountResult [label=" + label + ", acc=" + acc + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockOverViewResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockOverViewResult.java index 0430513..76e7ab2 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockOverViewResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockOverViewResult.java @@ -3,45 +3,43 @@ import java.io.Serializable; import java.util.List; -public class BlockOverViewResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - private BlockResult head; - - private Integer txCount; - - private List txHashes; - - public BlockResult getHead() { - return head; - } - - public void setHead(BlockResult head) { - this.head = head; - } - - public Integer getTxCount() { - return txCount; - } - - public void setTxCount(Integer txCount) { - this.txCount = txCount; - } - - public List getTxHashes() { - return txHashes; - } - - public void setTxHashes(List txHashes) { - this.txHashes = txHashes; - } - - @Override - public String toString() { - return "BlockOverViewResult [head=" + head + ", txCount=" + txCount + ", txHashes=" + txHashes + "]"; - } - - - +public class BlockOverViewResult implements Serializable { + + private static final long serialVersionUID = 1L; + + private BlockResult head; + + private Integer txCount; + + private List txHashes; + + public BlockResult getHead() { + return head; + } + + public void setHead(BlockResult head) { + this.head = head; + } + + public Integer getTxCount() { + return txCount; + } + + public void setTxCount(Integer txCount) { + this.txCount = txCount; + } + + public List getTxHashes() { + return txHashes; + } + + public void setTxHashes(List txHashes) { + this.txHashes = txHashes; + } + + @Override + public String toString() { + return "BlockOverViewResult [head=" + head + ", txCount=" + txCount + ", txHashes=" + txHashes + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockResult.java index 6efcd51..7cdc04f 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/BlockResult.java @@ -4,107 +4,105 @@ import java.util.Date; import java.util.List; -public class BlockResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - private Integer version; - - private String parentHash; - - private String txHash; - - private String stateHash; - - private Long height; - - private Date blockTime; - - private Integer txcount; - - private String hash; - - private List txs; - - public Integer getVersion() { - return version; - } - - public void setVersion(Integer version) { - this.version = version; - } - - public String getParentHash() { - return parentHash; - } - - public void setParentHash(String parentHash) { - this.parentHash = parentHash; - } - - public String getTxHash() { - return txHash; - } - - public void setTxHash(String txHash) { - this.txHash = txHash; - } - - public String getStateHash() { - return stateHash; - } - - public void setStateHash(String stateHash) { - this.stateHash = stateHash; - } - - public Long getHeight() { - return height; - } - - public void setHeight(Long height) { - this.height = height; - } - - public Date getBlockTime() { - return blockTime; - } - - public void setBlockTime(Date blockTime) { - this.blockTime = blockTime; - } - - public Integer getTxcount() { - return txcount; - } - - public void setTxcount(Integer txcount) { - this.txcount = txcount; - } - - - - public List getTxs() { - return txs; - } - - public void setTxs(List txs) { - this.txs = txs; - } - - public String getHash() { - return hash; - } - - public void setHash(String hash) { - this.hash = hash; - } - - @Override - public String toString() { - return "BlockResult [version=" + version + ", parentHash=" + parentHash + ", txHash=" + txHash + ", stateHash=" - + stateHash + ", height=" + height + ", blockTime=" + blockTime + ", txcount=" + txcount + ", hash=" - + hash + ", txs=" + txs + "]"; - } +public class BlockResult implements Serializable { + + private static final long serialVersionUID = 1L; + + private Integer version; + + private String parentHash; + + private String txHash; + + private String stateHash; + + private Long height; + + private Date blockTime; + + private Integer txcount; + + private String hash; + + private List txs; + + public Integer getVersion() { + return version; + } + + public void setVersion(Integer version) { + this.version = version; + } + + public String getParentHash() { + return parentHash; + } + + public void setParentHash(String parentHash) { + this.parentHash = parentHash; + } + + public String getTxHash() { + return txHash; + } + + public void setTxHash(String txHash) { + this.txHash = txHash; + } + + public String getStateHash() { + return stateHash; + } + + public void setStateHash(String stateHash) { + this.stateHash = stateHash; + } + + public Long getHeight() { + return height; + } + + public void setHeight(Long height) { + this.height = height; + } + + public Date getBlockTime() { + return blockTime; + } + + public void setBlockTime(Date blockTime) { + this.blockTime = blockTime; + } + + public Integer getTxcount() { + return txcount; + } + + public void setTxcount(Integer txcount) { + this.txcount = txcount; + } + + public List getTxs() { + return txs; + } + + public void setTxs(List txs) { + this.txs = txs; + } + + public String getHash() { + return hash; + } + + public void setHash(String hash) { + this.hash = hash; + } + + @Override + public String toString() { + return "BlockResult [version=" + version + ", parentHash=" + parentHash + ", txHash=" + txHash + ", stateHash=" + + stateHash + ", height=" + height + ", blockTime=" + blockTime + ", txcount=" + txcount + ", hash=" + + hash + ", txs=" + txs + "]"; + } } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/BlocksResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/BlocksResult.java index df39e69..9808c5f 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/BlocksResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/BlocksResult.java @@ -3,34 +3,33 @@ import java.io.Serializable; import java.util.List; -public class BlocksResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - private BlockResult block; - - private List recipts; - - public BlockResult getBlock() { - return block; - } - - public void setBlock(BlockResult block) { - this.block = block; - } - - - public List getRecipts() { - return recipts; - } - - public void setRecipts(List recipts) { - this.recipts = recipts; - } - - @Override - public String toString() { - return "BlocksResult [block=" + block + ", recipts=" + recipts + "]"; - } - +public class BlocksResult implements Serializable { + + private static final long serialVersionUID = 1L; + + private BlockResult block; + + private List recipts; + + public BlockResult getBlock() { + return block; + } + + public void setBlock(BlockResult block) { + this.block = block; + } + + public List getRecipts() { + return recipts; + } + + public void setRecipts(List recipts) { + this.recipts = recipts; + } + + @Override + public String toString() { + return "BlocksResult [block=" + block + ", recipts=" + recipts + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/BooleanResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/BooleanResult.java index bf35673..2a68408 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/BooleanResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/BooleanResult.java @@ -1,30 +1,30 @@ package cn.chain33.javasdk.model.rpcresult; public class BooleanResult { - - private boolean isOK; - - private String msg; - - public boolean isOK() { - return isOK; - } - - public void setOK(boolean isOK) { - this.isOK = isOK; - } - - public String getMsg() { - return msg; - } - - public void setMsg(String msg) { - this.msg = msg; - } - - @Override - public String toString() { - return "LockResult [isOK=" + isOK + ", msg=" + msg + "]"; - } - + + private boolean isOK; + + private String msg; + + public boolean isOK() { + return isOK; + } + + public void setOK(boolean isOK) { + this.isOK = isOK; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + @Override + public String toString() { + return "LockResult [isOK=" + isOK + ", msg=" + msg + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/CryptoResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/CryptoResult.java index 1c5af64..419d52b 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/CryptoResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/CryptoResult.java @@ -2,41 +2,39 @@ import java.io.Serializable; -public class CryptoResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - /** - * 签名类型名称 - */ - private String name; - - /** - * 签名类型ID - */ - private Integer typeID; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getTypeID() { - return typeID; - } - - public void setTypeID(Integer typeID) { - this.typeID = typeID; - } - - @Override - public String toString() { - return "CryptoResult [name=" + name + ", typeID=" + typeID + "]"; - } - - - +public class CryptoResult implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 签名类型名称 + */ + private String name; + + /** + * 签名类型ID + */ + private Integer typeID; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getTypeID() { + return typeID; + } + + public void setTypeID(Integer typeID) { + this.typeID = typeID; + } + + @Override + public String toString() { + return "CryptoResult [name=" + name + ", typeID=" + typeID + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/Int64Result.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/Int64Result.java index 74f839c..04418bc 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/Int64Result.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/Int64Result.java @@ -17,8 +17,6 @@ public void setData(long data) { @Override public String toString() { - return "Int64Result{" + - "data=" + data + - '}'; + return "Int64Result{" + "data=" + data + '}'; } } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/ListPushesResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/ListPushesResult.java index 422a980..4f99bd8 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/ListPushesResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/ListPushesResult.java @@ -18,8 +18,6 @@ public void setPushes(List pushes) { @Override public String toString() { - return "ListPushesResult{" + - "pushes=" + pushes + - '}'; + return "ListPushesResult{" + "pushes=" + pushes + '}'; } } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/NetResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/NetResult.java index f736167..bfda1bb 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/NetResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/NetResult.java @@ -2,89 +2,79 @@ import java.io.Serializable; -public class NetResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - /** - * 表示自身的外网地址信息 - */ - private String externaladdr; - - /** - * 表示节点监听的本地地址信息,例如:192.168.1.108:13802 - */ - private String localaddr; - - /** - * 为true 时,表示别的节点可以连接到自己,false 表示自身节点对其它节点不可见,别的节点无法连接到自己 - */ - private boolean service; - - /** - * 扇出数,表示对外连接的节点个数 - */ - private Integer outbounds; - - /** - * 扇入数,表示有多少外部节点连接本节点 - */ - private Integer inbounds; - - public String getExternaladdr() { - return externaladdr; - } - - - public void setExternaladdr(String externaladdr) { - this.externaladdr = externaladdr; - } - - - public String getLocaladdr() { - return localaddr; - } - - - public void setLocaladdr(String localaddr) { - this.localaddr = localaddr; - } - - - public boolean isService() { - return service; - } - - - public void setService(boolean service) { - this.service = service; - } - - - public Integer getOutbounds() { - return outbounds; - } - - - public void setOutbounds(Integer outbounds) { - this.outbounds = outbounds; - } - - - public Integer getInbounds() { - return inbounds; - } - - - public void setInbounds(Integer inbounds) { - this.inbounds = inbounds; - } - - - @Override - public String toString() { - return "NetResult [externaladdr=" + externaladdr + ", localaddr=" + localaddr + ", service=" + service + ", outbounds=" + outbounds - + ", inbounds=" + inbounds + "]"; - } - +public class NetResult implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 表示自身的外网地址信息 + */ + private String externaladdr; + + /** + * 表示节点监听的本地地址信息,例如:192.168.1.108:13802 + */ + private String localaddr; + + /** + * 为true 时,表示别的节点可以连接到自己,false 表示自身节点对其它节点不可见,别的节点无法连接到自己 + */ + private boolean service; + + /** + * 扇出数,表示对外连接的节点个数 + */ + private Integer outbounds; + + /** + * 扇入数,表示有多少外部节点连接本节点 + */ + private Integer inbounds; + + public String getExternaladdr() { + return externaladdr; + } + + public void setExternaladdr(String externaladdr) { + this.externaladdr = externaladdr; + } + + public String getLocaladdr() { + return localaddr; + } + + public void setLocaladdr(String localaddr) { + this.localaddr = localaddr; + } + + public boolean isService() { + return service; + } + + public void setService(boolean service) { + this.service = service; + } + + public Integer getOutbounds() { + return outbounds; + } + + public void setOutbounds(Integer outbounds) { + this.outbounds = outbounds; + } + + public Integer getInbounds() { + return inbounds; + } + + public void setInbounds(Integer inbounds) { + this.inbounds = inbounds; + } + + @Override + public String toString() { + return "NetResult [externaladdr=" + externaladdr + ", localaddr=" + localaddr + ", service=" + service + + ", outbounds=" + outbounds + ", inbounds=" + inbounds + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/PayLoadResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/PayLoadResult.java index d50258d..817a72d 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/PayLoadResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/PayLoadResult.java @@ -2,46 +2,43 @@ import java.io.Serializable; -public class PayLoadResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - private String rawlog; - - private String topic; - - private String content; - - public String getRawlog() { - return rawlog; - } - - public void setRawlog(String rawlog) { - this.rawlog = rawlog; - } - - @Override - public String toString() { - return "PayLoadResult [rawlog=" + rawlog + "]"; - } - - public String getTopic() { - return topic; - } - - public void setTopic(String topic) { - this.topic = topic; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - - - +public class PayLoadResult implements Serializable { + + private static final long serialVersionUID = 1L; + + private String rawlog; + + private String topic; + + private String content; + + public String getRawlog() { + return rawlog; + } + + public void setRawlog(String rawlog) { + this.rawlog = rawlog; + } + + @Override + public String toString() { + return "PayLoadResult [rawlog=" + rawlog + "]"; + } + + public String getTopic() { + return topic; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/PeerResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/PeerResult.java index e887e18..d0a56a8 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/PeerResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/PeerResult.java @@ -2,76 +2,74 @@ import java.io.Serializable; -public class PeerResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - private String addr; - - private Integer port; - - private String name; - - private Integer mempoolSize; - - private Boolean self; - - private BlockResult header; - - public String getAddr() { - return addr; - } - - public void setAddr(String addr) { - this.addr = addr; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getMempoolSize() { - return mempoolSize; - } - - public void setMempoolSize(Integer mempoolSize) { - this.mempoolSize = mempoolSize; - } - - public Boolean getSelf() { - return self; - } - - public void setSelf(Boolean self) { - this.self = self; - } - - public BlockResult getHeader() { - return header; - } - - public void setHeader(BlockResult header) { - this.header = header; - } - - @Override - public String toString() { - return "PeerResult [addr=" + addr + ", port=" + port + ", name=" + name + ", mempoolSize=" + mempoolSize - + ", self=" + self + ", header=" + header + "]"; - } - - - +public class PeerResult implements Serializable { + + private static final long serialVersionUID = 1L; + + private String addr; + + private Integer port; + + private String name; + + private Integer mempoolSize; + + private Boolean self; + + private BlockResult header; + + public String getAddr() { + return addr; + } + + public void setAddr(String addr) { + this.addr = addr; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getMempoolSize() { + return mempoolSize; + } + + public void setMempoolSize(Integer mempoolSize) { + this.mempoolSize = mempoolSize; + } + + public Boolean getSelf() { + return self; + } + + public void setSelf(Boolean self) { + this.self = self; + } + + public BlockResult getHeader() { + return header; + } + + public void setHeader(BlockResult header) { + this.header = header; + } + + @Override + public String toString() { + return "PeerResult [addr=" + addr + ", port=" + port + ", name=" + name + ", mempoolSize=" + mempoolSize + + ", self=" + self + ", header=" + header + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/PushSubscribeReq.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/PushSubscribeReq.java index 60e4566..f979590 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/PushSubscribeReq.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/PushSubscribeReq.java @@ -20,7 +20,7 @@ public class PushSubscribeReq implements Serializable { private long type; - private Map contract; + private Map contract; public String getName() { return name; @@ -88,15 +88,8 @@ public void setContract(Map contract) { @Override public String toString() { - return "PushSubscribeReq{" + - "name='" + name + '\'' + - ", URL='" + URL + '\'' + - ", encode='" + encode + '\'' + - ", lastSequence=" + lastSequence + - ", lastHeight=" + lastHeight + - ", lastBlockHash='" + lastBlockHash + '\'' + - ", type=" + type + - ", contract=" + contract + - '}'; + return "PushSubscribeReq{" + "name='" + name + '\'' + ", URL='" + URL + '\'' + ", encode='" + encode + '\'' + + ", lastSequence=" + lastSequence + ", lastHeight=" + lastHeight + ", lastBlockHash='" + lastBlockHash + + '\'' + ", type=" + type + ", contract=" + contract + '}'; } } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/QueryTransactionResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/QueryTransactionResult.java index bd3e6d9..cd20ff9 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/QueryTransactionResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/QueryTransactionResult.java @@ -3,96 +3,95 @@ import java.io.Serializable; import java.util.Date; -public class QueryTransactionResult implements Serializable{ - - private static final long serialVersionUID = 1L; - - private Long amount; - - private TransactionResult tx; - - private Date blocktime; - - private Integer index; - - private String actionname; - - private String fromaddr; - - private Long height; - - private Receipt receipt; - - public TransactionResult getTx() { - return tx; - } - - public void setTx(TransactionResult tx) { - this.tx = tx; - } - - public Long getHeight() { - return height; - } - - public void setHeight(Long height) { - this.height = height; - } - - - public Long getAmount() { - return amount; - } - - public void setAmount(Long amount) { - this.amount = amount; - } - - public Date getBlocktime() { - return blocktime; - } - - public void setBlocktime(Date blocktime) { - this.blocktime = blocktime; - } - - public Integer getIndex() { - return index; - } - - public void setIndex(Integer index) { - this.index = index; - } - - public String getActionname() { - return actionname; - } - - public void setActionname(String actionname) { - this.actionname = actionname; - } - - public String getFromaddr() { - return fromaddr; - } - - public void setFromaddr(String fromaddr) { - this.fromaddr = fromaddr; - } - - public Receipt getReceipt() { - return receipt; - } - - public void setReceipt(Receipt receipt) { - this.receipt = receipt; - } - - @Override - public String toString() { - return "QueryTransactionResult [amount=" + amount + ", tx=" + tx + ", blocktime=" + blocktime + ", index=" - + index + ", actionname=" + actionname + ", fromaddr=" + fromaddr + ", height=" + height + ", receipt=" - + receipt + "]"; - } - +public class QueryTransactionResult implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long amount; + + private TransactionResult tx; + + private Date blocktime; + + private Integer index; + + private String actionname; + + private String fromaddr; + + private Long height; + + private Receipt receipt; + + public TransactionResult getTx() { + return tx; + } + + public void setTx(TransactionResult tx) { + this.tx = tx; + } + + public Long getHeight() { + return height; + } + + public void setHeight(Long height) { + this.height = height; + } + + public Long getAmount() { + return amount; + } + + public void setAmount(Long amount) { + this.amount = amount; + } + + public Date getBlocktime() { + return blocktime; + } + + public void setBlocktime(Date blocktime) { + this.blocktime = blocktime; + } + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public String getActionname() { + return actionname; + } + + public void setActionname(String actionname) { + this.actionname = actionname; + } + + public String getFromaddr() { + return fromaddr; + } + + public void setFromaddr(String fromaddr) { + this.fromaddr = fromaddr; + } + + public Receipt getReceipt() { + return receipt; + } + + public void setReceipt(Receipt receipt) { + this.receipt = receipt; + } + + @Override + public String toString() { + return "QueryTransactionResult [amount=" + amount + ", tx=" + tx + ", blocktime=" + blocktime + ", index=" + + index + ", actionname=" + actionname + ", fromaddr=" + fromaddr + ", height=" + height + ", receipt=" + + receipt + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/Receipt.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/Receipt.java index 89f6ec1..a34b445 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/Receipt.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/Receipt.java @@ -2,28 +2,28 @@ import java.io.Serializable; -public class Receipt implements Serializable{ - - private static final long serialVersionUID = 1L; - - private Integer ty; - - private String tyname; - - public Integer getTy() { - return ty; - } - - public void setTy(Integer ty) { - this.ty = ty; - } - - public String getTyname() { - return tyname; - } - - public void setTyname(String tyname) { - this.tyname = tyname; - } - +public class Receipt implements Serializable { + + private static final long serialVersionUID = 1L; + + private Integer ty; + + private String tyname; + + public Integer getTy() { + return ty; + } + + public void setTy(Integer ty) { + this.ty = ty; + } + + public String getTyname() { + return tyname; + } + + public void setTyname(String tyname) { + this.tyname = tyname; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/RpcResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/RpcResult.java index a8a78c9..41b8a4e 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/RpcResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/RpcResult.java @@ -2,29 +2,28 @@ import java.io.Serializable; -public class RpcResult implements Serializable{ +public class RpcResult implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; - private E result; - - private String error; + private E result; - public E getResult() { - return result; - } + private String error; - public void setResult(E result) { - this.result = result; - } + public E getResult() { + return result; + } - public String getError() { - return error; - } + public void setResult(E result) { + this.result = result; + } + + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } - public void setError(String error) { - this.error = error; - } - - } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenBalanceResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenBalanceResult.java index dfc80fa..020f81d 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenBalanceResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenBalanceResult.java @@ -3,37 +3,36 @@ /** * * @author lgang - * @date 创建时间:2018年8月16日 下午5:31:18 + * + * @date 创建时间:2018年8月16日 下午5:31:18 * */ public class TokenBalanceResult { - - //token symbol - private String symbol; - - private AccountAccResult account; - - public String getSymbol() { - return symbol; - } - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - public AccountAccResult getAccount() { - return account; - } - - public void setAccount(AccountAccResult account) { - this.account = account; - } - - @Override - public String toString() { - return "TokenBalanceResult [symbol=" + symbol + ", account=" + account + "]"; - } - - - + + // token symbol + private String symbol; + + private AccountAccResult account; + + public String getSymbol() { + return symbol; + } + + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + public AccountAccResult getAccount() { + return account; + } + + public void setAccount(AccountAccResult account) { + this.account = account; + } + + @Override + public String toString() { + return "TokenBalanceResult [symbol=" + symbol + ", account=" + account + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenResult.java index da5a9f6..fdeebcb 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/TokenResult.java @@ -1,103 +1,102 @@ package cn.chain33.javasdk.model.rpcresult; public class TokenResult { - - private String name; - - private String symbol; - - private String introduction; - - private String ownerAddr; - - private Long total; - - private Long price; - - private String owner; - - private String creator; - - private Integer status; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getSymbol() { - return symbol; - } - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - public String getIntroduction() { - return introduction; - } - - public void setIntroduction(String introduction) { - this.introduction = introduction; - } - - public String getOwnerAddr() { - return ownerAddr; - } - - public void setOwnerAddr(String ownerAddr) { - this.ownerAddr = ownerAddr; - } - - public Long getTotal() { - return total; - } - - public void setTotal(Long total) { - this.total = total; - } - - public Long getPrice() { - return price; - } - - public void setPrice(Long price) { - this.price = price; - } - - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public String getCreator() { - return creator; - } - - public void setCreator(String creator) { - this.creator = creator; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - @Override - public String toString() { - return "TokenResult [name=" + name + ", symbol=" + symbol + ", introduction=" + introduction + ", ownerAddr=" - + ownerAddr + ", total=" + total + ", price=" + price + ", owner=" + owner + ", creator=" + creator - + ", status=" + status + "]"; - } - - + + private String name; + + private String symbol; + + private String introduction; + + private String ownerAddr; + + private Long total; + + private Long price; + + private String owner; + + private String creator; + + private Integer status; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getSymbol() { + return symbol; + } + + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + public String getIntroduction() { + return introduction; + } + + public void setIntroduction(String introduction) { + this.introduction = introduction; + } + + public String getOwnerAddr() { + return ownerAddr; + } + + public void setOwnerAddr(String ownerAddr) { + this.ownerAddr = ownerAddr; + } + + public Long getTotal() { + return total; + } + + public void setTotal(Long total) { + this.total = total; + } + + public Long getPrice() { + return price; + } + + public void setPrice(Long price) { + this.price = price; + } + + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "TokenResult [name=" + name + ", symbol=" + symbol + ", introduction=" + introduction + ", ownerAddr=" + + ownerAddr + ", total=" + total + ", price=" + price + ", owner=" + owner + ", creator=" + creator + + ", status=" + status + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/TransactionResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/TransactionResult.java index 4255ea7..bbc4457 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/TransactionResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/TransactionResult.java @@ -4,105 +4,104 @@ import cn.chain33.javasdk.model.Signature; - public class TransactionResult implements Serializable { - private static final long serialVersionUID = 1L; - - private PayLoadResult payload; - - private String execer; - - private String rawpayload; - - private long fee; - - private long expire; - - private long nonce; - - private String to; - - private Signature signature; - - private String next; - - public String getExecer() { - return execer; - } - - public void setExecer(String execer) { - this.execer = execer; - } - - public String getRawpayload() { - return rawpayload; - } - - public void setRawpayload(String rawpayload) { - this.rawpayload = rawpayload; - } - - public long getFee() { - return fee; - } - - public void setFee(long fee) { - this.fee = fee; - } - - public long getExpire() { - return expire; - } - - public void setExpire(long expire) { - this.expire = expire; - } - - public long getNonce() { - return nonce; - } - - public void setNonce(long nonce) { - this.nonce = nonce; - } - - public String getTo() { - return to; - } - - public void setTo(String to) { - this.to = to; - } - - public Signature getSignature() { - return signature; - } - - public void setSignature(Signature signature) { - this.signature = signature; - } - - public PayLoadResult getPayload() { - return payload; - } - - public void setPayload(PayLoadResult payload) { - this.payload = payload; - } - - public String getNext() { - return next; - } - - public void setNext(String next) { - this.next = next; - } - - @Override - public String toString() { - return "TransactionResult [payload=" + payload + ", execer=" + execer + ", rawpayload=" + rawpayload + ", fee=" - + fee + ", expire=" + expire + ", nonce=" + nonce + ", to=" + to + ", signature=" + signature + "]"; - } + private static final long serialVersionUID = 1L; + + private PayLoadResult payload; + + private String execer; + + private String rawpayload; + + private long fee; + + private long expire; + + private long nonce; + + private String to; + + private Signature signature; + + private String next; + + public String getExecer() { + return execer; + } + + public void setExecer(String execer) { + this.execer = execer; + } + + public String getRawpayload() { + return rawpayload; + } + + public void setRawpayload(String rawpayload) { + this.rawpayload = rawpayload; + } + + public long getFee() { + return fee; + } + + public void setFee(long fee) { + this.fee = fee; + } + + public long getExpire() { + return expire; + } + + public void setExpire(long expire) { + this.expire = expire; + } + + public long getNonce() { + return nonce; + } + + public void setNonce(long nonce) { + this.nonce = nonce; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public Signature getSignature() { + return signature; + } + + public void setSignature(Signature signature) { + this.signature = signature; + } + + public PayLoadResult getPayload() { + return payload; + } + + public void setPayload(PayLoadResult payload) { + this.payload = payload; + } + + public String getNext() { + return next; + } + + public void setNext(String next) { + this.next = next; + } + + @Override + public String toString() { + return "TransactionResult [payload=" + payload + ", execer=" + execer + ", rawpayload=" + rawpayload + ", fee=" + + fee + ", expire=" + expire + ", nonce=" + nonce + ", to=" + to + ", signature=" + signature + "]"; + } } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/TxResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/TxResult.java index 8f9f5ff..a2aaaee 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/TxResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/TxResult.java @@ -1,42 +1,40 @@ package cn.chain33.javasdk.model.rpcresult; public class TxResult { - - private String hash; - - private Long height; - - private Integer index; - - public String getHash() { - return hash; - } - - public void setHash(String hash) { - this.hash = hash; - } - - public Long getHeight() { - return height; - } - - public void setHeight(Long height) { - this.height = height; - } - - public Integer getIndex() { - return index; - } - - public void setIndex(Integer index) { - this.index = index; - } - - @Override - public String toString() { - return "TxResult [hash=" + hash + ", height=" + height + ", index=" + index + "]"; - } - - - + + private String hash; + + private Long height; + + private Integer index; + + public String getHash() { + return hash; + } + + public void setHash(String hash) { + this.hash = hash; + } + + public Long getHeight() { + return height; + } + + public void setHeight(Long height) { + this.height = height; + } + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + @Override + public String toString() { + return "TxResult [hash=" + hash + ", height=" + height + ", index=" + index + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/VersionResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/VersionResult.java index 2bc8587..ec6f0b9 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/VersionResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/VersionResult.java @@ -2,108 +2,93 @@ import java.io.Serializable; -public class VersionResult implements Serializable{ +public class VersionResult implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 区块链名,该节点chain33.toml中配置的title值 + */ + private String title; + + /** + * 应用app的版本 + */ + private String app; + + /** + * 版本信息,版本号-GitCommit(前八个字符) + */ + private String chain33; + + /** + * localdb版本号 + */ + private String localDb; + + /** + * @return the title + */ + public String getTitle() { + return title; + } + + /** + * @param title + * the title to set + */ + public void setTitle(String title) { + this.title = title; + } + + /** + * @return the app + */ + public String getApp() { + return app; + } + + /** + * @param app + * the app to set + */ + public void setApp(String app) { + this.app = app; + } + + /** + * @return the chain33 + */ + public String getChain33() { + return chain33; + } + + /** + * @param chain33 + * the chain33 to set + */ + public void setChain33(String chain33) { + this.chain33 = chain33; + } + + /** + * @return the localDb + */ + public String getLocalDb() { + return localDb; + } + + /** + * @param localDb + * the localDb to set + */ + public void setLocalDb(String localDb) { + this.localDb = localDb; + } + + @Override + public String toString() { + return "VersionResult [title=" + title + ", app=" + app + ", chain33=" + chain33 + ", localDb=" + localDb + "]"; + } - private static final long serialVersionUID = 1L; - - /** - * 区块链名,该节点chain33.toml中配置的title值 - */ - private String title; - - /** - * 应用app的版本 - */ - private String app; - - /** - * 版本信息,版本号-GitCommit(前八个字符) - */ - private String chain33; - - /** - * localdb版本号 - */ - private String localDb; - - - - /** - * @return the title - */ - public String getTitle() { - return title; - } - - - - /** - * @param title the title to set - */ - public void setTitle(String title) { - this.title = title; - } - - - - /** - * @return the app - */ - public String getApp() { - return app; - } - - - - /** - * @param app the app to set - */ - public void setApp(String app) { - this.app = app; - } - - - - /** - * @return the chain33 - */ - public String getChain33() { - return chain33; - } - - - - /** - * @param chain33 the chain33 to set - */ - public void setChain33(String chain33) { - this.chain33 = chain33; - } - - - - /** - * @return the localDb - */ - public String getLocalDb() { - return localDb; - } - - - - /** - * @param localDb the localDb to set - */ - public void setLocalDb(String localDb) { - this.localDb = localDb; - } - - - - @Override - public String toString() { - return "VersionResult [title=" + title + ", app=" + app + ", chain33=" + chain33 + ", localDb=" + localDb - + "]"; - } - } diff --git a/src/main/java/cn/chain33/javasdk/model/rpcresult/WalletStatusResult.java b/src/main/java/cn/chain33/javasdk/model/rpcresult/WalletStatusResult.java index 64e11d7..8df3a62 100644 --- a/src/main/java/cn/chain33/javasdk/model/rpcresult/WalletStatusResult.java +++ b/src/main/java/cn/chain33/javasdk/model/rpcresult/WalletStatusResult.java @@ -1,51 +1,51 @@ package cn.chain33.javasdk.model.rpcresult; public class WalletStatusResult { - - private boolean isWalletLock; - - private boolean isAutoMining; - - private boolean isHasSeed; - - private boolean isTicketLock; - - public boolean isWalletLock() { - return isWalletLock; - } - - public void setWalletLock(boolean isWalletLock) { - this.isWalletLock = isWalletLock; - } - - public boolean isAutoMining() { - return isAutoMining; - } - - public void setAutoMining(boolean isAutoMining) { - this.isAutoMining = isAutoMining; - } - - public boolean isHasSeed() { - return isHasSeed; - } - - public void setHasSeed(boolean isHasSeed) { - this.isHasSeed = isHasSeed; - } - - public boolean isTicketLock() { - return isTicketLock; - } - - public void setTicketLock(boolean isTicketLock) { - this.isTicketLock = isTicketLock; - } - - @Override - public String toString() { - return "WalletStatus [isWalletLock=" + isWalletLock + ", isAutoMining=" + isAutoMining + ", isHasSeed=" - + isHasSeed + ", isTicketLock=" + isTicketLock + "]"; - } - + + private boolean isWalletLock; + + private boolean isAutoMining; + + private boolean isHasSeed; + + private boolean isTicketLock; + + public boolean isWalletLock() { + return isWalletLock; + } + + public void setWalletLock(boolean isWalletLock) { + this.isWalletLock = isWalletLock; + } + + public boolean isAutoMining() { + return isAutoMining; + } + + public void setAutoMining(boolean isAutoMining) { + this.isAutoMining = isAutoMining; + } + + public boolean isHasSeed() { + return isHasSeed; + } + + public void setHasSeed(boolean isHasSeed) { + this.isHasSeed = isHasSeed; + } + + public boolean isTicketLock() { + return isTicketLock; + } + + public void setTicketLock(boolean isTicketLock) { + this.isTicketLock = isTicketLock; + } + + @Override + public String toString() { + return "WalletStatus [isWalletLock=" + isWalletLock + ", isAutoMining=" + isAutoMining + ", isHasSeed=" + + isHasSeed + ", isTicketLock=" + isTicketLock + "]"; + } + } diff --git a/src/main/java/cn/chain33/javasdk/utils/AesUtil.java b/src/main/java/cn/chain33/javasdk/utils/AesUtil.java index b4b3866..479d8b9 100644 --- a/src/main/java/cn/chain33/javasdk/utils/AesUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/AesUtil.java @@ -14,27 +14,31 @@ import javax.xml.bind.DatatypeConverter; public class AesUtil { - + /** * * @description 按照长度生成key - * @param length 长度 - * @return key + * + * @param length + * 长度 + * + * @return key + * * @throws Exception * */ public static byte[] generateDesKey(int length) throws Exception { - //实例化 + // 实例化 KeyGenerator kgen = null; kgen = KeyGenerator.getInstance("AES"); - //设置密钥长度 - kgen.init(length); - //生成密钥 - SecretKey skey = kgen.generateKey(); - //返回密钥的二进制编码 - return skey.getEncoded(); + // 设置密钥长度 + kgen.init(length); + // 生成密钥 + SecretKey skey = kgen.generateKey(); + // 返回密钥的二进制编码 + return skey.getEncoded(); } - + public static byte[] generateIv() { try { Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); @@ -50,9 +54,8 @@ public static byte[] generateIv() { } - public static byte[] encrypt(String content,byte[] symKeyData,byte[] ivData) { - final byte[] encodedMessage = content.getBytes(Charset - .forName("UTF-8")); + public static byte[] encrypt(String content, byte[] symKeyData, byte[] ivData) { + final byte[] encodedMessage = content.getBytes(Charset.forName("UTF-8")); try { Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); int blockSize = cipher.getBlockSize(); @@ -64,24 +67,19 @@ public static byte[] encrypt(String content,byte[] symKeyData,byte[] ivData) { byte[] encryptedMessage = cipher.doFinal(encodedMessage); - byte[] ivAndEncryptedMessage = new byte[ivData.length - + encryptedMessage.length]; + byte[] ivAndEncryptedMessage = new byte[ivData.length + encryptedMessage.length]; System.arraycopy(ivData, 0, ivAndEncryptedMessage, 0, blockSize); - System.arraycopy(encryptedMessage, 0, ivAndEncryptedMessage, - blockSize, encryptedMessage.length); + System.arraycopy(encryptedMessage, 0, ivAndEncryptedMessage, blockSize, encryptedMessage.length); return ivAndEncryptedMessage; } catch (InvalidKeyException e) { - throw new IllegalArgumentException( - "key argument does not contain a valid AES key"); + throw new IllegalArgumentException("key argument does not contain a valid AES key"); } catch (GeneralSecurityException e) { - throw new IllegalStateException( - "Unexpected exception during encryption", e); + throw new IllegalStateException("Unexpected exception during encryption", e); } } - public static String decrypt(byte[] ivAndEncryptedMessage, - String symKeyHex) { + public static String decrypt(byte[] ivAndEncryptedMessage, String symKeyHex) { byte[] symKeyData = DatatypeConverter.parseHexBinary(symKeyHex); try { @@ -94,37 +92,32 @@ public static String decrypt(byte[] ivAndEncryptedMessage, System.arraycopy(ivAndEncryptedMessage, 0, ivData, 0, blockSize); IvParameterSpec iv = new IvParameterSpec(ivData); - byte[] encryptedMessage = new byte[ivAndEncryptedMessage.length - - blockSize]; - System.arraycopy(ivAndEncryptedMessage, blockSize, - encryptedMessage, 0, encryptedMessage.length); + byte[] encryptedMessage = new byte[ivAndEncryptedMessage.length - blockSize]; + System.arraycopy(ivAndEncryptedMessage, blockSize, encryptedMessage, 0, encryptedMessage.length); cipher.init(Cipher.DECRYPT_MODE, symKey, iv); byte[] encodedMessage = cipher.doFinal(encryptedMessage); - String message = new String(encodedMessage, - Charset.forName("UTF-8")); + String message = new String(encodedMessage, Charset.forName("UTF-8")); return message; } catch (InvalidKeyException e) { - throw new IllegalArgumentException( - "key argument does not contain a valid AES key"); + throw new IllegalArgumentException("key argument does not contain a valid AES key"); } catch (BadPaddingException e) { // you'd better know about padding oracle attacks return null; } catch (GeneralSecurityException e) { - throw new IllegalStateException( - "Unexpected exception during decryption", e); + throw new IllegalStateException("Unexpected exception during decryption", e); } } - + public static void main(String[] args) { try { byte[] key = generateDesKey(128); byte[] iv = generateIv(); - //byte[] bytes = "G2F4ED5m123456abx6vDrScs".getBytes(); - // key = bytes; - //iv = "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4".getBytes(); + // byte[] bytes = "G2F4ED5m123456abx6vDrScs".getBytes(); + // key = bytes; + // iv = "1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4".getBytes(); byte[] encrypt = encrypt("hello world", key, iv); String keyStr = HexUtil.toHexString(key); String ivStr = HexUtil.toHexString(iv); @@ -137,6 +130,5 @@ public static void main(String[] args) { e.printStackTrace(); } } - - + } diff --git a/src/main/java/cn/chain33/javasdk/utils/Base58Util.java b/src/main/java/cn/chain33/javasdk/utils/Base58Util.java index f66fb20..f528fae 100644 --- a/src/main/java/cn/chain33/javasdk/utils/Base58Util.java +++ b/src/main/java/cn/chain33/javasdk/utils/Base58Util.java @@ -1,168 +1,183 @@ -package cn.chain33.javasdk.utils; - -import java.math.BigInteger; -import java.util.Arrays; - -import org.bitcoinj.core.AddressFormatException; -import org.bitcoinj.core.Sha256Hash; - - -public class Base58Util { - public static final char[] ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".toCharArray(); - private static final char ENCODED_ZERO = ALPHABET[0]; - private static final int[] INDEXES = new int[128]; - static { - Arrays.fill(INDEXES, -1); - for (int i = 0; i < ALPHABET.length; i++) { - INDEXES[ALPHABET[i]] = i; - } - } - - /** - * Encodes the given bytes as a base58 string (no checksum is appended). - * - * @param input the bytes to encode - * @return the base58-encoded string - */ - public static String encode(byte[] input) { - if (input.length == 0) { - return ""; - } - // Count leading zeros. - int zeros = 0; - while (zeros < input.length && input[zeros] == 0) { - ++zeros; - } - // Convert base-256 digits to base-58 digits (plus conversion to ASCII characters) - input = Arrays.copyOf(input, input.length); // since we modify it in-place - char[] encoded = new char[input.length * 2]; // upper bound - int outputStart = encoded.length; - for (int inputStart = zeros; inputStart < input.length; ) { - encoded[--outputStart] = ALPHABET[divmod(input, inputStart, 256, 58)]; - if (input[inputStart] == 0) { - ++inputStart; // optimization - skip leading zeros - } - } - // Preserve exactly as many leading encoded zeros in output as there were leading zeros in input. - while (outputStart < encoded.length && encoded[outputStart] == ENCODED_ZERO) { - ++outputStart; - } - while (--zeros >= 0) { - encoded[--outputStart] = ENCODED_ZERO; - } - // Return encoded string (including encoded leading zeros). - return new String(encoded, outputStart, encoded.length - outputStart); - } - - /** - * Encodes the given version and bytes as a base58 string. A checksum is appended. - * - * @param version the version to encode - * @param payload the bytes to encode, e.g. pubkey hash - * @return the base58-encoded string - */ - public static String encodeChecked(int version, byte[] payload) { - if (version < 0 || version > 255) - throw new IllegalArgumentException("Version not in range."); - - // A stringified buffer is: - // 1 byte version + data bytes + 4 bytes check code (a truncated hash) - byte[] addressBytes = new byte[1 + payload.length + 4]; - addressBytes[0] = (byte) version; - System.arraycopy(payload, 0, addressBytes, 1, payload.length); - byte[] checksum = Sha256Hash.hashTwice(addressBytes, 0, payload.length + 1); - System.arraycopy(checksum, 0, addressBytes, payload.length + 1, 4); - return Base58Util.encode(addressBytes); - } - - /** - * Decodes the given base58 string into the original data bytes. - * - * @param input the base58-encoded string to decode - * @return the decoded data bytes - * @throws AddressFormatException if the given string is not a valid base58 string - */ - public static byte[] decode(String input) throws Exception { - if (input.length() == 0) { - return new byte[0]; - } - // Convert the base58-encoded ASCII chars to a base58 byte sequence (base58 digits). - byte[] input58 = new byte[input.length()]; - for (int i = 0; i < input.length(); ++i) { - char c = input.charAt(i); - int digit = c < 128 ? INDEXES[c] : -1; - if (digit < 0) { - throw new Exception("parameter error:"+ c + "," + i); - } - input58[i] = (byte) digit; - } - // Count leading zeros. - int zeros = 0; - while (zeros < input58.length && input58[zeros] == 0) { - ++zeros; - } - // Convert base-58 digits to base-256 digits. - byte[] decoded = new byte[input.length()]; - int outputStart = decoded.length; - for (int inputStart = zeros; inputStart < input58.length; ) { - decoded[--outputStart] = divmod(input58, inputStart, 58, 256); - if (input58[inputStart] == 0) { - ++inputStart; // optimization - skip leading zeros - } - } - // Ignore extra leading zeroes that were added during the calculation. - while (outputStart < decoded.length && decoded[outputStart] == 0) { - ++outputStart; - } - // Return decoded data (including original number of leading zeros). - return Arrays.copyOfRange(decoded, outputStart - zeros, decoded.length); - } - - public static BigInteger decodeToBigInteger(String input) throws Exception { - return new BigInteger(1, decode(input)); - } - - /** - * Decodes the given base58 string into the original data bytes, using the checksum in the - * last 4 bytes of the decoded data to verify that the rest are correct. The checksum is - * removed from the returned data. - * - * @param input the base58-encoded string to decode (which should include the checksum) - * @throws AddressFormatException if the input is not base 58 or the checksum does not validate. - */ - public static byte[] decodeChecked(String input) throws Exception { - byte[] decoded = decode(input); - if (decoded.length < 4) - throw new Exception("Input too short: "+ decoded.length); - byte[] data = Arrays.copyOfRange(decoded, 0, decoded.length - 4); - byte[] checksum = Arrays.copyOfRange(decoded, decoded.length - 4, decoded.length); - byte[] actualChecksum = Arrays.copyOfRange(Sha256Hash.hashTwice(data), 0, 4); - if (!Arrays.equals(checksum, actualChecksum)) - throw new Exception("error"); - return data; - } - - /** - * Divides a number, represented as an array of bytes each containing a single digit - * in the specified base, by the given divisor. The given number is modified in-place - * to contain the quotient, and the return value is the remainder. - * - * @param number the number to divide - * @param firstDigit the index within the array of the first non-zero digit - * (this is used for optimization by skipping the leading zeros) - * @param base the base in which the number's digits are represented (up to 256) - * @param divisor the number to divide by (up to 256) - * @return the remainder of the division operation - */ - private static byte divmod(byte[] number, int firstDigit, int base, int divisor) { - // this is just long division which accounts for the base of the input digits - int remainder = 0; - for (int i = firstDigit; i < number.length; i++) { - int digit = (int) number[i] & 0xFF; - int temp = remainder * base + digit; - number[i] = (byte) (temp / divisor); - remainder = temp % divisor; - } - return (byte) remainder; - } -} +package cn.chain33.javasdk.utils; + +import java.math.BigInteger; +import java.util.Arrays; + +import org.bitcoinj.core.AddressFormatException; +import org.bitcoinj.core.Sha256Hash; + +public class Base58Util { + public static final char[] ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".toCharArray(); + private static final char ENCODED_ZERO = ALPHABET[0]; + private static final int[] INDEXES = new int[128]; + static { + Arrays.fill(INDEXES, -1); + for (int i = 0; i < ALPHABET.length; i++) { + INDEXES[ALPHABET[i]] = i; + } + } + + /** + * Encodes the given bytes as a base58 string (no checksum is appended). + * + * @param input + * the bytes to encode + * + * @return the base58-encoded string + */ + public static String encode(byte[] input) { + if (input.length == 0) { + return ""; + } + // Count leading zeros. + int zeros = 0; + while (zeros < input.length && input[zeros] == 0) { + ++zeros; + } + // Convert base-256 digits to base-58 digits (plus conversion to ASCII characters) + input = Arrays.copyOf(input, input.length); // since we modify it in-place + char[] encoded = new char[input.length * 2]; // upper bound + int outputStart = encoded.length; + for (int inputStart = zeros; inputStart < input.length;) { + encoded[--outputStart] = ALPHABET[divmod(input, inputStart, 256, 58)]; + if (input[inputStart] == 0) { + ++inputStart; // optimization - skip leading zeros + } + } + // Preserve exactly as many leading encoded zeros in output as there were leading zeros in input. + while (outputStart < encoded.length && encoded[outputStart] == ENCODED_ZERO) { + ++outputStart; + } + while (--zeros >= 0) { + encoded[--outputStart] = ENCODED_ZERO; + } + // Return encoded string (including encoded leading zeros). + return new String(encoded, outputStart, encoded.length - outputStart); + } + + /** + * Encodes the given version and bytes as a base58 string. A checksum is appended. + * + * @param version + * the version to encode + * @param payload + * the bytes to encode, e.g. pubkey hash + * + * @return the base58-encoded string + */ + public static String encodeChecked(int version, byte[] payload) { + if (version < 0 || version > 255) + throw new IllegalArgumentException("Version not in range."); + + // A stringified buffer is: + // 1 byte version + data bytes + 4 bytes check code (a truncated hash) + byte[] addressBytes = new byte[1 + payload.length + 4]; + addressBytes[0] = (byte) version; + System.arraycopy(payload, 0, addressBytes, 1, payload.length); + byte[] checksum = Sha256Hash.hashTwice(addressBytes, 0, payload.length + 1); + System.arraycopy(checksum, 0, addressBytes, payload.length + 1, 4); + return Base58Util.encode(addressBytes); + } + + /** + * Decodes the given base58 string into the original data bytes. + * + * @param input + * the base58-encoded string to decode + * + * @return the decoded data bytes + * + * @throws AddressFormatException + * if the given string is not a valid base58 string + */ + public static byte[] decode(String input) throws Exception { + if (input.length() == 0) { + return new byte[0]; + } + // Convert the base58-encoded ASCII chars to a base58 byte sequence (base58 digits). + byte[] input58 = new byte[input.length()]; + for (int i = 0; i < input.length(); ++i) { + char c = input.charAt(i); + int digit = c < 128 ? INDEXES[c] : -1; + if (digit < 0) { + throw new Exception("parameter error:" + c + "," + i); + } + input58[i] = (byte) digit; + } + // Count leading zeros. + int zeros = 0; + while (zeros < input58.length && input58[zeros] == 0) { + ++zeros; + } + // Convert base-58 digits to base-256 digits. + byte[] decoded = new byte[input.length()]; + int outputStart = decoded.length; + for (int inputStart = zeros; inputStart < input58.length;) { + decoded[--outputStart] = divmod(input58, inputStart, 58, 256); + if (input58[inputStart] == 0) { + ++inputStart; // optimization - skip leading zeros + } + } + // Ignore extra leading zeroes that were added during the calculation. + while (outputStart < decoded.length && decoded[outputStart] == 0) { + ++outputStart; + } + // Return decoded data (including original number of leading zeros). + return Arrays.copyOfRange(decoded, outputStart - zeros, decoded.length); + } + + public static BigInteger decodeToBigInteger(String input) throws Exception { + return new BigInteger(1, decode(input)); + } + + /** + * Decodes the given base58 string into the original data bytes, using the checksum in the last 4 bytes of the + * decoded data to verify that the rest are correct. The checksum is removed from the returned data. + * + * @param input + * the base58-encoded string to decode (which should include the checksum) + * + * @throws AddressFormatException + * if the input is not base 58 or the checksum does not validate. + */ + public static byte[] decodeChecked(String input) throws Exception { + byte[] decoded = decode(input); + if (decoded.length < 4) + throw new Exception("Input too short: " + decoded.length); + byte[] data = Arrays.copyOfRange(decoded, 0, decoded.length - 4); + byte[] checksum = Arrays.copyOfRange(decoded, decoded.length - 4, decoded.length); + byte[] actualChecksum = Arrays.copyOfRange(Sha256Hash.hashTwice(data), 0, 4); + if (!Arrays.equals(checksum, actualChecksum)) + throw new Exception("error"); + return data; + } + + /** + * Divides a number, represented as an array of bytes each containing a single digit in the specified base, by the + * given divisor. The given number is modified in-place to contain the quotient, and the return value is the + * remainder. + * + * @param number + * the number to divide + * @param firstDigit + * the index within the array of the first non-zero digit (this is used for optimization by skipping the + * leading zeros) + * @param base + * the base in which the number's digits are represented (up to 256) + * @param divisor + * the number to divide by (up to 256) + * + * @return the remainder of the division operation + */ + private static byte divmod(byte[] number, int firstDigit, int base, int divisor) { + // this is just long division which accounts for the base of the input digits + int remainder = 0; + for (int i = firstDigit; i < number.length; i++) { + int digit = (int) number[i] & 0xFF; + int temp = remainder * base + digit; + number[i] = (byte) (temp / divisor); + remainder = temp % divisor; + } + return (byte) remainder; + } +} diff --git a/src/main/java/cn/chain33/javasdk/utils/ByteUtil.java b/src/main/java/cn/chain33/javasdk/utils/ByteUtil.java index a8d3cfa..6149747 100644 --- a/src/main/java/cn/chain33/javasdk/utils/ByteUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/ByteUtil.java @@ -30,7 +30,7 @@ public class ByteUtil { public static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; - public static final byte[] ZERO_BYTE_ARRAY = new byte[] {0}; + public static final byte[] ZERO_BYTE_ARRAY = new byte[] { 0 }; /** Creates a copy of bytes and appends b to the end of it */ public static byte[] appendByte(byte[] bytes, byte b) { @@ -42,26 +42,30 @@ public static byte[] appendByte(byte[] bytes, byte b) { /** Creates a copy of bytes and pad 0 to the left of it */ public static byte[] leftPadByte(byte[] bytes, int length) { byte[] result = new byte[length]; - System.arraycopy(bytes, 0, result,length-bytes.length, bytes.length); + System.arraycopy(bytes, 0, result, length - bytes.length, bytes.length); return result; } public static byte[] removeLeftPad(byte[] bytes, int length) { byte[] result = new byte[length]; - System.arraycopy(bytes, bytes.length-length, result,0, length); + System.arraycopy(bytes, bytes.length - length, result, 0, length); return result; } /** - * The regular {@link BigInteger#toByteArray()} method isn't quite what we often need: it - * appends a leading zero to indicate that the number is positive and may need padding. + * The regular {@link BigInteger#toByteArray()} method isn't quite what we often need: it appends a leading zero to + * indicate that the number is positive and may need padding. * - * @param b the integer to format into a byte array - * @param numBytes the desired size of the resulting byte array + * @param b + * the integer to format into a byte array + * @param numBytes + * the desired size of the resulting byte array + * * @return numBytes byte long array. */ public static byte[] bigIntegerToBytes(BigInteger b, int numBytes) { - if (b == null) return null; + if (b == null) + return null; byte[] bytes = new byte[numBytes]; byte[] biBytes = b.toByteArray(); int start = (biBytes.length == numBytes + 1) ? 1 : 0; @@ -71,7 +75,8 @@ public static byte[] bigIntegerToBytes(BigInteger b, int numBytes) { } public static byte[] bigIntegerToBytesSigned(BigInteger b, int numBytes) { - if (b == null) return null; + if (b == null) + return null; byte[] bytes = new byte[numBytes]; Arrays.fill(bytes, b.signum() < 0 ? (byte) 0xFF : 0x00); byte[] biBytes = b.toByteArray(); @@ -82,7 +87,8 @@ public static byte[] bigIntegerToBytesSigned(BigInteger b, int numBytes) { } public static byte[] bigIntegerToBytes(BigInteger value) { - if (value == null) return null; + if (value == null) + return null; byte[] data = value.toByteArray(); @@ -97,7 +103,9 @@ public static byte[] bigIntegerToBytes(BigInteger value) { /** * Cast hex encoded value from byte[] to BigInteger null is parsed like byte[0] * - * @param bb byte array contains the values + * @param bb + * byte array contains the values + * * @return unsigned positive BigInteger value. */ public static BigInteger bytesToBigInteger(byte[] bb) { @@ -105,18 +113,21 @@ public static BigInteger bytesToBigInteger(byte[] bb) { } /** - * Returns the amount of nibbles that match each other from 0 ... amount will never be larger - * than smallest input + * Returns the amount of nibbles that match each other from 0 ... amount will never be larger than smallest input * - * @param a - first input - * @param b - second input + * @param a + * - first input + * @param b + * - second input + * * @return Number of bytes that match */ public static int matchingNibbleLength(byte[] a, byte[] b) { int i = 0; int length = a.length < b.length ? a.length : b.length; while (i < length) { - if (a[i] != b[i]) return i; + if (a[i] != b[i]) + return i; i++; } return i; @@ -125,7 +136,9 @@ public static int matchingNibbleLength(byte[] a, byte[] b) { /** * Converts a long value into a byte array. * - * @param val - long value to convert + * @param val + * - long value to convert + * * @return byte[] of length 8, representing the long value */ public static byte[] longToBytes(long val) { @@ -135,13 +148,16 @@ public static byte[] longToBytes(long val) { /** * Converts a long value into a byte array. * - * @param val - long value to convert + * @param val + * - long value to convert + * * @return decimal value with leading byte that are zeroes striped */ public static byte[] longToBytesNoLeadZeroes(long val) { // todo: improve performance by while strip numbers until (long >> 8 == 0) - if (val == 0) return EMPTY_BYTE_ARRAY; + if (val == 0) + return EMPTY_BYTE_ARRAY; byte[] data = ByteBuffer.allocate(Long.BYTES).putLong(val).array(); @@ -151,7 +167,9 @@ public static byte[] longToBytesNoLeadZeroes(long val) { /** * Converts int value into a byte array. * - * @param val - int value to convert + * @param val + * - int value to convert + * * @return byte[] of length 4, representing the int value */ public static byte[] intToBytes(int val) { @@ -161,12 +179,15 @@ public static byte[] intToBytes(int val) { /** * Converts a int value into a byte array. * - * @param val - int value to convert + * @param val + * - int value to convert + * * @return value with leading byte that are zeroes striped */ public static byte[] intToBytesNoLeadZeroes(int val) { - if (val == 0) return EMPTY_BYTE_ARRAY; + if (val == 0) + return EMPTY_BYTE_ARRAY; int lenght = 0; @@ -189,55 +210,63 @@ public static byte[] intToBytesNoLeadZeroes(int val) { return result; } - /** * Calculate packet length * - * @param msg byte[] + * @param msg + * byte[] + * * @return byte-array with 4 elements */ public static byte[] calcPacketLength(byte[] msg) { int msgLen = msg.length; - return new byte[] { - (byte) ((msgLen >> 24) & 0xFF), - (byte) ((msgLen >> 16) & 0xFF), - (byte) ((msgLen >> 8) & 0xFF), - (byte) ((msgLen) & 0xFF) - }; + return new byte[] { (byte) ((msgLen >> 24) & 0xFF), (byte) ((msgLen >> 16) & 0xFF), + (byte) ((msgLen >> 8) & 0xFF), (byte) ((msgLen) & 0xFF) }; } /** * Cast hex encoded value from byte[] to int null is parsed like byte[0] * - *

Limited to Integer.MAX_VALUE: 2^32-1 (4 bytes) + *

+ * Limited to Integer.MAX_VALUE: 2^32-1 (4 bytes) * - * @param b array contains the values + * @param b + * array contains the values + * * @return unsigned positive int value. */ public static int byteArrayToInt(byte[] b) { - if (b == null || b.length == 0) return 0; + if (b == null || b.length == 0) + return 0; return new BigInteger(1, b).intValue(); } /** * Cast hex encoded value from byte[] to long null is parsed like byte[0] * - *

Limited to Long.MAX_VALUE: 263-1 (8 bytes) + *

+ * Limited to Long.MAX_VALUE: 263-1 (8 bytes) * - * @param b array contains the values + * @param b + * array contains the values + * * @return unsigned positive long value. */ public static long byteArrayToLong(byte[] b) { - if (b == null || b.length == 0) return 0; + if (b == null || b.length == 0) + return 0; return new BigInteger(1, b).longValue(); } /** * Turn nibbles to a pretty looking output string * - *

Example. [ 1, 2, 3, 4, 5 ] becomes '\x11\x23\x45' + *

+ * Example. [ 1, 2, 3, 4, 5 ] becomes '\x11\x23\x45' * - * @param nibbles - getting byte of data [ 04 ] and turning it to a '\x04' representation + * @param nibbles + * - getting byte of data [ 04 ] and turning it to a '\x04' representation + * * @return pretty string of nibbles */ public static String nibblesToPrettyString(byte[] nibbles) { @@ -251,14 +280,17 @@ public static String nibblesToPrettyString(byte[] nibbles) { public static String oneByteToHexString(byte value) { String retVal = Integer.toString(value & 0xFF, 16); - if (retVal.length() == 1) retVal = "0" + retVal; + if (retVal.length() == 1) + retVal = "0" + retVal; return retVal; } /** * Calculate the number of bytes need to encode the number * - * @param val - number + * @param val + * - number + * * @return number of min bytes used to encode the number */ public static int numBytes(String val) { @@ -270,12 +302,15 @@ public static int numBytes(String val) { bInt = bInt.shiftRight(8); ++bytes; } - if (bytes == 0) ++bytes; + if (bytes == 0) + ++bytes; return bytes; } /** - * @param arg - not more that 32 bits + * @param arg + * - not more that 32 bits + * * @return - bytes of the value pad with complete to 32 zeroes */ public static byte[] encodeValFor32Bits(Object arg) { @@ -288,9 +323,11 @@ public static byte[] encodeValFor32Bits(Object arg) { // check if it's hex number else if (arg.toString().trim().matches("0[xX][0-9a-fA-F]+")) data = new BigInteger(arg.toString().trim().substring(2), 16).toByteArray(); - else data = arg.toString().trim().getBytes(); + else + data = arg.toString().trim().getBytes(); - if (data.length > 32) throw new RuntimeException("values can't be more than 32 byte"); + if (data.length > 32) + throw new RuntimeException("values can't be more than 32 byte"); byte[] val = new byte[32]; @@ -305,7 +342,9 @@ else if (arg.toString().trim().matches("0[xX][0-9a-fA-F]+")) /** * encode the values and concatenate together * - * @param args Object + * @param args + * Object + * * @return byte[] */ public static byte[] encodeDataList(Object... args) { @@ -332,28 +371,31 @@ public static int firstNonZeroByte(byte[] data) { public static byte[] stripLeadingZeroes(byte[] data) { - if (data == null) return null; + if (data == null) + return null; final int firstNonZero = firstNonZeroByte(data); switch (firstNonZero) { - case -1: - return ZERO_BYTE_ARRAY; + case -1: + return ZERO_BYTE_ARRAY; - case 0: - return data; + case 0: + return data; - default: - byte[] result = new byte[data.length - firstNonZero]; - System.arraycopy(data, firstNonZero, result, 0, data.length - firstNonZero); + default: + byte[] result = new byte[data.length - firstNonZero]; + System.arraycopy(data, firstNonZero, result, 0, data.length - firstNonZero); - return result; + return result; } } /** * increment byte array as a number until max is reached * - * @param bytes byte[] + * @param bytes + * byte[] + * * @return boolean */ public static boolean increment(byte[] bytes) { @@ -361,17 +403,20 @@ public static boolean increment(byte[] bytes) { int i; for (i = bytes.length - 1; i >= startIndex; i--) { bytes[i]++; - if (bytes[i] != 0) break; + if (bytes[i] != 0) + break; } // we return false when all bytes are 0 again return (i >= startIndex || bytes[startIndex] != 0); } /** - * Utility function to copy a byte array into a new byte array with given size. If the src - * length is smaller than the given size, the result will be left-padded with zeros. + * Utility function to copy a byte array into a new byte array with given size. If the src length is smaller than + * the given size, the result will be left-padded with zeros. * - * @param value - a BigInteger with a maximum value of 2^256-1 + * @param value + * - a BigInteger with a maximum value of 2^256-1 + * * @return Byte array of given size with a copy of the src */ public static byte[] copyToArray(BigInteger value) { @@ -383,21 +428,24 @@ public static byte[] copyToArray(BigInteger value) { return dest; } - // public static ByteArrayWrapper wrap(byte[] data) { - // return new ByteArrayWrapper(data); - // } + // public static ByteArrayWrapper wrap(byte[] data) { + // return new ByteArrayWrapper(data); + // } public static byte[] setBit(byte[] data, int pos, int val) { - if ((data.length * 8) - 1 < pos) throw new Error("outside byte array limit, pos: " + pos); + if ((data.length * 8) - 1 < pos) + throw new Error("outside byte array limit, pos: " + pos); int posByte = data.length - 1 - (pos) / 8; int posBit = (pos) % 8; byte setter = (byte) (1 << (posBit)); byte toBeSet = data[posByte]; byte result; - if (val == 1) result = (byte) (toBeSet | setter); - else result = (byte) (toBeSet & ~setter); + if (val == 1) + result = (byte) (toBeSet | setter); + else + result = (byte) (toBeSet & ~setter); data[posByte] = result; return data; @@ -405,7 +453,8 @@ public static byte[] setBit(byte[] data, int pos, int val) { public static int getBit(byte[] data, int pos) { - if ((data.length * 8) - 1 < pos) throw new Error("outside byte array limit, pos: " + pos); + if ((data.length * 8) - 1 < pos) + throw new Error("outside byte array limit, pos: " + pos); int posByte = data.length - 1 - pos / 8; int posBit = pos % 8; @@ -414,7 +463,8 @@ public static int getBit(byte[] data, int pos) { } public static byte[] and(byte[] b1, byte[] b2) { - if (b1.length != b2.length) throw new RuntimeException("Array sizes differ"); + if (b1.length != b2.length) + throw new RuntimeException("Array sizes differ"); byte[] ret = new byte[b1.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (byte) (b1[i] & b2[i]); @@ -423,7 +473,8 @@ public static byte[] and(byte[] b1, byte[] b2) { } public static byte[] or(byte[] b1, byte[] b2) { - if (b1.length != b2.length) throw new RuntimeException("Array sizes differ"); + if (b1.length != b2.length) + throw new RuntimeException("Array sizes differ"); byte[] ret = new byte[b1.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (byte) (b1[i] | b2[i]); @@ -432,7 +483,8 @@ public static byte[] or(byte[] b1, byte[] b2) { } public static byte[] xor(byte[] b1, byte[] b2) { - if (b1.length != b2.length) throw new RuntimeException("Array sizes differ"); + if (b1.length != b2.length) + throw new RuntimeException("Array sizes differ"); byte[] ret = new byte[b1.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (byte) (b1[i] ^ b2[i]); @@ -441,8 +493,7 @@ public static byte[] xor(byte[] b1, byte[] b2) { } /** - * XORs byte arrays of different lengths by aligning length of the shortest via adding zeros at - * beginning + * XORs byte arrays of different lengths by aligning length of the shortest via adding zeros at beginning */ public static byte[] xorAlignRight(byte[] b1, byte[] b2) { if (b1.length > b2.length) { @@ -459,7 +510,9 @@ public static byte[] xorAlignRight(byte[] b1, byte[] b2) { } /** - * @param arrays - arrays to merge + * @param arrays + * - arrays to merge + * * @return - merged array */ public static byte[] merge(byte[]... arrays) { @@ -499,7 +552,8 @@ public static Set difference(Set setA, Set setB) { break; } } - if (!found) result.add(elementA); + if (!found) + result.add(elementA); } return result; @@ -613,8 +667,8 @@ public static String bytesToIp(byte[] bytesIp) { } /** - * Returns a number of zero bits preceding the highest-order ("leftmost") one-bit interpreting - * input array as a big-endian integer value + * Returns a number of zero bits preceding the highest-order ("leftmost") one-bit interpreting input array as a + * big-endian integer value */ public static int numberOfLeadingZeros(byte[] bytes) { @@ -631,12 +685,12 @@ public static int numberOfLeadingZeros(byte[] bytes) { /** * Parses fixed number of bytes starting from {@code offset} in {@code input} array. If {@code * input} has not enough bytes return array will be right padded with zero bytes. I.e. if {@code - * offset} is higher than {@code input.length} then zero byte array of length {@code len} will - * be returned + * offset} is higher than {@code input.length} then zero byte array of length {@code len} will be returned */ public static byte[] parseBytes(byte[] input, int offset, int len) { - if (offset >= input.length || len == 0) return EMPTY_BYTE_ARRAY; + if (offset >= input.length || len == 0) + return EMPTY_BYTE_ARRAY; byte[] bytes = new byte[len]; System.arraycopy(input, offset, bytes, 0, Math.min(input.length - offset, len)); @@ -644,23 +698,26 @@ public static byte[] parseBytes(byte[] input, int offset, int len) { } /** - * Parses 32-bytes word from given input. Uses {@link #parseBytes(byte[], int, int)} method, - * thus, result will be right-padded with zero bytes if there is not enough bytes in {@code + * Parses 32-bytes word from given input. Uses {@link #parseBytes(byte[], int, int)} method, thus, result will be + * right-padded with zero bytes if there is not enough bytes in {@code * input} * - * @param idx an index of the word starting from {@code 0} + * @param idx + * an index of the word starting from {@code 0} */ public static byte[] parseWord(byte[] input, int idx) { return parseBytes(input, 32 * idx, 32); } /** - * Parses 32-bytes word from given input. Uses {@link #parseBytes(byte[], int, int)} method, - * thus, result will be right-padded with zero bytes if there is not enough bytes in {@code + * Parses 32-bytes word from given input. Uses {@link #parseBytes(byte[], int, int)} method, thus, result will be + * right-padded with zero bytes if there is not enough bytes in {@code * input} * - * @param idx an index of the word starting from {@code 0} - * @param offset an offset in {@code input} array to start parsing from + * @param idx + * an index of the word starting from {@code 0} + * @param offset + * an offset in {@code input} array to start parsing from */ public static byte[] parseWord(byte[] input, int offset, int idx) { return parseBytes(input, offset + 32 * idx, 32); diff --git a/src/main/java/cn/chain33/javasdk/utils/CertUtils.java b/src/main/java/cn/chain33/javasdk/utils/CertUtils.java index 44eca2c..8bf1bc4 100644 --- a/src/main/java/cn/chain33/javasdk/utils/CertUtils.java +++ b/src/main/java/cn/chain33/javasdk/utils/CertUtils.java @@ -6,7 +6,7 @@ import java.io.*; public class CertUtils { - public static final int CertActionNew = 1; + public static final int CertActionNew = 1; public static final int CertActionUpdate = 2; public static final int CertActionNormal = 3; @@ -26,6 +26,6 @@ public static byte[] getCertFromFile(String fileName) throws IOException { is.read(bytes); is.close(); - return bytes; + return bytes; } } diff --git a/src/main/java/cn/chain33/javasdk/utils/ConfigUtil.java b/src/main/java/cn/chain33/javasdk/utils/ConfigUtil.java index 37aaadf..3ffaa0f 100644 --- a/src/main/java/cn/chain33/javasdk/utils/ConfigUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/ConfigUtil.java @@ -16,8 +16,8 @@ public class ConfigUtil { public static List getNodes(String file) { List addresses = new ArrayList<>(); Properties properties = new Properties(); - String filePath = System.getProperty("user.dir")+"/"+file; - try{ + String filePath = System.getProperty("user.dir") + "/" + file; + try { InputStream in = new BufferedInputStream(new FileInputStream(filePath)); properties.load(in); String[] ipList = properties.getProperty("targetURI").split(","); diff --git a/src/main/java/cn/chain33/javasdk/utils/DesUtil.java b/src/main/java/cn/chain33/javasdk/utils/DesUtil.java index 58da0b0..deaa6c0 100644 --- a/src/main/java/cn/chain33/javasdk/utils/DesUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/DesUtil.java @@ -14,8 +14,10 @@ public class DesUtil { /** * * @description encrypt + * * @param content * @param password + * * @return */ public static byte[] encrypt(byte[] content, String password) { @@ -36,7 +38,9 @@ public static byte[] encrypt(byte[] content, String password) { /** * * @description decrypt + * * @param password + * * @return */ public static byte[] decrypt(byte[] contentEncrypt, String password) throws Exception { @@ -55,7 +59,7 @@ public static byte[] decrypt(byte[] contentEncrypt, String password) throws Exce public static String padding(String password) { int length = password.length(); - //计算需填充长度 + // 计算需填充长度 if (length % BLOCKSIZE == 0) { return password; } @@ -63,7 +67,7 @@ public static String padding(String password) { length += BLOCKSIZE - (length % BLOCKSIZE); byte[] plaintext = new byte[length]; - //填充 + // 填充 System.arraycopy(password.getBytes(), 0, plaintext, 0, password.length()); return new String(plaintext); @@ -75,7 +79,7 @@ public static void main(String args[]) { String str = "测试内容"; // 密码,长度要是8的倍数 String password = "11111111"; - + System.out.println("content:" + str); System.out.println("password:" + password); byte[] result = encrypt(str.getBytes(), password); diff --git a/src/main/java/cn/chain33/javasdk/utils/EvmUtil.java b/src/main/java/cn/chain33/javasdk/utils/EvmUtil.java index 38efb13..d800729 100644 --- a/src/main/java/cn/chain33/javasdk/utils/EvmUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/EvmUtil.java @@ -31,11 +31,17 @@ public class EvmUtil { /** * * @description 部署合约(联盟主链的情况下调用),此方法后续不再维护,统一用下面带GAS参数的方法) - * @param code 合约代码内容 - * @param note 注释 - * @param alias 合约别名 - * @param privateKey 签名私钥 - * @return hash,即合约名 + * + * @param code + * 合约代码内容 + * @param note + * 注释 + * @param alias + * 合约别名 + * @param privateKey + * 签名私钥 + * + * @return hash,即合约名 * */ @Deprecated @@ -61,257 +67,302 @@ public static String createEvmContract(byte[] code, String note, String alias, S String hexString = HexUtil.toHexString(signProbuf.toByteArray()); return hexString; } - + + /** + * + * @description 部署合约(平行链的情况下调用,要传paraName(平行链名称)) 此方法后续不再维护,统一用下面带GAS参数的方法) + * + * @param code + * 合约代码内容 + * @param note + * 注释 + * @param alias + * 合约别名 + * @param privateKey + * 签名私钥 + * @param paraName + * 平行链名称(如果是主链的情况,此参数填空) + * + * @return hash,即合约名 + * + */ + @Deprecated + public static String createEvmContract(byte[] code, String note, String alias, String privateKey, String paraName) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setCode(ByteString.copyFrom(code)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAlias(alias); + evmActionBuilder.setContractAddr(TransactionUtil.getToAddress((paraName + "evm").getBytes())); + + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + + String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), + evmContractAction.toByteArray(), EVM_FEE, 0); + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); + String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + return hexString; + } + + /** + * + * @description 部署合约(平行链的情况下调用,要传paraName(平行链名称)) + * + * @param code + * 合约代码内容 + * @param note + * 注释 + * @param alias + * 合约别名 + * @param privateKey + * 签名私钥 + * @param paraName + * 平行链名称(如果是主链的情况,此参数填空) + * @param gas + * gas费 + * + * @return hash,即合约名 + * + */ + public static String createEvmContract(byte[] code, String note, String alias, String privateKey, String paraName, + long gas) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setCode(ByteString.copyFrom(code)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAlias(alias); + evmActionBuilder.setContractAddr(TransactionUtil.getToAddress((paraName + "evm").getBytes())); + + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + long fee = 0L; + // 以防用户乱填GAS,导致交易执行不过,设置一个最小的GAS费 + if (gas < EVM_FEE) { + fee = EVM_FEE; + } else { + fee = gas + 100000L; + } + + String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), + evmContractAction.toByteArray(), fee, 0); + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); + String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + return hexString; + } + + /** + * 构造创建EVM合约交易 + * + * @param code + * 合约代码内容 + * @param note + * 注释 + * @param alias + * 合约别名 + * @param paraName + * 平行链名称(如果是主链的情况,此参数填空) + * + * @return + */ + public static String getCreateEvmEncode(byte[] code, String note, String alias, String paraName) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setCode(ByteString.copyFrom(code)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAlias(alias); + evmActionBuilder.setContractAddr(TransactionUtil.getToAddress((paraName + "evm").getBytes())); + + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + + String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), + evmContractAction.toByteArray(), EVM_FEE, 0); + return createTxWithoutSign; + } + + /** + * + * @description 调用合约(平行链的情况下调用,要传paraName(平行链名称)) + * + * @param parameter + * 合约代码内容 + * @param note + * 注释 + * @param amount + * 转账金额 + * @param privateKey + * 签名私钥 + * + * @return hash + * + */ + @Deprecated + public static String callEvmContract(byte[] parameter, String note, long amount, String contractAddr, + String privateKey, String paraName) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setPara(ByteString.copyFrom(parameter)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAmount(amount); + evmActionBuilder.setContractAddr(contractAddr); + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + + String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), + evmContractAction.toByteArray(), EVM_FEE, 0); + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); + return HexUtil.toHexString(signProbuf.toByteArray()); + } + + /** + * + * @description 调用合约(平行链的情况下调用,要传paraName(平行链名称)) + * + * @param parameter + * 合约代码内容 + * @param note + * 注释 + * @param amount + * 转账金额 + * @param privateKey + * 签名私钥 + * + * @return hash + * + */ + public static String callEvmContract(byte[] parameter, String note, long amount, String contractAddr, + String privateKey, String paraName, long gas) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setPara(ByteString.copyFrom(parameter)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAmount(amount); + evmActionBuilder.setContractAddr(contractAddr); + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + long fee = 0L; + if (gas < EVM_FEE) { + fee = EVM_FEE; + } else { + fee = gas + 100000L; + } + + String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), + evmContractAction.toByteArray(), fee, 0); + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); + return HexUtil.toHexString(signProbuf.toByteArray()); + } + /** - * - * @description 部署合约(平行链的情况下调用,要传paraName(平行链名称)) 此方法后续不再维护,统一用下面带GAS参数的方法) - * @param code 合约代码内容 - * @param note 注释 - * @param alias 合约别名 - * @param privateKey 签名私钥 - * @param paraName 平行链名称(如果是主链的情况,此参数填空) - * @return hash,即合约名 - * - */ - @Deprecated - public static String createEvmContract(byte[] code, String note, String alias, String privateKey, String paraName) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setCode(ByteString.copyFrom(code)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAlias(alias); - evmActionBuilder.setContractAddr(TransactionUtil.getToAddress((paraName + "evm").getBytes())); - - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - - String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), evmContractAction.toByteArray(), - EVM_FEE, 0); - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); - String hexString = HexUtil.toHexString(signProbuf.toByteArray()); - return hexString; - } - - /** - * - * @description 部署合约(平行链的情况下调用,要传paraName(平行链名称)) - * @param code 合约代码内容 - * @param note 注释 - * @param alias 合约别名 - * @param privateKey 签名私钥 - * @param paraName 平行链名称(如果是主链的情况,此参数填空) - * @param gas gas费 - * @return hash,即合约名 - * - */ - public static String createEvmContract(byte[] code, String note, String alias, String privateKey, String paraName, long gas) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setCode(ByteString.copyFrom(code)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAlias(alias); - evmActionBuilder.setContractAddr(TransactionUtil.getToAddress((paraName + "evm").getBytes())); - - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - long fee = 0L; - // 以防用户乱填GAS,导致交易执行不过,设置一个最小的GAS费 - if (gas < EVM_FEE) { - fee = EVM_FEE; - } else { - fee = gas + 100000L; - } - - String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), evmContractAction.toByteArray(), - fee, 0); - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); - String hexString = HexUtil.toHexString(signProbuf.toByteArray()); - return hexString; - } - - /** - * 构造创建EVM合约交易 - * @param code 合约代码内容 - * @param note 注释 - * @param alias 合约别名 - * @param paraName 平行链名称(如果是主链的情况,此参数填空) - * @return - */ - public static String getCreateEvmEncode(byte[] code, String note, String alias, String paraName) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setCode(ByteString.copyFrom(code)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAlias(alias); - evmActionBuilder.setContractAddr(TransactionUtil.getToAddress((paraName + "evm").getBytes())); - - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - - String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), evmContractAction.toByteArray(), - EVM_FEE, 0); - return createTxWithoutSign; - } - - /** - * - * @description 调用合约(平行链的情况下调用,要传paraName(平行链名称)) - * @param parameter 合约代码内容 - * @param note 注释 - * @param amount 转账金额 - * @param privateKey 签名私钥 - * @return hash - * - */ - @Deprecated - public static String callEvmContract(byte[] parameter, String note, long amount, String contractAddr, String privateKey, String paraName) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setPara(ByteString.copyFrom(parameter)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAmount(amount); - evmActionBuilder.setContractAddr(contractAddr); - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - - String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), evmContractAction.toByteArray(), - EVM_FEE, 0); - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); - return HexUtil.toHexString(signProbuf.toByteArray()); - } - - - /** - * - * @description 调用合约(平行链的情况下调用,要传paraName(平行链名称)) - * @param parameter 合约代码内容 - * @param note 注释 - * @param amount 转账金额 - * @param privateKey 签名私钥 - * @return hash - * - */ - public static String callEvmContract(byte[] parameter, String note, long amount, String contractAddr, String privateKey, String paraName, long gas) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setPara(ByteString.copyFrom(parameter)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAmount(amount); - evmActionBuilder.setContractAddr(contractAddr); - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - long fee = 0L; - if (gas < EVM_FEE) { - fee = EVM_FEE; - } else { - fee = gas + 100000L; - } - - String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), evmContractAction.toByteArray(), - fee, 0); - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); - return HexUtil.toHexString(signProbuf.toByteArray()); - } - - - - /** - * - * @description 调用合约(平行链的情况下调用,要传paraName(平行链名称)) - * @param parameter 合约代码内容 - * @param note 注释 - * @param amount 转账金额 - * @return hash - * - */ - public static String getCallEvmEncode(byte[] parameter, String note, long amount, String contractAddr, String paraName) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setPara(ByteString.copyFrom(parameter)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAmount(amount); - evmActionBuilder.setContractAddr(contractAddr); - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - - String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), evmContractAction.toByteArray(), - EVM_FEE, 0); - return createTxWithoutSign; - } - - - + * + * @description 调用合约(平行链的情况下调用,要传paraName(平行链名称)) + * + * @param parameter + * 合约代码内容 + * @param note + * 注释 + * @param amount + * 转账金额 + * + * @return hash + * + */ + public static String getCallEvmEncode(byte[] parameter, String note, long amount, String contractAddr, + String paraName) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setPara(ByteString.copyFrom(parameter)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAmount(amount); + evmActionBuilder.setContractAddr(contractAddr); + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + + String createTxWithoutSign = TransactionUtil.createTxWithoutSign((paraName + "evm").getBytes(), + evmContractAction.toByteArray(), EVM_FEE, 0); + return createTxWithoutSign; + } + /** - * - * @description 部署合约(平行链采用代扣的情况下调用) - * @param code 合约代码内容 - * @param note 注释 - * @param alias 合约别名 - * @param privateKey 签名私钥 - * @return hash,即合约名 - * - */ - public static String createEvmContractWithhold(byte[] code, String note, String alias, String privateKey, String execer, String contranctAddress) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setCode(ByteString.copyFrom(code)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAlias(alias); - - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, evmContractAction.toByteArray(), EVM_FEE); - - return createTransferTx; - } - - - - - - /** - * @description 调用合约(平行链采用代扣的情况下调用) - * @param parameter - * @param note - * @param amount - * @param privateKey - * @param contractAddress - * @return - */ - public static String callEvmContractWithhold(byte[] parameter, String note, long amount, String exec, String privateKey, String contractAddress) { - EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); - evmActionBuilder.setPara(ByteString.copyFrom(parameter)); - evmActionBuilder.setNote(note); - evmActionBuilder.setAmount(amount); - evmActionBuilder.setContractAddr(contractAddress); - EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); - - String createTransferTx = TransactionUtil.createTransferTx(privateKey, TransactionUtil.getToAddress(exec.getBytes()), exec, evmContractAction.toByteArray(), EVM_FEE); - - return createTransferTx; - } + * + * @description 部署合约(平行链采用代扣的情况下调用) + * + * @param code + * 合约代码内容 + * @param note + * 注释 + * @param alias + * 合约别名 + * @param privateKey + * 签名私钥 + * + * @return hash,即合约名 + * + */ + public static String createEvmContractWithhold(byte[] code, String note, String alias, String privateKey, + String execer, String contranctAddress) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setCode(ByteString.copyFrom(code)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAlias(alias); + + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + evmContractAction.toByteArray(), EVM_FEE); + + return createTransferTx; + } + + /** + * @description 调用合约(平行链采用代扣的情况下调用) + * + * @param parameter + * @param note + * @param amount + * @param privateKey + * @param contractAddress + * + * @return + */ + public static String callEvmContractWithhold(byte[] parameter, String note, long amount, String exec, + String privateKey, String contractAddress) { + EvmService.EVMContractAction.Builder evmActionBuilder = EvmService.EVMContractAction.newBuilder(); + evmActionBuilder.setPara(ByteString.copyFrom(parameter)); + evmActionBuilder.setNote(note); + evmActionBuilder.setAmount(amount); + evmActionBuilder.setContractAddr(contractAddress); + EvmService.EVMContractAction evmContractAction = evmActionBuilder.build(); + + String createTransferTx = TransactionUtil.createTransferTx(privateKey, + TransactionUtil.getToAddress(exec.getBytes()), exec, evmContractAction.toByteArray(), EVM_FEE); + + return createTransferTx; + } public static SolidityCompiler.Result compileContract(byte[] code, String version) throws IOException { return SolidityCompiler.compile(code, version, true, ABI, BIN, INTERFACE, METADATA); } - public static CompilationResult.ContractMetadata paserCompileResult(SolidityCompiler.Result result, String contractName) throws IOException { + public static CompilationResult.ContractMetadata paserCompileResult(SolidityCompiler.Result result, + String contractName) throws IOException { CompilationResult compilationResult = CompilationResult.parse(result.getOutput()); return compilationResult.getContract(contractName); } @@ -319,7 +370,7 @@ public static CompilationResult.ContractMetadata paserCompileResult(SolidityComp public static byte[] encodeParameter(String abiStr, String funcName, Object... params) throws Exception { try { Abi abiObj = Abi.fromJson(abiStr); - Abi.Function func = abiObj.findFunction(s->s.name.equals(funcName)); + Abi.Function func = abiObj.findFunction(s -> s.name.equals(funcName)); return func.encode(params); } catch (Exception e) { throw new Exception(e.getMessage()); @@ -340,7 +391,7 @@ public static List decodeOutput(String abiStr, String funcName, JSONObject ou String resultArray = output.getString("rawData"); Abi abiObj = Abi.fromJson(abiStr); - Abi.Function func = abiObj.findFunction(s->s.name.equals(funcName)); + Abi.Function func = abiObj.findFunction(s -> s.name.equals(funcName)); return func.decodeResult(HexUtil.fromHexString(resultArray)); } @@ -353,9 +404,9 @@ public static String getContractAddr(JSONObject result) { Matcher m = r.matcher(resultStr); - if(m.find()) { + if (m.find()) { String[] splits = StringUtils.split(m.group(0), ":"); - if(splits.length == 2) { + if (splits.length == 2) { return StringUtils.strip(splits[1], "\""); } } diff --git a/src/main/java/cn/chain33/javasdk/utils/HexUtil.java b/src/main/java/cn/chain33/javasdk/utils/HexUtil.java index fc45f21..acad632 100644 --- a/src/main/java/cn/chain33/javasdk/utils/HexUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/HexUtil.java @@ -4,710 +4,737 @@ public class HexUtil { - private static final char[] hex = "0123456789abcdef".toCharArray(); - - private static final int[] DEC = { 00, 01, 02, 03, 04, 05, 06, 07, 8, 9, -1, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, - 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 10, 11, 12, 13, 14, 15, }; - - /** - * Table for DEC to HEX byte translation. - */ - private static final byte[] HEX = { (byte) '0', (byte) '1', (byte) '2', (byte) '3', (byte) '4', (byte) '5', - (byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', - (byte) 'f' }; - - public static String toHexString(byte[] bytes) { - if (null == bytes) { - return null; - } - - StringBuilder sb = new StringBuilder(bytes.length << 1); - - for (int i = 0; i < bytes.length; ++i) { - sb.append(hex[(bytes[i] & 0xf0) >> 4]).append(hex[(bytes[i] & 0x0f)]); - } - - return sb.toString(); - } - - public static byte[] fromHexString(String input) { - if (input == null) { - return null; - } - - if ((input.length() & 1) == 1) { - // Odd number of characters - return null; - } - - if(input.startsWith("0x")) { - input = input.substring(2); - } - char[] inputChars = input.toCharArray(); - byte[] result = new byte[input.length() >> 1]; - for (int i = 0; i < result.length; i++) { - int upperNibble = getDec(inputChars[2 * i]); - int lowerNibble = getDec(inputChars[2 * i + 1]); - if (upperNibble < 0 || lowerNibble < 0) { - // Non hex character - return null; - } - result[i] = (byte) ((upperNibble << 4) + lowerNibble); - } - return result; - } - - public static int getDec(int index) { - // Fast for correct values, slower for incorrect ones - try { - return DEC[index - '0']; - } catch (ArrayIndexOutOfBoundsException ex) { - return -1; - } - } - - public static byte getHex(int index) { - return HEX[index]; - } - - public static String removeHexHeader(String hexString) { - if(StringUtil.isNotEmpty(hexString)) { - if(hexString.startsWith("0x")) { - return hexString.substring(2); - } - } - return null; - } - - - - public static byte[] intToBytes(int num) { - byte[] bytes = new byte[4]; - bytes[3] = (byte) (0xff & (num >> 0)); - bytes[2] = (byte) (0xff & (num >> 8)); - bytes[1] = (byte) (0xff & (num >> 16)); - bytes[0] = (byte) (0xff & (num >> 24)); - return bytes; - } - - /** - * 四个字节的字节数据转换成一个整形数据 - * - * @param bytes - * 4个字节的字节数组 - * @return 一个整型数据 - */ - public static int byteToInt(byte[] bytes) { - int num = 0; - int temp; - temp = (0x000000ff & (bytes[3])) << 0; - num = num | temp; - temp = (0x000000ff & (bytes[2])) << 8; - num = num | temp; - temp = (0x000000ff & (bytes[1])) << 16; - num = num | temp; - temp = (0x000000ff & (bytes[0])) << 24; - num = num | temp; - return num; - } - - /** - * 长整形转换成网络传输的字节流(字节数组)型数据 - * - * @param num - * 一个长整型数据 - * @return 4个字节的自己数组 - */ - public static byte[] longToBytes(long num) { - byte[] bytes = new byte[8]; - for (int i = 0; i < 8; i++) { - bytes[i] = (byte) (0xff & (num >> (i * 8))); - } - - return bytes; - } - - /** - * 大数字转换字节流(字节数组)型数据 - * - * @param n - * @return - */ - public static byte[] byteConvert32Bytes(BigInteger n) { - byte tmpd[] = (byte[]) null; - if (n == null) { - return null; - } - - if (n.toByteArray().length == 33) { - tmpd = new byte[32]; - System.arraycopy(n.toByteArray(), 1, tmpd, 0, 32); - } else if (n.toByteArray().length == 32) { - tmpd = n.toByteArray(); - } else { - tmpd = new byte[32]; - for (int i = 0; i < 32 - n.toByteArray().length; i++) { - tmpd[i] = 0; - } - System.arraycopy(n.toByteArray(), 0, tmpd, - 32 - n.toByteArray().length, n.toByteArray().length); - } - return tmpd; - } - - /** - * 换字节流(字节数组)型数据转大数字 - * - * @param b - * @return - */ - public static BigInteger byteConvertInteger(byte[] b) { - if (b[0] < 0) { - byte[] temp = new byte[b.length + 1]; - temp[0] = 0; - System.arraycopy(b, 0, temp, 1, b.length); - return new BigInteger(temp); - } - return new BigInteger(b); - } - - /** - * 根据字节数组获得值(十六进制数字) - * - * @param bytes - * @return - */ - public static String getHexString(byte[] bytes) { - return getHexString(bytes, true); - } - - /** - * 根据字节数组获得值(十六进制数字) - * - * @param bytes - * @param upperCase - * @return - */ - public static String getHexString(byte[] bytes, boolean upperCase) { - String ret = ""; - for (int i = 0; i < bytes.length; i++) { - ret += Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1); - } - return upperCase ? ret.toUpperCase() : ret; - } - - /** - * 打印十六进制字符串 - * - * @param bytes - */ - public static void printHexString(byte[] bytes) { - for (int i = 0; i < bytes.length; i++) { - String hex = Integer.toHexString(bytes[i] & 0xFF); - if (hex.length() == 1) { - hex = '0' + hex; - } - System.out.print("0x" + hex.toUpperCase() + ","); - } - System.out.println(""); - } - - /** - * Convert hex string to byte[] - * - * @param hexString - * the hex string - * @return byte[] - */ - public static byte[] hexStringToBytes(String hexString) { - if (hexString == null || hexString.equals("")) { - return null; - } - - hexString = hexString.toUpperCase(); - int length = hexString.length() / 2; - char[] hexChars = hexString.toCharArray(); - byte[] d = new byte[length]; - for (int i = 0; i < length; i++) { - int pos = i * 2; - d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1])); - } - return d; - } - - /** - * Convert char to byte - * - * @param c - * char - * @return byte - */ - public static byte charToByte(char c) { - return (byte) "0123456789ABCDEF".indexOf(c); - } - - /** - * 用于建立十六进制字符的输出的小写字符数组 - */ - private static final char[] DIGITS_LOWER = { '0', '1', '2', '3', '4', '5', - '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; - - /** - * 用于建立十六进制字符的输出的大写字符数组 - */ - private static final char[] DIGITS_UPPER = { '0', '1', '2', '3', '4', '5', - '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - - /** - * 将字节数组转换为十六进制字符数组 - * - * @param data - * byte[] - * @return 十六进制char[] - */ - public static char[] encodeHex(byte[] data) { - return encodeHex(data, true); - } - - /** - * 将字节数组转换为十六进制字符数组 - * - * @param data - * byte[] - * @param toLowerCase - * true 传换成小写格式 , false 传换成大写格式 - * @return 十六进制char[] - */ - public static char[] encodeHex(byte[] data, boolean toLowerCase) { - return encodeHex(data, toLowerCase ? DIGITS_LOWER : DIGITS_UPPER); - } - - /** - * 将字节数组转换为十六进制字符数组 - * - * @param data - * byte[] - * @param toDigits - * 用于控制输出的char[] - * @return 十六进制char[] - */ - protected static char[] encodeHex(byte[] data, char[] toDigits) { - int l = data.length; - char[] out = new char[l << 1]; - // two characters form the hex value. - for (int i = 0, j = 0; i < l; i++) { - out[j++] = toDigits[(0xF0 & data[i]) >>> 4]; - out[j++] = toDigits[0x0F & data[i]]; - } - return out; - } - - /** - * 将字节数组转换为十六进制字符串 - * - * @param data - * byte[] - * @return 十六进制String - */ - public static String encodeHexString(byte[] data) { - return encodeHexString(data, true); - } - - /** - * 将字节数组转换为十六进制字符串 - * - * @param data - * byte[] - * @param toLowerCase - * true 传换成小写格式 , false 传换成大写格式 - * @return 十六进制String - */ - public static String encodeHexString(byte[] data, boolean toLowerCase) { - return encodeHexString(data, toLowerCase ? DIGITS_LOWER : DIGITS_UPPER); - } - - /** - * 将字节数组转换为十六进制字符串 - * - * @param data - * byte[] - * @param toDigits - * 用于控制输出的char[] - * @return 十六进制String - */ - protected static String encodeHexString(byte[] data, char[] toDigits) { - return new String(encodeHex(data, toDigits)); - } - - /** - * 将十六进制字符数组转换为字节数组 - * - * @param data - * 十六进制char[] - * @return byte[] - * @throws RuntimeException - * 如果源十六进制字符数组是一个奇怪的长度,将抛出运行时异常 - */ - public static byte[] decodeHex(char[] data) { - int len = data.length; - - if ((len & 0x01) != 0) { - throw new RuntimeException("Odd number of characters."); - } - - byte[] out = new byte[len >> 1]; - - // two characters form the hex value. - for (int i = 0, j = 0; j < len; i++) { - int f = toDigit(data[j], j) << 4; - j++; - f = f | toDigit(data[j], j); - j++; - out[i] = (byte) (f & 0xFF); - } - - return out; - } - - /** - * 将十六进制字符转换成一个整数 - * - * @param ch - * 十六进制char - * @param index - * 十六进制字符在字符数组中的位置 - * @return 一个整数 - * @throws RuntimeException - * 当ch不是一个合法的十六进制字符时,抛出运行时异常 - */ - protected static int toDigit(char ch, int index) { - int digit = Character.digit(ch, 16); - if (digit == -1) { - throw new RuntimeException("Illegal hexadecimal character " + ch - + " at index " + index); - } - return digit; - } - - /** - * 数字字符串转ASCII码字符串 - * - * @param content - * 字符串 - * @return ASCII字符串 - */ - public static String StringToAsciiString(String content) { - String result = ""; - int max = content.length(); - for (int i = 0; i < max; i++) { - char c = content.charAt(i); - String b = Integer.toHexString(c); - result = result + b; - } - return result; - } - - /** - * 十六进制转字符串 - * - * @param hexString - * 十六进制字符串 - * @param encodeType - * 编码类型4:Unicode,2:普通编码 - * @return 字符串 - */ - public static String hexStringToString(String hexString, int encodeType) { - String result = ""; - int max = hexString.length() / encodeType; - for (int i = 0; i < max; i++) { - char c = (char) hexStringToAlgorism(hexString.substring(i - * encodeType, (i + 1) * encodeType)); - result += c; - } - return result; - } - - /** - * 十六进制字符串装十进制 - * - * @param hex - * 十六进制字符串 - * @return 十进制数值 - */ - public static int hexStringToAlgorism(String hex) { - hex = hex.toUpperCase(); - int max = hex.length(); - int result = 0; - for (int i = max; i > 0; i--) { - char c = hex.charAt(i - 1); - int algorism = 0; - if (c >= '0' && c <= '9') { - algorism = c - '0'; - } else { - algorism = c - 55; - } - result += Math.pow(16, max - i) * algorism; - } - return result; - } - - /** - * 十六转二进制 - * - * @param hex - * 十六进制字符串 - * @return 二进制字符串 - */ - public static String hexStringToBinary(String hex) { - hex = hex.toUpperCase(); - String result = ""; - int max = hex.length(); - for (int i = 0; i < max; i++) { - char c = hex.charAt(i); - switch (c) { - case '0': - result += "0000"; - break; - case '1': - result += "0001"; - break; - case '2': - result += "0010"; - break; - case '3': - result += "0011"; - break; - case '4': - result += "0100"; - break; - case '5': - result += "0101"; - break; - case '6': - result += "0110"; - break; - case '7': - result += "0111"; - break; - case '8': - result += "1000"; - break; - case '9': - result += "1001"; - break; - case 'A': - result += "1010"; - break; - case 'B': - result += "1011"; - break; - case 'C': - result += "1100"; - break; - case 'D': - result += "1101"; - break; - case 'E': - result += "1110"; - break; - case 'F': - result += "1111"; - break; - } - } - return result; - } - - /** - * ASCII码字符串转数字字符串 - * - * @param content - * ASCII字符串 - * @return 字符串 - */ - public static String AsciiStringToString(String content) { - String result = ""; - int length = content.length() / 2; - for (int i = 0; i < length; i++) { - String c = content.substring(i * 2, i * 2 + 2); - int a = hexStringToAlgorism(c); - char b = (char) a; - String d = String.valueOf(b); - result += d; - } - return result; - } - - /** - * 将十进制转换为指定长度的十六进制字符串 - * - * @param algorism - * int 十进制数字 - * @param maxLength - * int 转换后的十六进制字符串长度 - * @return String 转换后的十六进制字符串 - */ - public static String algorismToHexString(int algorism, int maxLength) { - String result = ""; - result = Integer.toHexString(algorism); - - if (result.length() % 2 == 1) { - result = "0" + result; - } - return patchHexString(result.toUpperCase(), maxLength); - } - - /** - * 字节数组转为普通字符串(ASCII对应的字符) - * - * @param bytearray - * byte[] - * @return String - */ - public static String byteToString(byte[] bytearray) { - String result = ""; - char temp; - - int length = bytearray.length; - for (int i = 0; i < length; i++) { - temp = (char) bytearray[i]; - result += temp; - } - return result; - } - - /** - * 二进制字符串转十进制 - * - * @param binary - * 二进制字符串 - * @return 十进制数值 - */ - public static int binaryToAlgorism(String binary) { - int max = binary.length(); - int result = 0; - for (int i = max; i > 0; i--) { - char c = binary.charAt(i - 1); - int algorism = c - '0'; - result += Math.pow(2, max - i) * algorism; - } - return result; - } - - /** - * 十进制转换为十六进制字符串 - * - * @param algorism - * int 十进制的数字 - * @return String 对应的十六进制字符串 - */ - public static String algorismToHEXString(int algorism) { - String result = ""; - result = Integer.toHexString(algorism); - - if (result.length() % 2 == 1) { - result = "0" + result; - - } - result = result.toUpperCase(); - - return result; - } - - /** - * HEX字符串前补0,主要用于长度位数不足。 - * - * @param str - * String 需要补充长度的十六进制字符串 - * @param maxLength - * int 补充后十六进制字符串的长度 - * @return 补充结果 - */ - static public String patchHexString(String str, int maxLength) { - String temp = ""; - for (int i = 0; i < maxLength - str.length(); i++) { - temp = "0" + temp; - } - str = (temp + str).substring(0, maxLength); - return str; - } - - /** - * 将一个字符串转换为int - * - * @param s - * String 要转换的字符串 - * @param defaultInt - * int 如果出现异常,默认返回的数字 - * @param radix - * int 要转换的字符串是什么进制的,如16 8 10. - * @return int 转换后的数字 - */ - public static int parseToInt(String s, int defaultInt, int radix) { - int i = 0; - try { - i = Integer.parseInt(s, radix); - } catch (NumberFormatException ex) { - i = defaultInt; - } - return i; - } - - /** - * 将一个十进制形式的数字字符串转换为int - * - * @param s - * String 要转换的字符串 - * @param defaultInt - * int 如果出现异常,默认返回的数字 - * @return int 转换后的数字 - */ - public static int parseToInt(String s, int defaultInt) { - int i = 0; - try { - i = Integer.parseInt(s); - } catch (NumberFormatException ex) { - i = defaultInt; - } - return i; - } - - public static byte[] subByte(byte[] input, int startIndex, int length) { - byte[] bt = new byte[length]; - for (int i = 0; i < length; i++) { - bt[i] = input[i + startIndex]; - } - return bt; - } - - /** - * 将一个16进制数转化成字符串 - * @param s - * @return - */ - public static String hexStringToString(String s) { - if (s == null || s.equals("")) { - return null; - } - if(s.startsWith("0x")) { - s = s.substring(2); - } - s = s.replace(" ", ""); - byte[] baKeyword = new byte[s.length() / 2]; - for (int i = 0; i < baKeyword.length; i++) { - try { - baKeyword[i] = (byte) (0xff & Integer.parseInt(s.substring(i * 2, i * 2 + 2), 16)); - } catch (Exception e) { - e.printStackTrace(); - } - } - try { - s = new String(baKeyword, "UTF-8"); - new String(); - } catch (Exception e1) { - e1.printStackTrace(); - } - return s; - } + private static final char[] hex = "0123456789abcdef".toCharArray(); + + private static final int[] DEC = { 00, 01, 02, 03, 04, 05, 06, 07, 8, 9, -1, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, + 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 10, 11, 12, 13, 14, 15, }; + + /** + * Table for DEC to HEX byte translation. + */ + private static final byte[] HEX = { (byte) '0', (byte) '1', (byte) '2', (byte) '3', (byte) '4', (byte) '5', + (byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', + (byte) 'f' }; + + public static String toHexString(byte[] bytes) { + if (null == bytes) { + return null; + } + + StringBuilder sb = new StringBuilder(bytes.length << 1); + + for (int i = 0; i < bytes.length; ++i) { + sb.append(hex[(bytes[i] & 0xf0) >> 4]).append(hex[(bytes[i] & 0x0f)]); + } + + return sb.toString(); + } + + public static byte[] fromHexString(String input) { + if (input == null) { + return null; + } + + if ((input.length() & 1) == 1) { + // Odd number of characters + return null; + } + + if (input.startsWith("0x")) { + input = input.substring(2); + } + char[] inputChars = input.toCharArray(); + byte[] result = new byte[input.length() >> 1]; + for (int i = 0; i < result.length; i++) { + int upperNibble = getDec(inputChars[2 * i]); + int lowerNibble = getDec(inputChars[2 * i + 1]); + if (upperNibble < 0 || lowerNibble < 0) { + // Non hex character + return null; + } + result[i] = (byte) ((upperNibble << 4) + lowerNibble); + } + return result; + } + + public static int getDec(int index) { + // Fast for correct values, slower for incorrect ones + try { + return DEC[index - '0']; + } catch (ArrayIndexOutOfBoundsException ex) { + return -1; + } + } + + public static byte getHex(int index) { + return HEX[index]; + } + + public static String removeHexHeader(String hexString) { + if (StringUtil.isNotEmpty(hexString)) { + if (hexString.startsWith("0x")) { + return hexString.substring(2); + } + } + return null; + } + + public static byte[] intToBytes(int num) { + byte[] bytes = new byte[4]; + bytes[3] = (byte) (0xff & (num >> 0)); + bytes[2] = (byte) (0xff & (num >> 8)); + bytes[1] = (byte) (0xff & (num >> 16)); + bytes[0] = (byte) (0xff & (num >> 24)); + return bytes; + } + + /** + * 四个字节的字节数据转换成一个整形数据 + * + * @param bytes + * 4个字节的字节数组 + * + * @return 一个整型数据 + */ + public static int byteToInt(byte[] bytes) { + int num = 0; + int temp; + temp = (0x000000ff & (bytes[3])) << 0; + num = num | temp; + temp = (0x000000ff & (bytes[2])) << 8; + num = num | temp; + temp = (0x000000ff & (bytes[1])) << 16; + num = num | temp; + temp = (0x000000ff & (bytes[0])) << 24; + num = num | temp; + return num; + } + + /** + * 长整形转换成网络传输的字节流(字节数组)型数据 + * + * @param num + * 一个长整型数据 + * + * @return 4个字节的自己数组 + */ + public static byte[] longToBytes(long num) { + byte[] bytes = new byte[8]; + for (int i = 0; i < 8; i++) { + bytes[i] = (byte) (0xff & (num >> (i * 8))); + } + + return bytes; + } + + /** + * 大数字转换字节流(字节数组)型数据 + * + * @param n + * + * @return + */ + public static byte[] byteConvert32Bytes(BigInteger n) { + byte tmpd[] = (byte[]) null; + if (n == null) { + return null; + } + + if (n.toByteArray().length == 33) { + tmpd = new byte[32]; + System.arraycopy(n.toByteArray(), 1, tmpd, 0, 32); + } else if (n.toByteArray().length == 32) { + tmpd = n.toByteArray(); + } else { + tmpd = new byte[32]; + for (int i = 0; i < 32 - n.toByteArray().length; i++) { + tmpd[i] = 0; + } + System.arraycopy(n.toByteArray(), 0, tmpd, 32 - n.toByteArray().length, n.toByteArray().length); + } + return tmpd; + } + + /** + * 换字节流(字节数组)型数据转大数字 + * + * @param b + * + * @return + */ + public static BigInteger byteConvertInteger(byte[] b) { + if (b[0] < 0) { + byte[] temp = new byte[b.length + 1]; + temp[0] = 0; + System.arraycopy(b, 0, temp, 1, b.length); + return new BigInteger(temp); + } + return new BigInteger(b); + } + + /** + * 根据字节数组获得值(十六进制数字) + * + * @param bytes + * + * @return + */ + public static String getHexString(byte[] bytes) { + return getHexString(bytes, true); + } + + /** + * 根据字节数组获得值(十六进制数字) + * + * @param bytes + * @param upperCase + * + * @return + */ + public static String getHexString(byte[] bytes, boolean upperCase) { + String ret = ""; + for (int i = 0; i < bytes.length; i++) { + ret += Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1); + } + return upperCase ? ret.toUpperCase() : ret; + } + + /** + * 打印十六进制字符串 + * + * @param bytes + */ + public static void printHexString(byte[] bytes) { + for (int i = 0; i < bytes.length; i++) { + String hex = Integer.toHexString(bytes[i] & 0xFF); + if (hex.length() == 1) { + hex = '0' + hex; + } + System.out.print("0x" + hex.toUpperCase() + ","); + } + System.out.println(""); + } + + /** + * Convert hex string to byte[] + * + * @param hexString + * the hex string + * + * @return byte[] + */ + public static byte[] hexStringToBytes(String hexString) { + if (hexString == null || hexString.equals("")) { + return null; + } + + hexString = hexString.toUpperCase(); + int length = hexString.length() / 2; + char[] hexChars = hexString.toCharArray(); + byte[] d = new byte[length]; + for (int i = 0; i < length; i++) { + int pos = i * 2; + d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1])); + } + return d; + } + + /** + * Convert char to byte + * + * @param c + * char + * + * @return byte + */ + public static byte charToByte(char c) { + return (byte) "0123456789ABCDEF".indexOf(c); + } + + /** + * 用于建立十六进制字符的输出的小写字符数组 + */ + private static final char[] DIGITS_LOWER = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', + 'e', 'f' }; + + /** + * 用于建立十六进制字符的输出的大写字符数组 + */ + private static final char[] DIGITS_UPPER = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', + 'E', 'F' }; + + /** + * 将字节数组转换为十六进制字符数组 + * + * @param data + * byte[] + * + * @return 十六进制char[] + */ + public static char[] encodeHex(byte[] data) { + return encodeHex(data, true); + } + + /** + * 将字节数组转换为十六进制字符数组 + * + * @param data + * byte[] + * @param toLowerCase + * true 传换成小写格式 , false 传换成大写格式 + * + * @return 十六进制char[] + */ + public static char[] encodeHex(byte[] data, boolean toLowerCase) { + return encodeHex(data, toLowerCase ? DIGITS_LOWER : DIGITS_UPPER); + } + + /** + * 将字节数组转换为十六进制字符数组 + * + * @param data + * byte[] + * @param toDigits + * 用于控制输出的char[] + * + * @return 十六进制char[] + */ + protected static char[] encodeHex(byte[] data, char[] toDigits) { + int l = data.length; + char[] out = new char[l << 1]; + // two characters form the hex value. + for (int i = 0, j = 0; i < l; i++) { + out[j++] = toDigits[(0xF0 & data[i]) >>> 4]; + out[j++] = toDigits[0x0F & data[i]]; + } + return out; + } + + /** + * 将字节数组转换为十六进制字符串 + * + * @param data + * byte[] + * + * @return 十六进制String + */ + public static String encodeHexString(byte[] data) { + return encodeHexString(data, true); + } + + /** + * 将字节数组转换为十六进制字符串 + * + * @param data + * byte[] + * @param toLowerCase + * true 传换成小写格式 , false 传换成大写格式 + * + * @return 十六进制String + */ + public static String encodeHexString(byte[] data, boolean toLowerCase) { + return encodeHexString(data, toLowerCase ? DIGITS_LOWER : DIGITS_UPPER); + } + + /** + * 将字节数组转换为十六进制字符串 + * + * @param data + * byte[] + * @param toDigits + * 用于控制输出的char[] + * + * @return 十六进制String + */ + protected static String encodeHexString(byte[] data, char[] toDigits) { + return new String(encodeHex(data, toDigits)); + } + + /** + * 将十六进制字符数组转换为字节数组 + * + * @param data + * 十六进制char[] + * + * @return byte[] + * + * @throws RuntimeException + * 如果源十六进制字符数组是一个奇怪的长度,将抛出运行时异常 + */ + public static byte[] decodeHex(char[] data) { + int len = data.length; + + if ((len & 0x01) != 0) { + throw new RuntimeException("Odd number of characters."); + } + + byte[] out = new byte[len >> 1]; + + // two characters form the hex value. + for (int i = 0, j = 0; j < len; i++) { + int f = toDigit(data[j], j) << 4; + j++; + f = f | toDigit(data[j], j); + j++; + out[i] = (byte) (f & 0xFF); + } + + return out; + } + + /** + * 将十六进制字符转换成一个整数 + * + * @param ch + * 十六进制char + * @param index + * 十六进制字符在字符数组中的位置 + * + * @return 一个整数 + * + * @throws RuntimeException + * 当ch不是一个合法的十六进制字符时,抛出运行时异常 + */ + protected static int toDigit(char ch, int index) { + int digit = Character.digit(ch, 16); + if (digit == -1) { + throw new RuntimeException("Illegal hexadecimal character " + ch + " at index " + index); + } + return digit; + } + + /** + * 数字字符串转ASCII码字符串 + * + * @param content + * 字符串 + * + * @return ASCII字符串 + */ + public static String StringToAsciiString(String content) { + String result = ""; + int max = content.length(); + for (int i = 0; i < max; i++) { + char c = content.charAt(i); + String b = Integer.toHexString(c); + result = result + b; + } + return result; + } + + /** + * 十六进制转字符串 + * + * @param hexString + * 十六进制字符串 + * @param encodeType + * 编码类型4:Unicode,2:普通编码 + * + * @return 字符串 + */ + public static String hexStringToString(String hexString, int encodeType) { + String result = ""; + int max = hexString.length() / encodeType; + for (int i = 0; i < max; i++) { + char c = (char) hexStringToAlgorism(hexString.substring(i * encodeType, (i + 1) * encodeType)); + result += c; + } + return result; + } + + /** + * 十六进制字符串装十进制 + * + * @param hex + * 十六进制字符串 + * + * @return 十进制数值 + */ + public static int hexStringToAlgorism(String hex) { + hex = hex.toUpperCase(); + int max = hex.length(); + int result = 0; + for (int i = max; i > 0; i--) { + char c = hex.charAt(i - 1); + int algorism = 0; + if (c >= '0' && c <= '9') { + algorism = c - '0'; + } else { + algorism = c - 55; + } + result += Math.pow(16, max - i) * algorism; + } + return result; + } + + /** + * 十六转二进制 + * + * @param hex + * 十六进制字符串 + * + * @return 二进制字符串 + */ + public static String hexStringToBinary(String hex) { + hex = hex.toUpperCase(); + String result = ""; + int max = hex.length(); + for (int i = 0; i < max; i++) { + char c = hex.charAt(i); + switch (c) { + case '0': + result += "0000"; + break; + case '1': + result += "0001"; + break; + case '2': + result += "0010"; + break; + case '3': + result += "0011"; + break; + case '4': + result += "0100"; + break; + case '5': + result += "0101"; + break; + case '6': + result += "0110"; + break; + case '7': + result += "0111"; + break; + case '8': + result += "1000"; + break; + case '9': + result += "1001"; + break; + case 'A': + result += "1010"; + break; + case 'B': + result += "1011"; + break; + case 'C': + result += "1100"; + break; + case 'D': + result += "1101"; + break; + case 'E': + result += "1110"; + break; + case 'F': + result += "1111"; + break; + } + } + return result; + } + + /** + * ASCII码字符串转数字字符串 + * + * @param content + * ASCII字符串 + * + * @return 字符串 + */ + public static String AsciiStringToString(String content) { + String result = ""; + int length = content.length() / 2; + for (int i = 0; i < length; i++) { + String c = content.substring(i * 2, i * 2 + 2); + int a = hexStringToAlgorism(c); + char b = (char) a; + String d = String.valueOf(b); + result += d; + } + return result; + } + + /** + * 将十进制转换为指定长度的十六进制字符串 + * + * @param algorism + * int 十进制数字 + * @param maxLength + * int 转换后的十六进制字符串长度 + * + * @return String 转换后的十六进制字符串 + */ + public static String algorismToHexString(int algorism, int maxLength) { + String result = ""; + result = Integer.toHexString(algorism); + + if (result.length() % 2 == 1) { + result = "0" + result; + } + return patchHexString(result.toUpperCase(), maxLength); + } + + /** + * 字节数组转为普通字符串(ASCII对应的字符) + * + * @param bytearray + * byte[] + * + * @return String + */ + public static String byteToString(byte[] bytearray) { + String result = ""; + char temp; + + int length = bytearray.length; + for (int i = 0; i < length; i++) { + temp = (char) bytearray[i]; + result += temp; + } + return result; + } + + /** + * 二进制字符串转十进制 + * + * @param binary + * 二进制字符串 + * + * @return 十进制数值 + */ + public static int binaryToAlgorism(String binary) { + int max = binary.length(); + int result = 0; + for (int i = max; i > 0; i--) { + char c = binary.charAt(i - 1); + int algorism = c - '0'; + result += Math.pow(2, max - i) * algorism; + } + return result; + } + + /** + * 十进制转换为十六进制字符串 + * + * @param algorism + * int 十进制的数字 + * + * @return String 对应的十六进制字符串 + */ + public static String algorismToHEXString(int algorism) { + String result = ""; + result = Integer.toHexString(algorism); + + if (result.length() % 2 == 1) { + result = "0" + result; + + } + result = result.toUpperCase(); + + return result; + } + + /** + * HEX字符串前补0,主要用于长度位数不足。 + * + * @param str + * String 需要补充长度的十六进制字符串 + * @param maxLength + * int 补充后十六进制字符串的长度 + * + * @return 补充结果 + */ + static public String patchHexString(String str, int maxLength) { + String temp = ""; + for (int i = 0; i < maxLength - str.length(); i++) { + temp = "0" + temp; + } + str = (temp + str).substring(0, maxLength); + return str; + } + + /** + * 将一个字符串转换为int + * + * @param s + * String 要转换的字符串 + * @param defaultInt + * int 如果出现异常,默认返回的数字 + * @param radix + * int 要转换的字符串是什么进制的,如16 8 10. + * + * @return int 转换后的数字 + */ + public static int parseToInt(String s, int defaultInt, int radix) { + int i = 0; + try { + i = Integer.parseInt(s, radix); + } catch (NumberFormatException ex) { + i = defaultInt; + } + return i; + } + + /** + * 将一个十进制形式的数字字符串转换为int + * + * @param s + * String 要转换的字符串 + * @param defaultInt + * int 如果出现异常,默认返回的数字 + * + * @return int 转换后的数字 + */ + public static int parseToInt(String s, int defaultInt) { + int i = 0; + try { + i = Integer.parseInt(s); + } catch (NumberFormatException ex) { + i = defaultInt; + } + return i; + } + + public static byte[] subByte(byte[] input, int startIndex, int length) { + byte[] bt = new byte[length]; + for (int i = 0; i < length; i++) { + bt[i] = input[i + startIndex]; + } + return bt; + } + + /** + * 将一个16进制数转化成字符串 + * + * @param s + * + * @return + */ + public static String hexStringToString(String s) { + if (s == null || s.equals("")) { + return null; + } + if (s.startsWith("0x")) { + s = s.substring(2); + } + s = s.replace(" ", ""); + byte[] baKeyword = new byte[s.length() / 2]; + for (int i = 0; i < baKeyword.length; i++) { + try { + baKeyword[i] = (byte) (0xff & Integer.parseInt(s.substring(i * 2, i * 2 + 2), 16)); + } catch (Exception e) { + e.printStackTrace(); + } + } + try { + s = new String(baKeyword, "UTF-8"); + new String(); + } catch (Exception e1) { + e1.printStackTrace(); + } + return s; + } } diff --git a/src/main/java/cn/chain33/javasdk/utils/HttpUtil.java b/src/main/java/cn/chain33/javasdk/utils/HttpUtil.java index e047a9f..7f3aaf2 100644 --- a/src/main/java/cn/chain33/javasdk/utils/HttpUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/HttpUtil.java @@ -26,118 +26,118 @@ import org.apache.http.ssl.SSLContextBuilder; public class HttpUtil { - - private static CloseableHttpClient client = null; - - private static CloseableHttpClient httpsClient = null; - - private static RequestConfig requestConfig = null; - - private static final String DEFAULT_CHARSET = "UTF-8"; - - private static final int DEFAULT_TIME_OUT = 400000; - static{ - client = HttpClientBuilder.create().build(); - Builder configBuilder = RequestConfig.custom(); - configBuilder.setConnectionRequestTimeout(DEFAULT_TIME_OUT); - configBuilder.setConnectTimeout(DEFAULT_TIME_OUT); - configBuilder.setSocketTimeout(DEFAULT_TIME_OUT); - requestConfig = configBuilder.build(); - httpsClient = createSSLInsecureClient(); - } - + + private static CloseableHttpClient client = null; + + private static CloseableHttpClient httpsClient = null; + + private static RequestConfig requestConfig = null; + + private static final String DEFAULT_CHARSET = "UTF-8"; + + private static final int DEFAULT_TIME_OUT = 400000; + static { + client = HttpClientBuilder.create().build(); + Builder configBuilder = RequestConfig.custom(); + configBuilder.setConnectionRequestTimeout(DEFAULT_TIME_OUT); + configBuilder.setConnectTimeout(DEFAULT_TIME_OUT); + configBuilder.setSocketTimeout(DEFAULT_TIME_OUT); + requestConfig = configBuilder.build(); + httpsClient = createSSLInsecureClient(); + } + @SuppressWarnings("deprecation") - public static CloseableHttpClient createSSLInsecureClient() { - try { - SSLContext sslContext = new SSLContextBuilder().loadTrustMaterial(null, new TrustStrategy() { - // 默认信任所有证书 - public boolean isTrusted(X509Certificate[] arg0, String arg1) throws CertificateException { - return true; - } - }).build(); - // AllowAllHostnameVerifier: 这种方式不对主机名进行验证,验证功能被关闭,是个空操作(域名验证) - SSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext, - SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); - return HttpClients.custom().setSSLSocketFactory(sslcsf).build(); - } catch (KeyManagementException e) { - e.printStackTrace(); - } catch (NoSuchAlgorithmException e) { - e.printStackTrace(); - } catch (KeyStoreException e) { - e.printStackTrace(); - } - return HttpClients.createDefault(); - } - - private static String getContent(HttpEntity entity,String charset) throws IOException { - if(entity == null) { - throw new IOException("get entity failed"); - } - - InputStream in = entity.getContent(); - InputStreamReader inputStreamReader = new InputStreamReader(in,charset); - BufferedReader reader = new BufferedReader(inputStreamReader); - StringBuffer stringBuffer = new StringBuffer(); - String line = null; - while((line = reader.readLine()) != null){ - stringBuffer.append(line); - stringBuffer.append("\r\n"); - } - - return stringBuffer.toString(); - } - - public static String httpPost(String url, String jsonString) throws IOException { - String content; - HttpPost post = new HttpPost(url); - - post.setConfig(requestConfig); - post.addHeader("Content-Type", "application/json"); - post.setEntity(new StringEntity(jsonString,DEFAULT_CHARSET)); - HttpResponse response = client.execute(post); - HttpEntity entity = response.getEntity(); - content = getContent(entity,DEFAULT_CHARSET); - post.releaseConnection(); - - return content; - } - - @Deprecated - public static String httpPostBody(String url, String jsonString) { - String content = null; - HttpPost post = new HttpPost(url); - try { - post.setConfig(requestConfig); - post.addHeader("Content-Type", "application/json"); - post.setEntity(new StringEntity(jsonString,DEFAULT_CHARSET)); - HttpResponse response = client.execute(post); - HttpEntity entity = response.getEntity(); - content = getContent(entity,DEFAULT_CHARSET); - post.releaseConnection(); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - return content; - } - - @Deprecated - public static String httpsPostBody(String url, String jsonString) { - String content = null; - HttpPost post = new HttpPost(url); - try { - post.setConfig(requestConfig); - post.addHeader("Content-Type", "application/json"); - post.setEntity(new StringEntity(jsonString,DEFAULT_CHARSET)); - HttpResponse response = httpsClient.execute(post); - HttpEntity entity = response.getEntity(); - content = getContent(entity,DEFAULT_CHARSET); - post.releaseConnection(); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - return content; - } + public static CloseableHttpClient createSSLInsecureClient() { + try { + SSLContext sslContext = new SSLContextBuilder().loadTrustMaterial(null, new TrustStrategy() { + // 默认信任所有证书 + public boolean isTrusted(X509Certificate[] arg0, String arg1) throws CertificateException { + return true; + } + }).build(); + // AllowAllHostnameVerifier: 这种方式不对主机名进行验证,验证功能被关闭,是个空操作(域名验证) + SSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext, + SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); + return HttpClients.custom().setSSLSocketFactory(sslcsf).build(); + } catch (KeyManagementException e) { + e.printStackTrace(); + } catch (NoSuchAlgorithmException e) { + e.printStackTrace(); + } catch (KeyStoreException e) { + e.printStackTrace(); + } + return HttpClients.createDefault(); + } + + private static String getContent(HttpEntity entity, String charset) throws IOException { + if (entity == null) { + throw new IOException("get entity failed"); + } + + InputStream in = entity.getContent(); + InputStreamReader inputStreamReader = new InputStreamReader(in, charset); + BufferedReader reader = new BufferedReader(inputStreamReader); + StringBuffer stringBuffer = new StringBuffer(); + String line = null; + while ((line = reader.readLine()) != null) { + stringBuffer.append(line); + stringBuffer.append("\r\n"); + } + + return stringBuffer.toString(); + } + + public static String httpPost(String url, String jsonString) throws IOException { + String content; + HttpPost post = new HttpPost(url); + + post.setConfig(requestConfig); + post.addHeader("Content-Type", "application/json"); + post.setEntity(new StringEntity(jsonString, DEFAULT_CHARSET)); + HttpResponse response = client.execute(post); + HttpEntity entity = response.getEntity(); + content = getContent(entity, DEFAULT_CHARSET); + post.releaseConnection(); + + return content; + } + + @Deprecated + public static String httpPostBody(String url, String jsonString) { + String content = null; + HttpPost post = new HttpPost(url); + try { + post.setConfig(requestConfig); + post.addHeader("Content-Type", "application/json"); + post.setEntity(new StringEntity(jsonString, DEFAULT_CHARSET)); + HttpResponse response = client.execute(post); + HttpEntity entity = response.getEntity(); + content = getContent(entity, DEFAULT_CHARSET); + post.releaseConnection(); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + return content; + } + + @Deprecated + public static String httpsPostBody(String url, String jsonString) { + String content = null; + HttpPost post = new HttpPost(url); + try { + post.setConfig(requestConfig); + post.addHeader("Content-Type", "application/json"); + post.setEntity(new StringEntity(jsonString, DEFAULT_CHARSET)); + HttpResponse response = httpsClient.execute(post); + HttpEntity entity = response.getEntity(); + content = getContent(entity, DEFAULT_CHARSET); + post.releaseConnection(); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + return content; + } } diff --git a/src/main/java/cn/chain33/javasdk/utils/PreUtils.java b/src/main/java/cn/chain33/javasdk/utils/PreUtils.java index 7a1bb96..d2caf63 100644 --- a/src/main/java/cn/chain33/javasdk/utils/PreUtils.java +++ b/src/main/java/cn/chain33/javasdk/utils/PreUtils.java @@ -26,7 +26,7 @@ public static BigInteger hashToModInt(byte[] digest) { BigInteger sum; if (digest.length > orderBytes) { - byte[] digest1 = java.util.Arrays.copyOf(digest,orderBytes); + byte[] digest1 = java.util.Arrays.copyOf(digest, orderBytes); sum = new BigInteger(digest1); } else { sum = new BigInteger(digest); @@ -52,7 +52,7 @@ private static BigInteger[] makeShamirPolyCoeff(int threshold) { private static BigInteger hornerPolyEval(BigInteger[] poly, BigInteger x) { BigInteger result = BigInteger.ZERO; result = result.add(poly[0]); - for(int i = 1; i < poly.length; i++) { + for (int i = 1; i < poly.length; i++) { result = result.multiply(x).add(poly[i]); } result = result.mod(baseN); @@ -99,6 +99,7 @@ private static BigInteger calcLambdaCoeff(BigInteger inId, BigInteger[] selected * @param Z * @param klen * 生成klen字节数长度的密钥 + * * @return */ public static byte[] KDF(byte[] Z, int klen) { @@ -144,7 +145,8 @@ public static EncryptKey GenerateEncryptKey(byte[] pubOwner) { return new EncryptKey(enKey, priv_r.getPublicKeyAsHex(), priv_u.getPublicKeyAsHex()); } - public static KeyFrag[] GenerateKeyFragments(byte[] privOwner, byte[] pubRecipient, int numSplit, int threshold) throws Exception { + public static KeyFrag[] GenerateKeyFragments(byte[] privOwner, byte[] pubRecipient, int numSplit, int threshold) + throws Exception { if (numSplit < 1 || threshold < 1 || numSplit < threshold) { throw new Exception("param error"); } @@ -196,7 +198,7 @@ public static KeyFrag[] GenerateKeyFragments(byte[] privOwner, byte[] pubRecipie public static byte[] AssembleReencryptFragment(byte[] privRecipient, ReKeyFrag[] reKeyFrags) throws Exception { ECKey privRecipientKey = ECKey.fromPrivate(privRecipient); - if (reKeyFrags.length ==0 || reKeyFrags[0] == null){ + if (reKeyFrags.length == 0 || reKeyFrags[0] == null) { throw new Exception("param error"); } ECKey precursor = ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[0].getPrecurPub())); @@ -228,13 +230,17 @@ public static byte[] AssembleReencryptFragment(byte[] privRecipient, ReKeyFrag[] shareKeyBob = re_sum.multiply(dhBobBN).getEncoded(); } else { BigInteger lambda = calcLambdaCoeff(ids[0], ids); - ECPoint efinal = ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[0].getReKeyR())).getPubKeyPoint().multiply(lambda); - ECPoint vfinal = ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[0].getReKeyU())).getPubKeyPoint().multiply(lambda); + ECPoint efinal = ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[0].getReKeyR())).getPubKeyPoint() + .multiply(lambda); + ECPoint vfinal = ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[0].getReKeyU())).getPubKeyPoint() + .multiply(lambda); for (int i = 1; i < threshold; i++) { lambda = calcLambdaCoeff(ids[i], ids); - efinal = efinal.add(ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[i].getReKeyR())).getPubKeyPoint().multiply(lambda)); - vfinal = vfinal.add(ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[i].getReKeyU())).getPubKeyPoint().multiply(lambda)); + efinal = efinal.add(ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[i].getReKeyR())) + .getPubKeyPoint().multiply(lambda)); + vfinal = vfinal.add(ECKey.fromPublicOnly(HexUtil.fromHexString(reKeyFrags[i].getReKeyU())) + .getPubKeyPoint().multiply(lambda)); } shareKeyBob = efinal.add(vfinal).multiply(dhBobBN).getEncoded(); diff --git a/src/main/java/cn/chain33/javasdk/utils/Ripemd160Util.java b/src/main/java/cn/chain33/javasdk/utils/Ripemd160Util.java index d3ab7ba..e01d3e0 100644 --- a/src/main/java/cn/chain33/javasdk/utils/Ripemd160Util.java +++ b/src/main/java/cn/chain33/javasdk/utils/Ripemd160Util.java @@ -1,137 +1,140 @@ -package cn.chain33.javasdk.utils; - -import static java.lang.Integer.rotateLeft; - -import java.util.Arrays; -import java.util.Objects; - -public class Ripemd160Util { - private static final int BLOCK_LEN = 64; // In bytes - - /*---- Static functions ----*/ - - /** - * Computes and returns a 20-byte (160-bit) hash of the specified binary - * message. Each call will return a new byte array object instance. - * - * @param msg - * the message to compute the hash of - * @return a 20-byte array representing the message's RIPEMD-160 hash - * @throws NullPointerException - * if the message is {@code null} - */ - public static byte[] getHash(byte[] msg) { - // Compress whole message blocks - Objects.requireNonNull(msg); - int[] state = { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 }; - int off = msg.length / BLOCK_LEN * BLOCK_LEN; - compress(state, msg, off); - - // Final blocks, padding, and length - byte[] block = new byte[BLOCK_LEN]; - System.arraycopy(msg, off, block, 0, msg.length - off); - off = msg.length % block.length; - block[off] = (byte) 0x80; - off++; - if (off + 8 > block.length) { - compress(state, block, block.length); - Arrays.fill(block, (byte) 0); - } - long len = (long) msg.length << 3; - for (int i = 0; i < 8; i++) - block[block.length - 8 + i] = (byte) (len >>> (i * 8)); - compress(state, block, block.length); - - // Int32 array to bytes in little endian - byte[] result = new byte[state.length * 4]; - for (int i = 0; i < result.length; i++) - result[i] = (byte) (state[i / 4] >>> (i % 4 * 8)); - return result; - } - - /*---- Private functions ----*/ - - private static void compress(int[] state, byte[] blocks, int len) { - if (len % BLOCK_LEN != 0) - throw new IllegalArgumentException(); - for (int i = 0; i < len; i += BLOCK_LEN) { - - // Message schedule - int[] schedule = new int[16]; - for (int j = 0; j < BLOCK_LEN; j++) - schedule[j / 4] |= (blocks[i + j] & 0xFF) << (j % 4 * 8); - - // The 80 rounds - int al = state[0], ar = state[0]; - int bl = state[1], br = state[1]; - int cl = state[2], cr = state[2]; - int dl = state[3], dr = state[3]; - int el = state[4], er = state[4]; - for (int j = 0; j < 80; j++) { - int temp; - temp = rotateLeft(al + f(j, bl, cl, dl) + schedule[RL[j]] + KL[j / 16], SL[j]) + el; - al = el; - el = dl; - dl = rotateLeft(cl, 10); - cl = bl; - bl = temp; - temp = rotateLeft(ar + f(79 - j, br, cr, dr) + schedule[RR[j]] + KR[j / 16], SR[j]) + er; - ar = er; - er = dr; - dr = rotateLeft(cr, 10); - cr = br; - br = temp; - } - int temp = state[1] + cl + dr; - state[1] = state[2] + dl + er; - state[2] = state[3] + el + ar; - state[3] = state[4] + al + br; - state[4] = state[0] + bl + cr; - state[0] = temp; - } - } - - private static int f(int i, int x, int y, int z) { - assert 0 <= i && i < 80; - if (i < 16) - return x ^ y ^ z; - if (i < 32) - return (x & y) | (~x & z); - if (i < 48) - return (x | ~y) ^ z; - if (i < 64) - return (x & z) | (y & ~z); - return x ^ (y | ~z); - } - - /*---- Class constants ----*/ - - private static final int[] KL = { 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E }; // Round constants - // for left line - private static final int[] KR = { 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000 }; // Round constants - // for right line - - private static final int[] RL = { // Message schedule for left line - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, - 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, - 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13 }; - - private static final int[] RR = { // Message schedule for right line - 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, - 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, - 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11 }; - - private static final int[] SL = { // Left-rotation for left line - 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, - 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, - 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 }; - - private static final int[] SR = { // Left-rotation for right line - 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, - 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, - 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 }; - - /*---- Miscellaneous ----*/ - - private Ripemd160Util() {} // Not instantiable -} +package cn.chain33.javasdk.utils; + +import static java.lang.Integer.rotateLeft; + +import java.util.Arrays; +import java.util.Objects; + +public class Ripemd160Util { + private static final int BLOCK_LEN = 64; // In bytes + + /*---- Static functions ----*/ + + /** + * Computes and returns a 20-byte (160-bit) hash of the specified binary message. Each call will return a new byte + * array object instance. + * + * @param msg + * the message to compute the hash of + * + * @return a 20-byte array representing the message's RIPEMD-160 hash + * + * @throws NullPointerException + * if the message is {@code null} + */ + public static byte[] getHash(byte[] msg) { + // Compress whole message blocks + Objects.requireNonNull(msg); + int[] state = { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 }; + int off = msg.length / BLOCK_LEN * BLOCK_LEN; + compress(state, msg, off); + + // Final blocks, padding, and length + byte[] block = new byte[BLOCK_LEN]; + System.arraycopy(msg, off, block, 0, msg.length - off); + off = msg.length % block.length; + block[off] = (byte) 0x80; + off++; + if (off + 8 > block.length) { + compress(state, block, block.length); + Arrays.fill(block, (byte) 0); + } + long len = (long) msg.length << 3; + for (int i = 0; i < 8; i++) + block[block.length - 8 + i] = (byte) (len >>> (i * 8)); + compress(state, block, block.length); + + // Int32 array to bytes in little endian + byte[] result = new byte[state.length * 4]; + for (int i = 0; i < result.length; i++) + result[i] = (byte) (state[i / 4] >>> (i % 4 * 8)); + return result; + } + + /*---- Private functions ----*/ + + private static void compress(int[] state, byte[] blocks, int len) { + if (len % BLOCK_LEN != 0) + throw new IllegalArgumentException(); + for (int i = 0; i < len; i += BLOCK_LEN) { + + // Message schedule + int[] schedule = new int[16]; + for (int j = 0; j < BLOCK_LEN; j++) + schedule[j / 4] |= (blocks[i + j] & 0xFF) << (j % 4 * 8); + + // The 80 rounds + int al = state[0], ar = state[0]; + int bl = state[1], br = state[1]; + int cl = state[2], cr = state[2]; + int dl = state[3], dr = state[3]; + int el = state[4], er = state[4]; + for (int j = 0; j < 80; j++) { + int temp; + temp = rotateLeft(al + f(j, bl, cl, dl) + schedule[RL[j]] + KL[j / 16], SL[j]) + el; + al = el; + el = dl; + dl = rotateLeft(cl, 10); + cl = bl; + bl = temp; + temp = rotateLeft(ar + f(79 - j, br, cr, dr) + schedule[RR[j]] + KR[j / 16], SR[j]) + er; + ar = er; + er = dr; + dr = rotateLeft(cr, 10); + cr = br; + br = temp; + } + int temp = state[1] + cl + dr; + state[1] = state[2] + dl + er; + state[2] = state[3] + el + ar; + state[3] = state[4] + al + br; + state[4] = state[0] + bl + cr; + state[0] = temp; + } + } + + private static int f(int i, int x, int y, int z) { + assert 0 <= i && i < 80; + if (i < 16) + return x ^ y ^ z; + if (i < 32) + return (x & y) | (~x & z); + if (i < 48) + return (x | ~y) ^ z; + if (i < 64) + return (x & z) | (y & ~z); + return x ^ (y | ~z); + } + + /*---- Class constants ----*/ + + private static final int[] KL = { 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E }; // Round constants + // for left line + private static final int[] KR = { 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000 }; // Round constants + // for right line + + private static final int[] RL = { // Message schedule for left line + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, + 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, + 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13 }; + + private static final int[] RR = { // Message schedule for right line + 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, + 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, + 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11 }; + + private static final int[] SL = { // Left-rotation for left line + 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, + 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, + 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 }; + + private static final int[] SR = { // Left-rotation for right line + 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, + 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, + 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 }; + + /*---- Miscellaneous ----*/ + + private Ripemd160Util() { + } // Not instantiable +} diff --git a/src/main/java/cn/chain33/javasdk/utils/SeedUtil.java b/src/main/java/cn/chain33/javasdk/utils/SeedUtil.java index 2eb4fa2..bbb5170 100644 --- a/src/main/java/cn/chain33/javasdk/utils/SeedUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/SeedUtil.java @@ -17,56 +17,63 @@ /** * 生成助记词,生成私钥,生成地址 + * * @author andyYuan * */ public class SeedUtil { - - static NetworkParameters params; - - static{ - params = MainNetParams.get(); - } - /** - * 生成助记词 - * @return String 助记词 - */ - public static String generateMnemonic() { - StringBuilder words = new StringBuilder(); - DeterministicSeed deterministicSeed = new DeterministicSeed(new SecureRandom(),160,"",Utils.currentTimeSeconds()); + static NetworkParameters params; + + static { + params = MainNetParams.get(); + } + + /** + * 生成助记词 + * + * @return String 助记词 + */ + public static String generateMnemonic() { + StringBuilder words = new StringBuilder(); + DeterministicSeed deterministicSeed = new DeterministicSeed(new SecureRandom(), 160, "", + Utils.currentTimeSeconds()); for (String str : deterministicSeed.getMnemonicCode()) { - words.append(str).append(" "); - } - return words.toString().trim(); + words.append(str).append(" "); + } + return words.toString().trim(); + + } + + /** + * 根据助记词生成私钥,公钥,地址 + * + * @param word + * 助记词 + * @param passphrase + * @param childIndex + * 子账户索引 + * + * @return + * + * @throws UnreadableWalletException + */ + public static AccountInfo createAccountBy33PATH(String word, int childIndex) throws UnreadableWalletException { + + String parsePath = "44H / 13107H / 0H / 0 / " + String.valueOf(childIndex); + + DeterministicSeed deterministicSeed = new DeterministicSeed(word, null, "", 0L); + DeterministicKeyChain deterministicKeyChain = DeterministicKeyChain.builder().seed(deterministicSeed).build(); + BigInteger privKey = deterministicKeyChain.getKeyByPath(HDUtils.parsePath(parsePath), true).getPrivKey(); + ECKey ecKey = ECKey.fromPrivate(privKey); + Address address = ecKey.toAddress(params); + AccountInfo acInfo = new AccountInfo(); + + acInfo.setPrivateKey(ecKey.getPrivateKeyAsHex()); + acInfo.setPublicKey(ecKey.getPublicKeyAsHex()); + acInfo.setAddress(address.toBase58()); + return acInfo; } - - /** - * 根据助记词生成私钥,公钥,地址 - * @param word 助记词 - * @param passphrase - * @param childIndex 子账户索引 - * @return - * @throws UnreadableWalletException - */ - public static AccountInfo createAccountBy33PATH(String word, int childIndex) throws UnreadableWalletException { - - String parsePath = "44H / 13107H / 0H / 0 / " + String.valueOf(childIndex); - - DeterministicSeed deterministicSeed = new DeterministicSeed(word, null, "", 0L); - DeterministicKeyChain deterministicKeyChain = DeterministicKeyChain.builder().seed(deterministicSeed).build(); - BigInteger privKey = deterministicKeyChain.getKeyByPath(HDUtils.parsePath(parsePath), true).getPrivKey(); - ECKey ecKey = ECKey.fromPrivate(privKey); - Address address = ecKey.toAddress(params); - AccountInfo acInfo = new AccountInfo(); - - acInfo.setPrivateKey(ecKey.getPrivateKeyAsHex()); - acInfo.setPublicKey(ecKey.getPublicKeyAsHex()); - acInfo.setAddress(address.toBase58()); - return acInfo; - } - - } diff --git a/src/main/java/cn/chain33/javasdk/utils/StorageUtil.java b/src/main/java/cn/chain33/javasdk/utils/StorageUtil.java index 5ba79f5..a8faf22 100644 --- a/src/main/java/cn/chain33/javasdk/utils/StorageUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/StorageUtil.java @@ -14,24 +14,28 @@ import cn.chain33.javasdk.model.protobuf.TransactionAllProtobuf; public class StorageUtil { - + /** * * @description 内容存证模型 - * @param content 内容 - * @return payload + * + * @param content + * 内容 + * + * @return payload * */ public static String createOnlyNotaryStorage(byte[] content, String execer, String privateKey) { - Builder contentOnlyNotaryStorageBuilder = StorageProtobuf.ContentOnlyNotaryStorage.newBuilder(); - contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));//内容小于512k; - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + Builder contentOnlyNotaryStorageBuilder = StorageProtobuf.ContentOnlyNotaryStorage.newBuilder(); + contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));// 内容小于512k; + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setContentStorage(contentOnlyNotaryStorageBuilder.build()); storageActionBuilder.setTy(StorageEnum.ContentOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - + String createTxWithoutSign = TransactionUtil.createTxWithoutSign(execer.getBytes(), storageAction.toByteArray(), - TransactionUtil.DEFAULT_FEE, 0); + TransactionUtil.DEFAULT_FEE, 0); byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); TransactionAllProtobuf.Transaction parseFrom = null; try { @@ -47,16 +51,22 @@ public static String createOnlyNotaryStorage(byte[] content, String execer, Stri /** * * @description KV字符串模型 - * @param key 键字符串,唯一索引 + * + * @param key + * 键字符串,唯一索引 * @param value - * @param op 0创建,1表示追加 - * @return payload + * @param op + * 0创建,1表示追加 + * + * @return payload * */ - public static String createOnlyNotaryStorage(String key, String value,Integer op, String execer, String privateKey) { + public static String createOnlyNotaryStorage(String key, String value, Integer op, String execer, + String privateKey) { Builder contentOnlyNotaryStorageBuilder = StorageProtobuf.ContentOnlyNotaryStorage.newBuilder(); - contentOnlyNotaryStorageBuilder.setKey(key).setValue(value).setOp(op);//内容小于512k; - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + contentOnlyNotaryStorageBuilder.setKey(key).setValue(value).setOp(op);// 内容小于512k; + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setContentStorage(contentOnlyNotaryStorageBuilder.build()); storageActionBuilder.setTy(StorageEnum.ContentOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); @@ -77,43 +87,53 @@ public static String createOnlyNotaryStorage(String key, String value,Integer op /** * 内容存证模型,平行链代扣模式 + * * @param content * @param execer * @param privateKey * @param contranctAddress + * * @return */ - public static String createOnlyNotaryStorage(byte[] content, String execer, String privateKey, String contranctAddress) { - Builder contentOnlyNotaryStorageBuilder = StorageProtobuf.ContentOnlyNotaryStorage.newBuilder(); - contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));//内容小于512k; - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + public static String createOnlyNotaryStorage(byte[] content, String execer, String privateKey, + String contranctAddress) { + Builder contentOnlyNotaryStorageBuilder = StorageProtobuf.ContentOnlyNotaryStorage.newBuilder(); + contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));// 内容小于512k; + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setContentStorage(contentOnlyNotaryStorageBuilder.build()); storageActionBuilder.setTy(StorageEnum.ContentOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } - + /** * * @description 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 - * @param hash 长度固定为32字节 + * + * @param hash + * 长度固定为32字节 + * * @return payload * */ public static String createHashStorage(byte[] hash, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage + .newBuilder(); hashStorageBuilder.setHash(ByteString.copyFrom(hash)); HashOnlyNotaryStorage hashOnlyNotaryStorage = hashStorageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setHashStorage(hashOnlyNotaryStorage); storageActionBuilder.setTy(StorageEnum.HashOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - + String createTxWithoutSign = TransactionUtil.createTxWithoutSign(execer.getBytes(), storageAction.toByteArray(), - TransactionUtil.DEFAULT_FEE, 0); + TransactionUtil.DEFAULT_FEE, 0); byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); TransactionAllProtobuf.Transaction parseFrom = null; try { @@ -125,48 +145,61 @@ public static String createHashStorage(byte[] hash, String execer, String privat String hexString = HexUtil.toHexString(signProbuf.toByteArray()); return hexString; } - + /** * 平行链代扣模式 + * * @description 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 - * @param hash 长度固定为32字节 + * + * @param hash + * 长度固定为32字节 + * * @return payload * */ public static String createHashStorage(byte[] hash, String execer, String privateKey, String contranctAddress) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage + .newBuilder(); hashStorageBuilder.setHash(ByteString.copyFrom(hash)); HashOnlyNotaryStorage hashOnlyNotaryStorage = hashStorageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setHashStorage(hashOnlyNotaryStorage); storageActionBuilder.setTy(StorageEnum.HashOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } - + /** * * @description 链接存证模型 - * @param link 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. - * @param hash 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * + * @param link + * 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. + * @param hash + * 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * * @return * */ - public static String createLinkNotaryStorage(byte[] link,byte[] hash, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage.newBuilder(); + public static String createLinkNotaryStorage(byte[] link, byte[] hash, String execer, String privateKey) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage + .newBuilder(); storageBuilder.setLink(ByteString.copyFrom(link)); storageBuilder.setHash(ByteString.copyFrom(hash)); LinkNotaryStorage linkNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setLinkStorage(linkNotaryStorage); storageActionBuilder.setTy(StorageEnum.LinkNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - + String createTxWithoutSign = TransactionUtil.createTxWithoutSign(execer.getBytes(), storageAction.toByteArray(), - TransactionUtil.DEFAULT_FEE, 0); + TransactionUtil.DEFAULT_FEE, 0); byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); TransactionAllProtobuf.Transaction parseFrom = null; try { @@ -178,55 +211,70 @@ public static String createLinkNotaryStorage(byte[] link,byte[] hash, String exe String hexString = HexUtil.toHexString(signProbuf.toByteArray()); return hexString; } - + /** * * @description 链接存证模型 - * @param link 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. - * @param hash 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * + * @param link + * 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. + * @param hash + * 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * * @return * */ - public static String createLinkNotaryStorage(byte[] link,byte[] hash, String execer, String privateKey, String contranctAddress) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage.newBuilder(); + public static String createLinkNotaryStorage(byte[] link, byte[] hash, String execer, String privateKey, + String contranctAddress) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage + .newBuilder(); storageBuilder.setLink(ByteString.copyFrom(link)); storageBuilder.setHash(ByteString.copyFrom(hash)); LinkNotaryStorage linkNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setLinkStorage(linkNotaryStorage); storageActionBuilder.setTy(StorageEnum.LinkNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } - + /** * * @description 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链 - * @param encryptContent 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 - * @param contentHash 源文件的密文,由加密key及nonce对明文加密得到该值。 - * @param nonce 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * + * @param encryptContent + * 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 + * @param contentHash + * 源文件的密文,由加密key及nonce对明文加密得到该值。 + * @param nonce + * 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * * @return payload * */ - public static String createEncryptNotaryStorage(byte[] encryptContent,byte[] contentHash,byte[] nonce, String key, - String value, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage.newBuilder(); + public static String createEncryptNotaryStorage(byte[] encryptContent, byte[] contentHash, byte[] nonce, String key, + String value, String execer, String privateKey) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage + .newBuilder(); storageBuilder.setEncryptContent(ByteString.copyFrom(encryptContent)); storageBuilder.setContentHash(ByteString.copyFrom(contentHash)); storageBuilder.setNonce(ByteString.copyFrom(nonce)); storageBuilder.setKey(key); storageBuilder.setValue(value); EncryptNotaryStorage encryptNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setEncryptStorage(encryptNotaryStorage); storageActionBuilder.setTy(StorageEnum.EncryptNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - + String createTxWithoutSign = TransactionUtil.createTxWithoutSign(execer.getBytes(), storageAction.toByteArray(), - TransactionUtil.DEFAULT_FEE, 0); + TransactionUtil.DEFAULT_FEE, 0); byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); TransactionAllProtobuf.Transaction parseFrom = null; try { @@ -238,62 +286,80 @@ public static String createEncryptNotaryStorage(byte[] encryptContent,byte[] con String hexString = HexUtil.toHexString(signProbuf.toByteArray()); return hexString; } - + /** * * @description 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链 - * @param encryptContent 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 - * @param contentHash 源文件的密文,由加密key及nonce对明文加密得到该值。 - * @param nonce 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * + * @param encryptContent + * 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 + * @param contentHash + * 源文件的密文,由加密key及nonce对明文加密得到该值。 + * @param nonce + * 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * * @return payload * */ - public static String createEncryptNotaryStorage(byte[] encryptContent,byte[] contentHash,byte[] nonce, String key, - String value, String execer, String privateKey, String contranctAddress) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage.newBuilder(); + public static String createEncryptNotaryStorage(byte[] encryptContent, byte[] contentHash, byte[] nonce, String key, + String value, String execer, String privateKey, String contranctAddress) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage + .newBuilder(); storageBuilder.setEncryptContent(ByteString.copyFrom(encryptContent)); storageBuilder.setContentHash(ByteString.copyFrom(contentHash)); storageBuilder.setNonce(ByteString.copyFrom(nonce)); storageBuilder.setKey(key); storageBuilder.setValue(value); EncryptNotaryStorage encryptNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setEncryptStorage(encryptNotaryStorage); storageActionBuilder.setTy(StorageEnum.EncryptNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } - + /** * * @description 分享隐私存证模型 - * @param contentHash 存证明文内容的hash值,推荐使用sha256哈希,限制256位的摘要值 - * @param content 源文件的密文。 - * @param nonce 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 - * @param keyName 密钥的kdf推导路径。密钥tree父节点根据该路径可以推导出私钥key - * @param keyWrap 加密key的wrap key。加密key随机生成,对明文进行加密,该key有私密key进行key wrap后公开。使用时,通过私密key对wrap key解密得到加密key对密文进行解密。 + * + * @param contentHash + * 存证明文内容的hash值,推荐使用sha256哈希,限制256位的摘要值 + * @param content + * 源文件的密文。 + * @param nonce + * 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * @param keyName + * 密钥的kdf推导路径。密钥tree父节点根据该路径可以推导出私钥key + * @param keyWrap + * 加密key的wrap key。加密key随机生成,对明文进行加密,该key有私密key进行key wrap后公开。使用时,通过私密key对wrap key解密得到加密key对密文进行解密。 + * * @return payload * */ - public static String createEncryptShareNotaryStorage(byte[] contentHash,byte[] content,byte[] nonce,byte[] keyName,byte[] keyWrap, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptShareNotaryStorage.newBuilder(); + public static String createEncryptShareNotaryStorage(byte[] contentHash, byte[] content, byte[] nonce, + byte[] keyName, byte[] keyWrap, String execer, String privateKey) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptShareNotaryStorage + .newBuilder(); storageBuilder.setContentHash(ByteString.copyFrom(contentHash)); storageBuilder.setEncryptContent(ByteString.copyFrom(content)); -// storageBuilder.setKeyName(ByteString.copyFrom(keyName)); -// storageBuilder.setNonce(ByteString.copyFrom(nonce)); -// storageBuilder.setKeyWrap(ByteString.copyFrom(keyWrap)); + // storageBuilder.setKeyName(ByteString.copyFrom(keyName)); + // storageBuilder.setNonce(ByteString.copyFrom(nonce)); + // storageBuilder.setKeyWrap(ByteString.copyFrom(keyWrap)); EncryptShareNotaryStorage encryptShareNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setEncryptShareStorage(encryptShareNotaryStorage); storageActionBuilder.setTy(StorageEnum.EncryptShareNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); String createTxWithoutSign = TransactionUtil.createTxWithoutSign(execer.getBytes(), storageAction.toByteArray(), - TransactionUtil.DEFAULT_FEE, 0); + TransactionUtil.DEFAULT_FEE, 0); byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); TransactionAllProtobuf.Transaction parseFrom = null; try { @@ -309,52 +375,63 @@ public static String createEncryptShareNotaryStorage(byte[] contentHash,byte[] c /** * * @description 存证数据运算 - * @param encryptContent 操作数密文 - * @param key 存证数据索引 - * @param privateKey 用户私钥,用于签名 - * @return hash 交易哈希 + * + * @param encryptContent + * 操作数密文 + * @param key + * 存证数据索引 + * @param privateKey + * 用户私钥,用于签名 + * + * @return hash 交易哈希 * */ public static String createEncryptNotaryAdd(byte[] encryptContent, String key, String privateKey) { -// StorageProtobuf.EncryptNotaryAdd.Builder storageBuilder = StorageProtobuf.EncryptNotaryAdd.newBuilder(); -// storageBuilder.setEncryptAdd(ByteString.copyFrom(encryptContent)); -// storageBuilder.setKey(key); -// -// StorageProtobuf.EncryptNotaryAdd encryptNotaryAdd = storageBuilder.build(); -// -// StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); -// storageActionBuilder.setEncryptAdd(encryptNotaryAdd); -// storageActionBuilder.setTy(StorageEnum.EncryptNotaryAdd.getTy()); -// StorageAction storageAction = storageActionBuilder.build(); -// -// String createTxWithoutSign = TransactionUtil.createTxWithoutSign("storage".getBytes(), storageAction.toByteArray(), -// TransactionUtil.DEFAULT_FEE, 0); -// byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); -// TransactionAllProtobuf.Transaction parseFrom = null; -// try { -// parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); -// } catch (InvalidProtocolBufferException e) { -// e.printStackTrace(); -// } -// TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); -// String hexString = HexUtil.toHexString(signProbuf.toByteArray()); -// return hexString; - return ""; //TODO + // StorageProtobuf.EncryptNotaryAdd.Builder storageBuilder = StorageProtobuf.EncryptNotaryAdd.newBuilder(); + // storageBuilder.setEncryptAdd(ByteString.copyFrom(encryptContent)); + // storageBuilder.setKey(key); + // + // StorageProtobuf.EncryptNotaryAdd encryptNotaryAdd = storageBuilder.build(); + // + // StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + // storageActionBuilder.setEncryptAdd(encryptNotaryAdd); + // storageActionBuilder.setTy(StorageEnum.EncryptNotaryAdd.getTy()); + // StorageAction storageAction = storageActionBuilder.build(); + // + // String createTxWithoutSign = TransactionUtil.createTxWithoutSign("storage".getBytes(), + // storageAction.toByteArray(), + // TransactionUtil.DEFAULT_FEE, 0); + // byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + // TransactionAllProtobuf.Transaction parseFrom = null; + // try { + // parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + // } catch (InvalidProtocolBufferException e) { + // e.printStackTrace(); + // } + // TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); + // String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + // return hexString; + return ""; // TODO } - //GRPC + // GRPC /** * * @description 内容存证模型 - * @param content 内容 - * @return payload + * + * @param content + * 内容 + * + * @return payload * */ - public static TransactionAllProtobuf.Transaction createOnlyNotaryStorageGrpc(byte[] content, String execer, String privateKey) { + public static TransactionAllProtobuf.Transaction createOnlyNotaryStorageGrpc(byte[] content, String execer, + String privateKey) { Builder contentOnlyNotaryStorageBuilder = StorageProtobuf.ContentOnlyNotaryStorage.newBuilder(); - contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));//内容小于512k; - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));// 内容小于512k; + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setContentStorage(contentOnlyNotaryStorageBuilder.build()); storageActionBuilder.setTy(StorageEnum.ContentOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); @@ -374,21 +451,26 @@ public static TransactionAllProtobuf.Transaction createOnlyNotaryStorageGrpc(byt /** * 内容存证模型,平行链代扣模式 + * * @param content * @param execer * @param privateKey * @param contranctAddress + * * @return */ - public static String createOnlyNotaryStorageGrpc(byte[] content, String execer, String privateKey, String contranctAddress) { + public static String createOnlyNotaryStorageGrpc(byte[] content, String execer, String privateKey, + String contranctAddress) { Builder contentOnlyNotaryStorageBuilder = StorageProtobuf.ContentOnlyNotaryStorage.newBuilder(); - contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));//内容小于512k; - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + contentOnlyNotaryStorageBuilder.setContent(ByteString.copyFrom(content));// 内容小于512k; + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setContentStorage(contentOnlyNotaryStorageBuilder.build()); storageActionBuilder.setTy(StorageEnum.ContentOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } @@ -396,15 +478,21 @@ public static String createOnlyNotaryStorageGrpc(byte[] content, String execer, /** * * @description 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 - * @param hash 长度固定为32字节 + * + * @param hash + * 长度固定为32字节 + * * @return payload * */ - public static TransactionAllProtobuf.Transaction createHashStorageGrpc(byte[] hash, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage.newBuilder(); + public static TransactionAllProtobuf.Transaction createHashStorageGrpc(byte[] hash, String execer, + String privateKey) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage + .newBuilder(); hashStorageBuilder.setHash(ByteString.copyFrom(hash)); HashOnlyNotaryStorage hashOnlyNotaryStorage = hashStorageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setHashStorage(hashOnlyNotaryStorage); storageActionBuilder.setTy(StorageEnum.HashOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); @@ -424,21 +512,28 @@ public static TransactionAllProtobuf.Transaction createHashStorageGrpc(byte[] ha /** * 平行链代扣模式 + * * @description 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 - * @param hash 长度固定为32字节 + * + * @param hash + * 长度固定为32字节 + * * @return payload * */ public static String createHashStorageGrpc(byte[] hash, String execer, String privateKey, String contranctAddress) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.HashOnlyNotaryStorage.Builder hashStorageBuilder = StorageProtobuf.HashOnlyNotaryStorage + .newBuilder(); hashStorageBuilder.setHash(ByteString.copyFrom(hash)); HashOnlyNotaryStorage hashOnlyNotaryStorage = hashStorageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setHashStorage(hashOnlyNotaryStorage); storageActionBuilder.setTy(StorageEnum.HashOnlyNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } @@ -446,17 +541,24 @@ public static String createHashStorageGrpc(byte[] hash, String execer, String pr /** * * @description 链接存证模型 - * @param link 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. - * @param hash 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * + * @param link + * 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. + * @param hash + * 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * * @return * */ - public static TransactionAllProtobuf.Transaction createLinkNotaryStorageGrpc(byte[] link, byte[] hash, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage.newBuilder(); + public static TransactionAllProtobuf.Transaction createLinkNotaryStorageGrpc(byte[] link, byte[] hash, + String execer, String privateKey) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage + .newBuilder(); storageBuilder.setLink(ByteString.copyFrom(link)); storageBuilder.setHash(ByteString.copyFrom(hash)); LinkNotaryStorage linkNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setLinkStorage(linkNotaryStorage); storageActionBuilder.setTy(StorageEnum.LinkNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); @@ -477,22 +579,30 @@ public static TransactionAllProtobuf.Transaction createLinkNotaryStorageGrpc(byt /** * * @description 链接存证模型 - * @param link 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. - * @param hash 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * + * @param link + * 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. + * @param hash + * 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 + * * @return * */ - public static String createLinkNotaryStorageGrpc(byte[] link,byte[] hash, String execer, String privateKey, String contranctAddress) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage.newBuilder(); + public static String createLinkNotaryStorageGrpc(byte[] link, byte[] hash, String execer, String privateKey, + String contranctAddress) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.LinkNotaryStorage.Builder storageBuilder = StorageProtobuf.LinkNotaryStorage + .newBuilder(); storageBuilder.setLink(ByteString.copyFrom(link)); storageBuilder.setHash(ByteString.copyFrom(hash)); LinkNotaryStorage linkNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setLinkStorage(linkNotaryStorage); storageActionBuilder.setTy(StorageEnum.LinkNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } @@ -500,22 +610,29 @@ public static String createLinkNotaryStorageGrpc(byte[] link,byte[] hash, String /** * * @description 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链 - * @param encryptContent 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 - * @param contentHash 源文件的密文,由加密key及nonce对明文加密得到该值。 - * @param nonce 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * + * @param encryptContent + * 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 + * @param contentHash + * 源文件的密文,由加密key及nonce对明文加密得到该值。 + * @param nonce + * 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * * @return payload * */ - public static TransactionAllProtobuf.Transaction createEncryptNotaryStorageGrpc(byte[] encryptContent, byte[] contentHash, byte[] nonce, String key, - String value, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage.newBuilder(); + public static TransactionAllProtobuf.Transaction createEncryptNotaryStorageGrpc(byte[] encryptContent, + byte[] contentHash, byte[] nonce, String key, String value, String execer, String privateKey) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage + .newBuilder(); storageBuilder.setEncryptContent(ByteString.copyFrom(encryptContent)); storageBuilder.setContentHash(ByteString.copyFrom(contentHash)); storageBuilder.setNonce(ByteString.copyFrom(nonce)); storageBuilder.setKey(key); storageBuilder.setValue(value); EncryptNotaryStorage encryptNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setEncryptStorage(encryptNotaryStorage); storageActionBuilder.setTy(StorageEnum.EncryptNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); @@ -536,27 +653,35 @@ public static TransactionAllProtobuf.Transaction createEncryptNotaryStorageGrpc( /** * * @description 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链 - * @param encryptContent 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 - * @param contentHash 源文件的密文,由加密key及nonce对明文加密得到该值。 - * @param nonce 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * + * @param encryptContent + * 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 + * @param contentHash + * 源文件的密文,由加密key及nonce对明文加密得到该值。 + * @param nonce + * 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * * @return payload * */ - public static String createEncryptNotaryStorageGrpc(byte[] encryptContent,byte[] contentHash,byte[] nonce, String key, - String value, String execer, String privateKey, String contranctAddress) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage.newBuilder(); + public static String createEncryptNotaryStorageGrpc(byte[] encryptContent, byte[] contentHash, byte[] nonce, + String key, String value, String execer, String privateKey, String contranctAddress) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptNotaryStorage + .newBuilder(); storageBuilder.setEncryptContent(ByteString.copyFrom(encryptContent)); storageBuilder.setContentHash(ByteString.copyFrom(contentHash)); storageBuilder.setNonce(ByteString.copyFrom(nonce)); storageBuilder.setKey(key); storageBuilder.setValue(value); EncryptNotaryStorage encryptNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setEncryptStorage(encryptNotaryStorage); storageActionBuilder.setTy(StorageEnum.EncryptNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); - String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, storageAction.toByteArray()); + String createTransferTx = TransactionUtil.createTransferTx(privateKey, contranctAddress, execer, + storageAction.toByteArray()); return createTransferTx; } @@ -564,24 +689,34 @@ public static String createEncryptNotaryStorageGrpc(byte[] encryptContent,byte[] /** * * @description 分享隐私存证模型 - * @param contentHash 存证明文内容的hash值,推荐使用sha256哈希,限制256位的摘要值 - * @param content 源文件的密文。 - * @param nonce 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 - * @param keyName 密钥的kdf推导路径。密钥tree父节点根据该路径可以推导出私钥key - * @param keyWrap 加密key的wrap key。加密key随机生成,对明文进行加密,该key有私密key进行key wrap后公开。使用时,通过私密key对wrap key解密得到加密key对密文进行解密。 + * + * @param contentHash + * 存证明文内容的hash值,推荐使用sha256哈希,限制256位的摘要值 + * @param content + * 源文件的密文。 + * @param nonce + * 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 + * @param keyName + * 密钥的kdf推导路径。密钥tree父节点根据该路径可以推导出私钥key + * @param keyWrap + * 加密key的wrap key。加密key随机生成,对明文进行加密,该key有私密key进行key wrap后公开。使用时,通过私密key对wrap key解密得到加密key对密文进行解密。 + * * @return payload * */ - public static String createEncryptShareNotaryStorageGrpc(byte[] contentHash,byte[] content,byte[] nonce,byte[] keyName,byte[] keyWrap, String execer, String privateKey) { - cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptShareNotaryStorage.newBuilder(); + public static String createEncryptShareNotaryStorageGrpc(byte[] contentHash, byte[] content, byte[] nonce, + byte[] keyName, byte[] keyWrap, String execer, String privateKey) { + cn.chain33.javasdk.model.protobuf.StorageProtobuf.EncryptShareNotaryStorage.Builder storageBuilder = StorageProtobuf.EncryptShareNotaryStorage + .newBuilder(); storageBuilder.setContentHash(ByteString.copyFrom(contentHash)); storageBuilder.setEncryptContent(ByteString.copyFrom(content)); -// storageBuilder.setKeyName(ByteString.copyFrom(keyName)); -// storageBuilder.setNonce(ByteString.copyFrom(nonce)); -// storageBuilder.setKeyWrap(ByteString.copyFrom(keyWrap)); + // storageBuilder.setKeyName(ByteString.copyFrom(keyName)); + // storageBuilder.setNonce(ByteString.copyFrom(nonce)); + // storageBuilder.setKeyWrap(ByteString.copyFrom(keyWrap)); EncryptShareNotaryStorage encryptShareNotaryStorage = storageBuilder.build(); - cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction + .newBuilder(); storageActionBuilder.setEncryptShareStorage(encryptShareNotaryStorage); storageActionBuilder.setTy(StorageEnum.EncryptShareNotaryStorage.getTy()); StorageAction storageAction = storageActionBuilder.build(); @@ -603,38 +738,43 @@ public static String createEncryptShareNotaryStorageGrpc(byte[] contentHash,byte /** * * @description 存证数据运算 - * @param encryptContent 操作数密文 - * @param key 存证数据索引 - * @param privateKey 用户私钥,用于签名 - * @return hash 交易哈希 + * + * @param encryptContent + * 操作数密文 + * @param key + * 存证数据索引 + * @param privateKey + * 用户私钥,用于签名 + * + * @return hash 交易哈希 * */ public static String createEncryptNotaryAddGrpc(byte[] encryptContent, String key, String privateKey) { -// StorageProtobuf.EncryptNotaryAdd.Builder storageBuilder = StorageProtobuf.EncryptNotaryAdd.newBuilder(); -// storageBuilder.setEncryptAdd(ByteString.copyFrom(encryptContent)); -// storageBuilder.setKey(key); -// -// StorageProtobuf.EncryptNotaryAdd encryptNotaryAdd = storageBuilder.build(); -// -// StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); -// storageActionBuilder.setEncryptAdd(encryptNotaryAdd); -// storageActionBuilder.setTy(StorageEnum.EncryptNotaryAdd.getTy()); -// StorageAction storageAction = storageActionBuilder.build(); -// -// String createTxWithoutSign = TransactionUtil.createTxWithoutSign("storage".getBytes(), storageAction.toByteArray(), -// TransactionUtil.DEFAULT_FEE, 0); -// byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); -// TransactionAllProtobuf.Transaction parseFrom = null; -// try { -// parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); -// } catch (InvalidProtocolBufferException e) { -// e.printStackTrace(); -// } -// TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); -// String hexString = HexUtil.toHexString(signProbuf.toByteArray()); -// return hexString; - return ""; //TODO + // StorageProtobuf.EncryptNotaryAdd.Builder storageBuilder = StorageProtobuf.EncryptNotaryAdd.newBuilder(); + // storageBuilder.setEncryptAdd(ByteString.copyFrom(encryptContent)); + // storageBuilder.setKey(key); + // + // StorageProtobuf.EncryptNotaryAdd encryptNotaryAdd = storageBuilder.build(); + // + // StorageProtobuf.StorageAction.Builder storageActionBuilder = StorageProtobuf.StorageAction.newBuilder(); + // storageActionBuilder.setEncryptAdd(encryptNotaryAdd); + // storageActionBuilder.setTy(StorageEnum.EncryptNotaryAdd.getTy()); + // StorageAction storageAction = storageActionBuilder.build(); + // + // String createTxWithoutSign = TransactionUtil.createTxWithoutSign("storage".getBytes(), + // storageAction.toByteArray(), + // TransactionUtil.DEFAULT_FEE, 0); + // byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + // TransactionAllProtobuf.Transaction parseFrom = null; + // try { + // parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + // } catch (InvalidProtocolBufferException e) { + // e.printStackTrace(); + // } + // TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, privateKey); + // String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + // return hexString; + return ""; // TODO } } - diff --git a/src/main/java/cn/chain33/javasdk/utils/StringUtil.java b/src/main/java/cn/chain33/javasdk/utils/StringUtil.java index c8e647d..0664994 100644 --- a/src/main/java/cn/chain33/javasdk/utils/StringUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/StringUtil.java @@ -1,11 +1,11 @@ package cn.chain33.javasdk.utils; public class StringUtil { - - public static boolean isEmpty(final CharSequence cs) { + + public static boolean isEmpty(final CharSequence cs) { return cs == null || cs.length() == 0; } - + public static boolean isNotEmpty(final CharSequence cs) { return !isEmpty(cs); } diff --git a/src/main/java/cn/chain33/javasdk/utils/TransactionGrpcUtil.java b/src/main/java/cn/chain33/javasdk/utils/TransactionGrpcUtil.java index 31c1d70..fee5f27 100644 --- a/src/main/java/cn/chain33/javasdk/utils/TransactionGrpcUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/TransactionGrpcUtil.java @@ -11,17 +11,19 @@ public class TransactionGrpcUtil { - /** * * @description 签名 + * * @param tx * @param privateKey + * * @return * * @create 2020年1月9日 下午6:35:16 */ - public static TransactionAllProtobuf.Transaction signProbuf(TransactionAllProtobuf.Transaction tx, String privateKey) { + public static TransactionAllProtobuf.Transaction signProbuf(TransactionAllProtobuf.Transaction tx, + String privateKey) { TransactionAllProtobuf.Transaction encodeTx = getSignProbuf(tx); byte[] protobufData = encodeTx.toByteArray(); byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); @@ -38,10 +40,13 @@ public static TransactionAllProtobuf.Transaction signProbuf(TransactionAllProtob /** * * @description 获取签名需要的protobuf + * * @param tx + * * @return * * @author lgang + * * @create 2020年1月9日 下午6:35:30 */ public static TransactionAllProtobuf.Transaction getSignProbuf(TransactionAllProtobuf.Transaction tx) { @@ -65,9 +70,8 @@ public static TransactionAllProtobuf.Transaction getSignProbuf(TransactionAllPro return build; } - private static RawTransactionProtobuf.Signature signRawTx(byte[] data, byte[] privateKey, - RawTransactionProtobuf.Transaction.Builder txBuilder) { + RawTransactionProtobuf.Transaction.Builder txBuilder) { Signature btcCoinSign = btcCoinSign(data, privateKey); RawTransactionProtobuf.Signature.Builder signatureBuilder = RawTransactionProtobuf.Signature.newBuilder(); signatureBuilder.setPubkey(ByteString.copyFrom(btcCoinSign.getPubkey())); diff --git a/src/main/java/cn/chain33/javasdk/utils/TransactionUtil.java b/src/main/java/cn/chain33/javasdk/utils/TransactionUtil.java index 819c1fb..58b7c60 100644 --- a/src/main/java/cn/chain33/javasdk/utils/TransactionUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/TransactionUtil.java @@ -48,982 +48,1037 @@ */ public class TransactionUtil { - private static final SignType DEFAULT_SIGNTYPE = SignType.SECP256K1; - - public static final long DEFAULT_FEE = 1000000; - - public static final long PARA_CREATE_EVM_FEE = 3000000; - - public static final long PARA_CALL_EVM_FEE = 200000; - - private final static Long TX_HEIGHT_OFFSET = 1L << 62; - - private final static Long LowAllowPackHeight = 30L; - - private static byte[] addrSeed = "address seed bytes for public key".getBytes(); - - private static final long DURATION = 1; - - private static final long MICROSECOND = DURATION * 1000; - - private static final long MILLISECOND = MICROSECOND * 1000; - - private static final long SECOND = MILLISECOND * 1000; - - // private static final long MINUTE = SECOND * 1000; - - private static final long EXPIREBOUND = 1000000000; - - public static String toHexString(byte[] byteArr) { - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < byteArr.length; i++) { - int b = byteArr[i] & 0xff; - String hexString = Integer.toHexString(b); - sb.append(hexString); - } - return sb.toString(); - } - - /** - * - * @description expire转换为纳秒为单位 - * @param expire - * 单位为秒 - * @return - * - */ - public static long getExpire(long expire) { - expire = expire * EXPIREBOUND; - if (expire > EXPIREBOUND) { - if (expire < SECOND * 120) { - expire = SECOND * 120; - } - expire = System.currentTimeMillis() / 1000l + expire / SECOND; - return expire; - } else { - return expire; - } - } - - /** - * byte数组合并 - * - * @param byte_1 - * @param byte_2 - * @return - */ - public static byte[] byteMerger(byte[] byte_1, byte[] byte_2) { - byte[] byte_3 = new byte[byte_1.length + byte_2.length]; - System.arraycopy(byte_1, 0, byte_3, 0, byte_1.length); - System.arraycopy(byte_2, 0, byte_3, byte_1.length, byte_2.length); - return byte_3; - } - - /** - * - * @description 通过公钥生成地址 - * @param pubKey - * 公钥 - * @return 地址 - */ - public static String genAddress(byte[] pubKey) { - byte[] sha256 = TransactionUtil.Sha256(pubKey); - byte[] ripemd160 = TransactionUtil.ripemd160(sha256); - Address address = new Address(); - address.setHash160(ripemd160); - return addressToString(address); - } - - /** - * 将evm地址转成base58编码地址 - * @param addressByte - * @return - * @throws Exception - */ - public static String encodeAddress(byte[] addressByte) { - Address address = new Address(); - address.setHash160(addressByte); - return addressToString(address); - } - - /** - * 将base58编码的地址转成evm地址 - * @param address chain33地址 - * @return - * @throws Exception - */ - public static byte[] decodeAddress(String address) throws Exception { - byte[] decodeBytes = Base58Util.decode(address); - if (decodeBytes.length < 25) { - throw new Exception("Address too short " + HexUtil.toHexString(decodeBytes)); - } - - if(!validAddress(address)) { - throw new Exception("Address check failed " + HexUtil.toHexString(decodeBytes)); - } - - return ByteUtils.subArray(decodeBytes, 1,decodeBytes.length - 4); - } - /** - * - * @description 校验地址是否符合规则 - * @param address - * 地址 - * @return 校验结果 - */ - public static boolean validAddress(String address) { - try { - byte[] decodeBytes = Base58Util.decode(address); - byte[] checkByteByte = ByteUtils.subArray(decodeBytes, decodeBytes.length - 4); - byte[] noCheckByte = ByteUtils.subArray(decodeBytes, 0, decodeBytes.length - 4); - byte[] sha256 = Sha256(noCheckByte); - byte[] twice = Sha256(sha256); - for (int i = 0; i < 4; i++) { - if (twice[i] != checkByteByte[i]) { - return false; - } - } - return true; - } catch (Exception e) { - return false; - } - } - - /** - * @description byte数组截取 - * - * @param byteArr - * @param start - * @param end - * @return - */ - public static byte[] subByteArr(byte[] byteArr, Integer start, Integer end) { - Integer diff = end - start; - byte[] byteTarget = new byte[diff]; - if (diff > byteArr.length) { - diff = byteArr.length; - } - for (int i = 0; i < diff; i++) { - byteTarget[i] = byteArr[i]; - } - return byteTarget; - } - - public static byte[] Sha256(byte[] sourceByte) { - try { - MessageDigest md = MessageDigest.getInstance("SHA-256"); - md.update(sourceByte); - byte byteData[] = md.digest(); - return byteData; - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } - - public static Long getRandomNonce() { - Random random = new Random(System.nanoTime()); - return Math.abs(random.nextLong()); - } - - /** - * - * @description 本地创建coins转账payload - * @param to 目标地址 - * @param amount 数量 - * @param coinToken 主代币则为"" - * @param note 备注,没有为"" - * @return payload - */ - public static byte[] createTransferPayLoad(String to, Long amount, String coinToken, String note) { - TransactionAllProtobuf.AssetsTransfer.Builder assetsTransferBuilder = TransactionAllProtobuf.AssetsTransfer.newBuilder(); - assetsTransferBuilder.setCointoken(coinToken); - assetsTransferBuilder.setAmount(amount); - try { - assetsTransferBuilder.setNote(ByteString.copyFrom(note, "utf-8")); - } catch (UnsupportedEncodingException e) { - e.printStackTrace(); - } - assetsTransferBuilder.setTo(to); - AssetsTransfer assetsTransfer = assetsTransferBuilder.build(); - CoinsProtobuf.CoinsAction.Builder coinsActionBuilder = CoinsProtobuf.CoinsAction.newBuilder(); - coinsActionBuilder.setTy(1); - coinsActionBuilder.setTransfer(assetsTransfer); - CoinsProtobuf.CoinsAction coinsAction = coinsActionBuilder.build(); - byte[] payload = coinsAction.toByteArray(); - return payload; - } - - - - /** - * - * @description 本地创建转账交易 - * @param privateKey - * @param toAddress - * @param execer - * @param payLoad - * @return - * - */ - public static String createTransferTx(String privateKey, String toAddress, String execer, byte[] payLoad) { - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, DEFAULT_FEE); - } - - public static String createTransferTx(String privateKey, String toAddress, String execer, byte[] payLoad, long fee) { - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, fee); - } - - public static String createTransferTx(String privateKey, String toAddress, String execer, byte[] payLoad, long fee, long txheight) { - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, fee, txheight); - } - - public static TransactionAllProtobuf.Transaction createTransferTx2(String privateKey, String toAddress, String execer, byte[] payLoad, long fee, long txheight) { - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - return createTxMain2(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, fee, txheight); - } - - public static String createTx(String privateKey, String execer, String payLoad) { - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - return createTx(privateKeyBytes, execer.getBytes(), payLoad.getBytes(), DEFAULT_SIGNTYPE, DEFAULT_FEE); - } - - public static String createTx(String privateKey, String execer, String payLoad, long fee) { - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - return createTx(privateKeyBytes, execer.getBytes(), payLoad.getBytes(), DEFAULT_SIGNTYPE, fee); - } - - public static String createTx(byte[] privateKey, byte[] execer, byte[] payLoad, SignType signType, long fee) { - String toAddress = getToAddress(execer); - return createTxMain(privateKey, toAddress, execer, payLoad, signType, fee); - } - - private static String createTxMain(byte[] privateKey, String toAddress, byte[] execer, byte[] payLoad, - SignType signType, long fee) { - if (signType == null) - signType = DEFAULT_SIGNTYPE; - - // 如果没有私钥,创建私钥 privateKey = - if (privateKey == null) { - TransactionUtil.generatorPrivateKey(); - } - - Transaction transaction = createTxRaw(toAddress, execer, payLoad, fee); - - // 签名 - byte[] protobufData = encodeProtobuf(transaction); - - sign(signType, protobufData, privateKey, null, transaction); - // 序列化 - byte[] encodeProtobufWithSign = encodeProtobufWithSign(transaction); - String transationStr = HexUtil.toHexString(encodeProtobufWithSign); - return transationStr; - } - - /** - * - * @description 本地构造交易 - * @param privateKey - * 私钥 - * @param toAddress - * 目标地址 - * @param execer - * 例如user.p.xxchain.token - * @param payLoad - * 内容 - * @param signType - * 签名方式,默认SignType.SECP256K1 - * @param fee - * 手续费 - * @param txHeight - * 联盟链需要,其他为null - * @return - * - */ - public static String createTxMain(byte[] privateKey, String toAddress, byte[] execer, byte[] payLoad, - SignType signType, long fee, Long txHeight) { - if (signType == null) - signType = DEFAULT_SIGNTYPE; - - // 如果没有私钥,创建私钥 privateKey = - if (privateKey == null) { - TransactionUtil.generatorPrivateKey(); - } - - Transaction transation = createTxRaw(toAddress, execer, payLoad, fee); - if (txHeight != null) { - transation.setExpire(txHeight + TX_HEIGHT_OFFSET + LowAllowPackHeight); - } - - // 签名 - byte[] protobufData = encodeProtobuf(transation); - - sign(signType, protobufData, privateKey, null, transation); - // 序列化 - byte[] encodeProtobufWithSign = encodeProtobufWithSign(transation); - String transationHash = HexUtil.toHexString(encodeProtobufWithSign); - return transationHash; - } - - /** - * - * @description 本地构造交易 - * @param privateKey - * 私钥 - * @param toAddress - * 目标地址 - * @param execer - * 例如user.p.xxchain.token - * @param payLoad - * 内容 - * @param signType - * 签名方式,默认SignType.SECP256K1 - * @param fee - * 手续费 - * @param txHeight - * 联盟链需要,其他为null - * @return - * - */ - public static TransactionAllProtobuf.Transaction createTxMain2(byte[] privateKey, String toAddress, byte[] execer, byte[] payLoad, - SignType signType, long fee, Long txHeight) { - if (signType == null) - signType = DEFAULT_SIGNTYPE; - - // 如果没有私钥,创建私钥 privateKey = - if (privateKey == null) { - TransactionUtil.generatorPrivateKey(); - } - - Transaction transation = createTxRaw(toAddress, execer, payLoad, fee); - if (txHeight != null) { - transation.setExpire(txHeight + TX_HEIGHT_OFFSET + LowAllowPackHeight); - } - - // 签名 - byte[] protobufData = encodeProtobuf(transation); - - sign(signType, protobufData, privateKey, null, transation); - TransactionAllProtobuf.Transaction tx = encodeProtobufWithSign2(transation); - return tx; - } - - public static String createTxWithCert(String privateKey, String execer, byte[] payLoad, SignType signType, byte[] cert, byte[] uid) { - if (signType == null) - signType = DEFAULT_SIGNTYPE; - - // 如果没有私钥,创建私钥 privateKey = - if (privateKey == null) { - TransactionUtil.generatorPrivateKey(); - } - - String toAddress = getToAddress(execer.getBytes()); - Transaction transation = createTxRaw(toAddress, execer.getBytes(), payLoad, DEFAULT_FEE); - // 签名 - byte[] protobufData = encodeProtobuf(transation); - - sign(signType, protobufData, HexUtil.fromHexString(privateKey), uid, transation); - - byte[] certSign = CertUtils.EncodeCertToSignature(transation.getSignature().getSignature(), cert, uid); - transation.getSignature().setSignature(certSign); - - // 序列化 - byte[] encodeProtobufWithSign = encodeProtobufWithSign(transation); - String transationHash = HexUtil.toHexString(encodeProtobufWithSign); - return transationHash; - } - - public static TransactionAllProtobuf.Transaction createTxWithCertProto(String privateKey, String execer, byte[] payLoad, SignType signType, byte[] cert, byte[] uid) { - if (signType == null) - signType = DEFAULT_SIGNTYPE; - - // 如果没有私钥,创建私钥 privateKey = - if (privateKey == null) { - TransactionUtil.generatorPrivateKey(); - } - - String toAddress = getToAddress(execer.getBytes()); - Transaction transation = createTxRaw(toAddress, execer.getBytes(), payLoad, DEFAULT_FEE); - // 签名 - byte[] protobufData = encodeProtobuf(transation); - - sign(signType, protobufData, HexUtil.fromHexString(privateKey), uid, transation); - - byte[] certSign = CertUtils.EncodeCertToSignature(transation.getSignature().getSignature(), cert, uid); - transation.getSignature().setSignature(certSign); - - TransactionAllProtobuf.Transaction tx = encodeProtobufWithSign2(transation); - return tx; - } - public static Transaction createTxRaw(String toAddress, byte[] execer, byte[] payLoad, long fee) { - Transaction transation = new Transaction(); - transation.setExecer(execer); - transation.setPayload(payLoad); - transation.setFee(fee); - transation.setNonce(TransactionUtil.getRandomNonce()); - // 计算To - transation.setTo(toAddress); - - return transation; - } - - /** - * 构造转帐交易,并签名 - * - * @return 交易hash - */ - public static String transferBalanceMain(TransferBalanceRequest transferBalanceRequest) { - String to = transferBalanceRequest.getTo(); - Long amount = transferBalanceRequest.getAmount(); - String coinToken = transferBalanceRequest.getCoinToken(); - String note = transferBalanceRequest.getNote(); - SignType signType = transferBalanceRequest.getSignType(); - String privateKey = transferBalanceRequest.getFromPrivateKey(); - String execer = transferBalanceRequest.getExecer(); - long fee = transferBalanceRequest.getFee(); - byte[] payload = createTransferPayLoad(to, amount, coinToken, note); - - byte[] execerBytes; - if (StringUtil.isNotEmpty(execer)) { - execerBytes = execer.getBytes(); - } else { - execerBytes = "none".getBytes(); - } - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - - String transferTx = createTxMain(privateKeyBytes, to, execerBytes, payload, signType, fee); - return transferTx; - } - - /** - * 计算to - * - * @param execer - * @return - */ - public static String getToAddress(byte[] execer) { - byte[] mergeredByte = TransactionUtil.byteMerger(addrSeed, execer); - byte[] sha256_1 = TransactionUtil.Sha256(mergeredByte); - for (int i = 0; i < sha256_1.length; i++) { - sha256_1[i] = (byte) (sha256_1[i] & 0xff); - } - byte[] sha256_2 = TransactionUtil.Sha256(sha256_1); - byte[] sha256_3 = TransactionUtil.Sha256(sha256_2); - byte[] ripemd160 = TransactionUtil.ripemd160(sha256_3); - Address address = new Address(); - address.setHash160(ripemd160); - return addressToString(address); - } - - /** - * @description 创建私钥和公钥 - * - * @return 私钥 - */ - public static byte[] generatorPrivateKey() { - int length = 0; - byte[] privateKey; - do { - ECKeyPairGenerator gen = new ECKeyPairGenerator(); - SecureRandom secureRandom = new SecureRandom(); - X9ECParameters secnamecurves = SECNamedCurves.getByName("secp256k1"); - ECDomainParameters ecParams = new ECDomainParameters(secnamecurves.getCurve(), secnamecurves.getG(), - secnamecurves.getN(), secnamecurves.getH()); - ECKeyGenerationParameters keyGenParam = new ECKeyGenerationParameters(ecParams, secureRandom); - gen.init(keyGenParam); - AsymmetricCipherKeyPair kp = gen.generateKeyPair(); - ECPrivateKeyParameters privatekey = (ECPrivateKeyParameters) kp.getPrivate(); - privateKey = privatekey.getD().toByteArray(); - length = privatekey.getD().toByteArray().length; - } while (length != 32); - return privateKey; - } - - /** - * - * @description 生成私钥 - * @return 私钥 - * - */ - public static String generatorPrivateKeyString() { - byte[] generatorPrivateKey = generatorPrivateKey(); - ECKey eckey = ECKey.fromPrivate(generatorPrivateKey); - return eckey.getPrivateKeyAsHex(); - } - - /** - * - * @description 通过私钥生成公钥 - * @param privateKey - * 私钥 - * @return 公钥 - * - */ - public static String getHexPubKeyFromPrivKey(String privateKey) { - ECKey eckey = ECKey.fromPrivate(HexUtil.fromHexString(privateKey)); - byte[] pubKey = eckey.getPubKey(); - String pubKeyStr = HexUtil.toHexString(pubKey); - return pubKeyStr; - } - - /** - * 构造交易 - * - * @param transaction - * @return - */ - public static byte[] encodeProtobuf(Transaction transaction) { - TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); - - builder.setExecer(ByteString.copyFrom(transaction.getExecer())); - builder.setExpire(transaction.getExpire()); - builder.setFee(transaction.getFee()); - builder.setNonce(transaction.getNonce()); - builder.setPayload(ByteString.copyFrom(transaction.getPayload())); - builder.setTo(transaction.getTo()); - TransactionAllProtobuf.Transaction build = builder.build(); - byte[] byteArray = build.toByteArray(); - return byteArray; - } - - /** - * 构造带签名的交易 - * - * @param transaction - * @return - */ - public static TransactionAllProtobuf.Transaction encodeProtobufWithSign2(Transaction transaction) { - TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); - - builder.setExecer(ByteString.copyFrom(transaction.getExecer())); - builder.setExpire(transaction.getExpire()); - builder.setFee(transaction.getFee()); - builder.setNonce(transaction.getNonce()); - builder.setPayload(ByteString.copyFrom(transaction.getPayload())); - builder.setTo(transaction.getTo()); - - TransactionAllProtobuf.Signature.Builder signatureBuilder = builder.getSignatureBuilder(); - signatureBuilder.setPubkey(ByteString.copyFrom(transaction.getSignature().getPubkey())); - signatureBuilder.setTy(transaction.getSignature().getTy()); - signatureBuilder.setSignature(ByteString.copyFrom(transaction.getSignature().getSignature())); - TransactionAllProtobuf.Signature signatureBuild = signatureBuilder.build(); - builder.setSignature(signatureBuild); - TransactionAllProtobuf.Transaction build = builder.build(); - return build; - } - - /** - * 构造带签名的交易 - * - * @param transaction - * @return - */ - public static byte[] encodeProtobufWithSign(Transaction transaction) { - TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); - - builder.setExecer(ByteString.copyFrom(transaction.getExecer())); - builder.setExpire(transaction.getExpire()); - builder.setFee(transaction.getFee()); - builder.setNonce(transaction.getNonce()); - builder.setPayload(ByteString.copyFrom(transaction.getPayload())); - builder.setTo(transaction.getTo()); - - TransactionAllProtobuf.Signature.Builder signatureBuilder = builder.getSignatureBuilder(); - signatureBuilder.setPubkey(ByteString.copyFrom(transaction.getSignature().getPubkey())); - signatureBuilder.setTy(transaction.getSignature().getTy()); - signatureBuilder.setSignature(ByteString.copyFrom(transaction.getSignature().getSignature())); - TransactionAllProtobuf.Signature signatureBuild = signatureBuilder.build(); - builder.setSignature(signatureBuild); - TransactionAllProtobuf.Transaction build = builder.build(); - byte[] byteArray = build.toByteArray(); - return byteArray; - } - /** - * 签名 - * - * @param signType - * 签名类型 - * @param data - * 加密数据 - * @param privateKey - * 私钥 - * @param transaction - * 交易 - */ - private static void sign(SignType signType, byte[] data, byte[] privateKey, byte[] uid, Transaction transaction) { - switch (signType) { - case SECP256K1: { - Signature btcCoinSign = btcCoinSign(data, privateKey); - transaction.setSignature(btcCoinSign); - } - break; - case SM2: { - SM2KeyPair keyPair = SM2Util.fromPrivateKey(privateKey); - byte[] derSignBytes; - try { - derSignBytes = SM2Util.sign(data, uid, keyPair); - } catch (IOException e) { - break; - } - Signature signature = new Signature(); - signature.setPubkey(keyPair.getPublicKey().getEncoded(true)); - signature.setSignature(derSignBytes); - signature.setTy(signType.getType()); - transaction.setSignature(signature); - } - break; - case ED25519: { - Ecc25519Helper helper1 = new Ecc25519Helper(privateKey); - byte[] publicKey = helper1.getKeyHolder().getPublicKeySignature(); - byte[] sign = helper1.sign(data); - Signature signature = new Signature(); - signature.setPubkey(publicKey); - signature.setSignature(sign); - signature.setTy(signType.getType()); - transaction.setSignature(signature); - } - break; - default: - break; - } - } - - /** - * - * @description 本地签名 - * @param privateKey - * 私钥 - * @param expire - * 秒数 - * @param txHex - * 上一步CreateNoBalanceTransaction生成的交易hash 16进制 - * @param index - * 是签名交易组,则为要签名的交易序号,从1开始,小于等于0则为签名组内全部交易 - * @return - * - */ - public static String signRawTx(String privateKey, long expire, String txHex, Integer index) throws Exception { - // 1.检查私钥是否存在 ->存在:->byte - if (StringUtil.isEmpty(privateKey)) { - throw new Exception("privateKey not Exist"); - } - byte[] privKeyBytes = HexUtil.fromHexString(privateKey); - RawTransactionProtobuf.Transaction.Builder txBuilder = RawTransactionProtobuf.Transaction.newBuilder(); - RawTransactionProtobuf.Transaction rawtransactionProtobuf = txBuilder.mergeFrom(HexUtil.fromHexString(txHex)) - .build(); - long changedExpire = getExpire(expire); - txBuilder.setExpire(changedExpire); - // 如果执行器为privacy 暂时不处理 - /* - * if(Arrays.equals(ExecerPrivacy,rawtransactionProtobuf.getExecer(). - * toByteArray ())) { //signTxWithPrivacy } - */ - int groupCount = rawtransactionProtobuf.getGroupCount(); - if (groupCount < 0 || groupCount == 1 || groupCount > 20) { - throw new Exception("ErrTxGroupCount"); - } else if (groupCount > 0) { - byte[] txsBytes = rawtransactionProtobuf.getHeader().toByteArray(); - RawTransactionProtobuf.Transactions.Builder txsBuilder = RawTransactionProtobuf.Transactions.newBuilder(); - RawTransactionProtobuf.Transactions txs = txsBuilder.mergeFrom(txsBytes).build(); - List txsList = txs.getTxsList(); - if (index > txsList.size()) { - throw new Exception("ErrIndex"); - } - if (index <= 0) { - for (int i = 0; i < txsList.size(); i++) { - RawTransactionProtobuf.Transaction signTransactionsN = signTransactionsN(i, txsList, privKeyBytes); - txsList.set(i, signTransactionsN); - } - RawTransactionProtobuf.Transaction transaction = txsList.get(0); - transaction.toBuilder().setHeader(ByteString.copyFrom(txs.toByteArray())); - byte[] byteArray = transaction.toByteArray(); - String signHexString = HexUtil.toHexString(byteArray); - return signHexString; - } - index--; - RawTransactionProtobuf.Transaction signTransactionsN = signTransactionsN(index, txsList, privKeyBytes); - txsList.set(index, signTransactionsN); - RawTransactionProtobuf.Transaction transactionFirst = txsList.get(0); - transactionFirst.toBuilder().setHeader(ByteString.copyFrom(txs.toByteArray())); - byte[] byteArray = transactionFirst.toByteArray(); - String signHexString = HexUtil.toHexString(byteArray); - return signHexString; - } else { - byte[] rawTxProtobufBytes = txBuilder.build().toByteArray(); - RawTransactionProtobuf.Signature signatureProtobuf = signRawTx(rawTxProtobufBytes, privKeyBytes, txBuilder); - txBuilder.setSignature(signatureProtobuf); - String signedTx = HexUtil.toHexString(txBuilder.build().toByteArray()); - return signedTx; - } - } - - private static RawTransactionProtobuf.Transaction signTransactionsN(int n, - List transactionList, byte[] privKeyBytes) { - RawTransactionProtobuf.Transaction.Builder newTxBuilder = transactionList.get(n).toBuilder(); - RawTransactionProtobuf.Signature txSignature = signRawTx(transactionList.get(n).toByteArray(), privKeyBytes, - newTxBuilder); - newTxBuilder.setSignature(txSignature); - return newTxBuilder.build(); - } - - private static RawTransactionProtobuf.Signature signRawTx(byte[] data, byte[] privateKey, - RawTransactionProtobuf.Transaction.Builder txBuilder) { - Signature btcCoinSign = btcCoinSign(data, privateKey); - RawTransactionProtobuf.Signature.Builder signatureBuilder = RawTransactionProtobuf.Signature.newBuilder(); - signatureBuilder.setPubkey(ByteString.copyFrom(btcCoinSign.getPubkey())); - signatureBuilder.setTy(btcCoinSign.getTy()); - signatureBuilder.setSignature(ByteString.copyFrom(btcCoinSign.getSignature())); - RawTransactionProtobuf.Signature signatureProtuBuff = signatureBuilder.build(); - return signatureProtuBuff; - } - - public static String addressToString(Address address) { - if (StringUtil.isEmpty(address.getEnc58Str())) { - byte[] ad = new byte[25]; - ad[0] = address.getVersion(); - for (int i = 1; i < 21; i++) { - ad[i] = address.getHash160()[i - 1]; - } - byte[] checkSum = getAddressSh(ad); - address.setCheckSum(checkSum); - for (int i = 21, j = 0; i < 25; i++, j++) { - ad[i] = checkSum[j]; - } - String Enc58Str = Base58Util.encode(ad); - address.setEnc58Str(Enc58Str); - } - return address.getEnc58Str(); - } - - /** - * @description 数据处理,sha256 2次 - * - * @param sourceByte - */ - private static byte[] getAddressSh(byte[] sourceByte) { - byte[] subByteArr = TransactionUtil.subByteArr(sourceByte, 0, 21); - byte[] sha256_1 = TransactionUtil.Sha256(subByteArr); - byte[] sha256_2 = TransactionUtil.Sha256(sha256_1); - return sha256_2; - } - - public static byte[] ripemd160(byte[] sourceByte) { - byte[] hash = Ripemd160Util.getHash(sourceByte); - return hash; - } - - private static Signature btcCoinSign(byte[] data, byte[] privateKey) { - byte[] sha256 = TransactionUtil.Sha256(data); - Sha256Hash sha256Hash = Sha256Hash.wrap(sha256); - ECKey ecKey = ECKey.fromPrivate(privateKey); - ECKey.ECDSASignature ecdsas = ecKey.sign(sha256Hash); - byte[] signByte = ecdsas.encodeToDER(); - Signature signature = new Signature(); - signature.setPubkey(ecKey.getPubKey()); - signature.setSignature(signByte); - signature.setTy(SignType.SECP256K1.getType()); - return signature; - } - - public static TransactionAllProtobuf.Transaction decodeTxToProtobuf(DecodeRawTransaction unSignedTransaction, - String execerAddress) { - TransactionAllProtobuf.Transaction.Builder newBuilder = TransactionAllProtobuf.Transaction.newBuilder(); - newBuilder.setExecer(ByteString.copyFrom(unSignedTransaction.getExecer().getBytes())); - newBuilder.setExpire(unSignedTransaction.getExpire()); - newBuilder.setFee(unSignedTransaction.getFee()); - newBuilder.setNonce(unSignedTransaction.getNonce()); - newBuilder.setPayload(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getRawPayload()))); - if (StringUtil.isEmpty(execerAddress)) { - newBuilder.setTo(unSignedTransaction.getTo()); - } else { - newBuilder.setTo(execerAddress); - } - newBuilder.setHeader(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getHeader()))); - newBuilder.setNonce(unSignedTransaction.getNonce()); - if (StringUtil.isNotEmpty(unSignedTransaction.getNext())) { - newBuilder.setNext(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getNext()))); - } - if (unSignedTransaction.getPayload() == null) { - newBuilder.setPayload(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getRawPayload()))); - } - if (unSignedTransaction.getGroupCount() != null) { - newBuilder.setGroupCount(unSignedTransaction.getGroupCount()); - } - TransactionAllProtobuf.Signature.Builder signatureBuilder = TransactionAllProtobuf.Signature.newBuilder(); - signatureBuilder.setTy(unSignedTransaction.getSignature().getTy()); - signatureBuilder - .setPubkey(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getSignature().getPubkey()))); - signatureBuilder.setSignature( - ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getSignature().getSignature()))); - newBuilder.setSignature(signatureBuilder.build()); - return newBuilder.build(); - } - - /** - * 重组并签名交易组 - * - * @param decodeRawTransactions - * @param execerAddress - * @param fromAddressPriveteKey - * @param withHoldPrivateKey - * @return - */ - public static String signDecodeTx(List decodeRawTransactions, String execerAddress, - String fromAddressPriveteKey, String withHoldPrivateKey) { - DecodeRawTransaction unSignedTransaction = null; - DecodeRawTransaction signedSeconedTx = null; - for (DecodeRawTransaction decodeRawTransaction2 : decodeRawTransactions) { - if (StringUtil.isEmpty(decodeRawTransaction2.getSignature().getSignature())) { - unSignedTransaction = decodeRawTransaction2; - } else { - signedSeconedTx = decodeRawTransaction2; - } - } - // 签名none交易 用代扣地址签名 - - TransactionAllProtobuf.Transaction noneTx = decodeTxToProtobuf(unSignedTransaction, null); - TransactionAllProtobuf.Transaction unNoneTx = TransactionUtil.decodeTxToProtobuf(signedSeconedTx, execerAddress); - TransactionAllProtobuf.Transaction.Builder unNoneTxBuilder = unNoneTx.toBuilder(); - - String unNoneHash = TransactionUtil.getHash(unNoneTxBuilder.build(), execerAddress); - - TransactionAllProtobuf.Transaction.Builder noneBuilder = TransactionAllProtobuf.Transaction.newBuilder(noneTx); - noneBuilder.setNext(ByteString.copyFrom(HexUtil.fromHexString(unNoneHash))); - // noneBuilder.setGroupCount(2); - String noneHash = TransactionUtil.getHash(noneBuilder.build()); - noneBuilder.setHeader(ByteString.copyFrom(HexUtil.fromHexString(noneHash))); - - unNoneTxBuilder.setHeader(ByteString.copyFrom(HexUtil.fromHexString(noneHash))); - TransactionAllProtobuf.Transaction firstTxNew = unNoneTxBuilder.build(); - - TransactionAllProtobuf.Transaction noneTxNew = noneBuilder.build(); - noneTxNew = TransactionUtil.signProbuf(noneTxNew, withHoldPrivateKey); - firstTxNew = TransactionUtil.signProbuf(firstTxNew, fromAddressPriveteKey); - - // 创建交易组 - TransactionAllProtobuf.Transactions.Builder txsBuilder = TransactionAllProtobuf.Transactions.newBuilder(); - txsBuilder.addTxs(noneTxNew); - txsBuilder.addTxs(firstTxNew); - TransactionAllProtobuf.Transactions txs = txsBuilder.build(); - TransactionAllProtobuf.Transaction.Builder thirdBuilder = TransactionAllProtobuf.Transaction.newBuilder(noneTxNew); - thirdBuilder.setHeader(ByteString.copyFrom(txs.toByteArray())); - TransactionAllProtobuf.Transaction submitTx = thirdBuilder.build(); - String groupTx = HexUtil.toHexString(submitTx.toByteArray()); - return groupTx; - } - - public static String getHash(TransactionAllProtobuf.Transaction transaction) { - TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); - if (transaction.getPayload() != ByteString.EMPTY) { - builder.setPayload(transaction.getPayload()); - } - builder.setExecer(transaction.getExecer()); - builder.setFee(transaction.getFee()); - builder.setExpire(transaction.getExpire()); - builder.setNonce(transaction.getNonce()); - builder.setTo(transaction.getTo()); - builder.setGroupCount(transaction.getGroupCount()); - if (transaction.getNext() != ByteString.EMPTY) { - builder.setNext(transaction.getNext()); - } - TransactionAllProtobuf.Transaction build = builder.build(); - byte[] byteArray = build.toByteArray(); - return HexUtil.toHexString(Sha256(byteArray)); - } - - public static String getHash(TransactionAllProtobuf.Transaction transaction, String to) { - TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); - if (transaction.getPayload() != ByteString.EMPTY) { - builder.setPayload(transaction.getPayload()); - } - builder.setExecer(transaction.getExecer()); - builder.setFee(transaction.getFee()); - builder.setExpire(0L); - builder.setNonce(transaction.getNonce()); - if (!StringUtil.isEmpty(to)) { - builder.setTo(to); - } else { - builder.setTo(transaction.getTo()); - } - - builder.setGroupCount(transaction.getGroupCount()); - if (transaction.getNext() != ByteString.EMPTY) { - builder.setNext(transaction.getNext()); - } - TransactionAllProtobuf.Transaction build = builder.build(); - byte[] byteArray = build.toByteArray(); - return HexUtil.toHexString(Sha256(byteArray)); - } - - /** - * - * @description 签名 - * @param tx - * @param privateKey - * @return - * - * @create 2020年1月9日 下午6:35:16 - */ - public static TransactionAllProtobuf.Transaction signProbuf(TransactionAllProtobuf.Transaction tx, String privateKey) { - TransactionAllProtobuf.Transaction encodeTx = getSignProbuf(tx); - byte[] protobufData = encodeTx.toByteArray(); - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - Signature btcCoinSign = btcCoinSign(protobufData, privateKeyBytes); - TransactionAllProtobuf.Transaction.Builder builder = tx.toBuilder(); - TransactionAllProtobuf.Signature.Builder signatureBuilder = TransactionAllProtobuf.Signature.newBuilder(); - signatureBuilder.setPubkey(ByteString.copyFrom(btcCoinSign.getPubkey())); - signatureBuilder.setTy(btcCoinSign.getTy()); - signatureBuilder.setSignature(ByteString.copyFrom(btcCoinSign.getSignature())); // 序列化 - TransactionAllProtobuf.Transaction.Builder setSignature = builder.setSignature(signatureBuilder.build()); - return setSignature.build(); - } - - /** - * - * @description 获取签名需要的protobuf - * @param tx - * @return - * - * @author lgang - * @create 2020年1月9日 下午6:35:30 - */ - public static TransactionAllProtobuf.Transaction getSignProbuf(TransactionAllProtobuf.Transaction tx) { - TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); - builder.setExecer(tx.getExecer()); - builder.setExpire(tx.getExpire()); - builder.setFee(tx.getFee()); - builder.setNonce(tx.getNonce()); - builder.setPayload(tx.getPayload()); - builder.setTo(tx.getTo()); - if (tx.getNext() != null) { - builder.setNext(tx.getNext()); - } - if (tx.getHeader() != null) { - builder.setHeader(tx.getHeader()); - } - if (tx.getGroupCount() != 0) { - builder.setGroupCount(tx.getGroupCount()); - } - TransactionAllProtobuf.Transaction build = builder.build(); - return build; - } - - /** - * 创建并签名管理合约交易 - * @param key - * @param value - * @param op 操作符,add或delete - * @return - */ + private static final SignType DEFAULT_SIGNTYPE = SignType.SECP256K1; + + public static final long DEFAULT_FEE = 1000000; + + public static final long PARA_CREATE_EVM_FEE = 3000000; + + public static final long PARA_CALL_EVM_FEE = 200000; + + private final static Long TX_HEIGHT_OFFSET = 1L << 62; + + private final static Long LowAllowPackHeight = 30L; + + private static byte[] addrSeed = "address seed bytes for public key".getBytes(); + + private static final long DURATION = 1; + + private static final long MICROSECOND = DURATION * 1000; + + private static final long MILLISECOND = MICROSECOND * 1000; + + private static final long SECOND = MILLISECOND * 1000; + + // private static final long MINUTE = SECOND * 1000; + + private static final long EXPIREBOUND = 1000000000; + + public static String toHexString(byte[] byteArr) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < byteArr.length; i++) { + int b = byteArr[i] & 0xff; + String hexString = Integer.toHexString(b); + sb.append(hexString); + } + return sb.toString(); + } + + /** + * + * @description expire转换为纳秒为单位 + * + * @param expire + * 单位为秒 + * + * @return + * + */ + public static long getExpire(long expire) { + expire = expire * EXPIREBOUND; + if (expire > EXPIREBOUND) { + if (expire < SECOND * 120) { + expire = SECOND * 120; + } + expire = System.currentTimeMillis() / 1000l + expire / SECOND; + return expire; + } else { + return expire; + } + } + + /** + * byte数组合并 + * + * @param byte_1 + * @param byte_2 + * + * @return + */ + public static byte[] byteMerger(byte[] byte_1, byte[] byte_2) { + byte[] byte_3 = new byte[byte_1.length + byte_2.length]; + System.arraycopy(byte_1, 0, byte_3, 0, byte_1.length); + System.arraycopy(byte_2, 0, byte_3, byte_1.length, byte_2.length); + return byte_3; + } + + /** + * + * @description 通过公钥生成地址 + * + * @param pubKey + * 公钥 + * + * @return 地址 + */ + public static String genAddress(byte[] pubKey) { + byte[] sha256 = TransactionUtil.Sha256(pubKey); + byte[] ripemd160 = TransactionUtil.ripemd160(sha256); + Address address = new Address(); + address.setHash160(ripemd160); + return addressToString(address); + } + + /** + * 将evm地址转成base58编码地址 + * + * @param addressByte + * + * @return + * + * @throws Exception + */ + public static String encodeAddress(byte[] addressByte) { + Address address = new Address(); + address.setHash160(addressByte); + return addressToString(address); + } + + /** + * 将base58编码的地址转成evm地址 + * + * @param address + * chain33地址 + * + * @return + * + * @throws Exception + */ + public static byte[] decodeAddress(String address) throws Exception { + byte[] decodeBytes = Base58Util.decode(address); + if (decodeBytes.length < 25) { + throw new Exception("Address too short " + HexUtil.toHexString(decodeBytes)); + } + + if (!validAddress(address)) { + throw new Exception("Address check failed " + HexUtil.toHexString(decodeBytes)); + } + + return ByteUtils.subArray(decodeBytes, 1, decodeBytes.length - 4); + } + + /** + * + * @description 校验地址是否符合规则 + * + * @param address + * 地址 + * + * @return 校验结果 + */ + public static boolean validAddress(String address) { + try { + byte[] decodeBytes = Base58Util.decode(address); + byte[] checkByteByte = ByteUtils.subArray(decodeBytes, decodeBytes.length - 4); + byte[] noCheckByte = ByteUtils.subArray(decodeBytes, 0, decodeBytes.length - 4); + byte[] sha256 = Sha256(noCheckByte); + byte[] twice = Sha256(sha256); + for (int i = 0; i < 4; i++) { + if (twice[i] != checkByteByte[i]) { + return false; + } + } + return true; + } catch (Exception e) { + return false; + } + } + + /** + * @description byte数组截取 + * + * @param byteArr + * @param start + * @param end + * + * @return + */ + public static byte[] subByteArr(byte[] byteArr, Integer start, Integer end) { + Integer diff = end - start; + byte[] byteTarget = new byte[diff]; + if (diff > byteArr.length) { + diff = byteArr.length; + } + for (int i = 0; i < diff; i++) { + byteTarget[i] = byteArr[i]; + } + return byteTarget; + } + + public static byte[] Sha256(byte[] sourceByte) { + try { + MessageDigest md = MessageDigest.getInstance("SHA-256"); + md.update(sourceByte); + byte byteData[] = md.digest(); + return byteData; + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + public static Long getRandomNonce() { + Random random = new Random(System.nanoTime()); + return Math.abs(random.nextLong()); + } + + /** + * + * @description 本地创建coins转账payload + * + * @param to + * 目标地址 + * @param amount + * 数量 + * @param coinToken + * 主代币则为"" + * @param note + * 备注,没有为"" + * + * @return payload + */ + public static byte[] createTransferPayLoad(String to, Long amount, String coinToken, String note) { + TransactionAllProtobuf.AssetsTransfer.Builder assetsTransferBuilder = TransactionAllProtobuf.AssetsTransfer + .newBuilder(); + assetsTransferBuilder.setCointoken(coinToken); + assetsTransferBuilder.setAmount(amount); + try { + assetsTransferBuilder.setNote(ByteString.copyFrom(note, "utf-8")); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + assetsTransferBuilder.setTo(to); + AssetsTransfer assetsTransfer = assetsTransferBuilder.build(); + CoinsProtobuf.CoinsAction.Builder coinsActionBuilder = CoinsProtobuf.CoinsAction.newBuilder(); + coinsActionBuilder.setTy(1); + coinsActionBuilder.setTransfer(assetsTransfer); + CoinsProtobuf.CoinsAction coinsAction = coinsActionBuilder.build(); + byte[] payload = coinsAction.toByteArray(); + return payload; + } + + /** + * + * @description 本地创建转账交易 + * + * @param privateKey + * @param toAddress + * @param execer + * @param payLoad + * + * @return + * + */ + public static String createTransferTx(String privateKey, String toAddress, String execer, byte[] payLoad) { + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, DEFAULT_FEE); + } + + public static String createTransferTx(String privateKey, String toAddress, String execer, byte[] payLoad, + long fee) { + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, fee); + } + + public static String createTransferTx(String privateKey, String toAddress, String execer, byte[] payLoad, long fee, + long txheight) { + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, fee, txheight); + } + + public static TransactionAllProtobuf.Transaction createTransferTx2(String privateKey, String toAddress, + String execer, byte[] payLoad, long fee, long txheight) { + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + return createTxMain2(privateKeyBytes, toAddress, execer.getBytes(), payLoad, DEFAULT_SIGNTYPE, fee, txheight); + } + + public static String createTx(String privateKey, String execer, String payLoad) { + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + return createTx(privateKeyBytes, execer.getBytes(), payLoad.getBytes(), DEFAULT_SIGNTYPE, DEFAULT_FEE); + } + + public static String createTx(String privateKey, String execer, String payLoad, long fee) { + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + return createTx(privateKeyBytes, execer.getBytes(), payLoad.getBytes(), DEFAULT_SIGNTYPE, fee); + } + + public static String createTx(byte[] privateKey, byte[] execer, byte[] payLoad, SignType signType, long fee) { + String toAddress = getToAddress(execer); + return createTxMain(privateKey, toAddress, execer, payLoad, signType, fee); + } + + private static String createTxMain(byte[] privateKey, String toAddress, byte[] execer, byte[] payLoad, + SignType signType, long fee) { + if (signType == null) + signType = DEFAULT_SIGNTYPE; + + // 如果没有私钥,创建私钥 privateKey = + if (privateKey == null) { + TransactionUtil.generatorPrivateKey(); + } + + Transaction transaction = createTxRaw(toAddress, execer, payLoad, fee); + + // 签名 + byte[] protobufData = encodeProtobuf(transaction); + + sign(signType, protobufData, privateKey, null, transaction); + // 序列化 + byte[] encodeProtobufWithSign = encodeProtobufWithSign(transaction); + String transationStr = HexUtil.toHexString(encodeProtobufWithSign); + return transationStr; + } + + /** + * + * @description 本地构造交易 + * + * @param privateKey + * 私钥 + * @param toAddress + * 目标地址 + * @param execer + * 例如user.p.xxchain.token + * @param payLoad + * 内容 + * @param signType + * 签名方式,默认SignType.SECP256K1 + * @param fee + * 手续费 + * @param txHeight + * 联盟链需要,其他为null + * + * @return + * + */ + public static String createTxMain(byte[] privateKey, String toAddress, byte[] execer, byte[] payLoad, + SignType signType, long fee, Long txHeight) { + if (signType == null) + signType = DEFAULT_SIGNTYPE; + + // 如果没有私钥,创建私钥 privateKey = + if (privateKey == null) { + TransactionUtil.generatorPrivateKey(); + } + + Transaction transation = createTxRaw(toAddress, execer, payLoad, fee); + if (txHeight != null) { + transation.setExpire(txHeight + TX_HEIGHT_OFFSET + LowAllowPackHeight); + } + + // 签名 + byte[] protobufData = encodeProtobuf(transation); + + sign(signType, protobufData, privateKey, null, transation); + // 序列化 + byte[] encodeProtobufWithSign = encodeProtobufWithSign(transation); + String transationHash = HexUtil.toHexString(encodeProtobufWithSign); + return transationHash; + } + + /** + * + * @description 本地构造交易 + * + * @param privateKey + * 私钥 + * @param toAddress + * 目标地址 + * @param execer + * 例如user.p.xxchain.token + * @param payLoad + * 内容 + * @param signType + * 签名方式,默认SignType.SECP256K1 + * @param fee + * 手续费 + * @param txHeight + * 联盟链需要,其他为null + * + * @return + * + */ + public static TransactionAllProtobuf.Transaction createTxMain2(byte[] privateKey, String toAddress, byte[] execer, + byte[] payLoad, SignType signType, long fee, Long txHeight) { + if (signType == null) + signType = DEFAULT_SIGNTYPE; + + // 如果没有私钥,创建私钥 privateKey = + if (privateKey == null) { + TransactionUtil.generatorPrivateKey(); + } + + Transaction transation = createTxRaw(toAddress, execer, payLoad, fee); + if (txHeight != null) { + transation.setExpire(txHeight + TX_HEIGHT_OFFSET + LowAllowPackHeight); + } + + // 签名 + byte[] protobufData = encodeProtobuf(transation); + + sign(signType, protobufData, privateKey, null, transation); + TransactionAllProtobuf.Transaction tx = encodeProtobufWithSign2(transation); + return tx; + } + + public static String createTxWithCert(String privateKey, String execer, byte[] payLoad, SignType signType, + byte[] cert, byte[] uid) { + if (signType == null) + signType = DEFAULT_SIGNTYPE; + + // 如果没有私钥,创建私钥 privateKey = + if (privateKey == null) { + TransactionUtil.generatorPrivateKey(); + } + + String toAddress = getToAddress(execer.getBytes()); + Transaction transation = createTxRaw(toAddress, execer.getBytes(), payLoad, DEFAULT_FEE); + // 签名 + byte[] protobufData = encodeProtobuf(transation); + + sign(signType, protobufData, HexUtil.fromHexString(privateKey), uid, transation); + + byte[] certSign = CertUtils.EncodeCertToSignature(transation.getSignature().getSignature(), cert, uid); + transation.getSignature().setSignature(certSign); + + // 序列化 + byte[] encodeProtobufWithSign = encodeProtobufWithSign(transation); + String transationHash = HexUtil.toHexString(encodeProtobufWithSign); + return transationHash; + } + + public static TransactionAllProtobuf.Transaction createTxWithCertProto(String privateKey, String execer, + byte[] payLoad, SignType signType, byte[] cert, byte[] uid) { + if (signType == null) + signType = DEFAULT_SIGNTYPE; + + // 如果没有私钥,创建私钥 privateKey = + if (privateKey == null) { + TransactionUtil.generatorPrivateKey(); + } + + String toAddress = getToAddress(execer.getBytes()); + Transaction transation = createTxRaw(toAddress, execer.getBytes(), payLoad, DEFAULT_FEE); + // 签名 + byte[] protobufData = encodeProtobuf(transation); + + sign(signType, protobufData, HexUtil.fromHexString(privateKey), uid, transation); + + byte[] certSign = CertUtils.EncodeCertToSignature(transation.getSignature().getSignature(), cert, uid); + transation.getSignature().setSignature(certSign); + + TransactionAllProtobuf.Transaction tx = encodeProtobufWithSign2(transation); + return tx; + } + + public static Transaction createTxRaw(String toAddress, byte[] execer, byte[] payLoad, long fee) { + Transaction transation = new Transaction(); + transation.setExecer(execer); + transation.setPayload(payLoad); + transation.setFee(fee); + transation.setNonce(TransactionUtil.getRandomNonce()); + // 计算To + transation.setTo(toAddress); + + return transation; + } + + /** + * 构造转帐交易,并签名 + * + * @return 交易hash + */ + public static String transferBalanceMain(TransferBalanceRequest transferBalanceRequest) { + String to = transferBalanceRequest.getTo(); + Long amount = transferBalanceRequest.getAmount(); + String coinToken = transferBalanceRequest.getCoinToken(); + String note = transferBalanceRequest.getNote(); + SignType signType = transferBalanceRequest.getSignType(); + String privateKey = transferBalanceRequest.getFromPrivateKey(); + String execer = transferBalanceRequest.getExecer(); + long fee = transferBalanceRequest.getFee(); + byte[] payload = createTransferPayLoad(to, amount, coinToken, note); + + byte[] execerBytes; + if (StringUtil.isNotEmpty(execer)) { + execerBytes = execer.getBytes(); + } else { + execerBytes = "none".getBytes(); + } + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + + String transferTx = createTxMain(privateKeyBytes, to, execerBytes, payload, signType, fee); + return transferTx; + } + + /** + * 计算to + * + * @param execer + * + * @return + */ + public static String getToAddress(byte[] execer) { + byte[] mergeredByte = TransactionUtil.byteMerger(addrSeed, execer); + byte[] sha256_1 = TransactionUtil.Sha256(mergeredByte); + for (int i = 0; i < sha256_1.length; i++) { + sha256_1[i] = (byte) (sha256_1[i] & 0xff); + } + byte[] sha256_2 = TransactionUtil.Sha256(sha256_1); + byte[] sha256_3 = TransactionUtil.Sha256(sha256_2); + byte[] ripemd160 = TransactionUtil.ripemd160(sha256_3); + Address address = new Address(); + address.setHash160(ripemd160); + return addressToString(address); + } + + /** + * @description 创建私钥和公钥 + * + * @return 私钥 + */ + public static byte[] generatorPrivateKey() { + int length = 0; + byte[] privateKey; + do { + ECKeyPairGenerator gen = new ECKeyPairGenerator(); + SecureRandom secureRandom = new SecureRandom(); + X9ECParameters secnamecurves = SECNamedCurves.getByName("secp256k1"); + ECDomainParameters ecParams = new ECDomainParameters(secnamecurves.getCurve(), secnamecurves.getG(), + secnamecurves.getN(), secnamecurves.getH()); + ECKeyGenerationParameters keyGenParam = new ECKeyGenerationParameters(ecParams, secureRandom); + gen.init(keyGenParam); + AsymmetricCipherKeyPair kp = gen.generateKeyPair(); + ECPrivateKeyParameters privatekey = (ECPrivateKeyParameters) kp.getPrivate(); + privateKey = privatekey.getD().toByteArray(); + length = privatekey.getD().toByteArray().length; + } while (length != 32); + return privateKey; + } + + /** + * + * @description 生成私钥 + * + * @return 私钥 + * + */ + public static String generatorPrivateKeyString() { + byte[] generatorPrivateKey = generatorPrivateKey(); + ECKey eckey = ECKey.fromPrivate(generatorPrivateKey); + return eckey.getPrivateKeyAsHex(); + } + + /** + * + * @description 通过私钥生成公钥 + * + * @param privateKey + * 私钥 + * + * @return 公钥 + * + */ + public static String getHexPubKeyFromPrivKey(String privateKey) { + ECKey eckey = ECKey.fromPrivate(HexUtil.fromHexString(privateKey)); + byte[] pubKey = eckey.getPubKey(); + String pubKeyStr = HexUtil.toHexString(pubKey); + return pubKeyStr; + } + + /** + * 构造交易 + * + * @param transaction + * + * @return + */ + public static byte[] encodeProtobuf(Transaction transaction) { + TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); + + builder.setExecer(ByteString.copyFrom(transaction.getExecer())); + builder.setExpire(transaction.getExpire()); + builder.setFee(transaction.getFee()); + builder.setNonce(transaction.getNonce()); + builder.setPayload(ByteString.copyFrom(transaction.getPayload())); + builder.setTo(transaction.getTo()); + TransactionAllProtobuf.Transaction build = builder.build(); + byte[] byteArray = build.toByteArray(); + return byteArray; + } + + /** + * 构造带签名的交易 + * + * @param transaction + * + * @return + */ + public static TransactionAllProtobuf.Transaction encodeProtobufWithSign2(Transaction transaction) { + TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); + + builder.setExecer(ByteString.copyFrom(transaction.getExecer())); + builder.setExpire(transaction.getExpire()); + builder.setFee(transaction.getFee()); + builder.setNonce(transaction.getNonce()); + builder.setPayload(ByteString.copyFrom(transaction.getPayload())); + builder.setTo(transaction.getTo()); + + TransactionAllProtobuf.Signature.Builder signatureBuilder = builder.getSignatureBuilder(); + signatureBuilder.setPubkey(ByteString.copyFrom(transaction.getSignature().getPubkey())); + signatureBuilder.setTy(transaction.getSignature().getTy()); + signatureBuilder.setSignature(ByteString.copyFrom(transaction.getSignature().getSignature())); + TransactionAllProtobuf.Signature signatureBuild = signatureBuilder.build(); + builder.setSignature(signatureBuild); + TransactionAllProtobuf.Transaction build = builder.build(); + return build; + } + + /** + * 构造带签名的交易 + * + * @param transaction + * + * @return + */ + public static byte[] encodeProtobufWithSign(Transaction transaction) { + TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); + + builder.setExecer(ByteString.copyFrom(transaction.getExecer())); + builder.setExpire(transaction.getExpire()); + builder.setFee(transaction.getFee()); + builder.setNonce(transaction.getNonce()); + builder.setPayload(ByteString.copyFrom(transaction.getPayload())); + builder.setTo(transaction.getTo()); + + TransactionAllProtobuf.Signature.Builder signatureBuilder = builder.getSignatureBuilder(); + signatureBuilder.setPubkey(ByteString.copyFrom(transaction.getSignature().getPubkey())); + signatureBuilder.setTy(transaction.getSignature().getTy()); + signatureBuilder.setSignature(ByteString.copyFrom(transaction.getSignature().getSignature())); + TransactionAllProtobuf.Signature signatureBuild = signatureBuilder.build(); + builder.setSignature(signatureBuild); + TransactionAllProtobuf.Transaction build = builder.build(); + byte[] byteArray = build.toByteArray(); + return byteArray; + } + + /** + * 签名 + * + * @param signType + * 签名类型 + * @param data + * 加密数据 + * @param privateKey + * 私钥 + * @param transaction + * 交易 + */ + private static void sign(SignType signType, byte[] data, byte[] privateKey, byte[] uid, Transaction transaction) { + switch (signType) { + case SECP256K1: { + Signature btcCoinSign = btcCoinSign(data, privateKey); + transaction.setSignature(btcCoinSign); + } + break; + case SM2: { + SM2KeyPair keyPair = SM2Util.fromPrivateKey(privateKey); + byte[] derSignBytes; + try { + derSignBytes = SM2Util.sign(data, uid, keyPair); + } catch (IOException e) { + break; + } + Signature signature = new Signature(); + signature.setPubkey(keyPair.getPublicKey().getEncoded(true)); + signature.setSignature(derSignBytes); + signature.setTy(signType.getType()); + transaction.setSignature(signature); + } + break; + case ED25519: { + Ecc25519Helper helper1 = new Ecc25519Helper(privateKey); + byte[] publicKey = helper1.getKeyHolder().getPublicKeySignature(); + byte[] sign = helper1.sign(data); + Signature signature = new Signature(); + signature.setPubkey(publicKey); + signature.setSignature(sign); + signature.setTy(signType.getType()); + transaction.setSignature(signature); + } + break; + default: + break; + } + } + + /** + * + * @description 本地签名 + * + * @param privateKey + * 私钥 + * @param expire + * 秒数 + * @param txHex + * 上一步CreateNoBalanceTransaction生成的交易hash 16进制 + * @param index + * 是签名交易组,则为要签名的交易序号,从1开始,小于等于0则为签名组内全部交易 + * + * @return + * + */ + public static String signRawTx(String privateKey, long expire, String txHex, Integer index) throws Exception { + // 1.检查私钥是否存在 ->存在:->byte + if (StringUtil.isEmpty(privateKey)) { + throw new Exception("privateKey not Exist"); + } + byte[] privKeyBytes = HexUtil.fromHexString(privateKey); + RawTransactionProtobuf.Transaction.Builder txBuilder = RawTransactionProtobuf.Transaction.newBuilder(); + RawTransactionProtobuf.Transaction rawtransactionProtobuf = txBuilder.mergeFrom(HexUtil.fromHexString(txHex)) + .build(); + long changedExpire = getExpire(expire); + txBuilder.setExpire(changedExpire); + // 如果执行器为privacy 暂时不处理 + /* + * if(Arrays.equals(ExecerPrivacy,rawtransactionProtobuf.getExecer(). toByteArray ())) { //signTxWithPrivacy } + */ + int groupCount = rawtransactionProtobuf.getGroupCount(); + if (groupCount < 0 || groupCount == 1 || groupCount > 20) { + throw new Exception("ErrTxGroupCount"); + } else if (groupCount > 0) { + byte[] txsBytes = rawtransactionProtobuf.getHeader().toByteArray(); + RawTransactionProtobuf.Transactions.Builder txsBuilder = RawTransactionProtobuf.Transactions.newBuilder(); + RawTransactionProtobuf.Transactions txs = txsBuilder.mergeFrom(txsBytes).build(); + List txsList = txs.getTxsList(); + if (index > txsList.size()) { + throw new Exception("ErrIndex"); + } + if (index <= 0) { + for (int i = 0; i < txsList.size(); i++) { + RawTransactionProtobuf.Transaction signTransactionsN = signTransactionsN(i, txsList, privKeyBytes); + txsList.set(i, signTransactionsN); + } + RawTransactionProtobuf.Transaction transaction = txsList.get(0); + transaction.toBuilder().setHeader(ByteString.copyFrom(txs.toByteArray())); + byte[] byteArray = transaction.toByteArray(); + String signHexString = HexUtil.toHexString(byteArray); + return signHexString; + } + index--; + RawTransactionProtobuf.Transaction signTransactionsN = signTransactionsN(index, txsList, privKeyBytes); + txsList.set(index, signTransactionsN); + RawTransactionProtobuf.Transaction transactionFirst = txsList.get(0); + transactionFirst.toBuilder().setHeader(ByteString.copyFrom(txs.toByteArray())); + byte[] byteArray = transactionFirst.toByteArray(); + String signHexString = HexUtil.toHexString(byteArray); + return signHexString; + } else { + byte[] rawTxProtobufBytes = txBuilder.build().toByteArray(); + RawTransactionProtobuf.Signature signatureProtobuf = signRawTx(rawTxProtobufBytes, privKeyBytes, txBuilder); + txBuilder.setSignature(signatureProtobuf); + String signedTx = HexUtil.toHexString(txBuilder.build().toByteArray()); + return signedTx; + } + } + + private static RawTransactionProtobuf.Transaction signTransactionsN(int n, + List transactionList, byte[] privKeyBytes) { + RawTransactionProtobuf.Transaction.Builder newTxBuilder = transactionList.get(n).toBuilder(); + RawTransactionProtobuf.Signature txSignature = signRawTx(transactionList.get(n).toByteArray(), privKeyBytes, + newTxBuilder); + newTxBuilder.setSignature(txSignature); + return newTxBuilder.build(); + } + + private static RawTransactionProtobuf.Signature signRawTx(byte[] data, byte[] privateKey, + RawTransactionProtobuf.Transaction.Builder txBuilder) { + Signature btcCoinSign = btcCoinSign(data, privateKey); + RawTransactionProtobuf.Signature.Builder signatureBuilder = RawTransactionProtobuf.Signature.newBuilder(); + signatureBuilder.setPubkey(ByteString.copyFrom(btcCoinSign.getPubkey())); + signatureBuilder.setTy(btcCoinSign.getTy()); + signatureBuilder.setSignature(ByteString.copyFrom(btcCoinSign.getSignature())); + RawTransactionProtobuf.Signature signatureProtuBuff = signatureBuilder.build(); + return signatureProtuBuff; + } + + public static String addressToString(Address address) { + if (StringUtil.isEmpty(address.getEnc58Str())) { + byte[] ad = new byte[25]; + ad[0] = address.getVersion(); + for (int i = 1; i < 21; i++) { + ad[i] = address.getHash160()[i - 1]; + } + byte[] checkSum = getAddressSh(ad); + address.setCheckSum(checkSum); + for (int i = 21, j = 0; i < 25; i++, j++) { + ad[i] = checkSum[j]; + } + String Enc58Str = Base58Util.encode(ad); + address.setEnc58Str(Enc58Str); + } + return address.getEnc58Str(); + } + + /** + * @description 数据处理,sha256 2次 + * + * @param sourceByte + */ + private static byte[] getAddressSh(byte[] sourceByte) { + byte[] subByteArr = TransactionUtil.subByteArr(sourceByte, 0, 21); + byte[] sha256_1 = TransactionUtil.Sha256(subByteArr); + byte[] sha256_2 = TransactionUtil.Sha256(sha256_1); + return sha256_2; + } + + public static byte[] ripemd160(byte[] sourceByte) { + byte[] hash = Ripemd160Util.getHash(sourceByte); + return hash; + } + + private static Signature btcCoinSign(byte[] data, byte[] privateKey) { + byte[] sha256 = TransactionUtil.Sha256(data); + Sha256Hash sha256Hash = Sha256Hash.wrap(sha256); + ECKey ecKey = ECKey.fromPrivate(privateKey); + ECKey.ECDSASignature ecdsas = ecKey.sign(sha256Hash); + byte[] signByte = ecdsas.encodeToDER(); + Signature signature = new Signature(); + signature.setPubkey(ecKey.getPubKey()); + signature.setSignature(signByte); + signature.setTy(SignType.SECP256K1.getType()); + return signature; + } + + public static TransactionAllProtobuf.Transaction decodeTxToProtobuf(DecodeRawTransaction unSignedTransaction, + String execerAddress) { + TransactionAllProtobuf.Transaction.Builder newBuilder = TransactionAllProtobuf.Transaction.newBuilder(); + newBuilder.setExecer(ByteString.copyFrom(unSignedTransaction.getExecer().getBytes())); + newBuilder.setExpire(unSignedTransaction.getExpire()); + newBuilder.setFee(unSignedTransaction.getFee()); + newBuilder.setNonce(unSignedTransaction.getNonce()); + newBuilder.setPayload(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getRawPayload()))); + if (StringUtil.isEmpty(execerAddress)) { + newBuilder.setTo(unSignedTransaction.getTo()); + } else { + newBuilder.setTo(execerAddress); + } + newBuilder.setHeader(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getHeader()))); + newBuilder.setNonce(unSignedTransaction.getNonce()); + if (StringUtil.isNotEmpty(unSignedTransaction.getNext())) { + newBuilder.setNext(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getNext()))); + } + if (unSignedTransaction.getPayload() == null) { + newBuilder.setPayload(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getRawPayload()))); + } + if (unSignedTransaction.getGroupCount() != null) { + newBuilder.setGroupCount(unSignedTransaction.getGroupCount()); + } + TransactionAllProtobuf.Signature.Builder signatureBuilder = TransactionAllProtobuf.Signature.newBuilder(); + signatureBuilder.setTy(unSignedTransaction.getSignature().getTy()); + signatureBuilder + .setPubkey(ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getSignature().getPubkey()))); + signatureBuilder.setSignature( + ByteString.copyFrom(HexUtil.fromHexString(unSignedTransaction.getSignature().getSignature()))); + newBuilder.setSignature(signatureBuilder.build()); + return newBuilder.build(); + } + + /** + * 重组并签名交易组 + * + * @param decodeRawTransactions + * @param execerAddress + * @param fromAddressPriveteKey + * @param withHoldPrivateKey + * + * @return + */ + public static String signDecodeTx(List decodeRawTransactions, String execerAddress, + String fromAddressPriveteKey, String withHoldPrivateKey) { + DecodeRawTransaction unSignedTransaction = null; + DecodeRawTransaction signedSeconedTx = null; + for (DecodeRawTransaction decodeRawTransaction2 : decodeRawTransactions) { + if (StringUtil.isEmpty(decodeRawTransaction2.getSignature().getSignature())) { + unSignedTransaction = decodeRawTransaction2; + } else { + signedSeconedTx = decodeRawTransaction2; + } + } + // 签名none交易 用代扣地址签名 + + TransactionAllProtobuf.Transaction noneTx = decodeTxToProtobuf(unSignedTransaction, null); + TransactionAllProtobuf.Transaction unNoneTx = TransactionUtil.decodeTxToProtobuf(signedSeconedTx, + execerAddress); + TransactionAllProtobuf.Transaction.Builder unNoneTxBuilder = unNoneTx.toBuilder(); + + String unNoneHash = TransactionUtil.getHash(unNoneTxBuilder.build(), execerAddress); + + TransactionAllProtobuf.Transaction.Builder noneBuilder = TransactionAllProtobuf.Transaction.newBuilder(noneTx); + noneBuilder.setNext(ByteString.copyFrom(HexUtil.fromHexString(unNoneHash))); + // noneBuilder.setGroupCount(2); + String noneHash = TransactionUtil.getHash(noneBuilder.build()); + noneBuilder.setHeader(ByteString.copyFrom(HexUtil.fromHexString(noneHash))); + + unNoneTxBuilder.setHeader(ByteString.copyFrom(HexUtil.fromHexString(noneHash))); + TransactionAllProtobuf.Transaction firstTxNew = unNoneTxBuilder.build(); + + TransactionAllProtobuf.Transaction noneTxNew = noneBuilder.build(); + noneTxNew = TransactionUtil.signProbuf(noneTxNew, withHoldPrivateKey); + firstTxNew = TransactionUtil.signProbuf(firstTxNew, fromAddressPriveteKey); + + // 创建交易组 + TransactionAllProtobuf.Transactions.Builder txsBuilder = TransactionAllProtobuf.Transactions.newBuilder(); + txsBuilder.addTxs(noneTxNew); + txsBuilder.addTxs(firstTxNew); + TransactionAllProtobuf.Transactions txs = txsBuilder.build(); + TransactionAllProtobuf.Transaction.Builder thirdBuilder = TransactionAllProtobuf.Transaction + .newBuilder(noneTxNew); + thirdBuilder.setHeader(ByteString.copyFrom(txs.toByteArray())); + TransactionAllProtobuf.Transaction submitTx = thirdBuilder.build(); + String groupTx = HexUtil.toHexString(submitTx.toByteArray()); + return groupTx; + } + + public static String getHash(TransactionAllProtobuf.Transaction transaction) { + TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); + if (transaction.getPayload() != ByteString.EMPTY) { + builder.setPayload(transaction.getPayload()); + } + builder.setExecer(transaction.getExecer()); + builder.setFee(transaction.getFee()); + builder.setExpire(transaction.getExpire()); + builder.setNonce(transaction.getNonce()); + builder.setTo(transaction.getTo()); + builder.setGroupCount(transaction.getGroupCount()); + if (transaction.getNext() != ByteString.EMPTY) { + builder.setNext(transaction.getNext()); + } + TransactionAllProtobuf.Transaction build = builder.build(); + byte[] byteArray = build.toByteArray(); + return HexUtil.toHexString(Sha256(byteArray)); + } + + public static String getHash(TransactionAllProtobuf.Transaction transaction, String to) { + TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); + if (transaction.getPayload() != ByteString.EMPTY) { + builder.setPayload(transaction.getPayload()); + } + builder.setExecer(transaction.getExecer()); + builder.setFee(transaction.getFee()); + builder.setExpire(0L); + builder.setNonce(transaction.getNonce()); + if (!StringUtil.isEmpty(to)) { + builder.setTo(to); + } else { + builder.setTo(transaction.getTo()); + } + + builder.setGroupCount(transaction.getGroupCount()); + if (transaction.getNext() != ByteString.EMPTY) { + builder.setNext(transaction.getNext()); + } + TransactionAllProtobuf.Transaction build = builder.build(); + byte[] byteArray = build.toByteArray(); + return HexUtil.toHexString(Sha256(byteArray)); + } + + /** + * + * @description 签名 + * + * @param tx + * @param privateKey + * + * @return + * + * @create 2020年1月9日 下午6:35:16 + */ + public static TransactionAllProtobuf.Transaction signProbuf(TransactionAllProtobuf.Transaction tx, + String privateKey) { + TransactionAllProtobuf.Transaction encodeTx = getSignProbuf(tx); + byte[] protobufData = encodeTx.toByteArray(); + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + Signature btcCoinSign = btcCoinSign(protobufData, privateKeyBytes); + TransactionAllProtobuf.Transaction.Builder builder = tx.toBuilder(); + TransactionAllProtobuf.Signature.Builder signatureBuilder = TransactionAllProtobuf.Signature.newBuilder(); + signatureBuilder.setPubkey(ByteString.copyFrom(btcCoinSign.getPubkey())); + signatureBuilder.setTy(btcCoinSign.getTy()); + signatureBuilder.setSignature(ByteString.copyFrom(btcCoinSign.getSignature())); // 序列化 + TransactionAllProtobuf.Transaction.Builder setSignature = builder.setSignature(signatureBuilder.build()); + return setSignature.build(); + } + + /** + * + * @description 获取签名需要的protobuf + * + * @param tx + * + * @return + * + * @author lgang + * + * @create 2020年1月9日 下午6:35:30 + */ + public static TransactionAllProtobuf.Transaction getSignProbuf(TransactionAllProtobuf.Transaction tx) { + TransactionAllProtobuf.Transaction.Builder builder = TransactionAllProtobuf.Transaction.newBuilder(); + builder.setExecer(tx.getExecer()); + builder.setExpire(tx.getExpire()); + builder.setFee(tx.getFee()); + builder.setNonce(tx.getNonce()); + builder.setPayload(tx.getPayload()); + builder.setTo(tx.getTo()); + if (tx.getNext() != null) { + builder.setNext(tx.getNext()); + } + if (tx.getHeader() != null) { + builder.setHeader(tx.getHeader()); + } + if (tx.getGroupCount() != 0) { + builder.setGroupCount(tx.getGroupCount()); + } + TransactionAllProtobuf.Transaction build = builder.build(); + return build; + } + + /** + * 创建并签名管理合约交易 + * + * @param key + * @param value + * @param op + * 操作符,add或delete + * + * @return + */ public static String createManage(String key, String value, String op, String privateKey, String execer) { Builder managerBuilder = ManageProtobuf.ModifyConfig.newBuilder(); managerBuilder.setKey(key); managerBuilder.setValue(value); managerBuilder.setOp(op); - cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.Builder actionBuilder = ManageProtobuf.ManageAction.newBuilder(); + cn.chain33.javasdk.model.protobuf.ManageProtobuf.ManageAction.Builder actionBuilder = ManageProtobuf.ManageAction + .newBuilder(); actionBuilder.setTy(0); actionBuilder.setModify(managerBuilder.build()); ManageAction managerAction = actionBuilder.build(); @@ -1041,12 +1096,14 @@ public static String createManage(String key, String value, String op, String pr TransactionAllProtobuf.Transaction signProbuf = signProbuf(parseFrom, privateKey); return HexUtil.toHexString(signProbuf.toByteArray()); } - - + /** * * @description 将执行器名称转为地址 - * @param exec 执行器名称 + * + * @param exec + * 执行器名称 + * * @return * */ @@ -1063,15 +1120,26 @@ public static String getExecerAddress(String exec) { /** * * @description 本地构造 预创建积分交易 - * @param execer user.p.xxx.token - * @param name token名称 - * @param symbol tokenSymbol - * @param introduction token介绍 - * @param total 发行总量,需要乘以10的8次方,比如要发行100个币,需要100*1e8 - * @param price 发行该token愿意承担的费用 - * @param owner token地址拥有者 - * @param category token属性类别, 0 为普通token, 1 可增发和燃烧 - * @param privateKey 超级管理员私钥 + * + * @param execer + * user.p.xxx.token + * @param name + * token名称 + * @param symbol + * tokenSymbol + * @param introduction + * token介绍 + * @param total + * 发行总量,需要乘以10的8次方,比如要发行100个币,需要100*1e8 + * @param price + * 发行该token愿意承担的费用 + * @param owner + * token地址拥有者 + * @param category + * token属性类别, 0 为普通token, 1 可增发和燃烧 + * @param privateKey + * 超级管理员私钥 + * * @return 交易 * */ @@ -1107,10 +1175,16 @@ public static String createPrecreateTokenTx(String execer, String name, String s /** * * @description 本地创建token完成交易 - * @param symbol token地址 - * @param execer user.p.xxx.token - * @param ownerAddr token拥有者地址 - * @param managerPrivateKey 超级管理员私钥 + * + * @param symbol + * token地址 + * @param execer + * user.p.xxx.token + * @param ownerAddr + * token拥有者地址 + * @param managerPrivateKey + * 超级管理员私钥 + * * @return 交易 * */ @@ -1137,60 +1211,74 @@ public static String createTokenFinishTx(String symbol, String execer, String ow String hexString = HexUtil.toHexString(signProbuf.toByteArray()); return hexString; } - - /** - * - * @description 本地创建并签名token转账交易 - * @param privateKey - * @param toAddress - * @param execer - * @param amount - * @param coinToken - * @param note - * @return - * - */ - public static String createTokenTransferTx(String privateKey, String toAddress, String execer, Long amount, String coinToken, String note) { - - byte[] payload = createtTokenTransferPayLoad(toAddress, amount, coinToken, note); - - byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); - return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payload, DEFAULT_SIGNTYPE, DEFAULT_FEE); - } - - /** - * - * @description 本地创建token转账payload - * @param to 目标地址 - * @param amount 数量 - * @param coinToken token symbol - * @param note 备注,没有为"" - * @return payload - */ - public static byte[] createtTokenTransferPayLoad(String to, Long amount, String coinToken, String note) { - TokenActionProtoBuf.AssetsTransfer.Builder assetsTransferBuilder = TokenActionProtoBuf.AssetsTransfer.newBuilder(); - assetsTransferBuilder.setCointoken(coinToken); - assetsTransferBuilder.setAmount(amount); - try { - assetsTransferBuilder.setNote(ByteString.copyFrom(note, "utf-8")); - } catch (UnsupportedEncodingException e) { - e.printStackTrace(); - } - assetsTransferBuilder.setTo(to); - cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer assetsTransfer = assetsTransferBuilder.build(); - TokenActionProtoBuf.TokenAction.Builder tokenActionBuilder = TokenActionProtoBuf.TokenAction.newBuilder(); - tokenActionBuilder.setTy(4); - tokenActionBuilder.setTransfer(assetsTransfer); - TokenAction tokenAction = tokenActionBuilder.build(); - byte[] payload = tokenAction.toByteArray(); - return payload; - } + + /** + * + * @description 本地创建并签名token转账交易 + * + * @param privateKey + * @param toAddress + * @param execer + * @param amount + * @param coinToken + * @param note + * + * @return + * + */ + public static String createTokenTransferTx(String privateKey, String toAddress, String execer, Long amount, + String coinToken, String note) { + + byte[] payload = createtTokenTransferPayLoad(toAddress, amount, coinToken, note); + + byte[] privateKeyBytes = HexUtil.fromHexString(privateKey); + return createTxMain(privateKeyBytes, toAddress, execer.getBytes(), payload, DEFAULT_SIGNTYPE, DEFAULT_FEE); + } + + /** + * + * @description 本地创建token转账payload + * + * @param to + * 目标地址 + * @param amount + * 数量 + * @param coinToken + * token symbol + * @param note + * 备注,没有为"" + * + * @return payload + */ + public static byte[] createtTokenTransferPayLoad(String to, Long amount, String coinToken, String note) { + TokenActionProtoBuf.AssetsTransfer.Builder assetsTransferBuilder = TokenActionProtoBuf.AssetsTransfer + .newBuilder(); + assetsTransferBuilder.setCointoken(coinToken); + assetsTransferBuilder.setAmount(amount); + try { + assetsTransferBuilder.setNote(ByteString.copyFrom(note, "utf-8")); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + assetsTransferBuilder.setTo(to); + cn.chain33.javasdk.model.protobuf.TokenActionProtoBuf.AssetsTransfer assetsTransfer = assetsTransferBuilder + .build(); + TokenActionProtoBuf.TokenAction.Builder tokenActionBuilder = TokenActionProtoBuf.TokenAction.newBuilder(); + tokenActionBuilder.setTy(4); + tokenActionBuilder.setTransfer(assetsTransfer); + TokenAction tokenAction = tokenActionBuilder.build(); + byte[] payload = tokenAction.toByteArray(); + return payload; + } /** * 创建交易,不签名 默认使用比特币seck256K1 * - * @param execer 执行器名称 - * @param payLoad 内容 + * @param execer + * 执行器名称 + * @param payLoad + * 内容 + * * @return */ public static String createTxWithoutSign(String execer, String payLoad) { @@ -1203,7 +1291,8 @@ public static String createTxWithoutSign(String execer, String payLoad) { * @param execer * @param payLoad * @param fee - * @param txHeight + * @param txHeight + * * @return */ public static String createTxWithoutSign(byte[] execer, byte[] payLoad, long fee, long txHeight) { diff --git a/src/main/java/cn/chain33/javasdk/utils/WasmUtil.java b/src/main/java/cn/chain33/javasdk/utils/WasmUtil.java index 41050ef..5bedfb9 100644 --- a/src/main/java/cn/chain33/javasdk/utils/WasmUtil.java +++ b/src/main/java/cn/chain33/javasdk/utils/WasmUtil.java @@ -15,7 +15,7 @@ public static WasmProtobuf.wasmAction createWasmContract(String name, byte[] cod return action.build(); } - public static WasmProtobuf.wasmAction updateWasmContract(String name,byte[] codes) { + public static WasmProtobuf.wasmAction updateWasmContract(String name, byte[] codes) { WasmProtobuf.wasmAction.Builder action = WasmProtobuf.wasmAction.newBuilder(); WasmProtobuf.wasmUpdate.Builder builder = WasmProtobuf.wasmUpdate.newBuilder(); builder.setName(name); @@ -25,18 +25,19 @@ public static WasmProtobuf.wasmAction updateWasmContract(String name,byte[] code return action.build(); } - public static WasmProtobuf.wasmAction createWasmCallContract(String name, String method, int[] parameters,String[] envs) { + public static WasmProtobuf.wasmAction createWasmCallContract(String name, String method, int[] parameters, + String[] envs) { WasmProtobuf.wasmAction.Builder action = WasmProtobuf.wasmAction.newBuilder(); WasmProtobuf.wasmCall.Builder builder = WasmProtobuf.wasmCall.newBuilder(); builder.setContract(name); builder.setMethod(method); - if (parameters!= null && parameters.length > 0) { - for(int i = 0; i < parameters.length; i++) { + if (parameters != null && parameters.length > 0) { + for (int i = 0; i < parameters.length; i++) { builder.addParameters(parameters[i]); } } if (envs != null && envs.length > 0) { - for(int i = 0; i < envs.length; i++) { + for (int i = 0; i < envs.length; i++) { builder.addEnv(envs[i]); } } diff --git a/src/main/proto/account.proto b/src/main/proto/account.proto index 3d46682..5ad7b7a 100644 --- a/src/main/proto/account.proto +++ b/src/main/proto/account.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option java_outer_classname = "AccountProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; // Account 的信息 message Account { @@ -68,7 +68,7 @@ message ExecAccount { } message AllExecBalance { - string addr = 1; + string addr = 1; repeated ExecAccount ExecAccount = 2; } diff --git a/src/main/proto/blockchain.proto b/src/main/proto/blockchain.proto index a59f416..62b00ce 100644 --- a/src/main/proto/blockchain.proto +++ b/src/main/proto/blockchain.proto @@ -3,7 +3,7 @@ import "transaction.proto"; import "common.proto"; option java_outer_classname = "BlockchainProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; //区块头信息 // version : 版本信息 @@ -30,17 +30,17 @@ message Header { // 参考Header解释 // mainHash 平行链上使用的字段,代表这个区块的主链hash message Block { - int64 version = 1; - bytes parentHash = 2; - bytes txHash = 3; - bytes stateHash = 4; - int64 height = 5; - int64 blockTime = 6; - uint32 difficulty = 11; - bytes mainHash = 12; - int64 mainHeight = 13; - Signature signature = 8; - repeated Transaction txs = 7; + int64 version = 1; + bytes parentHash = 2; + bytes txHash = 3; + bytes stateHash = 4; + int64 height = 5; + int64 blockTime = 6; + uint32 difficulty = 11; + bytes mainHash = 12; + int64 mainHeight = 13; + Signature signature = 8; + repeated Transaction txs = 7; } message Blocks { @@ -82,8 +82,8 @@ message HeadersPid { // txCount :区块上交易个数 // txHashes : 区块上交易的哈希列表 message BlockOverview { - Header head = 1; - int64 txCount = 2; + Header head = 1; + int64 txCount = 2; repeated bytes txHashes = 3; } @@ -91,10 +91,10 @@ message BlockOverview { // block : 区块信息 // receipts :区块上所有交易的收据信息列表 message BlockDetail { - Block block = 1; - repeated ReceiptData receipts = 2; - repeated KeyValue KV = 3; - bytes prevStatusHash = 4; + Block block = 1; + repeated ReceiptData receipts = 2; + repeated KeyValue KV = 3; + bytes prevStatusHash = 4; } message Receipts { @@ -121,10 +121,10 @@ message ChainStatus { // Isdetail : 是否需要获取区块的详细信息 // pid : peer列表 message ReqBlocks { - int64 start = 1; - int64 end = 2; - bool isDetail = 3; - repeated string pid = 4; + int64 start = 1; + int64 end = 2; + bool isDetail = 3; + repeated string pid = 4; } message MempoolSize { @@ -213,12 +213,12 @@ message ParaTxDetails { // childHash:此平行链交易的子roothash // index:对应平行链子roothash在整个区块中的索引 message ParaTxDetail { - int64 type = 1; - Header header = 2; + int64 type = 1; + Header header = 2; repeated TxDetail txDetails = 3; bytes childHash = 4; uint32 index = 5; - repeated bytes proofs = 6; + repeated bytes proofs = 6; } //交易的详情: @@ -227,10 +227,10 @@ message ParaTxDetail { // receipt:本交易在主链的执行回执 // proofs:本交易hash在block中merkel中的路径 message TxDetail { - uint32 index = 1; - Transaction tx = 2; - ReceiptData receipt = 3; - repeated bytes proofs = 4; + uint32 index = 1; + Transaction tx = 2; + ReceiptData receipt = 3; + repeated bytes proofs = 4; } //通过seq区间和title请求平行链的交易 @@ -306,7 +306,7 @@ message ReqHeightByTitle { } message ReplyHeightByTitle { - string title = 1; + string title = 1; repeated BlockInfo items = 2; } @@ -359,10 +359,10 @@ message ChunkInfo { // Isdetail : 是否需要获取所有Chunk Record 信息,false时候获取到chunkNum--->chunkhash的KV对,true获取全部 // pid : peer列表 message ReqChunkRecords { - int64 start = 1; - int64 end = 2; - bool isDetail = 3; - repeated string pid = 4; + int64 start = 1; + int64 end = 2; + bool isDetail = 3; + repeated string pid = 4; } message PushSubscribeReq { diff --git a/src/main/proto/coins.proto b/src/main/proto/coins.proto index a1555c9..8a869e4 100644 --- a/src/main/proto/coins.proto +++ b/src/main/proto/coins.proto @@ -3,7 +3,7 @@ syntax = "proto3"; import "transaction.proto"; option java_outer_classname = "CoinsProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; // message for execs.coins message CoinsAction { diff --git a/src/main/proto/common.proto b/src/main/proto/common.proto index f4a34c2..ff99ebe 100644 --- a/src/main/proto/common.proto +++ b/src/main/proto/common.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option java_outer_classname = "CommonProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; message Reply { bool isOk = 1; diff --git a/src/main/proto/executor.proto b/src/main/proto/executor.proto index 02c3781..d9917d3 100644 --- a/src/main/proto/executor.proto +++ b/src/main/proto/executor.proto @@ -3,22 +3,22 @@ syntax = "proto3"; import "transaction.proto"; option java_outer_classname = "ExecuterProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; message Genesis { bool isrun = 1; } message ExecTxList { - bytes stateHash = 1; - bytes parentHash = 7; - bytes mainHash = 8; - int64 mainHeight = 9; - int64 blockTime = 3; - int64 height = 4; - uint64 difficulty = 5; - bool isMempool = 6; - repeated Transaction txs = 2; + bytes stateHash = 1; + bytes parentHash = 7; + bytes mainHash = 8; + int64 mainHeight = 9; + int64 blockTime = 3; + int64 height = 4; + uint64 difficulty = 5; + bool isMempool = 6; + repeated Transaction txs = 2; } message Query { diff --git a/src/main/proto/grpc.proto b/src/main/proto/grpc.proto index af81e46..5c18da4 100644 --- a/src/main/proto/grpc.proto +++ b/src/main/proto/grpc.proto @@ -9,7 +9,7 @@ import "account.proto"; import "executor.proto"; option java_outer_classname = "GrpcService"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; service chain33 { // chain33 对外提供服务的接口 diff --git a/src/main/proto/p2p.proto b/src/main/proto/p2p.proto index 8b4c162..070cc2f 100644 --- a/src/main/proto/p2p.proto +++ b/src/main/proto/p2p.proto @@ -5,7 +5,7 @@ import "common.proto"; import "blockchain.proto"; option java_outer_classname = "P2pService"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; service p2pgservice { //广播交易 @@ -152,7 +152,7 @@ message P2PAddr { **/ message P2PAddrList { - int64 nonce = 1; + int64 nonce = 1; repeated P2PPeerInfo peerinfo = 2; } @@ -231,9 +231,9 @@ message P2PBlock { */ message LightBlock { - int64 size = 1; - Header header = 2; - Transaction minerTx = 3; + int64 size = 1; + Header header = 2; + Transaction minerTx = 3; repeated string sTxHashes = 4; } @@ -250,15 +250,15 @@ message P2PTxReq { // 请求区块内交易数据 message P2PBlockTxReq { - string blockHash = 1; + string blockHash = 1; repeated int32 txIndices = 2; } // 区块交易数据返回 message P2PBlockTxReply { - string blockHash = 1; - repeated int32 txIndices = 2; - repeated Transaction txs = 3; + string blockHash = 1; + repeated int32 txIndices = 2; + repeated Transaction txs = 3; } /* 节点收到区块或交易hash, diff --git a/src/main/proto/transaction.proto b/src/main/proto/transaction.proto index c5fbb3e..7688228 100644 --- a/src/main/proto/transaction.proto +++ b/src/main/proto/transaction.proto @@ -3,7 +3,7 @@ syntax = "proto3"; import "common.proto"; option java_outer_classname = "TransactionAllProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; // assert transfer struct message AssetsGenesis { @@ -154,9 +154,9 @@ message HexTx { } message ReplyTxInfo { - bytes hash = 1; - int64 height = 2; - int64 index = 3; + bytes hash = 1; + int64 height = 2; + int64 index = 3; repeated Asset assets = 4; } @@ -200,13 +200,13 @@ message ReceiptLog { // ty = 1 -> CutFee //cut fee ,bug exec not ok // ty = 2 -> exec ok message Receipt { - int32 ty = 1; - repeated KeyValue KV = 2; + int32 ty = 1; + repeated KeyValue KV = 2; repeated ReceiptLog logs = 3; } message ReceiptData { - int32 ty = 1; + int32 ty = 1; repeated ReceiptLog logs = 3; } @@ -220,18 +220,18 @@ message TxResult { } message TransactionDetail { - Transaction tx = 1; - ReceiptData receipt = 2; - repeated bytes proofs = 3; - int64 height = 4; - int64 index = 5; - int64 blocktime = 6; - int64 amount = 7; - string fromaddr = 8; - string actionName = 9; - repeated Asset assets = 10; - repeated TxProof txProofs = 11; - bytes fullHash = 12; + Transaction tx = 1; + ReceiptData receipt = 2; + repeated bytes proofs = 3; + int64 height = 4; + int64 index = 5; + int64 blocktime = 6; + int64 amount = 7; + string fromaddr = 8; + string actionName = 9; + repeated Asset assets = 10; + repeated TxProof txProofs = 11; + bytes fullHash = 12; } message TransactionDetails { diff --git a/src/main/proto/wallet.proto b/src/main/proto/wallet.proto index 6be3a40..731ed14 100644 --- a/src/main/proto/wallet.proto +++ b/src/main/proto/wallet.proto @@ -4,7 +4,7 @@ import "transaction.proto"; import "account.proto"; option java_outer_classname = "WalletProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; //钱包模块存贮的tx交易详细信息 // tx : tx交易信息 diff --git a/src/main/proto/wasm.proto b/src/main/proto/wasm.proto index 54e4833..004bb66 100644 --- a/src/main/proto/wasm.proto +++ b/src/main/proto/wasm.proto @@ -1,66 +1,65 @@ syntax = "proto3"; package types; -option java_outer_classname = "WasmProtobuf"; -option java_package = "cn.chain33.javasdk.model.protobuf"; +option java_outer_classname = "WasmProtobuf"; +option java_package = "cn.chain33.javasdk.model.protobuf"; message wasmAction { - oneof value { - wasmCreate create = 1; - wasmUpdate update = 2; - wasmCall call = 3; - } - int32 ty = 4; + oneof value { + wasmCreate create = 1; + wasmUpdate update = 2; + wasmCall call = 3; + } + int32 ty = 4; } message wasmCreate { - string name = 1; - bytes code = 2; + string name = 1; + bytes code = 2; } message wasmUpdate { - string name = 1; - bytes code = 2; + string name = 1; + bytes code = 2; } message wasmCall { - string contract = 1; - string method = 2; - repeated int64 parameters = 3; - repeated string env = 4; + string contract = 1; + string method = 2; + repeated int64 parameters = 3; + repeated string env = 4; } message queryCheckContract { - string name = 1; + string name = 1; } message queryContractDB { - string contract = 1; - string key = 2; + string contract = 1; + string key = 2; } message customLog { - repeated string info = 1; + repeated string info = 1; } message createContractLog { - string name = 1; - string code = 2; + string name = 1; + string code = 2; } message updateContractLog { - string name = 1; - string code = 2; + string name = 1; + string code = 2; } message callContractLog { - string contract = 1; - string method = 2; - int32 result = 3; + string contract = 1; + string method = 2; + int32 result = 3; } message localDataLog { - bytes key = 1; - bytes value = 2; + bytes key = 1; + bytes value = 2; } - diff --git a/src/resources/assembly.xml b/src/resources/assembly.xml new file mode 100644 index 0000000..2cdc4c8 --- /dev/null +++ b/src/resources/assembly.xml @@ -0,0 +1,27 @@ + + + jar-with-dependencies + + + + jar + + + false + + + / + true + true + runtime + + + + + + + + diff --git a/src/test/java/cn/chain33/javasdk/client/GrpcClientPerfTest.java b/src/test/java/cn/chain33/javasdk/client/GrpcClientPerfTest.java index f8aca62..54a01bd 100644 --- a/src/test/java/cn/chain33/javasdk/client/GrpcClientPerfTest.java +++ b/src/test/java/cn/chain33/javasdk/client/GrpcClientPerfTest.java @@ -9,7 +9,8 @@ public class GrpcClientPerfTest { private static int totalSize; - //统计 + + // 统计 public static synchronized void setSize(int size) { totalSize += size; } @@ -19,15 +20,15 @@ public static void main(String[] args) { int sleep = 5; String ip = "multiple"; List addresses = ConfigUtil.getNodes("node.properties"); - System.out.println("list:"+addresses); - for(int i=0;i socketAddress) { + public WorkJob(CountDownLatch countDownLatch, int sleep, String ip, + List socketAddress) { this.countDownLatch = countDownLatch; this.sleep = sleep; - this.javaGrpcClient = new GrpcClient(ip,socketAddress); - this.clientMain = new RpcClient(ip,mainPort); + this.javaGrpcClient = new GrpcClient(ip, socketAddress); + this.clientMain = new RpcClient(ip, mainPort); } @Override @@ -80,46 +82,58 @@ public void run() { /** * */ - Thread.sleep(sleep*1000); + Thread.sleep(sleep * 1000); // 存证智能合约的名称(简单存证,固定就用这个名称) String execer = "user.write"; - //jsonrpc - //String contractAddress = clientMain.convertExectoAddr(execer); + // jsonrpc + // String contractAddress = clientMain.convertExectoAddr(execer); // 获取签名用的私钥 Account account = new Account(); String privateKey = account.newAccountLocal().getPrivateKey(); - long txHeight = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); - System.out.println("txheight:"+txHeight); - long txHeight2 = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); - System.out.println("txheight:"+txHeight2); - long txHeight3 = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); - System.out.println("txheight:"+txHeight3); - long txHeight4 = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); - System.out.println("txheight:"+txHeight4); -// TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTransferTx2(privateKey, contractAddress, execer, content.getBytes(), -// TransactionUtil.DEFAULT_FEE, txHeight); -// try { -// CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(transaction)); -// System.out.println("result:"+result.getIsOk()+" hash:"+ HexUtil.toHexString(result.getMsg().toByteArray())); -// } catch (StatusRuntimeException e) { -// //e.printStackTrace(); -// System.out.println(Thread.currentThread().getName()+"send method err" + e.getMessage()+"-height"+txHeight); -// long txHeight2 = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); -// System.out.println(Thread.currentThread().getName()+"send method err" + e.getMessage()+"-height"+txHeight2); -// long txHeight3 = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); -// System.out.println(Thread.currentThread().getName()+"send method err" + e.getMessage()+"-height"+txHeight3); -// //javaGrpcClient.shutdown(); -// //countDownLatch.await(); -// } + long txHeight = javaGrpcClient.run(o -> o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())) + .getHeight(); + System.out.println("txheight:" + txHeight); + long txHeight2 = javaGrpcClient + .run(o -> o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); + System.out.println("txheight:" + txHeight2); + long txHeight3 = javaGrpcClient + .run(o -> o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); + System.out.println("txheight:" + txHeight3); + long txHeight4 = javaGrpcClient + .run(o -> o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); + System.out.println("txheight:" + txHeight4); + // TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTransferTx2(privateKey, + // contractAddress, execer, content.getBytes(), + // TransactionUtil.DEFAULT_FEE, txHeight); + // try { + // CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(transaction)); + // System.out.println("result:"+result.getIsOk()+" hash:"+ + // HexUtil.toHexString(result.getMsg().toByteArray())); + // } catch (StatusRuntimeException e) { + // //e.printStackTrace(); + // System.out.println(Thread.currentThread().getName()+"send method err" + + // e.getMessage()+"-height"+txHeight); + // long txHeight2 = + // javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); + // System.out.println(Thread.currentThread().getName()+"send method err" + + // e.getMessage()+"-height"+txHeight2); + // long txHeight3 = + // javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); + // System.out.println(Thread.currentThread().getName()+"send method err" + + // e.getMessage()+"-height"+txHeight3); + // //javaGrpcClient.shutdown(); + // //countDownLatch.await(); + // } count++; setSize(1); } catch (InterruptedException e) { e.printStackTrace(); - System.out.println("send err"+e.getMessage()); + System.out.println("send err" + e.getMessage()); } finally { long end = System.currentTimeMillis(); - System.out.println(Thread.currentThread().getName()+"-发送交易总数"+count+"-cost"+(start-end)+"ms"); - System.out.println("send total num "+totalSize); + System.out.println( + Thread.currentThread().getName() + "-发送交易总数" + count + "-cost" + (start - end) + "ms"); + System.out.println("send total num " + totalSize); } } @@ -127,5 +141,3 @@ public void run() { } } - - diff --git a/src/test/java/cn/chain33/javasdk/client/GrpcClientTest.java b/src/test/java/cn/chain33/javasdk/client/GrpcClientTest.java index 4bc4dec..38215b5 100644 --- a/src/test/java/cn/chain33/javasdk/client/GrpcClientTest.java +++ b/src/test/java/cn/chain33/javasdk/client/GrpcClientTest.java @@ -19,7 +19,7 @@ public class GrpcClientTest { // targetURI String targetURI = "multipre"; List addresses = ConfigUtil.getNodes("node.properties"); - GrpcClient javaGrpcClient = new GrpcClient(targetURI,addresses); + GrpcClient javaGrpcClient = new GrpcClient(targetURI, addresses); /** * 获取最新高度 @@ -30,10 +30,10 @@ public void getLastHeader() { System.out.println(request); BlockchainProtobuf.Header result = javaGrpcClient.run(o -> o.getLastHeader(request)); System.out.println(result); - System.out.println("txhash:"+ HexUtil.toHexString(result.getHash().toByteArray())); + System.out.println("txhash:" + HexUtil.toHexString(result.getHash().toByteArray())); BlockchainProtobuf.Header result2 = javaGrpcClient.run(o -> o.getLastHeader(request)); System.out.println(result2); - System.out.println("txhash2:"+ HexUtil.toHexString(result2.getHash().toByteArray())); + System.out.println("txhash2:" + HexUtil.toHexString(result2.getHash().toByteArray())); } /** @@ -43,7 +43,8 @@ public void getLastHeader() { public void queryTransaction() { String hash = "Oxe11a097fa64607aca16ec02b886e7afcea6d8f0a7d8bbe3bc07710b9e873ec15"; byte[] hashBytes = HexUtil.fromHexString(hash); - CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)).build(); + CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)) + .build(); System.out.println(request); TransactionAllProtobuf.TransactionDetail result = javaGrpcClient.run(o -> o.queryTransaction(request)); System.out.println(result); @@ -56,6 +57,6 @@ public void queryTransaction() { public void queryTransaction2() { String hash = "Oxe11a097fa64607aca16ec02b886e7afcea6d8f0a7d8bbe3bc07710b9e873ec15"; TransactionAllProtobuf.TransactionDetail tx = javaGrpcClient.queryTransaction(hash); - System.out.println("result:"+tx); + System.out.println("result:" + tx); } } diff --git a/src/test/java/cn/chain33/javasdk/client/RpcClientTest.java b/src/test/java/cn/chain33/javasdk/client/RpcClientTest.java index 22d6f9a..2fb4764 100644 --- a/src/test/java/cn/chain33/javasdk/client/RpcClientTest.java +++ b/src/test/java/cn/chain33/javasdk/client/RpcClientTest.java @@ -19,23 +19,20 @@ public class RpcClientTest { - // 区块链节点IP - String ip = "区块链节点IP"; - // 平行链服务端口 - int port = 8801; + // 区块链节点IP + String ip = "区块链节点IP"; + // 平行链服务端口 + int port = 8801; RpcClient client = new RpcClient(ip, port); - String withHoldPrivateKey = "代扣地址私钥,需要有主链代币"; String withHoldAddress = "代扣地址"; /** * - * @throws IOException - * @description 查询节点是否同步 - * 联盟链:适用 - * 主链:适用 - * 平行链:不适用 + * @throws IOException + * + * @description 查询节点是否同步 联盟链:适用 主链:适用 平行链:不适用 */ @Test public void checkStatus() throws IOException { @@ -44,7 +41,8 @@ public void checkStatus() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 查询钱包状态 * */ @@ -57,7 +55,8 @@ public void getWalletStatus() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 锁定 * */ @@ -79,7 +78,8 @@ public void unlock() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 生成seed * */ @@ -91,7 +91,8 @@ public void seedGen() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 保存seed * */ @@ -105,7 +106,8 @@ public void seedSave() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 使用密码查询seed * */ @@ -118,7 +120,8 @@ public void seedGet() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 调用节点创建账户地址 * */ @@ -130,7 +133,8 @@ public void newAccount() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 查询节点钱包 地址列表 * */ @@ -145,7 +149,8 @@ public void getAccounts() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 查询主代币余额 * */ @@ -161,10 +166,10 @@ public void getCoinsBalace() throws IOException { } } - /** * - * @throws IOException + * @throws IOException + * * @description 设置地址label * */ @@ -178,7 +183,8 @@ public void setLabel() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 导入私钥 * */ @@ -189,11 +195,11 @@ public void importPrivKey() throws IOException { System.out.println(accountResult); } - - + /** * - * @throws IOException + * @throws IOException + * * @description 导出私钥 * */ @@ -206,14 +212,15 @@ public void dumpPrivKey() throws IOException { } /** - * @throws IOException + * @throws IOException + * * @description 查询交易hash详情 * */ @Test public void queryTxDetail() throws IOException { - // 交易hash - // String hash = "0xe5ae58fab899781c72beaa92beb2661b4e70f8c8cbb8bbad61b0a191bc5ef6b7"; + // 交易hash + // String hash = "0xe5ae58fab899781c72beaa92beb2661b4e70f8c8cbb8bbad61b0a191bc5ef6b7"; String hash = "交易hash"; QueryTransactionResult queryTransaction1; queryTransaction1 = client.queryTransaction(hash); @@ -224,21 +231,22 @@ public void queryTxDetail() throws IOException { System.out.println(content); } - + /** * 查询平均出块时间 - * @throws IOException + * + * @throws IOException */ @Test public void getBlockAverageTime() throws IOException { - int blockTime = client.getBlockAverageTime(); - System.out.println("平均出块时间为: " + blockTime + " 秒"); + int blockTime = client.getBlockAverageTime(); + System.out.println("平均出块时间为: " + blockTime + " 秒"); } - /** * - * @throws IOException + * @throws IOException + * * @description 查询某地址下得token/合约资产列表 * */ @@ -253,7 +261,8 @@ public void queryUserTokens() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 查询地址列表token余额 * */ @@ -271,7 +280,8 @@ public void queryTokenBalace() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 查询某地址的交易hash * */ @@ -289,7 +299,8 @@ public void getTxByAddr() throws IOException { /** * - * @throws IOException + * @throws IOException + * * @description 预创建token */ @Test @@ -297,16 +308,19 @@ public void preCreateToken() throws IOException { long total = (long) (1000 * 1e8); // 调用节点接口预创建token 返回hash String createRawTokenPreCreateTx = client.createRawTokenPreCreateTx("logan coin1", "LGS", - "logan create the coin", "1Af1JWXYVJwMrSkC7QpG4KVckNKgXmnhm4", total, 0,0); + "logan create the coin", "1Af1JWXYVJwMrSkC7QpG4KVckNKgXmnhm4", total, 0, 0); // 签名 - String signRawTx = client.signRawTx("1Af1JWXYVJwMrSkC7QpG4KVckNKgXmnhm4", "0x65622cbb675a62ec6de652811dc649286652b75c80850ccd7bb30ffb053c5af9", createRawTokenPreCreateTx, "300", 0); - String submitTransaction = client.submitTransaction(signRawTx); + String signRawTx = client.signRawTx("1Af1JWXYVJwMrSkC7QpG4KVckNKgXmnhm4", + "0x65622cbb675a62ec6de652811dc649286652b75c80850ccd7bb30ffb053c5af9", createRawTokenPreCreateTx, "300", + 0); + String submitTransaction = client.submitTransaction(signRawTx); System.out.println(submitTransaction); } /** * - * @throws IOException + * @throws IOException + * * @description 完成token创建 */ @Test @@ -318,7 +332,8 @@ public void createTokenFinish() throws IOException { } /** - * @throws IOException + * @throws IOException + * * @description 合约转为地址 */ @Test @@ -328,9 +343,9 @@ public void convertExecertoAddr() throws IOException { System.out.println(address); } - /** - * @throws IOException + * @throws IOException + * * @description 本地构造上链交易数据。数据大手续费越高,推荐压缩之后再上链。 */ @Test @@ -343,38 +358,40 @@ public void uploadDateToChain() throws IOException { String withHoldTx = client.submitTransaction(signedTxHash); System.out.println(withHoldTx); } - - + /** - * @throws IOException + * @throws IOException + * * @description 本地构造平行链主代币转账交易 */ @Test public void createCoinTransferTxPara() throws IOException { - // 转账说明 + // 转账说明 String note = "转账说明"; // 主代币则为"",其他为token名 String coinToken = ""; Long amount = 1 * 100000000L;// 1 = real amount // 转到的地址 String to = "toAddress"; - //String to = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; + // String to = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; // 本地构造转账交易的payload byte[] payload = TransactionUtil.createTransferPayLoad(to, amount, coinToken, note); // 签名私私钥,里面需要有主链币,用于缴纳手续费 String fromAddressPriveteKey = "from addrss privateKey"; - //String fromAddressPriveteKey = "0x1ce5a097b01e53d423275091e383a2c3a35d042144bd3bced44194eabxxxxxxx"; + // String fromAddressPriveteKey = "0x1ce5a097b01e53d423275091e383a2c3a35d042144bd3bced44194eabxxxxxxx"; // 执行器名称,平行链主代币为平行链名称+coins(平行链对应配置文件中的title项) String execer = "user.p.xxchain.coins"; // 平行链转账时,实际to的地址填在payload中,外层的to地址对应的是合约的地址 String contranctAddress = client.convertExectoAddr(execer); - String createTransferTx = TransactionUtil.createTransferTx(fromAddressPriveteKey, contranctAddress, execer, payload); + String createTransferTx = TransactionUtil.createTransferTx(fromAddressPriveteKey, contranctAddress, execer, + payload); String txHash = client.submitTransaction(createTransferTx); System.out.println(txHash); } /** - * @throws IOException + * @throws IOException + * * @description 通过节点构造token/主代币转账 */ @Test @@ -396,7 +413,6 @@ public void transferToken() throws IOException { String signedTxHex = client.submitTransaction(signRawTx); System.out.println(signedTxHex); } - /** * @description 本地将执行器转为地址 @@ -407,42 +423,43 @@ public void convertExeceToAddress() { String addr = TransactionUtil.convertExectoAddr(exece); System.out.println(addr); } - - /** - * @throws IOException - * @description 撤销预创建的token - */ - @Test - public void revokePrecreateToken() throws IOException{ - String symbol = "COINSDEVX"; - String owner = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String createRawTokenRevokeTx = client.CreateRawTokenRevokeTx(symbol, owner); - String signRawTx = client.signRawTx(privateKey, null, createRawTokenRevokeTx, "1h", 0); - String submitTransaction = client.submitTransaction(signRawTx); - System.out.println(submitTransaction); - } - - - /** - * 接口QPS测试(单线程) - * @throws IOException - */ - @Test - public void qpsTest() throws IOException { - SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - System.out.println(df.format(System.currentTimeMillis())); - + + /** + * @throws IOException + * + * @description 撤销预创建的token + */ + @Test + public void revokePrecreateToken() throws IOException { + String symbol = "COINSDEVX"; + String owner = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String createRawTokenRevokeTx = client.CreateRawTokenRevokeTx(symbol, owner); + String signRawTx = client.signRawTx(privateKey, null, createRawTokenRevokeTx, "1h", 0); + String submitTransaction = client.submitTransaction(signRawTx); + System.out.println(submitTransaction); + } + + /** + * 接口QPS测试(单线程) + * + * @throws IOException + */ + @Test + public void qpsTest() throws IOException { + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + System.out.println(df.format(System.currentTimeMillis())); + String hash = "0x441e91ff13f28fe104d66db4308ab12652868eaf8a0011dec2059a4be98bdfb3"; for (int i = 0; i <= 50000; i++) { client.queryTx(hash); - // System.out.println(queryTransaction1); - if (i%1000 == 0) { - System.out.println(i); - System.out.println(df.format(System.currentTimeMillis())); + // System.out.println(queryTransaction1); + if (i % 1000 == 0) { + System.out.println(i); + System.out.println(df.format(System.currentTimeMillis())); } } - - } + + } } diff --git a/src/test/java/cn/chain33/javasdk/model/AccountTest.java b/src/test/java/cn/chain33/javasdk/model/AccountTest.java index b5abb1d..a8d5d2b 100644 --- a/src/test/java/cn/chain33/javasdk/model/AccountTest.java +++ b/src/test/java/cn/chain33/javasdk/model/AccountTest.java @@ -26,304 +26,312 @@ public class AccountTest { String ip = "172.22.19.101"; RpcClient client = new RpcClient(ip, 8801); - Account account = new Account(); - - /** - * - * @description 直接创建账户 (私钥,公钥,地址) - * - */ - @Test - public void createAccountLocal() { - AccountInfo accountInfo = account.newAccountLocal(); - System.out.println("privateKey is:" + accountInfo.getPrivateKey()); - System.out.println("publicKey is:" + accountInfo.getPublicKey()); - System.out.println("Address is:" + accountInfo.getAddress()); - } - - /** - * 根据seed创建私钥,公钥,地址 - * @throws UnreadableWalletException - */ - @Test - public void createAccountBySeed() throws UnreadableWalletException { - // 生成助记词 - String mnemonic = SeedUtil.generateMnemonic(); - System.out.println("助记词:" + mnemonic); - - // 根据助记词生成私钥,公钥,地址 - AccountInfo info = SeedUtil.createAccountBy33PATH(mnemonic, 0); - System.out.println("privateKey is:" + info.getPrivateKey()); - System.out.println("publicKey is:" + info.getPublicKey()); - System.out.println("Address is:" + info.getAddress()); - - - info = SeedUtil.createAccountBy33PATH(mnemonic, 1); - System.out.println("privateKey is:" + info.getPrivateKey()); - System.out.println("publicKey is:" + info.getPublicKey()); - System.out.println("Address is:" + info.getAddress()); - - info = SeedUtil.createAccountBy33PATH(mnemonic, 10000000); - System.out.println("privateKey is:" + info.getPrivateKey()); - System.out.println("publicKey is:" + info.getPublicKey()); - System.out.println("Address is:" + info.getAddress()); - - } - - /** - * @description 验证地址的合法性 - */ - @Test - public void validateAddress() { - String address = "1G1L2M1w1c1gpV6SP8tk8gBPGsJe2RfTks"; - boolean validAddressResult = TransactionUtil.validAddress(address); - System.out.printf("validate result is:%s", validAddressResult); - } - - /** - * @throws InterruptedException - * @throws IOException - * @description 本地构造主链主积分转账交易 - */ - @Test - public void createCoinTransferTxMain() throws InterruptedException, IOException { - - TransferBalanceRequest transferBalanceRequest = new TransferBalanceRequest(); - - // 转账说明 - transferBalanceRequest.setNote("转账说明"); - // 转主积分的情况下,默认填"" - transferBalanceRequest.setCoinToken(""); - // 转账数量 , 以下代表转1个积分 - transferBalanceRequest.setAmount(1 * 100000000L); - // 转到的地址 - transferBalanceRequest.setTo("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"); - // 签名私私钥,对应的测试地址是:1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 - transferBalanceRequest.setFromPrivateKey("55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"); - // 执行器名称,主链主积分固定为coins - transferBalanceRequest.setExecer("coins"); - // 签名类型 (支持SM2, SECP256K1, ED25519) - transferBalanceRequest.setSignType(SignType.SECP256K1); - // 构造好,并本地签好名的交易 - String createTransferTx = TransactionUtil.transferBalanceMain(transferBalanceRequest); - // 交易发往区块链 - String txHash = client.submitTransaction(createTransferTx); - System.out.println(txHash); - - List list = new ArrayList<>(); - list.add("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"); - list.add("1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"); - - // 一般1秒一个区块 - QueryTransactionResult queryTransaction1; - for (int i = 0; i < 10; i++) { - queryTransaction1 = client.queryTransaction(txHash); - if (null == queryTransaction1) { - Thread.sleep(1000); - } else { - break; - } - } - - List queryBtyBalance; - queryBtyBalance = client.getCoinsBalance(list, "coins"); - if (queryBtyBalance != null) { - for (AccountAccResult accountAccResult : queryBtyBalance) { - System.out.println(accountAccResult); - } - } - } - - /** - * 注册账户,并查询 - * - * @throws Exception - */ - @Test - public void registeAndQueryAccount() throws Exception { - - String accountId = "testAccount2"; - - AccountInfo accountInfo = account.newAccountLocal(); - String createTxWithoutSign = client.registeAccount("accountmanager", "Register", accountId); - - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, accountInfo.getPrivateKey()); - String hexString = HexUtil.toHexString(signProbuf.toByteArray()); - - String submitTransaction = client.submitTransaction(hexString); - System.out.println(submitTransaction); - - // 一般1秒一个区块 - QueryTransactionResult queryTransaction1; - for (int i = 0; i < 5; i++) { - queryTransaction1 = client.queryTransaction(submitTransaction); - if (null == queryTransaction1) { - Thread.sleep(1000); - } else { - break; - } - } - - // 根据accountId查询账户信息 - JSONObject resultJson = client.queryAccountById(accountId); - - System.out.println("账户ID:" + resultJson.getString("accountID")); - System.out.println("过期时间:" + resultJson.getString("expireTime")); - System.out.println("创建时间:" + resultJson.getString("createTime")); - // 账户状态 0 正常, 1表示冻结, 2表示锁定 3,过期注销 - System.out.println("账户状态:" + resultJson.getString("status")); - //等级权限 0普通,后面根据业务需要可以自定义,有管理员授予不同的权限 - System.out.println("等级权限:" + resultJson.getString("level")); - // 账户地址 - System.out.println("地址:" + resultJson.getString("addr")); - - // 根据状态查账户信息 - String status = "0"; - resultJson = client.queryAccountByStatus(status); - System.out.println(resultJson); - } - + Account account = new Account(); + + /** + * + * @description 直接创建账户 (私钥,公钥,地址) + * + */ + @Test + public void createAccountLocal() { + AccountInfo accountInfo = account.newAccountLocal(); + System.out.println("privateKey is:" + accountInfo.getPrivateKey()); + System.out.println("publicKey is:" + accountInfo.getPublicKey()); + System.out.println("Address is:" + accountInfo.getAddress()); + } + + /** + * 根据seed创建私钥,公钥,地址 + * + * @throws UnreadableWalletException + */ + @Test + public void createAccountBySeed() throws UnreadableWalletException { + // 生成助记词 + String mnemonic = SeedUtil.generateMnemonic(); + System.out.println("助记词:" + mnemonic); + + // 根据助记词生成私钥,公钥,地址 + AccountInfo info = SeedUtil.createAccountBy33PATH(mnemonic, 0); + System.out.println("privateKey is:" + info.getPrivateKey()); + System.out.println("publicKey is:" + info.getPublicKey()); + System.out.println("Address is:" + info.getAddress()); + + info = SeedUtil.createAccountBy33PATH(mnemonic, 1); + System.out.println("privateKey is:" + info.getPrivateKey()); + System.out.println("publicKey is:" + info.getPublicKey()); + System.out.println("Address is:" + info.getAddress()); + + info = SeedUtil.createAccountBy33PATH(mnemonic, 10000000); + System.out.println("privateKey is:" + info.getPrivateKey()); + System.out.println("publicKey is:" + info.getPublicKey()); + System.out.println("Address is:" + info.getAddress()); + + } + + /** + * @description 验证地址的合法性 + */ + @Test + public void validateAddress() { + String address = "1G1L2M1w1c1gpV6SP8tk8gBPGsJe2RfTks"; + boolean validAddressResult = TransactionUtil.validAddress(address); + System.out.printf("validate result is:%s", validAddressResult); + } + + /** + * @throws InterruptedException + * @throws IOException + * + * @description 本地构造主链主积分转账交易 + */ + @Test + public void createCoinTransferTxMain() throws InterruptedException, IOException { + + TransferBalanceRequest transferBalanceRequest = new TransferBalanceRequest(); + + // 转账说明 + transferBalanceRequest.setNote("转账说明"); + // 转主积分的情况下,默认填"" + transferBalanceRequest.setCoinToken(""); + // 转账数量 , 以下代表转1个积分 + transferBalanceRequest.setAmount(1 * 100000000L); + // 转到的地址 + transferBalanceRequest.setTo("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"); + // 签名私私钥,对应的测试地址是:1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 + transferBalanceRequest.setFromPrivateKey("55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"); + // 执行器名称,主链主积分固定为coins + transferBalanceRequest.setExecer("coins"); + // 签名类型 (支持SM2, SECP256K1, ED25519) + transferBalanceRequest.setSignType(SignType.SECP256K1); + // 构造好,并本地签好名的交易 + String createTransferTx = TransactionUtil.transferBalanceMain(transferBalanceRequest); + // 交易发往区块链 + String txHash = client.submitTransaction(createTransferTx); + System.out.println(txHash); + + List list = new ArrayList<>(); + list.add("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"); + list.add("1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"); + + // 一般1秒一个区块 + QueryTransactionResult queryTransaction1; + for (int i = 0; i < 10; i++) { + queryTransaction1 = client.queryTransaction(txHash); + if (null == queryTransaction1) { + Thread.sleep(1000); + } else { + break; + } + } + + List queryBtyBalance; + queryBtyBalance = client.getCoinsBalance(list, "coins"); + if (queryBtyBalance != null) { + for (AccountAccResult accountAccResult : queryBtyBalance) { + System.out.println(accountAccResult); + } + } + } + + /** + * 注册账户,并查询 + * + * @throws Exception + */ + @Test + public void registeAndQueryAccount() throws Exception { + + String accountId = "testAccount2"; + + AccountInfo accountInfo = account.newAccountLocal(); + String createTxWithoutSign = client.registeAccount("accountmanager", "Register", accountId); + + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, + accountInfo.getPrivateKey()); + String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + + String submitTransaction = client.submitTransaction(hexString); + System.out.println(submitTransaction); + + // 一般1秒一个区块 + QueryTransactionResult queryTransaction1; + for (int i = 0; i < 5; i++) { + queryTransaction1 = client.queryTransaction(submitTransaction); + if (null == queryTransaction1) { + Thread.sleep(1000); + } else { + break; + } + } + + // 根据accountId查询账户信息 + JSONObject resultJson = client.queryAccountById(accountId); + + System.out.println("账户ID:" + resultJson.getString("accountID")); + System.out.println("过期时间:" + resultJson.getString("expireTime")); + System.out.println("创建时间:" + resultJson.getString("createTime")); + // 账户状态 0 正常, 1表示冻结, 2表示锁定 3,过期注销 + System.out.println("账户状态:" + resultJson.getString("status")); + // 等级权限 0普通,后面根据业务需要可以自定义,有管理员授予不同的权限 + System.out.println("等级权限:" + resultJson.getString("level")); + // 账户地址 + System.out.println("地址:" + resultJson.getString("addr")); + + // 根据状态查账户信息 + String status = "0"; + resultJson = client.queryAccountByStatus(status); + System.out.println(resultJson); + } + /** * 创建管理员,用于系统权限授权操作 - * @throws Exception + * + * @throws Exception + * * @description 创建自定义积分的黑名单 * */ @Test public void createManager() throws Exception { - // 管理合约名称 - String execerName = "manage"; - // 管理合约:配置管理员key - String key = "accountmanager-managerAddr"; - // 管理合约:配置管理员VALUE, 对应的私钥:3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8 - String value = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; - // 管理合约:配置操作符 - String op = "add"; - // 当前链管理员私钥(superManager) - String privateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; - // 构造并签名交易,使用链的管理员(superManager)进行签名, - String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); - // 发送交易 - String hash = client.submitTransaction(txEncode); - System.out.print(hash); + // 管理合约名称 + String execerName = "manage"; + // 管理合约:配置管理员key + String key = "accountmanager-managerAddr"; + // 管理合约:配置管理员VALUE, 对应的私钥:3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8 + String value = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; + // 管理合约:配置操作符 + String op = "add"; + // 当前链管理员私钥(superManager) + String privateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; + // 构造并签名交易,使用链的管理员(superManager)进行签名, + String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); + // 发送交易 + String hash = client.submitTransaction(txEncode); + System.out.print(hash); } - - /** - * 对账户进行授权 - * @throws Exception - * - */ + + /** + * 对账户进行授权 + * + * @throws Exception + * + */ @Test - public void authAndQueryAccount() throws Exception { - String[] accountIds = new String[]{"testAccount2"}; - // 1为冻结,2为解冻,3增加有效期,4为授权 - String op = "4"; - //0普通,后面根据业务需要可以自定义,有管理员授予不同的权限 - String level = "2"; - manageAccount(accountIds, op, level); - - } - - /** - * 冻结账户 - * @throws Exception - * - */ + public void authAndQueryAccount() throws Exception { + String[] accountIds = new String[] { "testAccount2" }; + // 1为冻结,2为解冻,3增加有效期,4为授权 + String op = "4"; + // 0普通,后面根据业务需要可以自定义,有管理员授予不同的权限 + String level = "2"; + manageAccount(accountIds, op, level); + + } + + /** + * 冻结账户 + * + * @throws Exception + * + */ @Test - public void frozenAndQueryAccount() throws Exception { - String[] accountIds = new String[]{"testAccount2"}; - // 1为冻结,2为解冻,3增加有效期,4为授权 - String op = "1"; - // level填空 - manageAccount(accountIds, op, ""); - - } - - /** - * 解冻账户 - * @throws Exception - * - */ + public void frozenAndQueryAccount() throws Exception { + String[] accountIds = new String[] { "testAccount2" }; + // 1为冻结,2为解冻,3增加有效期,4为授权 + String op = "1"; + // level填空 + manageAccount(accountIds, op, ""); + + } + + /** + * 解冻账户 + * + * @throws Exception + * + */ @Test - public void unfrozenAndQueryAccount() throws Exception { - String[] accountIds = new String[]{"testAccount2"}; - // 1为冻结,2为解冻,3增加有效期,4为授权 - String op = "2"; - // level填空 - manageAccount(accountIds, op, ""); - - } - - + public void unfrozenAndQueryAccount() throws Exception { + String[] accountIds = new String[] { "testAccount2" }; + // 1为冻结,2为解冻,3增加有效期,4为授权 + String op = "2"; + // level填空 + manageAccount(accountIds, op, ""); + + } + /** * 账户操作 * * @param accountIds * @param op * @param level + * * @throws Exception */ private void manageAccount(String[] accountIds, String op, String level) throws Exception { - String createTxWithoutSign = client.authAccount("accountmanager", "Supervise", accountIds, op, level); - - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); - String hexString = HexUtil.toHexString(signProbuf.toByteArray()); - - String submitTransaction = client.submitTransaction(hexString); - System.out.println(submitTransaction); - - // 一般1秒一个区块 - QueryTransactionResult queryTransaction1; - for (int i = 0; i < 5; i++) { - queryTransaction1 = client.queryTransaction(submitTransaction); - if (null == queryTransaction1) { - Thread.sleep(1000); - } else { - break; - } - } - - // 根据accountId查询账户信息 - JSONObject resultJson = client.queryAccountById(accountIds[0]); - - System.out.println("账户ID:" + resultJson.getString("accountID")); - System.out.println("过期时间:" + resultJson.getString("expireTime")); - System.out.println("创建时间:" + resultJson.getString("createTime")); - // 账户状态 0 正常, 1表示冻结, 2表示锁定 3,过期注销 - System.out.println("账户状态:" + resultJson.getString("status")); - //等级权限 0普通,后面根据业务需要可以自定义,有管理员授予不同的权限 - System.out.println("等级权限:" + resultJson.getString("level")); - // 账户地址 - System.out.println("地址:" + resultJson.getString("addr")); + String createTxWithoutSign = client.authAccount("accountmanager", "Supervise", accountIds, op, level); + + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, + "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); + String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + + String submitTransaction = client.submitTransaction(hexString); + System.out.println(submitTransaction); + + // 一般1秒一个区块 + QueryTransactionResult queryTransaction1; + for (int i = 0; i < 5; i++) { + queryTransaction1 = client.queryTransaction(submitTransaction); + if (null == queryTransaction1) { + Thread.sleep(1000); + } else { + break; + } + } + + // 根据accountId查询账户信息 + JSONObject resultJson = client.queryAccountById(accountIds[0]); + + System.out.println("账户ID:" + resultJson.getString("accountID")); + System.out.println("过期时间:" + resultJson.getString("expireTime")); + System.out.println("创建时间:" + resultJson.getString("createTime")); + // 账户状态 0 正常, 1表示冻结, 2表示锁定 3,过期注销 + System.out.println("账户状态:" + resultJson.getString("status")); + // 等级权限 0普通,后面根据业务需要可以自定义,有管理员授予不同的权限 + System.out.println("等级权限:" + resultJson.getString("level")); + // 账户地址 + System.out.println("地址:" + resultJson.getString("addr")); } @Test - public void testAccountStore() throws Exception { - AccountInfo accountInfo = account.newAccountLocal("testa", "12345678", "testa"); - System.out.println("name is:" + accountInfo.getName()); - System.out.println("privateKey is:" + accountInfo.getPrivateKey()); - System.out.println("publicKey is:" + accountInfo.getPublicKey()); - System.out.println("Address is:" + accountInfo.getAddress()); - - AccountInfo accountInfo1 = account.loadAccountLocal("testa", "12345678", "testa"); - Assert.assertEquals(accountInfo.getName(), accountInfo1.getName()); - Assert.assertEquals(accountInfo.getPrivateKey(), accountInfo1.getPrivateKey()); - Assert.assertEquals(accountInfo.getPublicKey(), accountInfo1.getPublicKey()); - Assert.assertEquals(accountInfo.getAddress(), accountInfo1.getAddress()); - } + public void testAccountStore() throws Exception { + AccountInfo accountInfo = account.newAccountLocal("testa", "12345678", "testa"); + System.out.println("name is:" + accountInfo.getName()); + System.out.println("privateKey is:" + accountInfo.getPrivateKey()); + System.out.println("publicKey is:" + accountInfo.getPublicKey()); + System.out.println("Address is:" + accountInfo.getAddress()); + + AccountInfo accountInfo1 = account.loadAccountLocal("testa", "12345678", "testa"); + Assert.assertEquals(accountInfo.getName(), accountInfo1.getName()); + Assert.assertEquals(accountInfo.getPrivateKey(), accountInfo1.getPrivateKey()); + Assert.assertEquals(accountInfo.getPublicKey(), accountInfo1.getPublicKey()); + Assert.assertEquals(accountInfo.getAddress(), accountInfo1.getAddress()); + } } diff --git a/src/test/java/cn/chain33/javasdk/model/CertUtilTest.java b/src/test/java/cn/chain33/javasdk/model/CertUtilTest.java index 3c935e0..c280c19 100644 --- a/src/test/java/cn/chain33/javasdk/model/CertUtilTest.java +++ b/src/test/java/cn/chain33/javasdk/model/CertUtilTest.java @@ -68,7 +68,8 @@ public void testCertUtilEnroll() throws IOException { builder.setNormal(normalAction); byte[] reqBytes = builder.build().toByteArray(); - String transactionHash = TransactionUtil.createTxWithCert(UserKey, "cert", reqBytes, SignType.SM2, cert.getCert(), "ca test".getBytes()); + String transactionHash = TransactionUtil.createTxWithCert(UserKey, "cert", reqBytes, SignType.SM2, + cert.getCert(), "ca test".getBytes()); String hash = chain33client.submitTransaction(transactionHash); System.out.println(hash); Assert.assertNotNull(hash); @@ -96,7 +97,8 @@ public void testCertUtilEnroll() throws IOException { @Test public void testLoadFromFile() throws Exception { Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./test/keystore/5c3682a5719cf5bc1bd6280938670c3acfcb67cc15744a7b9b348066795a4e62_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./test/keystore/5c3682a5719cf5bc1bd6280938670c3acfcb67cc15744a7b9b348066795a4e62_sk"); byte[] certBytes = CertUtils.getCertFromFile("./test/signcerts/user1@org1-cert.pem"); CertService.CertNormal.Builder normal = CertService.CertNormal.newBuilder(); @@ -109,7 +111,8 @@ public void testLoadFromFile() throws Exception { builder.setNormal(normalAction); byte[] reqBytes = builder.build().toByteArray(); - String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), "cert", reqBytes, SignType.SM2, certBytes, "ca test".getBytes()); + String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), "cert", reqBytes, + SignType.SM2, certBytes, "ca test".getBytes()); String hash = chain33client.submitTransaction(transactionHash); System.out.println(hash); Assert.assertNotNull(hash); diff --git a/src/test/java/cn/chain33/javasdk/model/ERC1155Test.java b/src/test/java/cn/chain33/javasdk/model/ERC1155Test.java index 723d9a9..1f691aa 100644 --- a/src/test/java/cn/chain33/javasdk/model/ERC1155Test.java +++ b/src/test/java/cn/chain33/javasdk/model/ERC1155Test.java @@ -20,16 +20,16 @@ */ public class ERC1155Test { - // 区块链IP - String ip = "localhost"; - // 区块链服务端口 - int port = 8801; - RpcClient client = new RpcClient(ip, port); - - // 合约部署人对应的区块链地址和私钥 - String address = "1M8gvr1DZ1KKVjf6XW6aYR6pHGeDRspdCx"; + // 区块链IP + String ip = "localhost"; + // 区块链服务端口 + int port = 8801; + RpcClient client = new RpcClient(ip, port); + + // 合约部署人对应的区块链地址和私钥 + String address = "1M8gvr1DZ1KKVjf6XW6aYR6pHGeDRspdCx"; String privateKey = "452281167e7fa65cdd5bcb1e40565bf06a1aa3ce4fc8954848d0427a4cc27180"; - + // 合约代码见: https://baas.33.cn/doc/detail/152 String codes = "60806040526040518060400160405280600381526020017f2d2d3e0000000000000000000000000000000000000000000000000000000000815250600390805190602001906200005192919062000181565b506040518060400160405280600181526020017f2800000000000000000000000000000000000000000000000000000000000000815250600490805190602001906200009f92919062000181565b506040518060400160405280600181526020017f290000000000000000000000000000000000000000000000000000000000000081525060059080519060200190620000ed92919062000181565b50348015620000fb57600080fd5b50604051806020016040528060008152506200011d816200016560201b60201c565b5033600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000296565b80600290805190602001906200017d92919062000181565b5050565b8280546200018f9062000231565b90600052602060002090601f016020900481019282620001b35760008555620001ff565b82601f10620001ce57805160ff1916838001178555620001ff565b82800160010185558215620001ff579182015b82811115620001fe578251825591602001919060010190620001e1565b5b5090506200020e919062000212565b5090565b5b808211156200022d57600081600090555060010162000213565b5090565b600060028204905060018216806200024a57607f821691505b6020821081141562000261576200026062000267565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61362080620002a66000396000f3fe608060405234801561001057600080fd5b50600436106100b35760003560e01c806398c8e0821161007157806398c8e082146101b0578063a22cb465146101cc578063b2bdfa7b146101e8578063d8b7c04814610206578063e985e9c514610236578063f242432a14610266576100b3565b8062fdd58e146100b857806301ffc9a7146100e85780630e89341c146101185780630f2ad370146101485780632eb2c2d6146101645780634e1273f414610180575b600080fd5b6100d260048036038101906100cd9190612459565b610282565b6040516100df9190612fcb565b60405180910390f35b61010260048036038101906100fd91906125e8565b61034b565b60405161010f9190612e0e565b60405180910390f35b610132600480360381019061012d919061267b565b61042d565b60405161013f9190612e29565b60405180910390f35b610162600480360381019061015d9190612495565b6104c1565b005b61017e600480360381019061017991906122cf565b6107aa565b005b61019a60048036038101906101959190612510565b61084b565b6040516101a79190612db5565b60405180910390f35b6101ca60048036038101906101c5919061257c565b6109fc565b005b6101e660048036038101906101e1919061241d565b610aab565b005b6101f0610c2c565b6040516101fd9190612cd8565b60405180910390f35b610220600480360381019061021b919061263a565b610c52565b60405161022d9190612e29565b60405180910390f35b610250600480360381019061024b9190612293565b610d02565b60405161025d9190612e0e565b60405180910390f35b610280600480360381019061027b919061238e565b610d96565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156102f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ea90612e8b565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061041657507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610426575061042582610e37565b5b9050919050565b60606002805461043c90613383565b80601f016020809104026020016040519081016040528092919081815260200182805461046890613383565b80156104b55780601f1061048a576101008083540402835291602001916104b5565b820191906000526020600020905b81548152906001019060200180831161049857829003601f168201915b50505050509050919050565b6104dd3385858560405180602001604052806000815250610d96565b60006104e884610ea1565b905060006007826040516104fc9190612cc1565b9081526020016040518091039020805461051590613383565b80601f016020809104026020016040519081016040528092919081815260200182805461054190613383565b801561058e5780601f106105635761010080835404028352916020019161058e565b820191906000526020600020905b81548152906001019060200180831161057157829003601f168201915b50505050509050600061062b82600380546105a890613383565b80601f01602080910402602001604051908101604052809291908181526020018280546105d490613383565b80156106215780601f106105f657610100808354040283529160200191610621565b820191906000526020600020905b81548152906001019060200180831161060457829003601f168201915b5050505050611076565b905060006106c3826004805461064090613383565b80601f016020809104026020016040519081016040528092919081815260200182805461066c90613383565b80156106b95780601f1061068e576101008083540402835291602001916106b9565b820191906000526020600020905b81548152906001019060200180831161069c57829003601f168201915b5050505050611076565b905060006106d18287611076565b9050600061076982600580546106e690613383565b80601f016020809104026020016040519081016040528092919081815260200182805461071290613383565b801561075f5780601f106107345761010080835404028352916020019161075f565b820191906000526020600020905b81548152906001019060200180831161074257829003601f168201915b5050505050611076565b90508060078760405161077c9190612cc1565b9081526020016040518091039020908051906020019061079d929190611f8b565b5050505050505050505050565b6107b26112b6565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806107f857506107f7856107f26112b6565b610d02565b5b610837576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082e90612f0b565b60405180910390fd5b61084485858585856112be565b5050505050565b60608151835114610891576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088890612f6b565b60405180910390fd5b6000835167ffffffffffffffff8111156108d4577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156109025781602001602082028036833780820191505090505b50905060005b84518110156109f15761099b85828151811061094d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015185838151811061098e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610282565b8282815181106109d4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050806109ea906133b5565b9050610908565b508091505092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8390612ecb565b60405180910390fd5b610aa73383836040518060200160405280600081525061161e565b5050565b8173ffffffffffffffffffffffffffffffffffffffff16610aca6112b6565b73ffffffffffffffffffffffffffffffffffffffff161415610b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1890612f4b565b60405180910390fd5b8060016000610b2e6112b6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610bdb6112b6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610c209190612e0e565b60405180910390a35050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600782604051610c649190612cc1565b90815260200160405180910390208054610c7d90613383565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca990613383565b8015610cf65780601f10610ccb57610100808354040283529160200191610cf6565b820191906000526020600020905b815481529060010190602001808311610cd957829003601f168201915b50505050509050919050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610d9e6112b6565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610de45750610de385610dde6112b6565b610d02565b5b610e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1a90612eab565b60405180910390fd5b610e308585858585611888565b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000821415610ee9576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611071565b600082905060005b60008214610f1b578080610f04906133b5565b915050600a82610f149190613201565b9150610ef1565b60008167ffffffffffffffff811115610f5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610f8f5781602001600182028036833780820191505090505b50905060008290505b6000861461106957600181610fad919061328c565b90506000600a8088610fbf9190613201565b610fc99190613232565b87610fd4919061328c565b6030610fe091906131ca565b905060008160f81b905080848481518110611024577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a886110609190613201565b97505050610f98565b819450505050505b919050565b6060600083905060008390506000815183516110929190613174565b67ffffffffffffffff8111156110d1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156111035781602001600182028036833780820191505090505b50905060005b83518110156111d15783818151811061114b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b82828151811061118f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806111c9906133b5565b915050611109565b5060005b82518110156112a957828181518110611217577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b828286516112309190613174565b81518110611267577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806112a1906133b5565b9150506111d5565b5080935050505092915050565b600033905090565b8151835114611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f990612f8b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136990612eeb565b60405180910390fd5b600061137c6112b6565b905061138c818787878787611b0a565b60005b84518110156115895760008582815181106113d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110611418577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156114b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b090612f2b565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461156e9190613174565b9250508190555050505080611582906133b5565b905061138f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611600929190612dd7565b60405180910390a4611616818787878787611b12565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561168e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168590612fab565b60405180910390fd5b81518351146116d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c990612f8b565b60405180910390fd5b60006116dc6112b6565b90506116ed81600087878787611b0a565b60005b84518110156117f257838181518110611732577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600080878481518110611776577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117d89190613174565b9250508190555080806117ea906133b5565b9150506116f0565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161186a929190612dd7565b60405180910390a461188181600087878787611b12565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156118f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ef90612eeb565b60405180910390fd5b60006119026112b6565b905061192281878761191388611ce2565b61191c88611ce2565b87611b0a565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156119b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b090612f2b565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a6e9190613174565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611aeb929190612fe6565b60405180910390a4611b01828888888888611da8565b50505050505050565b505050505050565b611b318473ffffffffffffffffffffffffffffffffffffffff16611f78565b15611cda578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611b77959493929190612cf3565b602060405180830381600087803b158015611b9157600080fd5b505af1925050508015611bc257506040513d601f19601f82011682018060405250810190611bbf9190612611565b60015b611c5157611bce6134d8565b80611bd95750611c16565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0d9190612e29565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4890612e4b565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccf90612e6b565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115611d27577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611d555781602001602082028036833780820191505090505b5090508281600081518110611d93577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b611dc78473ffffffffffffffffffffffffffffffffffffffff16611f78565b15611f70578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611e0d959493929190612d5b565b602060405180830381600087803b158015611e2757600080fd5b505af1925050508015611e5857506040513d601f19601f82011682018060405250810190611e559190612611565b60015b611ee757611e646134d8565b80611e6f5750611eac565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea39190612e29565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ede90612e4b565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6590612e6b565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054611f9790613383565b90600052602060002090601f016020900481019282611fb95760008555612000565b82601f10611fd257805160ff1916838001178555612000565b82800160010185558215612000579182015b82811115611fff578251825591602001919060010190611fe4565b5b50905061200d9190612011565b5090565b5b8082111561202a576000816000905550600101612012565b5090565b600061204161203c84613040565b61300f565b9050808382526020820190508285602086028201111561206057600080fd5b60005b8581101561209057816120768882612182565b845260208401935060208301925050600181019050612063565b5050509392505050565b60006120ad6120a88461306c565b61300f565b905080838252602082019050828560208602820111156120cc57600080fd5b60005b858110156120fc57816120e2888261227e565b8452602084019350602083019250506001810190506120cf565b5050509392505050565b600061211961211484613098565b61300f565b90508281526020810184848401111561213157600080fd5b61213c848285613341565b509392505050565b6000612157612152846130c8565b61300f565b90508281526020810184848401111561216f57600080fd5b61217a848285613341565b509392505050565b6000813590506121918161358e565b92915050565b600082601f8301126121a857600080fd5b81356121b884826020860161202e565b91505092915050565b600082601f8301126121d257600080fd5b81356121e284826020860161209a565b91505092915050565b6000813590506121fa816135a5565b92915050565b60008135905061220f816135bc565b92915050565b600081519050612224816135bc565b92915050565b600082601f83011261223b57600080fd5b813561224b848260208601612106565b91505092915050565b600082601f83011261226557600080fd5b8135612275848260208601612144565b91505092915050565b60008135905061228d816135d3565b92915050565b600080604083850312156122a657600080fd5b60006122b485828601612182565b92505060206122c585828601612182565b9150509250929050565b600080600080600060a086880312156122e757600080fd5b60006122f588828901612182565b955050602061230688828901612182565b945050604086013567ffffffffffffffff81111561232357600080fd5b61232f888289016121c1565b935050606086013567ffffffffffffffff81111561234c57600080fd5b612358888289016121c1565b925050608086013567ffffffffffffffff81111561237557600080fd5b6123818882890161222a565b9150509295509295909350565b600080600080600060a086880312156123a657600080fd5b60006123b488828901612182565b95505060206123c588828901612182565b94505060406123d68882890161227e565b93505060606123e78882890161227e565b925050608086013567ffffffffffffffff81111561240457600080fd5b6124108882890161222a565b9150509295509295909350565b6000806040838503121561243057600080fd5b600061243e85828601612182565b925050602061244f858286016121eb565b9150509250929050565b6000806040838503121561246c57600080fd5b600061247a85828601612182565b925050602061248b8582860161227e565b9150509250929050565b600080600080608085870312156124ab57600080fd5b60006124b987828801612182565b94505060206124ca8782880161227e565b93505060406124db8782880161227e565b925050606085013567ffffffffffffffff8111156124f857600080fd5b61250487828801612254565b91505092959194509250565b6000806040838503121561252357600080fd5b600083013567ffffffffffffffff81111561253d57600080fd5b61254985828601612197565b925050602083013567ffffffffffffffff81111561256657600080fd5b612572858286016121c1565b9150509250929050565b6000806040838503121561258f57600080fd5b600083013567ffffffffffffffff8111156125a957600080fd5b6125b5858286016121c1565b925050602083013567ffffffffffffffff8111156125d257600080fd5b6125de858286016121c1565b9150509250929050565b6000602082840312156125fa57600080fd5b600061260884828501612200565b91505092915050565b60006020828403121561262357600080fd5b600061263184828501612215565b91505092915050565b60006020828403121561264c57600080fd5b600082013567ffffffffffffffff81111561266657600080fd5b61267284828501612254565b91505092915050565b60006020828403121561268d57600080fd5b600061269b8482850161227e565b91505092915050565b60006126b08383612ca3565b60208301905092915050565b6126c5816132c0565b82525050565b60006126d682613108565b6126e08185613136565b93506126eb836130f8565b8060005b8381101561271c57815161270388826126a4565b975061270e83613129565b9250506001810190506126ef565b5085935050505092915050565b612732816132d2565b82525050565b600061274382613113565b61274d8185613147565b935061275d818560208601613350565b612766816134ba565b840191505092915050565b600061277c8261311e565b6127868185613158565b9350612796818560208601613350565b61279f816134ba565b840191505092915050565b60006127b58261311e565b6127bf8185613169565b93506127cf818560208601613350565b80840191505092915050565b60006127e8603483613158565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b600061284e602883613158565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b60006128b4602b83613158565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b600061291a602983613158565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b6000612980602683613158565b91507f6f6e6c7920617574686f72697a6564206f776e65722063616e2073746f72652060008301527f66696c65732e00000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006129e6602583613158565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612a4c603283613158565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000612ab2602a83613158565b91507f455243313135353a20696e73756666696369656e742062616c616e636520666f60008301527f72207472616e73666572000000000000000000000000000000000000000000006020830152604082019050919050565b6000612b18602983613158565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000612b7e602983613158565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b6000612be4602883613158565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612c4a602183613158565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b612cac8161332a565b82525050565b612cbb8161332a565b82525050565b6000612ccd82846127aa565b915081905092915050565b6000602082019050612ced60008301846126bc565b92915050565b600060a082019050612d0860008301886126bc565b612d1560208301876126bc565b8181036040830152612d2781866126cb565b90508181036060830152612d3b81856126cb565b90508181036080830152612d4f8184612738565b90509695505050505050565b600060a082019050612d7060008301886126bc565b612d7d60208301876126bc565b612d8a6040830186612cb2565b612d976060830185612cb2565b8181036080830152612da98184612738565b90509695505050505050565b60006020820190508181036000830152612dcf81846126cb565b905092915050565b60006040820190508181036000830152612df181856126cb565b90508181036020830152612e0581846126cb565b90509392505050565b6000602082019050612e236000830184612729565b92915050565b60006020820190508181036000830152612e438184612771565b905092915050565b60006020820190508181036000830152612e64816127db565b9050919050565b60006020820190508181036000830152612e8481612841565b9050919050565b60006020820190508181036000830152612ea4816128a7565b9050919050565b60006020820190508181036000830152612ec48161290d565b9050919050565b60006020820190508181036000830152612ee481612973565b9050919050565b60006020820190508181036000830152612f04816129d9565b9050919050565b60006020820190508181036000830152612f2481612a3f565b9050919050565b60006020820190508181036000830152612f4481612aa5565b9050919050565b60006020820190508181036000830152612f6481612b0b565b9050919050565b60006020820190508181036000830152612f8481612b71565b9050919050565b60006020820190508181036000830152612fa481612bd7565b9050919050565b60006020820190508181036000830152612fc481612c3d565b9050919050565b6000602082019050612fe06000830184612cb2565b92915050565b6000604082019050612ffb6000830185612cb2565b6130086020830184612cb2565b9392505050565b6000604051905081810181811067ffffffffffffffff821117156130365761303561348b565b5b8060405250919050565b600067ffffffffffffffff82111561305b5761305a61348b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156130875761308661348b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156130b3576130b261348b565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156130e3576130e261348b565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061317f8261332a565b915061318a8361332a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156131bf576131be6133fe565b5b828201905092915050565b60006131d582613334565b91506131e083613334565b92508260ff038211156131f6576131f56133fe565b5b828201905092915050565b600061320c8261332a565b91506132178361332a565b9250826132275761322661342d565b5b828204905092915050565b600061323d8261332a565b91506132488361332a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613281576132806133fe565b5b828202905092915050565b60006132978261332a565b91506132a28361332a565b9250828210156132b5576132b46133fe565b5b828203905092915050565b60006132cb8261330a565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561336e578082015181840152602081019050613353565b8381111561337d576000848401525b50505050565b6000600282049050600182168061339b57607f821691505b602082108114156133af576133ae61345c565b5b50919050565b60006133c08261332a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156133f3576133f26133fe565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d10156134e85761358b565b60046000803e6134f96000516134cb565b6308c379a0811461350a575061358b565b60405160043d036004823e80513d602482011167ffffffffffffffff821117156135365750505061358b565b808201805167ffffffffffffffff81111561355557505050505061358b565b8060208301013d85018111156135705750505050505061358b565b613579826134ba565b60208401016040528296505050505050505b90565b613597816132c0565b81146135a257600080fd5b50565b6135ae816132d2565b81146135b957600080fd5b50565b6135c5816132de565b81146135d057600080fd5b50565b6135dc8161332a565b81146135e757600080fd5b5056fea2646970667358221220bf3356d2daced3fc1c26235dea195b954324f0b16cf6d2e9b65b1cfbb1f08a1664736f6c63430008000033"; String abi = "[{\"inputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"constructor\"},{\"anonymous\": false,\"inputs\": [{\"indexed\": true,\"internalType\": \"address\",\"name\": \"account\",\"type\": \"address\"},{\"indexed\": true,\"internalType\": \"address\",\"name\": \"operator\",\"type\": \"address\"},{\"indexed\": false,\"internalType\": \"bool\",\"name\": \"approved\",\"type\": \"bool\"}],\"name\": \"ApprovalForAll\",\"type\": \"event\"},{\"anonymous\": false,\"inputs\": [{\"indexed\": true,\"internalType\": \"address\",\"name\": \"operator\",\"type\": \"address\"},{\"indexed\": true,\"internalType\": \"address\",\"name\": \"from\",\"type\": \"address\"},{\"indexed\": true,\"internalType\": \"address\",\"name\": \"to\",\"type\": \"address\"},{\"indexed\": false,\"internalType\": \"uint256[]\",\"name\": \"ids\",\"type\": \"uint256[]\"},{\"indexed\": false,\"internalType\": \"uint256[]\",\"name\": \"values\",\"type\": \"uint256[]\"}],\"name\": \"TransferBatch\",\"type\": \"event\"},{\"anonymous\": false,\"inputs\": [{\"indexed\": true,\"internalType\": \"address\",\"name\": \"operator\",\"type\": \"address\"},{\"indexed\": true,\"internalType\": \"address\",\"name\": \"from\",\"type\": \"address\"},{\"indexed\": true,\"internalType\": \"address\",\"name\": \"to\",\"type\": \"address\"},{\"indexed\": false,\"internalType\": \"uint256\",\"name\": \"id\",\"type\": \"uint256\"},{\"indexed\": false,\"internalType\": \"uint256\",\"name\": \"value\",\"type\": \"uint256\"}],\"name\": \"TransferSingle\",\"type\": \"event\"},{\"anonymous\": false,\"inputs\": [{\"indexed\": false,\"internalType\": \"string\",\"name\": \"value\",\"type\": \"string\"},{\"indexed\": true,\"internalType\": \"uint256\",\"name\": \"id\",\"type\": \"uint256\"}],\"name\": \"URI\",\"type\": \"event\"},{\"inputs\": [],\"name\": \"_owner\",\"outputs\": [{\"internalType\": \"address\",\"name\": \"\",\"type\": \"address\"}],\"stateMutability\": \"view\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"address\",\"name\": \"account\",\"type\": \"address\"},{\"internalType\": \"uint256\",\"name\": \"id\",\"type\": \"uint256\"}],\"name\": \"balanceOf\",\"outputs\": [{\"internalType\": \"uint256\",\"name\": \"\",\"type\": \"uint256\"}],\"stateMutability\": \"view\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"address[]\",\"name\": \"accounts\",\"type\": \"address[]\"},{\"internalType\": \"uint256[]\",\"name\": \"ids\",\"type\": \"uint256[]\"}],\"name\": \"balanceOfBatch\",\"outputs\": [{\"internalType\": \"uint256[]\",\"name\": \"\",\"type\": \"uint256[]\"}],\"stateMutability\": \"view\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"string\",\"name\": \"id\",\"type\": \"string\"}],\"name\": \"getNFTTrace\",\"outputs\": [{\"internalType\": \"string\",\"name\": \"\",\"type\": \"string\"}],\"stateMutability\": \"view\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"uint256[]\",\"name\": \"ids\",\"type\": \"uint256[]\"},{\"internalType\": \"uint256[]\",\"name\": \"amounts\",\"type\": \"uint256[]\"}],\"name\": \"initArtNFT\",\"outputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"address\",\"name\": \"account\",\"type\": \"address\"},{\"internalType\": \"address\",\"name\": \"operator\",\"type\": \"address\"}],\"name\": \"isApprovedForAll\",\"outputs\": [{\"internalType\": \"bool\",\"name\": \"\",\"type\": \"bool\"}],\"stateMutability\": \"view\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"address\",\"name\": \"from\",\"type\": \"address\"},{\"internalType\": \"address\",\"name\": \"to\",\"type\": \"address\"},{\"internalType\": \"uint256[]\",\"name\": \"ids\",\"type\": \"uint256[]\"},{\"internalType\": \"uint256[]\",\"name\": \"amounts\",\"type\": \"uint256[]\"},{\"internalType\": \"bytes\",\"name\": \"data\",\"type\": \"bytes\"}],\"name\": \"safeBatchTransferFrom\",\"outputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"address\",\"name\": \"from\",\"type\": \"address\"},{\"internalType\": \"address\",\"name\": \"to\",\"type\": \"address\"},{\"internalType\": \"uint256\",\"name\": \"id\",\"type\": \"uint256\"},{\"internalType\": \"uint256\",\"name\": \"amount\",\"type\": \"uint256\"},{\"internalType\": \"bytes\",\"name\": \"data\",\"type\": \"bytes\"}],\"name\": \"safeTransferFrom\",\"outputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"address\",\"name\": \"operator\",\"type\": \"address\"},{\"internalType\": \"bool\",\"name\": \"approved\",\"type\": \"bool\"}],\"name\": \"setApprovalForAll\",\"outputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"bytes4\",\"name\": \"interfaceId\",\"type\": \"bytes4\"}],\"name\": \"supportsInterface\",\"outputs\": [{\"internalType\": \"bool\",\"name\": \"\",\"type\": \"bool\"}],\"stateMutability\": \"view\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"address\",\"name\": \"to\",\"type\": \"address\"},{\"internalType\": \"uint256\",\"name\": \"id\",\"type\": \"uint256\"},{\"internalType\": \"uint256\",\"name\": \"amount\",\"type\": \"uint256\"},{\"internalType\": \"string\",\"name\": \"traceInfo\",\"type\": \"string\"}],\"name\": \"transferArtNFT\",\"outputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"function\"},{\"inputs\": [{\"internalType\": \"uint256\",\"name\": \"\",\"type\": \"uint256\"}],\"name\": \"uri\",\"outputs\": [{\"internalType\": \"string\",\"name\": \"\",\"type\": \"string\"}],\"stateMutability\": \"view\",\"type\": \"function\"}]"; @@ -47,8 +47,8 @@ public void testEvmContract() throws Exception { byte[] code = ByteUtil.merge(HexUtil.fromHexString(codes), abi.getBytes()); String evmCode = EvmUtil.getCreateEvmEncode(code, "", "evm-sdk-test", ""); - - // TODO:实际应用过程中,不建议在业务代码中直接调用gas费, 因为这一步可能因为合约的复杂而消耗比较长的时间,导致后续流程的阻塞 + + // TODO:实际应用过程中,不建议在业务代码中直接调用gas费, 因为这一步可能因为合约的复杂而消耗比较长的时间,导致后续流程的阻塞 long gas = client.queryEVMGas("evm", evmCode, address); System.out.println("Gas fee is:" + gas); txEncode = EvmUtil.createEvmContract(code, "", "evm-sdk-test", privateKey, "", gas); @@ -58,96 +58,97 @@ public void testEvmContract() throws Exception { txResult = client.queryTransaction(txhash); Assert.assertEquals(txResult.getReceipt().getTyname(), "ExecOk"); System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - + } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - + // 计算合约地址 String contractAddress = TransactionUtil.convertExectoAddr(address + txhash.substring(2)); System.out.println("部署好的合约地址 = " + contractAddress); - + // 调用合约 // 批量生成NFT的ID int lenght = 1000; int[] ids = new int[lenght]; int[] amounts = new int[lenght]; for (int i = 0; i < lenght; i++) { - ids[i] = 10000 + i; - amounts[i] = 1; + ids[i] = 10000 + i; + amounts[i] = 1; } - byte[] initNFT = EvmUtil.encodeParameter(abi, "initArtNFT", ids, amounts); - - // TODO:实际应用过程中,不建议在代码中调用gas费, 因为这一步可能因为合约的复杂而消耗比较长的时间 - long gas = getCallGas(initNFT,"", 0, contractAddress, ""); - - txEncode = EvmUtil.callEvmContract(initNFT,"", 0, contractAddress, privateKey, "", gas); + byte[] initNFT = EvmUtil.encodeParameter(abi, "initArtNFT", ids, amounts); + + // TODO:实际应用过程中,不建议在代码中调用gas费, 因为这一步可能因为合约的复杂而消耗比较长的时间 + long gas = getCallGas(initNFT, "", 0, contractAddress, ""); + + txEncode = EvmUtil.callEvmContract(initNFT, "", 0, contractAddress, privateKey, "", gas); txhash = client.submitTransaction(txEncode); System.out.print("初始发行的合约hash = " + txhash); - - for (int tick = 0; tick < 500; tick++){ - txResult = client.queryTransaction(txhash); - if(txResult == null) { - Thread.sleep(5000); - continue; - } - System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - break; - } - + + for (int tick = 0; tick < 500; tick++) { + txResult = client.queryTransaction(txhash); + if (txResult == null) { + Thread.sleep(5000); + continue; + } + System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); + break; + } + // 第100个NFT由平台转给用户A String userAaddress = "1FpJG4PHJARQNpyXkF6E6f9rvBx97zDaaJ"; int id = ids[100]; int amount = 1; String traceInfo = "资产溯源信息,比如:此NFT资产由小王转赠给小李,在区块链上留证"; - byte[] transfer = EvmUtil.encodeParameter(abi, "transferArtNFT", userAaddress, id, amount, traceInfo); + byte[] transfer = EvmUtil.encodeParameter(abi, "transferArtNFT", userAaddress, id, amount, traceInfo); - txEncode = EvmUtil.callEvmContract(transfer,"", 0, contractAddress, privateKey, "", 3000000); + txEncode = EvmUtil.callEvmContract(transfer, "", 0, contractAddress, privateKey, "", 3000000); txhash = client.submitTransaction(txEncode); System.out.print("转NFT合约hash = " + txhash); Thread.sleep(5000); txResult = client.queryTransaction(txhash); System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - - + // 第100个NFT再次同用户A转给用户B String userBaddress = "18wzdPMKp3m3PsLf83HoctyaBnPXeRRHQG"; traceInfo = "此token由小李在2021年8月26日转赠给小王,在区块链上留证"; - transfer = EvmUtil.encodeParameter(abi, "transferArtNFT", userBaddress, id, amount, traceInfo); - // 这一步用用户A的私钥签名 - String privateKeyA = "2d5cd98d637033028c7ee7ca78e5dd71d8aaaada0e8b3244f18bba7b6a75ba8c"; - txEncode = EvmUtil.callEvmContract(transfer,"", 0, contractAddress, privateKeyA, "",3000000); + transfer = EvmUtil.encodeParameter(abi, "transferArtNFT", userBaddress, id, amount, traceInfo); + // 这一步用用户A的私钥签名 + String privateKeyA = "2d5cd98d637033028c7ee7ca78e5dd71d8aaaada0e8b3244f18bba7b6a75ba8c"; + txEncode = EvmUtil.callEvmContract(transfer, "", 0, contractAddress, privateKeyA, "", 3000000); txhash = client.submitTransaction(txEncode); System.out.print("转NFT合约hash = " + txhash); Thread.sleep(5000); txResult = client.queryTransaction(txhash); System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - + // 查询用户A和用户B地址下的资产余额 byte[] packAbiGet = EvmUtil.encodeParameter(abi, "balanceOf", userAaddress, id); JSONObject query = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbiGet)); JSONObject output = query.getJSONObject("result"); String rawData = output.getString("rawData"); - System.out.println("用户A" + userAaddress + " 中积分余额: " + HexUtil.hexStringToAlgorism(HexUtil.removeHexHeader(rawData))); - + System.out.println( + "用户A" + userAaddress + " 中积分余额: " + HexUtil.hexStringToAlgorism(HexUtil.removeHexHeader(rawData))); + packAbiGet = EvmUtil.encodeParameter(abi, "balanceOf", userBaddress, id); query = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbiGet)); output = query.getJSONObject("result"); rawData = output.getString("rawData"); - System.out.println("用户B" + userBaddress + " 中积分余额: " + HexUtil.hexStringToAlgorism(HexUtil.removeHexHeader(rawData))); - + System.out.println( + "用户B" + userBaddress + " 中积分余额: " + HexUtil.hexStringToAlgorism(HexUtil.removeHexHeader(rawData))); + // 根据NFT的ID查询溯源历史信息 packAbiGet = EvmUtil.encodeParameter(abi, "getNFTTrace", String.valueOf(id)); query = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbiGet)); output = query.getJSONObject("result"); rawData = output.getString("rawData"); - System.out.println("NFT" + String.valueOf(id) + "溯源信息" + HexUtil.hexStringToString(HexUtil.removeHexHeader(rawData))); - - + System.out.println( + "NFT" + String.valueOf(id) + "溯源信息" + HexUtil.hexStringToString(HexUtil.removeHexHeader(rawData))); + } - + /** * * @param parameter @@ -155,11 +156,14 @@ public void testEvmContract() throws Exception { * @param amount * @param contractAddr * @param paraName + * * @return + * * @throws IOException */ - private long getCallGas(byte[] parameter, String note, long amount, String contractAddr, String paraName) throws IOException { - String callEvmEncode = EvmUtil.getCallEvmEncode(parameter,note, amount, contractAddr, paraName); + private long getCallGas(byte[] parameter, String note, long amount, String contractAddr, String paraName) + throws IOException { + String callEvmEncode = EvmUtil.getCallEvmEncode(parameter, note, amount, contractAddr, paraName); long gas = client.queryEVMGas("evm", callEvmEncode, address); System.out.println("Gas fee is:" + gas); return gas; diff --git a/src/test/java/cn/chain33/javasdk/model/EvmTest.java b/src/test/java/cn/chain33/javasdk/model/EvmTest.java index e6f5648..186ed15 100644 --- a/src/test/java/cn/chain33/javasdk/model/EvmTest.java +++ b/src/test/java/cn/chain33/javasdk/model/EvmTest.java @@ -15,14 +15,14 @@ public class EvmTest { - // 区块链IP - String ip = "区块链IP地址"; - // 区块链服务端口 - int port = 8801; - RpcClient client = new RpcClient(ip, port); - - // 合约部署人对应的区块链地址和私钥 - String address = "1M8gvr1DZ1KKVjf6XW6aYR6pHGeDRspdCx"; + // 区块链IP + String ip = "区块链IP地址"; + // 区块链服务端口 + int port = 8801; + RpcClient client = new RpcClient(ip, port); + + // 合约部署人对应的区块链地址和私钥 + String address = "1M8gvr1DZ1KKVjf6XW6aYR6pHGeDRspdCx"; String privateKey = "452281167e7fa65cdd5bcb1e40565bf06a1aa3ce4fc8954848d0427a4cc27180"; @Test @@ -31,11 +31,11 @@ public void testEvmContract() throws Exception { // 部署合约 String txEncode; String txhash = ""; - + // 存证合约owner的address和private key String ownerAddress = "1FpJG4PHJARQNpyXkF6E6f9rvBx97zDaaJ"; String ownerPrivateKey = "2d5cd98d637033028c7ee7ca78e5dd71d8aaaada0e8b3244f18bba7b6a75ba8c"; - + // 合约代码:https://bty33.oss-cn-shanghai.aliyuncs.com/chain33Dev/BAAS/%E5%AD%98%E8%AF%81%E5%90%88%E7%BA%A6.zip String codes = "608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610651806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806313af4035146100515780637d24e37e14610079578063a8934d79146101a6578063b2bdfa7b146102c1575b600080fd5b6100776004803603602081101561006757600080fd5b50356001600160a01b03166102e5565b005b6100776004803603604081101561008f57600080fd5b8101906020810181356401000000008111156100aa57600080fd5b8201836020820111156100bc57600080fd5b803590602001918460018302840111640100000000831117156100de57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561013157600080fd5b82018360208201111561014357600080fd5b8035906020019184600183028401116401000000008311171561016557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610350945050505050565b61024c600480360360208110156101bc57600080fd5b8101906020810181356401000000008111156101d757600080fd5b8201836020820111156101e957600080fd5b8035906020019184600183028401116401000000008311171561020b57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061045f945050505050565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028657818101518382015260200161026e565b50505050905090810190601f1680156102b35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c9610553565b604080516001600160a01b039092168252519081900360200190f35b6000546001600160a01b0316331461032e5760405162461bcd60e51b81526004018080602001828103825260268152602001806105f66026913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146103995760405162461bcd60e51b81526004018080602001828103825260268152602001806105f66026913960400191505060405180910390fd5b8160008151116103e5576040805162461bcd60e51b815260206004820152601260248201527166696c65496420697320696e76616c69642160701b604482015290519081900360640190fd5b816001846040518082805190602001908083835b602083106104185780518252601f1990920191602091820191016103f9565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810190932084516104599591949190910192509050610562565b50505050565b60606001826040518082805190602001908083835b602083106104935780518252601f199092019160209182019101610474565b518151600019602094850361010090810a820192831692199390931691909117909252949092019687526040805197889003820188208054601f60026001831615909802909501169590950492830182900482028801820190528187529294509250508301828280156105475780601f1061051c57610100808354040283529160200191610547565b820191906000526020600020905b81548152906001019060200180831161052a57829003601f168201915b50505050509050919050565b6000546001600160a01b031681565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106105a357805160ff19168380011785556105d0565b828001600101855582156105d0579182015b828111156105d05782518255916020019190600101906105b5565b506105dc9291506105e0565b5090565b5b808211156105dc57600081556001016105e156fe6f6e6c7920617574686f72697a6564206f776e65722063616e2073746f72652066696c65732ea264697066735822122031f48e60df7c860caf840a264a2bf73faebcde84c840a53808e210c386ebde7a64736f6c634300060c0033"; String abi = "[{\"inputs\":[],\"name\":\"_owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"fileId\",\"type\":\"string\"}],\"name\":\"getFileById\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"fileId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"content\",\"type\":\"string\"}],\"name\":\"setFileStockById\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"; @@ -52,46 +52,45 @@ public void testEvmContract() throws Exception { txResult = client.queryTransaction(txhash); Assert.assertEquals(txResult.getReceipt().getTyname(), "ExecOk"); System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - + } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - + // 计算合约地址 String contractAddress = TransactionUtil.convertExectoAddr(address + txhash.substring(2)); System.out.println("部署好的合约地址 = " + contractAddress); - + // 调用合约,设置权限用户 - byte[] setOwner = EvmUtil.encodeParameter(abi, "setOwner", ownerAddress); - txEncode = EvmUtil.callEvmContract(setOwner,"", 0, contractAddress, privateKey, ""); + byte[] setOwner = EvmUtil.encodeParameter(abi, "setOwner", ownerAddress); + txEncode = EvmUtil.callEvmContract(setOwner, "", 0, contractAddress, privateKey, ""); txhash = client.submitTransaction(txEncode); System.out.print("调用授权合约的交易hash = " + txhash); Thread.sleep(5000); txResult = client.queryTransaction(txhash); System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - // 使用非授权的地址调用存证合约,此笔交易会执行失败,在交易体中会打印错误信息 String fileId = "\"fileId000001\""; String content = "\"{\"档案编号\":\"ID0000001\",\"企业代码\":\"QY0000001\",\"业务标识\":\"DA000001\",\"来源系统\":\"OA\", \"文档摘要\",\"0x93689a705ac0bb4612824883060d73d02534f8ba758f5ca21a343beab2bf7b47\"}\""; - // 調用setFileStockById方法來存證,使用非权限用户签名 - byte[] setFileStock = EvmUtil.encodeParameter(abi, "setFileStockById", fileId, content); - txEncode = EvmUtil.callEvmContract(setFileStock,"", 0, contractAddress, privateKey, ""); + // 調用setFileStockById方法來存證,使用非权限用户签名 + byte[] setFileStock = EvmUtil.encodeParameter(abi, "setFileStockById", fileId, content); + txEncode = EvmUtil.callEvmContract(setFileStock, "", 0, contractAddress, privateKey, ""); txhash = client.submitTransaction(txEncode); System.out.print("使用非授权地址调用存证合约的交易hash = " + txhash); Thread.sleep(5000); txResult = client.queryTransaction(txhash); System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - + // 使用授权的地址调用存证合约,此笔交易会执行成功 - txEncode = EvmUtil.callEvmContract(setFileStock,"", 0, contractAddress, ownerPrivateKey, ""); + txEncode = EvmUtil.callEvmContract(setFileStock, "", 0, contractAddress, ownerPrivateKey, ""); txhash = client.submitTransaction(txEncode); System.out.print("使用授权地址调用存证合约的交易hash = " + txhash); Thread.sleep(5000); txResult = client.queryTransaction(txhash); System.out.println("; 执行结果 = " + txResult.getReceipt().getTyname()); - + byte[] packAbiGet = EvmUtil.encodeParameter(abi, "getFileById", fileId); JSONObject query = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbiGet)); @@ -102,5 +101,4 @@ public void testEvmContract() throws Exception { } - } diff --git a/src/test/java/cn/chain33/javasdk/model/ExceptionTest.java b/src/test/java/cn/chain33/javasdk/model/ExceptionTest.java index d41afd8..65b9df1 100644 --- a/src/test/java/cn/chain33/javasdk/model/ExceptionTest.java +++ b/src/test/java/cn/chain33/javasdk/model/ExceptionTest.java @@ -10,148 +10,148 @@ import cn.chain33.javasdk.utils.TransactionUtil; public class ExceptionTest { - + String ip = "fd.33.cn"; RpcClient client = new RpcClient(ip, 1263); - - /** - * 双花测试 - * @throws InterruptedException - * @throws IOException - */ - @Test - public void doubleSpent() throws InterruptedException, IOException { - - TransferBalanceRequest transferBalanceRequest = new TransferBalanceRequest(); - - // 转账说明 - transferBalanceRequest.setNote("转账说明"); - // 转主积分的情况下,默认填"" - transferBalanceRequest.setCoinToken(""); - // 转账数量 , 以下代表转1个积分 - transferBalanceRequest.setAmount(1 * 100000000L); - // 转到的地址 - transferBalanceRequest.setTo("1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"); - // 签名私私钥,对应的测试地址是:1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs - transferBalanceRequest.setFromPrivateKey("3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); - // 执行器名称,主链主积分固定为coins - transferBalanceRequest.setExecer("coins"); - // 签名类型 (支持SM2, SECP256K1, ED25519) - transferBalanceRequest.setSignType(SignType.SECP256K1); - // 构造好,并本地签好名的交易 - String createTransferTx = TransactionUtil.transferBalanceMain(transferBalanceRequest); - // 交易发往区块链 - String txHash1 = client.submitTransaction(createTransferTx); - // 相同交易重复发送,验证是否双花 - String txHash2 = client.submitTransaction(createTransferTx); - System.out.println(txHash1); - // 第一笔交易有hash,重复发送的这笔会收到提示:ErrTxExist,没有交易hash返回 - System.out.println(txHash2); - - } - - /** - * 超出额度花费 - * @throws InterruptedException - * @throws IOException - */ - @Test - public void overflowSpent() throws InterruptedException, IOException { - - TransferBalanceRequest transferBalanceRequest = new TransferBalanceRequest(); - - // 转账说明 - transferBalanceRequest.setNote("转账说明"); - // 转主积分的情况下,默认填"" - transferBalanceRequest.setCoinToken(""); - // 转账数量 , 以下代表转1个积分 - transferBalanceRequest.setAmount(100 * 100000000L); - // 转到的地址 - transferBalanceRequest.setTo("1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy"); - // 签名私私钥,对应的测试地址是:1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs - transferBalanceRequest.setFromPrivateKey("3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); - // 执行器名称,主链主积分固定为coins - transferBalanceRequest.setExecer("coins"); - // 签名类型 (支持SM2, SECP256K1, ED25519) - transferBalanceRequest.setSignType(SignType.SECP256K1); - // 构造好,并本地签好名的交易 - String createTransferTx = TransactionUtil.transferBalanceMain(transferBalanceRequest); - // 交易发往区块链 - String txHash = client.submitTransaction(createTransferTx); - // 第一笔交易有hash,重复发送的这笔会收到提示:ErrTxExist,没有交易hash返回 - System.out.println(txHash); - - // 一般1秒一个区块 - QueryTransactionResult queryTransaction; - for (int i = 0; i < 10; i++) { - queryTransaction = client.queryTransaction(txHash); - if (null == queryTransaction) { - Thread.sleep(1000); - } else { - break; - } - } - - // 从1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy地址中打出两笔交易,一笔100,一笔0.1 - - // 转账说明 - transferBalanceRequest.setNote("转账说明"); - // 转主积分的情况下,默认填"" - transferBalanceRequest.setCoinToken(""); - // 转账数量 , 以下代表转100个积分 - transferBalanceRequest.setAmount(100 * 100000000L); - // 转到的地址 - transferBalanceRequest.setTo("19jsPusNK6KdLkwNzZUVQpB4QdZi6EL2HH"); - // 签名私私钥,对应的测试地址是:1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy - transferBalanceRequest.setFromPrivateKey("ffba3db75fe6c1c2166009bc4d7bfbe4f02d9a24c0c7bceb9187625ed465d654"); - // 执行器名称,主链主积分固定为coins - transferBalanceRequest.setExecer("coins"); - // 签名类型 (支持SM2, SECP256K1, ED25519) - transferBalanceRequest.setSignType(SignType.SECP256K1); - // 构造好,并本地签好名的交易 - String createTransferTx1 = TransactionUtil.transferBalanceMain(transferBalanceRequest); - - - // 转账说明 - transferBalanceRequest.setNote("转账说明"); - // 转主积分的情况下,默认填"" - transferBalanceRequest.setCoinToken(""); - // 转账数量 , 以下代表转0.1个积分 - transferBalanceRequest.setAmount(1 * 10000000L); - // 转到的地址 - transferBalanceRequest.setTo("19jsPusNK6KdLkwNzZUVQpB4QdZi6EL2HH"); - // 签名私私钥,对应的测试地址是:1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy - transferBalanceRequest.setFromPrivateKey("ffba3db75fe6c1c2166009bc4d7bfbe4f02d9a24c0c7bceb9187625ed465d654"); - // 执行器名称,主链主积分固定为coins - transferBalanceRequest.setExecer("coins"); - // 签名类型 (支持SM2, SECP256K1, ED25519) - transferBalanceRequest.setSignType(SignType.SECP256K1); - // 构造好,并本地签好名的交易 - String createTransferTx2 = TransactionUtil.transferBalanceMain(transferBalanceRequest); - - // 交易发往区块链 - String txHash1 = client.submitTransaction(createTransferTx1); - String txHash2 = client.submitTransaction(createTransferTx2); - // 第一笔交易有hash,重复发送的这笔会收到提示:ErrTxExist,没有交易hash返回 - System.out.println(txHash1); - System.out.println(txHash2); - - // 一般1秒一个区块 - QueryTransactionResult queryTransaction1; - QueryTransactionResult queryTransaction2; - for (int i = 0; i < 10; i++) { - queryTransaction1 = client.queryTransaction(txHash1); - queryTransaction2 = client.queryTransaction(txHash2); - if (null == queryTransaction1 || null == queryTransaction1) { - Thread.sleep(1000); - } else { - System.out.println(queryTransaction1.getReceipt().getTyname()); - System.out.println(queryTransaction2.getReceipt().getTyname()); - break; - } - } - - } - - + + /** + * 双花测试 + * + * @throws InterruptedException + * @throws IOException + */ + @Test + public void doubleSpent() throws InterruptedException, IOException { + + TransferBalanceRequest transferBalanceRequest = new TransferBalanceRequest(); + + // 转账说明 + transferBalanceRequest.setNote("转账说明"); + // 转主积分的情况下,默认填"" + transferBalanceRequest.setCoinToken(""); + // 转账数量 , 以下代表转1个积分 + transferBalanceRequest.setAmount(1 * 100000000L); + // 转到的地址 + transferBalanceRequest.setTo("1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"); + // 签名私私钥,对应的测试地址是:1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs + transferBalanceRequest.setFromPrivateKey("3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); + // 执行器名称,主链主积分固定为coins + transferBalanceRequest.setExecer("coins"); + // 签名类型 (支持SM2, SECP256K1, ED25519) + transferBalanceRequest.setSignType(SignType.SECP256K1); + // 构造好,并本地签好名的交易 + String createTransferTx = TransactionUtil.transferBalanceMain(transferBalanceRequest); + // 交易发往区块链 + String txHash1 = client.submitTransaction(createTransferTx); + // 相同交易重复发送,验证是否双花 + String txHash2 = client.submitTransaction(createTransferTx); + System.out.println(txHash1); + // 第一笔交易有hash,重复发送的这笔会收到提示:ErrTxExist,没有交易hash返回 + System.out.println(txHash2); + + } + + /** + * 超出额度花费 + * + * @throws InterruptedException + * @throws IOException + */ + @Test + public void overflowSpent() throws InterruptedException, IOException { + + TransferBalanceRequest transferBalanceRequest = new TransferBalanceRequest(); + + // 转账说明 + transferBalanceRequest.setNote("转账说明"); + // 转主积分的情况下,默认填"" + transferBalanceRequest.setCoinToken(""); + // 转账数量 , 以下代表转1个积分 + transferBalanceRequest.setAmount(100 * 100000000L); + // 转到的地址 + transferBalanceRequest.setTo("1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy"); + // 签名私私钥,对应的测试地址是:1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs + transferBalanceRequest.setFromPrivateKey("3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); + // 执行器名称,主链主积分固定为coins + transferBalanceRequest.setExecer("coins"); + // 签名类型 (支持SM2, SECP256K1, ED25519) + transferBalanceRequest.setSignType(SignType.SECP256K1); + // 构造好,并本地签好名的交易 + String createTransferTx = TransactionUtil.transferBalanceMain(transferBalanceRequest); + // 交易发往区块链 + String txHash = client.submitTransaction(createTransferTx); + // 第一笔交易有hash,重复发送的这笔会收到提示:ErrTxExist,没有交易hash返回 + System.out.println(txHash); + + // 一般1秒一个区块 + QueryTransactionResult queryTransaction; + for (int i = 0; i < 10; i++) { + queryTransaction = client.queryTransaction(txHash); + if (null == queryTransaction) { + Thread.sleep(1000); + } else { + break; + } + } + + // 从1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy地址中打出两笔交易,一笔100,一笔0.1 + + // 转账说明 + transferBalanceRequest.setNote("转账说明"); + // 转主积分的情况下,默认填"" + transferBalanceRequest.setCoinToken(""); + // 转账数量 , 以下代表转100个积分 + transferBalanceRequest.setAmount(100 * 100000000L); + // 转到的地址 + transferBalanceRequest.setTo("19jsPusNK6KdLkwNzZUVQpB4QdZi6EL2HH"); + // 签名私私钥,对应的测试地址是:1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy + transferBalanceRequest.setFromPrivateKey("ffba3db75fe6c1c2166009bc4d7bfbe4f02d9a24c0c7bceb9187625ed465d654"); + // 执行器名称,主链主积分固定为coins + transferBalanceRequest.setExecer("coins"); + // 签名类型 (支持SM2, SECP256K1, ED25519) + transferBalanceRequest.setSignType(SignType.SECP256K1); + // 构造好,并本地签好名的交易 + String createTransferTx1 = TransactionUtil.transferBalanceMain(transferBalanceRequest); + + // 转账说明 + transferBalanceRequest.setNote("转账说明"); + // 转主积分的情况下,默认填"" + transferBalanceRequest.setCoinToken(""); + // 转账数量 , 以下代表转0.1个积分 + transferBalanceRequest.setAmount(1 * 10000000L); + // 转到的地址 + transferBalanceRequest.setTo("19jsPusNK6KdLkwNzZUVQpB4QdZi6EL2HH"); + // 签名私私钥,对应的测试地址是:1ChXKZMNwVjY3bGEqpwHTL5NAPKiJhGzzy + transferBalanceRequest.setFromPrivateKey("ffba3db75fe6c1c2166009bc4d7bfbe4f02d9a24c0c7bceb9187625ed465d654"); + // 执行器名称,主链主积分固定为coins + transferBalanceRequest.setExecer("coins"); + // 签名类型 (支持SM2, SECP256K1, ED25519) + transferBalanceRequest.setSignType(SignType.SECP256K1); + // 构造好,并本地签好名的交易 + String createTransferTx2 = TransactionUtil.transferBalanceMain(transferBalanceRequest); + + // 交易发往区块链 + String txHash1 = client.submitTransaction(createTransferTx1); + String txHash2 = client.submitTransaction(createTransferTx2); + // 第一笔交易有hash,重复发送的这笔会收到提示:ErrTxExist,没有交易hash返回 + System.out.println(txHash1); + System.out.println(txHash2); + + // 一般1秒一个区块 + QueryTransactionResult queryTransaction1; + QueryTransactionResult queryTransaction2; + for (int i = 0; i < 10; i++) { + queryTransaction1 = client.queryTransaction(txHash1); + queryTransaction2 = client.queryTransaction(txHash2); + if (null == queryTransaction1 || null == queryTransaction1) { + Thread.sleep(1000); + } else { + System.out.println(queryTransaction1.getReceipt().getTyname()); + System.out.println(queryTransaction2.getReceipt().getTyname()); + break; + } + } + + } + } diff --git a/src/test/java/cn/chain33/javasdk/model/GMTest.java b/src/test/java/cn/chain33/javasdk/model/GMTest.java index 0e333fc..07bc247 100644 --- a/src/test/java/cn/chain33/javasdk/model/GMTest.java +++ b/src/test/java/cn/chain33/javasdk/model/GMTest.java @@ -10,7 +10,8 @@ import java.util.Arrays; public class GMTest { - public static final byte[] SRC_DATA = new byte[]{0x1, 0x23, 0x45, 0x67, (byte)0x89, (byte)0xab, (byte)0xcd, (byte)0xef, (byte)0xfe, (byte)0xdc, (byte)0xba, (byte)0x98, 0x76, 0x54, 0x32, 0x10}; + public static final byte[] SRC_DATA = new byte[] { 0x1, 0x23, 0x45, 0x67, (byte) 0x89, (byte) 0xab, (byte) 0xcd, + (byte) 0xef, (byte) 0xfe, (byte) 0xdc, (byte) 0xba, (byte) 0x98, 0x76, 0x54, 0x32, 0x10 }; public static final String SRC_DATA_24B = "123456781234567812345678"; public static final String WITH_ID = "1234"; @@ -94,7 +95,8 @@ public void testSM4() { byte[] cipherText; byte[] decryptedData; - key = new byte[]{0x1, 0x23, 0x45, 0x67, (byte)0x89, (byte)0xab, (byte)0xcd, (byte)0xef, (byte)0xfe, (byte)0xdc, (byte)0xba, (byte)0x98, 0x76, 0x54, 0x32, 0x10}; + key = new byte[] { 0x1, 0x23, 0x45, 0x67, (byte) 0x89, (byte) 0xab, (byte) 0xcd, (byte) 0xef, (byte) 0xfe, + (byte) 0xdc, (byte) 0xba, (byte) 0x98, 0x76, 0x54, 0x32, 0x10 }; cipherText = SM4Util.encryptECB(key, SRC_DATA); System.out.println("SM4 ECB Padding encrypt result:\n" + Arrays.toString(cipherText)); decryptedData = SM4Util.decryptECB(key, cipherText); diff --git a/src/test/java/cn/chain33/javasdk/model/NodeTest.java b/src/test/java/cn/chain33/javasdk/model/NodeTest.java index 9e01702..b6b42be 100644 --- a/src/test/java/cn/chain33/javasdk/model/NodeTest.java +++ b/src/test/java/cn/chain33/javasdk/model/NodeTest.java @@ -26,92 +26,94 @@ * */ public class NodeTest { - + String ip = "fd.33.cn"; RpcClient client = new RpcClient(ip, 1263); - /** * Step1:创建管理员,用于授权新节点的加入 * - * @throws Exception + * @throws Exception + * * @description 创建自定义积分的黑名单 * */ @Test public void createManager() throws Exception { - // 管理合约名称 - String execerName = "manage"; - // 管理合约:配置管理员key - String key = "tendermint-manager"; - // 管理合约:配置管理员VALUE, 对应的私钥:3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8 - String value = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; - // 管理合约:配置操作符 - String op = "add"; - // 当前链管理员私钥(superManager) - String privateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; - // 构造并签名交易,使用链的管理员(superManager)进行签名, - String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); - // 发送交易 - String hash = client.submitTransaction(txEncode); - System.out.print(hash); + // 管理合约名称 + String execerName = "manage"; + // 管理合约:配置管理员key + String key = "tendermint-manager"; + // 管理合约:配置管理员VALUE, 对应的私钥:3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8 + String value = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; + // 管理合约:配置操作符 + String op = "add"; + // 当前链管理员私钥(superManager) + String privateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; + // 构造并签名交易,使用链的管理员(superManager)进行签名, + String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); + // 发送交易 + String hash = client.submitTransaction(txEncode); + System.out.print(hash); } - + /** - * Step2:发送交易,通知全网加入新的共识节点 - * - * @throws Exception - */ - @Test - public void addConsensusNode() throws Exception { - String pubkey = "A4C6988F091892E025A1916B52D52F5045F7C94C71566B36000ACDA6E13AEEE3C0DFAD651B69461E2D64FE59DCBFE24B"; - // 投票权,范围从【1~~全网总power/3】 - int power = 10; - - String createTxWithoutSign = client.addConsensusNode("valnode", "NodeUpdate", pubkey, power); - - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); - String hexString = HexUtil.toHexString(signProbuf.toByteArray()); - - String submitTransaction = client.submitTransaction(hexString); - System.out.println(submitTransaction); - - } - + * Step2:发送交易,通知全网加入新的共识节点 + * + * @throws Exception + */ + @Test + public void addConsensusNode() throws Exception { + String pubkey = "A4C6988F091892E025A1916B52D52F5045F7C94C71566B36000ACDA6E13AEEE3C0DFAD651B69461E2D64FE59DCBFE24B"; + // 投票权,范围从【1~~全网总power/3】 + int power = 10; + + String createTxWithoutSign = client.addConsensusNode("valnode", "NodeUpdate", pubkey, power); + + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, + "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); + String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + + String submitTransaction = client.submitTransaction(hexString); + System.out.println(submitTransaction); + + } + /** - * Step2:发送交易,通知全网加入新的共识节点 - * - * @throws Exception - */ - @Test - public void delConsensusNode() throws Exception { - String pubkey = "A4C6988F091892E025A1916B52D52F5045F7C94C71566B36000ACDA6E13AEEE3C0DFAD651B69461E2D64FE59DCBFE24B"; - // 投票权设置成0,代表剔除出共识节点 - int power = 0; - - String createTxWithoutSign = client.addConsensusNode("valnode", "NodeUpdate", pubkey, power); - - byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); - TransactionAllProtobuf.Transaction parseFrom = null; - try { - parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); - String hexString = HexUtil.toHexString(signProbuf.toByteArray()); - - String submitTransaction = client.submitTransaction(hexString); - System.out.println(submitTransaction); - - } - + * Step2:发送交易,通知全网加入新的共识节点 + * + * @throws Exception + */ + @Test + public void delConsensusNode() throws Exception { + String pubkey = "A4C6988F091892E025A1916B52D52F5045F7C94C71566B36000ACDA6E13AEEE3C0DFAD651B69461E2D64FE59DCBFE24B"; + // 投票权设置成0,代表剔除出共识节点 + int power = 0; + + String createTxWithoutSign = client.addConsensusNode("valnode", "NodeUpdate", pubkey, power); + + byte[] fromHexString = HexUtil.fromHexString(createTxWithoutSign); + TransactionAllProtobuf.Transaction parseFrom = null; + try { + parseFrom = TransactionAllProtobuf.Transaction.parseFrom(fromHexString); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + TransactionAllProtobuf.Transaction signProbuf = TransactionUtil.signProbuf(parseFrom, + "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"); + String hexString = HexUtil.toHexString(signProbuf.toByteArray()); + + String submitTransaction = client.submitTransaction(hexString); + System.out.println(submitTransaction); + + } + } diff --git a/src/test/java/cn/chain33/javasdk/model/PaillierTest.java b/src/test/java/cn/chain33/javasdk/model/PaillierTest.java index 761e44f..8bc2be4 100644 --- a/src/test/java/cn/chain33/javasdk/model/PaillierTest.java +++ b/src/test/java/cn/chain33/javasdk/model/PaillierTest.java @@ -47,7 +47,8 @@ public void paillierStoryTest() throws Exception { String privateKey = "0x85bf7aa29436bb186cac45ecd8ea9e63e56c5817e127ebb5e99cd5a9cbfe0f23"; // 初始数据上链 - String txEncode = StorageUtil.createEncryptNotaryStorage(c1, TransactionUtil.Sha256(i1.toByteArray()), i1.toByteArray(), "", "", "storage", privateKey); + String txEncode = StorageUtil.createEncryptNotaryStorage(c1, TransactionUtil.Sha256(i1.toByteArray()), + i1.toByteArray(), "", "", "storage", privateKey); String submitTransaction = client.submitTransaction(txEncode); Thread.sleep(1000); diff --git a/src/test/java/cn/chain33/javasdk/model/PreOwner.java b/src/test/java/cn/chain33/javasdk/model/PreOwner.java index 19456c1..41354d6 100644 --- a/src/test/java/cn/chain33/javasdk/model/PreOwner.java +++ b/src/test/java/cn/chain33/javasdk/model/PreOwner.java @@ -14,18 +14,15 @@ /** * 数据拥有者将数据加密上链,并且将 + * * @author fkeit * */ public class PreOwner { // 代理重加密节点 - static RpcClient[] preClient = new RpcClient[]{ - new RpcClient("http://ip1:11801"), - new RpcClient("http://ip2:11801"), - new RpcClient("http://ip3:11801"), - new RpcClient("http://ip4:11801"), - }; + static RpcClient[] preClient = new RpcClient[] { new RpcClient("http://ip1:11801"), + new RpcClient("http://ip2:11801"), new RpcClient("http://ip3:11801"), new RpcClient("http://ip4:11801"), }; // 区块链节点 static RpcClient chain33Client = new RpcClient("http://ip:8901"); @@ -33,13 +30,12 @@ public class PreOwner { // 数据所有者私钥 static String OwnerPrivateKey = "30a13eb5f155404e5973203293b4700a5759ec9b74af01c6512ff0450f51ed88"; - // 代理节点公钥,用于身份验证,不参与重加密和加解密算法 static String ServerPub = "0x02005d3a38feaff00f1b83014b2602d7b5b39506ddee7919dd66539b5428358f08"; - + // 分4片 static int numSplit = 4; - + // 门限是3, 也就是通过3个分片就可以恢复私钥 static int threshold = 2; @@ -48,17 +44,18 @@ public class PreOwner { /** * 代理重加密秘钥分片存储到代理重加密服务器,同时数据加密上链存储 + * * @param numSplit * @param threshold - * @throws IOException + * + * @throws IOException */ @Test public void preEncrypt() throws IOException { AccountInfo alice = new AccountInfo(); alice.setPrivateKey(OwnerPrivateKey); alice.setPublicKey(TransactionUtil.getHexPubKeyFromPrivKey(OwnerPrivateKey)); - - + // 生成对称秘钥 EncryptKey encryptKey = PreUtils.GenerateEncryptKey(HexUtil.fromHexString(alice.getPublicKey())); System.out.println("对称加密秘钥:" + DatatypeConverter.printHexBinary(encryptKey.getShareKey())); @@ -91,13 +88,13 @@ public void preEncrypt() throws IOException { System.out.println("交易hash值:" + submitTransaction); } - /** * 分片并上传加密私钥 * * @param encryptKey * @param alice - * @throws IOException + * + * @throws IOException */ private void uploadKey(EncryptKey encryptKey, AccountInfo alice, String pubkey) throws IOException { // 生成重加密密钥分片 @@ -111,7 +108,7 @@ private void uploadKey(EncryptKey encryptKey, AccountInfo alice, String pubkey) // 密钥分片发送到代理节点 String dhProof = PreUtils.ECDH(ServerPub, alice.getPrivateKey()); - for(int i = 0; i < preClient.length; i++) { + for (int i = 0; i < preClient.length; i++) { boolean result = preClient[i].sendKeyFragment(alice.getPublicKey(), pubkey, encryptKey.getPubProofR(), encryptKey.getPubProofU(), 100, dhProof, kFrags[i]); if (!result) { @@ -119,5 +116,5 @@ private void uploadKey(EncryptKey encryptKey, AccountInfo alice, String pubkey) return; } } -} + } } diff --git a/src/test/java/cn/chain33/javasdk/model/PreRecipient.java b/src/test/java/cn/chain33/javasdk/model/PreRecipient.java index 6a028d0..12de7ea 100644 --- a/src/test/java/cn/chain33/javasdk/model/PreRecipient.java +++ b/src/test/java/cn/chain33/javasdk/model/PreRecipient.java @@ -14,12 +14,8 @@ public class PreRecipient { // 代理重加密节点 - static RpcClient[] preClient = new RpcClient[]{ - new RpcClient("http://ip1:11801"), - new RpcClient("http://ip2:11801"), - new RpcClient("http://ip3:11801"), - new RpcClient("http://ip4:11801"), - }; + static RpcClient[] preClient = new RpcClient[] { new RpcClient("http://ip1:11801"), + new RpcClient("http://ip2:11801"), new RpcClient("http://ip3:11801"), new RpcClient("http://ip4:11801"), }; // 区块链节点 static RpcClient chain33Client = new RpcClient("http://ip:8901"); @@ -29,19 +25,20 @@ public class PreRecipient { // 被授权人私钥,Bob的私钥 static String RecipientBobPrivateKey = "2af2bb8745103ad7b29d6b9c8c9dd5707f910f002475cba9993785573ab4fadc"; - + // 被授权人私钥,Tom的私钥 static String RecipientTomPrivateKey = "51638366c18b560359a4b6233cffee1d9cf9d6b146beb30a6a75fa4d754bed06"; - + // 被授权人私钥,James的私钥 static String RecipientJamesPrivateKey = "5f88f4a90bbcd83a299d42b3b49923d63137f142e37119c7730626cde50c6bf9"; - + // 门限是3, 也就是通过3个分片就可以恢复私钥 static int threshold = 2; /** * Bob解密 - * @throws IOException + * + * @throws IOException */ @Test public void preDecryptBob() throws IOException { @@ -56,19 +53,20 @@ public void preDecryptBob() throws IOException { JSONObject resultArray = resultJson.getJSONObject("encryptStorage"); String content = resultArray.getString("encryptContent"); byte[] fromHexString = HexUtil.fromHexString(content); - + System.out.println("加密后的密文: " + fromHexString.toString()); - + // 解密 String text = AesUtil.decrypt(fromHexString, HexUtil.toHexString(shareKeyBob)); System.out.println("秘钥: " + HexUtil.toHexString(shareKeyBob)); - + System.out.println(text); } - + /** * Tom解密 - * @throws IOException + * + * @throws IOException */ @Test public void preDecryptTom() throws IOException { @@ -88,10 +86,11 @@ public void preDecryptTom() throws IOException { String text = AesUtil.decrypt(fromHexString, HexUtil.toHexString(shareKeyTom)); System.out.println(text); } - + /** * James解密 - * @throws IOException + * + * @throws IOException */ @Test public void preDecryptJames() throws IOException { @@ -116,20 +115,23 @@ public void preDecryptJames() throws IOException { * 从代理重加密节点下载私钥匙分片,并组成解密私钥匙 * * @param accountInfo + * * @return - * @throws IOException + * + * @throws IOException */ - public byte[] downloadKey(AccountInfo accountInfo) throws IOException { + public byte[] downloadKey(AccountInfo accountInfo) throws IOException { // 申请重加密,需要两边的公钥 ReKeyFrag[] reKeyFrags = new ReKeyFrag[threshold]; - for(int i = 0; i < threshold; i++) { + for (int i = 0; i < threshold; i++) { reKeyFrags[i] = preClient[i].reencrypt(OwnerPubKey, accountInfo.getPublicKey()); } // 解密对称密钥,需要被授权人私钥 byte[] shareKey; try { - shareKey = PreUtils.AssembleReencryptFragment(HexUtil.fromHexString(accountInfo.getPrivateKey()), reKeyFrags); + shareKey = PreUtils.AssembleReencryptFragment(HexUtil.fromHexString(accountInfo.getPrivateKey()), + reKeyFrags); } catch (Exception e) { System.out.print("出错:没有权限进行重加密解密!!"); return null; diff --git a/src/test/java/cn/chain33/javasdk/model/PushTest.java b/src/test/java/cn/chain33/javasdk/model/PushTest.java index 80c1ee6..a393782 100644 --- a/src/test/java/cn/chain33/javasdk/model/PushTest.java +++ b/src/test/java/cn/chain33/javasdk/model/PushTest.java @@ -10,7 +10,6 @@ import java.util.HashMap; import java.util.Map; - public class PushTest { // 联盟链节点IP String mainIp = "主链IP"; @@ -25,47 +24,40 @@ public class PushTest { RpcClient clientPara = new RpcClient(paraIp, paraPort); /** - * 添加推送url - * 1、分别注册区块(区块头)推送服务或者合约回执推送服务,注册成功之后就开始推送; - * 注册时使用rpc接口Chain33.AddPushSubscribe进行注册,一旦通过name完成注册,其他订阅用户就不能使用相同的名字进行订阅; - * 注册用户数最大上限为100个,超过100个,不能继续注册; - * 必须保持一致,不然会出错; - * lastSequence=0,lastHeight=0,lastBlockHash=“”,从零开始推送。 - * 2、重新激活 - * 当连续推送3次失败之后,就会停止向该用户进行推送; - * 如果接收应用程序重启后,需要继续接收数据,则直接通过原有注册信息激活即可,推送服务就会从上次推送成功处,继续推送; - * 当注册的名字name相同,不管url是否相同,会有以下几种情况,并做不同的处理: - * - URL不同 - * 提示该name已经被注册,注册失败; - * - URL相同 - * 如果推送已经停止,则重新开始推送; - * 如果推送正常,则继续推送; - * @throws IOException + * 添加推送url 1、分别注册区块(区块头)推送服务或者合约回执推送服务,注册成功之后就开始推送; + * 注册时使用rpc接口Chain33.AddPushSubscribe进行注册,一旦通过name完成注册,其他订阅用户就不能使用相同的名字进行订阅; 注册用户数最大上限为100个,超过100个,不能继续注册; + * 必须保持一致,不然会出错; lastSequence=0,lastHeight=0,lastBlockHash=“”,从零开始推送。 2、重新激活 当连续推送3次失败之后,就会停止向该用户进行推送; + * 如果接收应用程序重启后,需要继续接收数据,则直接通过原有注册信息激活即可,推送服务就会从上次推送成功处,继续推送; 当注册的名字name相同,不管url是否相同,会有以下几种情况,并做不同的处理: - URL不同 + * 提示该name已经被注册,注册失败; - URL相同 如果推送已经停止,则重新开始推送; 如果推送正常,则继续推送; + * + * @throws IOException */ @Test - public void push() throws IOException{ - Map m = new HashMap(); - m.put("coin",true); - BooleanResult result = clientMain.addPushSubscribe("test1","http://127.0.0.1:8080","json",0,0,"",0,m); + public void push() throws IOException { + Map m = new HashMap(); + m.put("coin", true); + BooleanResult result = clientMain.addPushSubscribe("test1", "http://127.0.0.1:8080", "json", 0, 0, "", 0, m); System.out.println(result.toString()); } /** - * 获取推送列表 - * @throws IOException + * 获取推送列表 + * + * @throws IOException */ @Test - public void listPushes() throws IOException{ + public void listPushes() throws IOException { ListPushesResult result = clientMain.listPushes(); System.out.println(result.toString()); } /** - * 获取name对应推送最新seq值 - * @throws IOException + * 获取name对应推送最新seq值 + * + * @throws IOException */ @Test - public void getPushSeqLastNum() throws IOException{ + public void getPushSeqLastNum() throws IOException { String name = "test"; Int64Result result = clientMain.getPushSeqLastNum(name); System.out.println(result.toString()); diff --git a/src/test/java/cn/chain33/javasdk/model/SimpleStore.java b/src/test/java/cn/chain33/javasdk/model/SimpleStore.java index d9d9749..4bd65b3 100644 --- a/src/test/java/cn/chain33/javasdk/model/SimpleStore.java +++ b/src/test/java/cn/chain33/javasdk/model/SimpleStore.java @@ -18,110 +18,116 @@ */ public class SimpleStore { - // 联盟链节点IP - String mainIp = "主链IP"; - // 平行链服务端口 - int mainPort = 8801; - RpcClient clientMain = new RpcClient(mainIp, mainPort); - - // 平行链节点IP - String paraIp = "平行链IP"; - // 平行链服务端口 - int paraPort = 8901; - RpcClient clientPara = new RpcClient(paraIp, paraPort); - - // 上链存证的内容(电子档案上链) - String content = "{\"档案编号\":\"ID0000001\",\"企业代码\":\"QY0000001\",\"业务标识\":\"DA000001\",\"来源系统\":\"OA\", \"文档摘要\",\"0x93689a705ac0bb4612824883060d73d02534f8ba758f5ca21a343beab2bf7b47\"}"; - - // ========================================== 联盟链的场景 start ============================================================== - /** - * 内容存证上链 - * @throws IOException - */ - @Test - public void writeData() throws IOException { - // 存证智能合约的名称(简单存证,固定就用这个名称) - String execer = "user.write"; - // 合约地址 - String contractAddress = clientMain.convertExectoAddr(execer); - - // - Account account = new Account(); - String privateKey = account.newAccountLocal().getPrivateKey(); - - - String txEncode = TransactionUtil.createTransferTx(privateKey, contractAddress, execer, content.getBytes(), - TransactionUtil.DEFAULT_FEE); - - - String hash = clientMain.submitTransaction(txEncode); - - System.out.println(hash); - - } - - /** - * 查询 - * @throws IOException - */ - @Test - public void getData() throws IOException { - // 交易hash - // String hash = "上一步上链返回的hash"; - String hash = "0xd283df553f62b65306e927677b91052d0a652342acf262ee82c9f43ba519a032"; - QueryTransactionResult queryTransaction; - queryTransaction = clientMain.queryTransaction(hash); - System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); - System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); - System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); - System.out.print("上链的数据内容" + HexUtil.hexStringToString(queryTransaction.getTx().getRawpayload())); - - } - - // ========================================== 联盟链的场景 end ============================================================== - - // ========================================== 平行链的场景 start ============================================================== - /** - * 内容存证上链 - * @throws IOException - */ - @Test - public void writeParaData() throws IOException { - // 存证智能合约的名称(简单存证,固定就用这个名称) - String execer = "user.p.midea.user.write"; - // 合约地址 - String contractAddress = clientPara.convertExectoAddr(execer); - - // 获取签名用的私钥 - Account account = new Account(); - String privateKey = account.newAccountLocal().getPrivateKey(); - // 取当前最大区块高度,用于设置查重范围,如果这个值不设置,默认就会从第0个高度开始查 - // 注意: 这些查的是主链高度,而不是平行链的 - long txHeight = clientMain.getLastHeader().getHeight(); - String txEncode = TransactionUtil.createTransferTx(privateKey, contractAddress, execer, content.getBytes(), - TransactionUtil.DEFAULT_FEE, txHeight); - String hash = clientPara.submitTransaction(txEncode); - - System.out.println(hash); - } - - /** - * 查询 - * @throws IOException - */ - @Test - public void getParaData() throws IOException { - // 交易hash - // String hash = "上一步上链返回的hash"; - String hash = "0xaa09d0cd3f231e8ae6cb3d9456db1ec035bd08143052441e50850c96de082418"; - QueryTransactionResult queryTransaction; - queryTransaction = clientPara.queryTransaction(hash); - System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); - System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); - System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); - System.out.print("上链的数据内容" + HexUtil.hexStringToString(queryTransaction.getTx().getRawpayload())); - - } - - // ========================================== 平行链的场景 end ============================================================== + // 联盟链节点IP + String mainIp = "主链IP"; + // 平行链服务端口 + int mainPort = 8801; + RpcClient clientMain = new RpcClient(mainIp, mainPort); + + // 平行链节点IP + String paraIp = "平行链IP"; + // 平行链服务端口 + int paraPort = 8901; + RpcClient clientPara = new RpcClient(paraIp, paraPort); + + // 上链存证的内容(电子档案上链) + String content = "{\"档案编号\":\"ID0000001\",\"企业代码\":\"QY0000001\",\"业务标识\":\"DA000001\",\"来源系统\":\"OA\", \"文档摘要\",\"0x93689a705ac0bb4612824883060d73d02534f8ba758f5ca21a343beab2bf7b47\"}"; + + // ========================================== 联盟链的场景 start + // ============================================================== + /** + * 内容存证上链 + * + * @throws IOException + */ + @Test + public void writeData() throws IOException { + // 存证智能合约的名称(简单存证,固定就用这个名称) + String execer = "user.write"; + // 合约地址 + String contractAddress = clientMain.convertExectoAddr(execer); + + // + Account account = new Account(); + String privateKey = account.newAccountLocal().getPrivateKey(); + + String txEncode = TransactionUtil.createTransferTx(privateKey, contractAddress, execer, content.getBytes(), + TransactionUtil.DEFAULT_FEE); + + String hash = clientMain.submitTransaction(txEncode); + + System.out.println(hash); + + } + + /** + * 查询 + * + * @throws IOException + */ + @Test + public void getData() throws IOException { + // 交易hash + // String hash = "上一步上链返回的hash"; + String hash = "0xd283df553f62b65306e927677b91052d0a652342acf262ee82c9f43ba519a032"; + QueryTransactionResult queryTransaction; + queryTransaction = clientMain.queryTransaction(hash); + System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); + System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); + System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); + System.out.print("上链的数据内容" + HexUtil.hexStringToString(queryTransaction.getTx().getRawpayload())); + + } + + // ========================================== 联盟链的场景 end + // ============================================================== + + // ========================================== 平行链的场景 start + // ============================================================== + /** + * 内容存证上链 + * + * @throws IOException + */ + @Test + public void writeParaData() throws IOException { + // 存证智能合约的名称(简单存证,固定就用这个名称) + String execer = "user.p.midea.user.write"; + // 合约地址 + String contractAddress = clientPara.convertExectoAddr(execer); + + // 获取签名用的私钥 + Account account = new Account(); + String privateKey = account.newAccountLocal().getPrivateKey(); + // 取当前最大区块高度,用于设置查重范围,如果这个值不设置,默认就会从第0个高度开始查 + // 注意: 这些查的是主链高度,而不是平行链的 + long txHeight = clientMain.getLastHeader().getHeight(); + String txEncode = TransactionUtil.createTransferTx(privateKey, contractAddress, execer, content.getBytes(), + TransactionUtil.DEFAULT_FEE, txHeight); + String hash = clientPara.submitTransaction(txEncode); + + System.out.println(hash); + } + + /** + * 查询 + * + * @throws IOException + */ + @Test + public void getParaData() throws IOException { + // 交易hash + // String hash = "上一步上链返回的hash"; + String hash = "0xaa09d0cd3f231e8ae6cb3d9456db1ec035bd08143052441e50850c96de082418"; + QueryTransactionResult queryTransaction; + queryTransaction = clientPara.queryTransaction(hash); + System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); + System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); + System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); + System.out.print("上链的数据内容" + HexUtil.hexStringToString(queryTransaction.getTx().getRawpayload())); + + } + + // ========================================== 平行链的场景 end + // ============================================================== } diff --git a/src/test/java/cn/chain33/javasdk/model/SimpleStoreGrpc.java b/src/test/java/cn/chain33/javasdk/model/SimpleStoreGrpc.java index 87d0c88..9998f27 100644 --- a/src/test/java/cn/chain33/javasdk/model/SimpleStoreGrpc.java +++ b/src/test/java/cn/chain33/javasdk/model/SimpleStoreGrpc.java @@ -16,104 +16,113 @@ public class SimpleStoreGrpc { - // 区块链节点IP - String mainIp = "区块链ip"; - // 平行链服务端口 - int mainPort = 8801; - int grpcMainPort = 8802; - RpcClient clientMain = new RpcClient(mainIp, mainPort); - - // 平行链节点IP - String paraIp = "区块链ip"; - // 平行链服务端口 - int paraPort = 8901; - int grpcParaPort = 8902; - RpcClient clientPara = new RpcClient(paraIp, paraPort); - // 上链存证的内容(电子档案上链) - String content = "{\"档案编号\":\"ID0000001\",\"企业代码\":\"QY0000001\",\"业务标识\":\"DA000001\",\"来源系统\":\"OA\", \"文档摘要\",\"0x93689a705ac0bb4612824883060d73d02534f8ba758f5ca21a343beab2bf7b47\"}"; - - GrpcClient javaGrpcClient = new GrpcClient(mainIp+mainPort); - GrpcClient javaGrpcClientPara = new GrpcClient(paraIp+grpcParaPort); - - /** - * 内容存证上链 - * @throws IOException - */ - @Test - public void writeData() throws IOException { - // 存证智能合约的名称(简单存证,固定就用这个名称) - String execer = "user.write"; - //jsonrpc - String contractAddress = clientMain.convertExectoAddr(execer); - // 获取签名用的私钥 - Account account = new Account(); - String privateKey = account.newAccountLocal().getPrivateKey(); - - long txHeight = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); - TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTransferTx2(privateKey, contractAddress, execer, content.getBytes(), - TransactionUtil.DEFAULT_FEE, txHeight); - - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(transaction)); - System.out.println("txhash:"+"0x"+HexUtil.toHexString(result.getMsg().toByteArray())); - } - - /** - * 查询 - */ - @Test - public void getData() { - // 交易hash - // String hash = "上一步上链返回的hash"; - String hash = "188bf9a95029557f6157ea9d54282a9b87f88af4082c056cfd86752aed0248c8"; - byte[] hashBytes = HexUtil.fromHexString(hash); - CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)).build(); - TransactionAllProtobuf.TransactionDetail queryTransaction = javaGrpcClient.run(o -> o.queryTransaction(request)); - System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); - System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); - System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); - System.out.print("上链的数据内容" + queryTransaction.getTx().getPayload().toString()); - - } - - // ========================================== 平行链的场景 start ============================================================== - /** - * 内容存证上链 - * @throws IOException - */ - @Test - public void writeParaData() throws IOException { - // 存证智能合约的名称(简单存证,固定就用这个名称) - String execer = "user.p.midea.user.write"; - //jsonrpc - String contractAddress = clientPara.convertExectoAddr(execer); - // 获取签名用的私钥 - Account account = new Account(); - String privateKey = account.newAccountLocal().getPrivateKey(); - - long txHeight = javaGrpcClient.run(o->o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())).getHeight(); - TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTransferTx2(privateKey, contractAddress, execer, content.getBytes(), - TransactionUtil.DEFAULT_FEE, txHeight); - - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(transaction)); - System.out.println("txhash:"+"0x"+HexUtil.toHexString(result.getMsg().toByteArray())); - } - - /** - * 查询 - */ - @Test - public void getParaData() { - // 交易hash - // String hash = "上一步上链返回的hash"; - String hash = "0xd283df553f62b65306e927677b91052d0a652342acf262ee82c9f43ba519a032"; - byte[] hashBytes = HexUtil.fromHexString(hash); - CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)).build(); - System.out.println(request); - TransactionAllProtobuf.TransactionDetail queryTransaction = javaGrpcClientPara.run(o -> o.queryTransaction(request)); - System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); - System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); - System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); - System.out.print("上链的数据内容" + queryTransaction.getTx().getPayload().toString()); - - } + // 区块链节点IP + String mainIp = "区块链ip"; + // 平行链服务端口 + int mainPort = 8801; + int grpcMainPort = 8802; + RpcClient clientMain = new RpcClient(mainIp, mainPort); + + // 平行链节点IP + String paraIp = "区块链ip"; + // 平行链服务端口 + int paraPort = 8901; + int grpcParaPort = 8902; + RpcClient clientPara = new RpcClient(paraIp, paraPort); + // 上链存证的内容(电子档案上链) + String content = "{\"档案编号\":\"ID0000001\",\"企业代码\":\"QY0000001\",\"业务标识\":\"DA000001\",\"来源系统\":\"OA\", \"文档摘要\",\"0x93689a705ac0bb4612824883060d73d02534f8ba758f5ca21a343beab2bf7b47\"}"; + + GrpcClient javaGrpcClient = new GrpcClient(mainIp + mainPort); + GrpcClient javaGrpcClientPara = new GrpcClient(paraIp + grpcParaPort); + + /** + * 内容存证上链 + * + * @throws IOException + */ + @Test + public void writeData() throws IOException { + // 存证智能合约的名称(简单存证,固定就用这个名称) + String execer = "user.write"; + // jsonrpc + String contractAddress = clientMain.convertExectoAddr(execer); + // 获取签名用的私钥 + Account account = new Account(); + String privateKey = account.newAccountLocal().getPrivateKey(); + + long txHeight = javaGrpcClient.run(o -> o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())) + .getHeight(); + TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTransferTx2(privateKey, contractAddress, + execer, content.getBytes(), TransactionUtil.DEFAULT_FEE, txHeight); + + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(transaction)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); + } + + /** + * 查询 + */ + @Test + public void getData() { + // 交易hash + // String hash = "上一步上链返回的hash"; + String hash = "188bf9a95029557f6157ea9d54282a9b87f88af4082c056cfd86752aed0248c8"; + byte[] hashBytes = HexUtil.fromHexString(hash); + CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)) + .build(); + TransactionAllProtobuf.TransactionDetail queryTransaction = javaGrpcClient + .run(o -> o.queryTransaction(request)); + System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); + System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); + System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); + System.out.print("上链的数据内容" + queryTransaction.getTx().getPayload().toString()); + + } + + // ========================================== 平行链的场景 start + // ============================================================== + /** + * 内容存证上链 + * + * @throws IOException + */ + @Test + public void writeParaData() throws IOException { + // 存证智能合约的名称(简单存证,固定就用这个名称) + String execer = "user.p.midea.user.write"; + // jsonrpc + String contractAddress = clientPara.convertExectoAddr(execer); + // 获取签名用的私钥 + Account account = new Account(); + String privateKey = account.newAccountLocal().getPrivateKey(); + + long txHeight = javaGrpcClient.run(o -> o.getLastHeader(CommonProtobuf.ReqNil.newBuilder().build())) + .getHeight(); + TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTransferTx2(privateKey, contractAddress, + execer, content.getBytes(), TransactionUtil.DEFAULT_FEE, txHeight); + + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(transaction)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); + } + + /** + * 查询 + */ + @Test + public void getParaData() { + // 交易hash + // String hash = "上一步上链返回的hash"; + String hash = "0xd283df553f62b65306e927677b91052d0a652342acf262ee82c9f43ba519a032"; + byte[] hashBytes = HexUtil.fromHexString(hash); + CommonProtobuf.ReqHash request = CommonProtobuf.ReqHash.newBuilder().setHash(ByteString.copyFrom(hashBytes)) + .build(); + System.out.println(request); + TransactionAllProtobuf.TransactionDetail queryTransaction = javaGrpcClientPara + .run(o -> o.queryTransaction(request)); + System.out.println("交易所在的区块高度:" + queryTransaction.getHeight()); + System.out.println("区块的打包时间:" + queryTransaction.getBlocktime()); + System.out.println("从哪个用户发出:" + queryTransaction.getFromaddr()); + System.out.print("上链的数据内容" + queryTransaction.getTx().getPayload().toString()); + + } } diff --git a/src/test/java/cn/chain33/javasdk/model/StorageTest.java b/src/test/java/cn/chain33/javasdk/model/StorageTest.java index b332b0a..2e9282b 100644 --- a/src/test/java/cn/chain33/javasdk/model/StorageTest.java +++ b/src/test/java/cn/chain33/javasdk/model/StorageTest.java @@ -22,162 +22,168 @@ import io.grpc.StatusRuntimeException; /** - * 包含内容存证, 哈希存证,链接存证,隐私存证,分享隐私存证几个接口(联盟链场景) + * 包含内容存证, 哈希存证,链接存证,隐私存证,分享隐私存证几个接口(联盟链场景) + * * @author fkeit */ public class StorageTest { - - // 联盟链节点IP - String ip = "ip"; - // 平行链服务端口 - int port = 8801; - int gprcPort = 8802; + + // 联盟链节点IP + String ip = "ip"; + // 平行链服务端口 + int port = 8801; + int gprcPort = 8802; RpcClient client = new RpcClient(ip, port); - GrpcClient javaGrpcClient = new GrpcClient(ip+":"+gprcPort,null); + GrpcClient javaGrpcClient = new GrpcClient(ip + ":" + gprcPort, null); String content = "疫情发生后,NPO法人仁心会联合日本湖北总商会等四家机构第一时间向湖北捐赠3800套杜邦防护服,包装纸箱上用中文写有“岂曰无衣,与子同裳”。这句诗词出自《诗经·秦风·无衣》,翻译成白话的意思是“谁说我们没衣穿?与你同穿那战裙”。不料,这句诗词在社交媒体上引发热议,不少网民赞叹日本人的文学造诣。实际上,NPO法人仁心会是一家在日华人组织,由在日或有留日背景的医药保健从业者以及相关公司组成的新生公益组织。NPO法人仁心会事务局告诉环球时报-环球网记者,由于第一批捐赠物资是防护服,“岂曰无衣,与子同裳”恰好可以表达海外华人华侨与一线医护人员共同战胜病毒的同仇敌忾之情,流露出对同胞的守护之爱。"; - - /** - * 内容存证 - * @throws IOException - */ - @Test - public void contentStore() throws IOException { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String txEncode = StorageUtil.createOnlyNotaryStorage(content.getBytes(), execer, privateKey); - String submitTransaction = client.submitTransaction(txEncode); - System.out.println(submitTransaction); - - } - - /** - * 内容存证,KV字符串存储 - * @throws IOException - */ - @Test - public void kvStore() throws InterruptedException, IOException { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - // 唯一索引 - String key= "project20210709"; - String value1="01工序===="; - - String txEncode = StorageUtil.createOnlyNotaryStorage(key,value1,0, execer, privateKey); - String submitTransaction = client.submitTransaction(txEncode); - System.out.println(submitTransaction); + + /** + * 内容存证 + * + * @throws IOException + */ + @Test + public void contentStore() throws IOException { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String txEncode = StorageUtil.createOnlyNotaryStorage(content.getBytes(), execer, privateKey); + String submitTransaction = client.submitTransaction(txEncode); + System.out.println(submitTransaction); + + } + + /** + * 内容存证,KV字符串存储 + * + * @throws IOException + */ + @Test + public void kvStore() throws InterruptedException, IOException { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + // 唯一索引 + String key = "project20210709"; + String value1 = "01工序===="; + + String txEncode = StorageUtil.createOnlyNotaryStorage(key, value1, 0, execer, privateKey); + String submitTransaction = client.submitTransaction(txEncode); + System.out.println(submitTransaction); TimeUnit.SECONDS.sleep(5); - + getData(key); - //更新键值,add value2 - String value2="02工序===="; - txEncode = StorageUtil.createOnlyNotaryStorage(key,value2,1, execer, privateKey); - submitTransaction = client.submitTransaction(txEncode); - System.out.println(submitTransaction); + // 更新键值,add value2 + String value2 = "02工序===="; + txEncode = StorageUtil.createOnlyNotaryStorage(key, value2, 1, execer, privateKey); + submitTransaction = client.submitTransaction(txEncode); + System.out.println(submitTransaction); TimeUnit.SECONDS.sleep(5); getData(key); - } - - /** - * 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 - * @throws IOException - */ - @Test - public void hashStore() throws IOException { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - String txEncode = StorageUtil.createHashStorage(contentHash, execer, privateKey); - String submitTransaction = client.submitTransaction(txEncode); - System.out.println(submitTransaction); - - } - + } + + /** + * 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 + * + * @throws IOException + */ + @Test + public void hashStore() throws IOException { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + String txEncode = StorageUtil.createHashStorage(contentHash, execer, privateKey); + String submitTransaction = client.submitTransaction(txEncode); + System.out.println(submitTransaction); + + } + /** * 链接存证模型 - * @throws IOException + * + * @throws IOException */ - @Test - public void hashAndLinkStore() throws IOException { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String link = "https://cs.33.cn/product?hash=13mBHrKBxGjoyzdej4bickPPPupejAGvXr"; - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - String txEncode = StorageUtil.createLinkNotaryStorage(link.getBytes(), contentHash, execer, privateKey); - String submitTransaction = client.submitTransaction(txEncode); - System.out.println(submitTransaction); - - } - + @Test + public void hashAndLinkStore() throws IOException { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String link = "https://cs.33.cn/product?hash=13mBHrKBxGjoyzdej4bickPPPupejAGvXr"; + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + String txEncode = StorageUtil.createLinkNotaryStorage(link.getBytes(), contentHash, execer, privateKey); + String submitTransaction = client.submitTransaction(txEncode); + System.out.println(submitTransaction); + + } + /** * 隐私存证模型 - * @throws Exception + * + * @throws Exception + */ + @Test + public void EncryptNotaryStore() throws Exception { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + + // 生成AES加密KEY + String aesKeyHex = "ba940eabdf09ee0f37f8766841eee763"; + // 可用该方法生成 AesUtil.generateDesKey(128); + byte[] key = HexUtil.fromHexString(aesKeyHex); + System.out.println("key:" + HexUtil.toHexString(key)); + // 生成iv + byte[] iv = AesUtil.generateIv(); + // 对明文进行加密 + byte[] encrypt = AesUtil.encrypt(content, key, iv); + String decrypt = AesUtil.decrypt(encrypt, HexUtil.toHexString(key)); + System.out.println("decrypt:" + decrypt); + byte[] contentHash = TransactionUtil.Sha256(content.getBytes("utf-8")); + String txEncode = StorageUtil.createEncryptNotaryStorage(encrypt, contentHash, iv, "", "", execer, privateKey); + String submitTransaction = client.submitTransaction(txEncode); + System.out.println(submitTransaction); + + } + + /** + * 根据hash查询存证结果 + * + * @throws IOException */ - @Test - public void EncryptNotaryStore() throws Exception { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - - // 生成AES加密KEY - String aesKeyHex = "ba940eabdf09ee0f37f8766841eee763"; - //可用该方法生成 AesUtil.generateDesKey(128); - byte[] key = HexUtil.fromHexString(aesKeyHex); - System.out.println("key:" + HexUtil.toHexString(key)); - // 生成iv - byte[] iv = AesUtil.generateIv(); - // 对明文进行加密 - byte[] encrypt = AesUtil.encrypt(content, key, iv); - String decrypt = AesUtil.decrypt(encrypt, HexUtil.toHexString(key)); - System.out.println("decrypt:" + decrypt); - byte[] contentHash = TransactionUtil.Sha256(content.getBytes("utf-8")); - String txEncode = StorageUtil.createEncryptNotaryStorage(encrypt,contentHash, iv, "", "", execer, privateKey); - String submitTransaction = client.submitTransaction(txEncode); - System.out.println(submitTransaction); - - } - - - /** - * 根据hash查询存证结果 - * @throws IOException - */ - @Test - public void queryStorage() throws IOException { - // contentStore - JSONObject resultJson = client.queryStorage("project20210708"); - - JSONObject resultArray; + @Test + public void queryStorage() throws IOException { + // contentStore + JSONObject resultJson = client.queryStorage("project20210708"); + + JSONObject resultArray; if (resultJson.containsKey("linkStorage")) { - // hash及link型存证 - resultArray = resultJson.getJSONObject("linkStorage"); - String link = resultArray.getString("link"); - String hash = resultArray.getString("hash"); - byte[] linkByte = HexUtil.fromHexString(link); - String linkresult = new String(linkByte,"UTF-8"); - System.out.println("存证link是:" + linkresult); - System.out.println("存证hash是:" + hash); + // hash及link型存证 + resultArray = resultJson.getJSONObject("linkStorage"); + String link = resultArray.getString("link"); + String hash = resultArray.getString("hash"); + byte[] linkByte = HexUtil.fromHexString(link); + String linkresult = new String(linkByte, "UTF-8"); + System.out.println("存证link是:" + linkresult); + System.out.println("存证hash是:" + hash); } else if (resultJson.containsKey("hashStorage")) { - // hash型存证解析 - resultArray = resultJson.getJSONObject("hashStorage"); - String hash = resultArray.getString("hash"); - System.out.println("链上读取的hash是:" + hash); - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - String result = HexUtil.toHexString(contentHash); - System.out.println("存证前的hash是:" + result); + // hash型存证解析 + resultArray = resultJson.getJSONObject("hashStorage"); + String hash = resultArray.getString("hash"); + System.out.println("链上读取的hash是:" + hash); + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + String result = HexUtil.toHexString(contentHash); + System.out.println("存证前的hash是:" + result); } else if (resultJson.containsKey("encryptStorage")) { - //隐私存证 + // 隐私存证 String desKey = "ba940eabdf09ee0f37f8766841eee763"; resultArray = resultJson.getJSONObject("encryptStorage"); String content = resultArray.getString("encryptContent"); @@ -185,179 +191,183 @@ public void queryStorage() throws IOException { String decrypt = AesUtil.decrypt(fromHexString, desKey); System.out.println(decrypt); } else { - // 内容型存证解析 - resultArray = resultJson.getJSONObject("contentStorage"); - String content = resultArray.getString("content"); - byte[] contentByte = HexUtil.fromHexString(content); - String result = new String(contentByte,"UTF-8"); - System.out.println("存证内容是:" + result); + // 内容型存证解析 + resultArray = resultJson.getJSONObject("contentStorage"); + String content = resultArray.getString("content"); + byte[] contentByte = HexUtil.fromHexString(content); + String result = new String(contentByte, "UTF-8"); + System.out.println("存证内容是:" + result); + } + } + + // ==Grpc + /** + * 内容存证 + */ + @Test + public void contentStoreGrpc() { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + TransactionAllProtobuf.Transaction tx = StorageUtil.createOnlyNotaryStorageGrpc(content.getBytes(), execer, + privateKey); + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(tx)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); + + } + + /** + * 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 + */ + @Test + public void hashStoreGrpc() { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + TransactionAllProtobuf.Transaction tx = StorageUtil.createHashStorageGrpc(contentHash, execer, privateKey); + try { + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(tx)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); + } catch (StatusRuntimeException e) { + e.printStackTrace(); + System.out.println(e.getMessage()); } - } - - //==Grpc - /** - * 内容存证 - */ - @Test - public void contentStoreGrpc() { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - TransactionAllProtobuf.Transaction tx = StorageUtil.createOnlyNotaryStorageGrpc(content.getBytes(), execer, privateKey); - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(tx)); - System.out.println("txhash:"+"0x"+HexUtil.toHexString(result.getMsg().toByteArray())); - - } - - /** - * 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 - */ - @Test - public void hashStoreGrpc() { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - TransactionAllProtobuf.Transaction tx = StorageUtil.createHashStorageGrpc(contentHash, execer, privateKey); - try { - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(tx)); - System.out.println("txhash:"+"0x"+HexUtil.toHexString(result.getMsg().toByteArray())); - } catch (StatusRuntimeException e) { - e.printStackTrace(); - System.out.println(e.getMessage()); - } - } - - /** - * 链接存证模型 - */ - @Test - public void hashAndLinkStoreGrpc() { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String link = "https://cs.33.cn/product?hash=13mBHrKBxGjoyzdej4bickPPPupejAGvXr"; - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - TransactionAllProtobuf.Transaction tx = StorageUtil.createLinkNotaryStorageGrpc(link.getBytes(), contentHash, execer, privateKey); - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(tx)); - System.out.println("txhash:"+"0x"+HexUtil.toHexString(result.getMsg().toByteArray())); - - } - - /** - * 隐私存证模型 - * @throws Exception - */ - @Test - public void EncryptNotaryStoreGrpc() throws Exception { - // 存证智能合约的名称 - String execer = "storage"; - // 签名用的私钥 - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - - // 生成AES加密KEY - String aesKeyHex = "ba940eabdf09ee0f37f8766841eee763"; - //可用该方法生成 AesUtil.generateDesKey(128); - byte[] key = HexUtil.fromHexString(aesKeyHex); - System.out.println("key:" + HexUtil.toHexString(key)); - // 生成iv - byte[] iv = AesUtil.generateIv(); - // 对明文进行加密 - byte[] encrypt = AesUtil.encrypt(content, key, iv); - String decrypt = AesUtil.decrypt(encrypt, HexUtil.toHexString(key)); - System.out.println("decrypt:" + decrypt); - byte[] contentHash = TransactionUtil.Sha256(content.getBytes("utf-8")); - TransactionAllProtobuf.Transaction tx = StorageUtil.createEncryptNotaryStorageGrpc(encrypt,contentHash, iv, "", "", execer, privateKey); - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(tx)); - System.out.println("txhash:"+"0x"+HexUtil.toHexString(result.getMsg().toByteArray())); - - } - - - /** - * 根据hash查询存证结果 - * @throws UnsupportedEncodingException - */ - @Test - public void queryStorageGrpc() throws UnsupportedEncodingException { - // 存证智能合约的名称 - String execer = "storage"; - String funcName = "QueryStorage"; - //String hash = "0x401f043696500030d49a511505b5c703e943382082b1154880e753acacb3d443"; - String hash = "0x777da1c63b7fbd56fb4c877661a93163c766b1456f027b8b06b305363c0e7313"; - // contentStore - StorageProtobuf.QueryStorage queryStorage = StorageProtobuf.QueryStorage.newBuilder().setTxHash(hash).build(); - BlockchainProtobuf.ChainExecutor query = BlockchainProtobuf.ChainExecutor.newBuilder().setFuncName(funcName).setDriver(execer).setParam(queryStorage.toByteString()).build(); - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.queryChain(query)); - StorageProtobuf.Storage storage = null; - if (result.getIsOk()) { - try { - storage = StorageProtobuf.Storage.parseFrom(result.getMsg().toByteArray()); - System.out.println("storage:"+storage); - } catch (InvalidProtocolBufferException e) { - e.printStackTrace(); - } - } - int ty = storage.getTy(); - switch (ty) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - default: - System.out.println("action not found"); - } -// JSONObject resultArray; -// if (resultJson.containsKey("linkStorage")) { -// // hash及link型存证 -// resultArray = resultJson.getJSONObject("linkStorage"); -// String link = resultArray.getString("link"); -// String hash = resultArray.getString("hash"); -// byte[] linkByte = HexUtil.fromHexString(link); -// String linkresult = new String(linkByte,"UTF-8"); -// System.out.println("存证link是:" + linkresult); -// System.out.println("存证hash是:" + hash); -// } else if (resultJson.containsKey("hashStorage")) { -// // hash型存证解析 -// resultArray = resultJson.getJSONObject("hashStorage"); -// String hash = resultArray.getString("hash"); -// System.out.println("链上读取的hash是:" + hash); -// byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); -// String result = HexUtil.toHexString(contentHash); -// System.out.println("存证前的hash是:" + result); -// } else if (resultJson.containsKey("encryptStorage")) { -// //隐私存证 -// String desKey = "ba940eabdf09ee0f37f8766841eee763"; -// resultArray = resultJson.getJSONObject("encryptStorage"); -// String content = resultArray.getString("encryptContent"); -// byte[] fromHexString = HexUtil.fromHexString(content); -// String decrypt = AesUtil.decrypt(fromHexString, desKey); -// System.out.println(decrypt); -// } else { -// // 内容型存证解析 -// resultArray = resultJson.getJSONObject("contentStorage"); -// String content = resultArray.getString("content"); -// byte[] contentByte = HexUtil.fromHexString(content); -// String result = new String(contentByte,"UTF-8"); -// System.out.println("存证内容是:" + result); -// } - } - - - private void getData(String key) throws IOException { - - JSONObject resultJson = client.queryStorage(key); - JSONObject resultArray; - resultArray = resultJson.getJSONObject("contentStorage"); - String key1 = resultArray.getString("key"); - String value = resultArray.getString("value"); - System.out.println("存证的key值是:" + key1 + " 存证的value值是:" + value); - - } + } + + /** + * 链接存证模型 + */ + @Test + public void hashAndLinkStoreGrpc() { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String link = "https://cs.33.cn/product?hash=13mBHrKBxGjoyzdej4bickPPPupejAGvXr"; + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + TransactionAllProtobuf.Transaction tx = StorageUtil.createLinkNotaryStorageGrpc(link.getBytes(), contentHash, + execer, privateKey); + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(tx)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); + + } + + /** + * 隐私存证模型 + * + * @throws Exception + */ + @Test + public void EncryptNotaryStoreGrpc() throws Exception { + // 存证智能合约的名称 + String execer = "storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + + // 生成AES加密KEY + String aesKeyHex = "ba940eabdf09ee0f37f8766841eee763"; + // 可用该方法生成 AesUtil.generateDesKey(128); + byte[] key = HexUtil.fromHexString(aesKeyHex); + System.out.println("key:" + HexUtil.toHexString(key)); + // 生成iv + byte[] iv = AesUtil.generateIv(); + // 对明文进行加密 + byte[] encrypt = AesUtil.encrypt(content, key, iv); + String decrypt = AesUtil.decrypt(encrypt, HexUtil.toHexString(key)); + System.out.println("decrypt:" + decrypt); + byte[] contentHash = TransactionUtil.Sha256(content.getBytes("utf-8")); + TransactionAllProtobuf.Transaction tx = StorageUtil.createEncryptNotaryStorageGrpc(encrypt, contentHash, iv, "", + "", execer, privateKey); + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(tx)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); + + } + + /** + * 根据hash查询存证结果 + * + * @throws UnsupportedEncodingException + */ + @Test + public void queryStorageGrpc() throws UnsupportedEncodingException { + // 存证智能合约的名称 + String execer = "storage"; + String funcName = "QueryStorage"; + // String hash = "0x401f043696500030d49a511505b5c703e943382082b1154880e753acacb3d443"; + String hash = "0x777da1c63b7fbd56fb4c877661a93163c766b1456f027b8b06b305363c0e7313"; + // contentStore + StorageProtobuf.QueryStorage queryStorage = StorageProtobuf.QueryStorage.newBuilder().setTxHash(hash).build(); + BlockchainProtobuf.ChainExecutor query = BlockchainProtobuf.ChainExecutor.newBuilder().setFuncName(funcName) + .setDriver(execer).setParam(queryStorage.toByteString()).build(); + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.queryChain(query)); + StorageProtobuf.Storage storage = null; + if (result.getIsOk()) { + try { + storage = StorageProtobuf.Storage.parseFrom(result.getMsg().toByteArray()); + System.out.println("storage:" + storage); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + } + int ty = storage.getTy(); + switch (ty) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + default: + System.out.println("action not found"); + } + // JSONObject resultArray; + // if (resultJson.containsKey("linkStorage")) { + // // hash及link型存证 + // resultArray = resultJson.getJSONObject("linkStorage"); + // String link = resultArray.getString("link"); + // String hash = resultArray.getString("hash"); + // byte[] linkByte = HexUtil.fromHexString(link); + // String linkresult = new String(linkByte,"UTF-8"); + // System.out.println("存证link是:" + linkresult); + // System.out.println("存证hash是:" + hash); + // } else if (resultJson.containsKey("hashStorage")) { + // // hash型存证解析 + // resultArray = resultJson.getJSONObject("hashStorage"); + // String hash = resultArray.getString("hash"); + // System.out.println("链上读取的hash是:" + hash); + // byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + // String result = HexUtil.toHexString(contentHash); + // System.out.println("存证前的hash是:" + result); + // } else if (resultJson.containsKey("encryptStorage")) { + // //隐私存证 + // String desKey = "ba940eabdf09ee0f37f8766841eee763"; + // resultArray = resultJson.getJSONObject("encryptStorage"); + // String content = resultArray.getString("encryptContent"); + // byte[] fromHexString = HexUtil.fromHexString(content); + // String decrypt = AesUtil.decrypt(fromHexString, desKey); + // System.out.println(decrypt); + // } else { + // // 内容型存证解析 + // resultArray = resultJson.getJSONObject("contentStorage"); + // String content = resultArray.getString("content"); + // byte[] contentByte = HexUtil.fromHexString(content); + // String result = new String(contentByte,"UTF-8"); + // System.out.println("存证内容是:" + result); + // } + } + + private void getData(String key) throws IOException { + + JSONObject resultJson = client.queryStorage(key); + JSONObject resultArray; + resultArray = resultJson.getJSONObject("contentStorage"); + String key1 = resultArray.getString("key"); + String value = resultArray.getString("value"); + System.out.println("存证的key值是:" + key1 + " 存证的value值是:" + value); + + } } diff --git a/src/test/java/cn/chain33/javasdk/model/TokenAllianceTest.java b/src/test/java/cn/chain33/javasdk/model/TokenAllianceTest.java index 2cf8ecb..db25088 100644 --- a/src/test/java/cn/chain33/javasdk/model/TokenAllianceTest.java +++ b/src/test/java/cn/chain33/javasdk/model/TokenAllianceTest.java @@ -12,130 +12,130 @@ import cn.chain33.javasdk.utils.TransactionUtil; /** - * 联盟链上token的发行,转账。 适用场景:联盟链 (联盟链和平行链的区别是:前者不用代扣交易,而后面需要构造代扣交易) - * - * 包含积分名称黑名单,积分的预发行,积分发行,积分增发,积分查询等接口 - * 积分发行步骤: - * 1. 通过当前链的超级管理员来配置自定义积分的黑名单(全局配置:通常情况下只需要执行一次)。 - * 2. 通过当前链的超级管理员来配置自定义积分的审核者(全局配置:通常情况下只需要执行一次)。 - * 3. 通过积分审核者来预发行自定义积分。 - * 4. 通过积分审核者来正式发行自定义积分。 + * 联盟链上token的发行,转账。 适用场景:联盟链 (联盟链和平行链的区别是:前者不用代扣交易,而后面需要构造代扣交易) + * + * 包含积分名称黑名单,积分的预发行,积分发行,积分增发,积分查询等接口 积分发行步骤: 1. 通过当前链的超级管理员来配置自定义积分的黑名单(全局配置:通常情况下只需要执行一次)。 2. + * 通过当前链的超级管理员来配置自定义积分的审核者(全局配置:通常情况下只需要执行一次)。 3. 通过积分审核者来预发行自定义积分。 4. 通过积分审核者来正式发行自定义积分。 + * * @author fkeit */ public class TokenAllianceTest { - String ip = "fd.33.cn"; RpcClient client = new RpcClient(ip, 1263); - - + /** * - * @throws Exception + * @throws Exception + * * @description 创建自定义积分的黑名单 * */ @Test public void createBlackList() throws Exception { - // 管理合约名称 - String execerName = "manage"; - // 管理合约:配置黑名单KEY - String key = "token-blacklist"; - // 管理合约:配置黑名单VALUE - String value = "BTC"; - // 管理合约:配置操作符 - String op = "add"; - // 当前链管理员私钥(superManager) - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - // 构造并签名交易,使用链的管理员(superManager)进行签名, - // 55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4 对应的测试地址是:1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 - String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); - // 发送交易 - String hash = client.submitTransaction(txEncode); - System.out.print(hash); + // 管理合约名称 + String execerName = "manage"; + // 管理合约:配置黑名单KEY + String key = "token-blacklist"; + // 管理合约:配置黑名单VALUE + String value = "BTC"; + // 管理合约:配置操作符 + String op = "add"; + // 当前链管理员私钥(superManager) + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + // 构造并签名交易,使用链的管理员(superManager)进行签名, + // 55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4 对应的测试地址是:1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 + String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); + // 发送交易 + String hash = client.submitTransaction(txEncode); + System.out.print(hash); } - + /** * - * @throws Exception + * @throws Exception + * * @description 创建自定义积分的token-finisher * */ @Test public void createTokenFinisher() throws Exception { - // 管理合约名称 - String execerName = "manage"; - // 管理合约:配置KEY - String key = "token-finisher"; - // 管理合约:配置VALUE,用于审核token的创建 - String value = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; - // 管理合约:配置操作符 - String op = "add"; - // 当前链管理员私钥(superManager) - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - // 构造并签名交易,使用链的管理员(superManager)进行签名, - // 55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4 对应的测试地址是:1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 - String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); - // 发送交易 - String hash = client.submitTransaction(txEncode); - System.out.print(hash); - + // 管理合约名称 + String execerName = "manage"; + // 管理合约:配置KEY + String key = "token-finisher"; + // 管理合约:配置VALUE,用于审核token的创建 + String value = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; + // 管理合约:配置操作符 + String op = "add"; + // 当前链管理员私钥(superManager) + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + // 构造并签名交易,使用链的管理员(superManager)进行签名, + // 55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4 对应的测试地址是:1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 + String txEncode = TransactionUtil.createManage(key, value, op, privateKey, execerName); + // 发送交易 + String hash = client.submitTransaction(txEncode); + System.out.print(hash); + } - - /** - * 本地预创建token并提交 - * @throws IOException - */ - @Test - public void preCreateTokenLocal() throws IOException { - //token总额 - long total = 19900000000000000L; - //token的注释名称 - String name = "随意币"; - //token的名称,只支持大写字母,同一条链不允许相同symbol存在 - String symbol = "SYB"; - //token介绍 - String introduction = "随意币"; - //发行token愿意承担的费用,填0就行 - Long price = 0L; - //0 为普通token, 1 可增发和燃烧 - Integer category = 0; - //合约名称 - String execer = "token"; - //token的拥有者地址 - String owner = "1P65dWM7b6J1BoyHKay95EqviEhpaHF4vS"; - //链超级管理员私钥 - String managerPrivateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String precreateTx = TransactionUtil.createPrecreateTokenTx(execer, name, symbol, introduction, total, price, - owner, category, managerPrivateKey); - String submitTransaction = client.submitTransaction(precreateTx); - System.out.println(submitTransaction); - } - - /** - * 本地创建token完成交易并提交 - * @throws IOException - */ - @Test - public void createTokenFinishLocal() throws IOException { - String symbol = "SYB"; - String execer = "token"; - String managerPrivateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String owner = "1P65dWM7b6J1BoyHKay95EqviEhpaHF4vS"; - String hexData = TransactionUtil.createTokenFinishTx(symbol, execer, owner, managerPrivateKey); - String submitTransaction = client.submitTransaction(hexData); - System.out.println(submitTransaction); - } - + + /** + * 本地预创建token并提交 + * + * @throws IOException + */ + @Test + public void preCreateTokenLocal() throws IOException { + // token总额 + long total = 19900000000000000L; + // token的注释名称 + String name = "随意币"; + // token的名称,只支持大写字母,同一条链不允许相同symbol存在 + String symbol = "SYB"; + // token介绍 + String introduction = "随意币"; + // 发行token愿意承担的费用,填0就行 + Long price = 0L; + // 0 为普通token, 1 可增发和燃烧 + Integer category = 0; + // 合约名称 + String execer = "token"; + // token的拥有者地址 + String owner = "1P65dWM7b6J1BoyHKay95EqviEhpaHF4vS"; + // 链超级管理员私钥 + String managerPrivateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String precreateTx = TransactionUtil.createPrecreateTokenTx(execer, name, symbol, introduction, total, price, + owner, category, managerPrivateKey); + String submitTransaction = client.submitTransaction(precreateTx); + System.out.println(submitTransaction); + } + /** - * @throws IOException + * 本地创建token完成交易并提交 + * + * @throws IOException + */ + @Test + public void createTokenFinishLocal() throws IOException { + String symbol = "SYB"; + String execer = "token"; + String managerPrivateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String owner = "1P65dWM7b6J1BoyHKay95EqviEhpaHF4vS"; + String hexData = TransactionUtil.createTokenFinishTx(symbol, execer, owner, managerPrivateKey); + String submitTransaction = client.submitTransaction(hexData); + System.out.println(submitTransaction); + } + + /** + * @throws IOException + * * @description 本地构造token转账交易 */ @Test public void createTokenTransfer() throws IOException { - // 转账说明 + // 转账说明 String note = "转账说明"; // token名 String coinToken = "SYB"; @@ -145,33 +145,35 @@ public void createTokenTransfer() throws IOException { String fromAddressPriveteKey = "0xf261df5c656d097fd41f0e31a1b322a506b20998bf79468e4b7b02700eb7c25a"; // 执行器名称 String execer = "token"; - String createTransferTx = TransactionUtil.createTokenTransferTx(fromAddressPriveteKey, to, execer, amount, coinToken, note); + String createTransferTx = TransactionUtil.createTokenTransferTx(fromAddressPriveteKey, to, execer, amount, + coinToken, note); String txHash = client.submitTransaction(createTransferTx); System.out.println(txHash); } - + /** * - * @throws IOException + * @throws IOException + * * @description 查询已经创建的token * */ @Test public void queryCreateTokens() throws IOException { String execer = "token"; - //状态 0预创建的 1创建成功的 + // 状态 0预创建的 1创建成功的 Integer status = 1; List queryCreateTokens; - queryCreateTokens = client.queryCreateTokens(status,execer); + queryCreateTokens = client.queryCreateTokens(status, execer); for (TokenResult tokenResult : queryCreateTokens) { System.out.println(tokenResult); } } - - + /** * - * @throws IOException + * @throws IOException + * * @description 查询token余额 * */ diff --git a/src/test/java/cn/chain33/javasdk/model/WasmTest.java b/src/test/java/cn/chain33/javasdk/model/WasmTest.java index e1e143f..a685839 100644 --- a/src/test/java/cn/chain33/javasdk/model/WasmTest.java +++ b/src/test/java/cn/chain33/javasdk/model/WasmTest.java @@ -17,7 +17,8 @@ import java.io.IOException; /** - * wasm交易构造列子 + * wasm交易构造列子 + * * @author szh */ public class WasmTest { @@ -30,68 +31,73 @@ public class WasmTest { Boolean isPara = false; String title = "user.p.test."; - /* - * 创建wasm合约 调用wasm合约 更新wasm合约 调用旧wasm合约 调用新wasm合约 + * 创建wasm合约 调用wasm合约 更新wasm合约 调用旧wasm合约 调用新wasm合约 * */ @Test public void testWasmAll() throws Exception { String contractName = "test9"; if (isPara == true) { - execer = title+execer; + execer = title + execer; } System.out.println("===========>生成wasm合约<==========="); byte[] codes = getWasmContent("test/wasm/dice.wasm"); // 从文件加载账户 Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); // 加载用户证书 byte[] certBytes = CertUtils.getCertFromFile("./authdir/crypto/org1/user1/cacerts/org1-cert.pem"); - WasmProtobuf.wasmAction create = WasmUtil.createWasmContract(contractName,codes); - String createTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, create.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + WasmProtobuf.wasmAction create = WasmUtil.createWasmContract(contractName, codes); + String createTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, create.toByteArray(), + SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String createHash = chain33client.submitTransaction(createTx); - System.out.println("hash:"+createHash); + System.out.println("hash:" + createHash); System.out.println("===========>生成wasm合约<==========="); System.out.println("===========>调用wasm合约<==========="); String method = "play"; - int[] parameters = new int[]{1,2}; - String[] envs = new String[]{"test1","test2"}; - WasmProtobuf.wasmAction call = WasmUtil.createWasmCallContract(contractName,method,parameters,null); - String callTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, call.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + int[] parameters = new int[] { 1, 2 }; + String[] envs = new String[] { "test1", "test2" }; + WasmProtobuf.wasmAction call = WasmUtil.createWasmCallContract(contractName, method, parameters, null); + String callTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, call.toByteArray(), + SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String callHash = chain33client.submitTransaction(callTx); - System.out.println("hash:"+callHash); + System.out.println("hash:" + callHash); System.out.println("===========>调用wasm合约<==========="); System.out.println("===========>更新wasm合约<==========="); - byte[] newCodes = getWasmContent("test/wasm/evidence.wasm"); - WasmProtobuf.wasmAction update = WasmUtil.updateWasmContract(contractName,newCodes); - String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, update.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + byte[] newCodes = getWasmContent("test/wasm/evidence.wasm"); + WasmProtobuf.wasmAction update = WasmUtil.updateWasmContract(contractName, newCodes); + String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, + update.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String hash = chain33client.submitTransaction(transactionHash); - System.out.println("hash:"+hash); + System.out.println("hash:" + hash); System.out.println("===========>更新wasm合约<==========="); System.out.println("===========>调用旧wasm合约<==========="); String oldMethod = "play"; - WasmProtobuf.wasmAction oldCall = WasmUtil.createWasmCallContract(contractName,oldMethod,parameters,null); - String oldCallTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, oldCall.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + WasmProtobuf.wasmAction oldCall = WasmUtil.createWasmCallContract(contractName, oldMethod, parameters, null); + String oldCallTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, oldCall.toByteArray(), + SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String oldCallHash = chain33client.submitTransaction(oldCallTx); - System.out.println("hash:"+oldCallHash); + System.out.println("hash:" + oldCallHash); System.out.println("===========>调用旧wasm合约<==========="); System.out.println("===========>调用新wasm合约<==========="); String newMethod = "AddStateTx"; - WasmProtobuf.wasmAction newCall = WasmUtil.createWasmCallContract(contractName,newMethod,null,envs); - String newCallTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, newCall.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + WasmProtobuf.wasmAction newCall = WasmUtil.createWasmCallContract(contractName, newMethod, null, envs); + String newCallTx = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, newCall.toByteArray(), + SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String newCallHash = chain33client.submitTransaction(newCallTx); - System.out.println("hash:"+newCallHash); + System.out.println("hash:" + newCallHash); System.out.println("===========>调用新wasm合约<==========="); } @@ -103,26 +109,28 @@ public void testWasmAll() throws Exception { public void createWasmContract() throws Exception { String contractName = "test1"; if (isPara == true) { - execer = title+execer; + execer = title + execer; } byte[] codes = getWasmContent("test/wasm/dice.wasm"); - System.out.println("codes length"+codes.length); + System.out.println("codes length" + codes.length); // 从文件加载账户 Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); // 加载用户证书 byte[] certBytes = CertUtils.getCertFromFile("./authdir/crypto/org1/user1/cacerts/org1-cert.pem"); // 构造交易 -// WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); -// builder.setName(contractName); -// builder.setCode(ByteString.copyFrom(codes)); -// byte[] reqBytes = builder.build().toByteArray(); + // WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); + // builder.setName(contractName); + // builder.setCode(ByteString.copyFrom(codes)); + // byte[] reqBytes = builder.build().toByteArray(); System.out.println(accountInfo); - WasmProtobuf.wasmAction create = WasmUtil.createWasmContract(contractName,codes); - String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, create.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + WasmProtobuf.wasmAction create = WasmUtil.createWasmContract(contractName, codes); + String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, + create.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String hash = chain33client.submitTransaction(transactionHash); - System.out.println("hash:"+hash); + System.out.println("hash:" + hash); } /** @@ -133,25 +141,28 @@ public void createWasmContractGrpc() throws Exception { javaGrpcClient = new GrpcClient(grpcHost); String contractName = "test"; if (isPara == true) { - execer = title+execer; + execer = title + execer; } byte[] codes = getWasmContent("test/wasm/dice.wasm"); // 从文件加载账户 Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); // 加载用户证书 byte[] certBytes = CertUtils.getCertFromFile("./authdir/crypto/org1/user1/cacerts/org1-cert.pem"); // 构造交易 -// WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); -// builder.setName(contractName); -// builder.setCode(ByteString.copyFrom(codes)); -// byte[] reqBytes = builder.build().toByteArray(); - WasmProtobuf.wasmAction create = WasmUtil.createWasmContract(contractName,codes); - TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTxWithCertProto(accountInfo.getPrivateKey(), execer, create.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + // WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); + // builder.setName(contractName); + // builder.setCode(ByteString.copyFrom(codes)); + // byte[] reqBytes = builder.build().toByteArray(); + WasmProtobuf.wasmAction create = WasmUtil.createWasmContract(contractName, codes); + TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTxWithCertProto( + accountInfo.getPrivateKey(), execer, create.toByteArray(), SignType.SM2, certBytes, + SM2Util.Default_Uid); // 发送交易 - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(transaction)); - System.out.println("txhash:"+"0x"+ HexUtil.toHexString(result.getMsg().toByteArray())); + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(transaction)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); } /** @@ -161,25 +172,27 @@ public void createWasmContractGrpc() throws Exception { public void updateWasmContract() throws Exception { String contractName = "test1"; if (isPara == true) { - execer = title+execer; + execer = title + execer; } - byte[] codes = getWasmContent("test/wasm/evidence.wasm"); - System.out.println("codes length"+codes.length); + byte[] codes = getWasmContent("test/wasm/evidence.wasm"); + System.out.println("codes length" + codes.length); // 从文件加载账户 Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); // 加载用户证书 byte[] certBytes = CertUtils.getCertFromFile("./authdir/crypto/org1/user1/cacerts/org1-cert.pem"); // 构造交易 -// WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); -// builder.setName(contractName); -// builder.setCode(ByteString.copyFrom(codes)); -// byte[] reqBytes = builder.build().toByteArray(); - WasmProtobuf.wasmAction update = WasmUtil.updateWasmContract(contractName,codes); - String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, update.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + // WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); + // builder.setName(contractName); + // builder.setCode(ByteString.copyFrom(codes)); + // byte[] reqBytes = builder.build().toByteArray(); + WasmProtobuf.wasmAction update = WasmUtil.updateWasmContract(contractName, codes); + String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, + update.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String hash = chain33client.submitTransaction(transactionHash); - System.out.println("hash:"+hash); + System.out.println("hash:" + hash); } /** @@ -190,28 +203,30 @@ public void updateWasmContractGrpc() throws Exception { javaGrpcClient = new GrpcClient(grpcHost); String contractName = "test2"; if (isPara == true) { - execer = title+execer; + execer = title + execer; } byte[] codes = getWasmContent("test/wasm/dice.wasm"); // 从文件加载账户 Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); // 加载用户证书 byte[] certBytes = CertUtils.getCertFromFile("./authdir/crypto/org1/user1/cacerts/org1-cert.pem"); // 构造交易 -// WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); -// builder.setName(contractName); -// builder.setCode(ByteString.copyFrom(codes)); -// byte[] reqBytes = builder.build().toByteArray(); - WasmProtobuf.wasmAction update = WasmUtil.updateWasmContract(contractName,codes); - TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTxWithCertProto(accountInfo.getPrivateKey(), execer, update.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + // WasmProtobuf.wasmCreate.Builder builder = WasmProtobuf.wasmCreate.newBuilder(); + // builder.setName(contractName); + // builder.setCode(ByteString.copyFrom(codes)); + // byte[] reqBytes = builder.build().toByteArray(); + WasmProtobuf.wasmAction update = WasmUtil.updateWasmContract(contractName, codes); + TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTxWithCertProto( + accountInfo.getPrivateKey(), execer, update.toByteArray(), SignType.SM2, certBytes, + SM2Util.Default_Uid); // 发送交易 - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(transaction)); - System.out.println("txhash:"+"0x"+ HexUtil.toHexString(result.getMsg().toByteArray())); + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(transaction)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); } - /** * 构造chain33 wasm结构jsonRpc */ @@ -219,26 +234,28 @@ public void updateWasmContractGrpc() throws Exception { public void callWasmContract() throws Exception { String contractName = "test5"; if (isPara == true) { - execer = title+execer; + execer = title + execer; } String method = "AddStateTx"; - int[] parameters = new int[]{}; - String[] envs = new String[]{"test1","test2"}; + int[] parameters = new int[] {}; + String[] envs = new String[] { "test1", "test2" }; // 从文件加载账户 Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); // 加载用户证书 byte[] certBytes = CertUtils.getCertFromFile("./test/signcerts/user1@org1-cert.pem"); // 构造交易 -// WasmProtobuf.wasmCall.Builder builder = WasmProtobuf.wasmCall.newBuilder(); -// builder.setContract(contractName); -// builder.setMethod(method); -// byte[] reqBytes = builder.build().toByteArray(); - WasmProtobuf.wasmAction call = WasmUtil.createWasmCallContract(contractName,method,parameters,envs); - String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, call.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + // WasmProtobuf.wasmCall.Builder builder = WasmProtobuf.wasmCall.newBuilder(); + // builder.setContract(contractName); + // builder.setMethod(method); + // byte[] reqBytes = builder.build().toByteArray(); + WasmProtobuf.wasmAction call = WasmUtil.createWasmCallContract(contractName, method, parameters, envs); + String transactionHash = TransactionUtil.createTxWithCert(accountInfo.getPrivateKey(), execer, + call.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 String hash = chain33client.submitTransaction(transactionHash); - System.out.println("hash:"+hash); + System.out.println("hash:" + hash); } /** @@ -250,27 +267,29 @@ public void callWasmContractGrpc() throws Exception { String contractName = "test"; String method = "play"; if (isPara == true) { - execer = title+execer; + execer = title + execer; } - int[] parameters = new int[]{1,2}; - String[] envs = new String[]{"1","2","3"}; + int[] parameters = new int[] { 1, 2 }; + String[] envs = new String[] { "1", "2", "3" }; // 从文件加载账户 Account account = new Account(); - AccountInfo accountInfo = account.loadGMAccountLocal("test", "", "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); + AccountInfo accountInfo = account.loadGMAccountLocal("test", "", + "./authdir/crypto/org1/user1/keystore/8e6675d9ab566931ca967bb0b520e431d89bde2d9567f50d8ec6a4cad46a8955_sk"); // 加载用户证书 byte[] certBytes = CertUtils.getCertFromFile("./test/signcerts/user1@org1-cert.pem"); // 构造交易 -// WasmProtobuf.wasmCall.Builder builder = WasmProtobuf.wasmCall.newBuilder(); -// builder.setContract(contractName); -// builder.setMethod(method); -// builder.setParameters(0,0); -// byte[] reqBytes = builder.build().toByteArray(); - WasmProtobuf.wasmAction call = WasmUtil.createWasmCallContract(contractName,method,parameters,envs); + // WasmProtobuf.wasmCall.Builder builder = WasmProtobuf.wasmCall.newBuilder(); + // builder.setContract(contractName); + // builder.setMethod(method); + // builder.setParameters(0,0); + // byte[] reqBytes = builder.build().toByteArray(); + WasmProtobuf.wasmAction call = WasmUtil.createWasmCallContract(contractName, method, parameters, envs); - TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTxWithCertProto(accountInfo.getPrivateKey(), execer, call.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); + TransactionAllProtobuf.Transaction transaction = TransactionUtil.createTxWithCertProto( + accountInfo.getPrivateKey(), execer, call.toByteArray(), SignType.SM2, certBytes, SM2Util.Default_Uid); // 发送交易 - CommonProtobuf.Reply result = javaGrpcClient.run(o->o.sendTransaction(transaction)); - System.out.println("txhash:"+"0x"+ HexUtil.toHexString(result.getMsg().toByteArray())); + CommonProtobuf.Reply result = javaGrpcClient.run(o -> o.sendTransaction(transaction)); + System.out.println("txhash:" + "0x" + HexUtil.toHexString(result.getMsg().toByteArray())); } public static byte[] getWasmContent(String file) throws IOException { diff --git a/src/test/java/cn/chain33/javasdk/model/paraTest/CoinsTransParaTest.java b/src/test/java/cn/chain33/javasdk/model/paraTest/CoinsTransParaTest.java index 570d6a7..6edbacd 100644 --- a/src/test/java/cn/chain33/javasdk/model/paraTest/CoinsTransParaTest.java +++ b/src/test/java/cn/chain33/javasdk/model/paraTest/CoinsTransParaTest.java @@ -13,85 +13,89 @@ import cn.chain33.javasdk.utils.TransactionUtil; /** - * ƽϣͨ۵ķʽתcoins + * 平行链上,通过代扣的方式转coins + * * @author fkeit * */ public class CoinsTransParaTest { - - // ƽIP - String ip = "ƽIP"; - // ƽ˿ - int port = 8801; + + // 平行链IP + String ip = "平行链IP"; + // 平行链服务端口 + int port = 8801; RpcClient client = new RpcClient(ip, port); - - // ƽƣ̶ʽuser.p.xxxx. xxxx滻ִ֧СдӢĸ - String paraName = "user.p.evm."; - + + // 平行链名称,固定格式user.p.xxxx. 其中xxxx可替换,支持大小写英文字母 + String paraName = "user.p.evm."; + /** + * + * @throws InterruptedException + * @throws IOException * - * @throws InterruptedException - * @throws IOException - * @description ǩ۽飬createNoBlance֮ٽصݽ,ǩͽ - * ۽ҪƽijϣϵĽײҪעʵ + * @description 本地签名代扣交易组,调用createNoBlance之后再将返回的数据解析,签名,发送交易 代扣交易主要用在平行链的场合,主链上的交易不需要关注此实现 * */ @Test public void transferCoins() throws InterruptedException, IOException { - // ת˵ - String note = "ת˵"; - // Ϊ"",Ϊtoken + // 转账说明 + String note = "转账说明"; + // 主代币则为"",其他为token名 String coinToken = ""; - // תΪ1 + // 转账数量为1 Long amount = 1 * 10000000L; String to = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; - // عת˽׵payload + // 本地构造转账交易的payload byte[] payload = TransactionUtil.createTransferPayLoad(to, amount, coinToken, note); - - // ǩ˽˽Կϲ۳ַµңԴ˵ַ¿û + + // 签名私私钥,主链上不会扣除本地址下的主链币,所以此地址下可以没有主链币 String fromAddressPriveteKey = "CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944"; - // ִƣƽΪƽ+coins(ƽӦļеtitle) + // 执行器名称,平行链主代币为平行链名称+coins(平行链对应配置文件中的title项) String execer = paraName + "coins"; - // ƽתʱʵtoĵַpayloadУtoַӦǺԼĵַ + // 平行链转账时,实际to的地址填在payload中,外层的to地址对应的是合约的地址 String contranctAddress = client.convertExectoAddr(execer); - String createTransferTx = TransactionUtil.createTransferTx(fromAddressPriveteKey, contranctAddress, execer, payload); - - //create no balance ַΪ + String createTransferTx = TransactionUtil.createTransferTx(fromAddressPriveteKey, contranctAddress, execer, + payload); + + // create no balance 传入地址为空 String createNoBalanceTx = client.createNoBalanceTx(createTransferTx, ""); - // + // 解析交易 List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); - // ۽ǩ˽Կ + // 代扣交易签名的私钥 String withHoldPrivateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; - String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, fromAddressPriveteKey, withHoldPrivateKey); + String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, fromAddressPriveteKey, + withHoldPrivateKey); String submitTransaction = client.submitTransaction(hexString); System.out.println("submitTransaction:" + submitTransaction); - - Thread.sleep(5000); - for (int tick = 0; tick < 5; tick++){ - QueryTransactionResult result = client.queryTransaction(submitTransaction); - if(result == null) { - Thread.sleep(5000); - continue; - } - System.out.println("next:" + result.getTx().getNext()); - QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); - System.out.println("ty:" + nextResult.getReceipt().getTyname()); - break; - } + Thread.sleep(5000); + for (int tick = 0; tick < 5; tick++) { + QueryTransactionResult result = client.queryTransaction(submitTransaction); + if (result == null) { + Thread.sleep(5000); + continue; + } + + System.out.println("next:" + result.getTx().getNext()); + QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); + System.out.println("ty:" + nextResult.getReceipt().getTyname()); + break; + } } - + /** + * + * @throws IOException * - * @throws IOException - * @description ѯcoins + * @description 查询coins余额 * */ @Test public void getTokenBalace() throws IOException { - // ִ + // 执行器名称 String execer = paraName + "coins"; - + List addressList = new ArrayList<>(); addressList.add("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"); addressList.add("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"); diff --git a/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaTest.java b/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaTest.java index 42a190a..2c41f20 100644 --- a/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaTest.java +++ b/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaTest.java @@ -12,46 +12,47 @@ import cn.chain33.javasdk.utils.TransactionUtil; /** - * ƽEVMԼ - * óѹĬǹرգƽûͨԼĵֱַӷףÿѵ + * 平行链调用EVM合约 适用场景:主链是联盟链(手续费功能默认是关闭),平行链用户通过自己的地址直接发起交易,不用考虑手续费的问题 + * * @author fkeit * */ public class ERC721ParaTest { - // ƽIP - String ip = "ƽIP"; - // ƽ˿ - int port = 8801; - RpcClient client = new RpcClient(ip, port); - - // ƽƣ̶ʽuser.p.xxxx. xxxx滻ִ֧СдӢĸ - String paraName = "user.p.evm."; - - // ԼӦ˽Կ - String privateKey = "ԼӦ˽Կ"; - - // ԼӦĵַ - String address = "ԼӦĵַ"; - - /** - * ƽϲ͵ERC721Լ + // 平行链IP + String ip = "平行链IP"; + // 平行链服务端口 + int port = 8801; + RpcClient client = new RpcClient(ip, port); + + // 平行链名称,固定格式user.p.xxxx. 其中xxxx可替换,支持大小写英文字母 + String paraName = "user.p.evm."; + + // 部署合约对应的私钥 + String privateKey = "部署合约对应的私钥匙"; + + // 部署合约对应的地址 + String address = "部署合约对应的地址"; + + /** + * 平行链上部署和调用ERC721合约 + * * @throws InterruptedException */ @Test public void testEvmContract() { - + String code = "60806040523480156200001157600080fd5b506040518060400160405280600881526020017f47616d654974656d0000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f49544d0000000000000000000000000000000000000000000000000000000000815250620000966301ffc9a760e01b6200011860201b60201c565b8160069080519060200190620000ae92919062000221565b508060079080519060200190620000c792919062000221565b50620000e06380ac58cd60e01b6200011860201b60201c565b620000f8635b5e139f60e01b6200011860201b60201c565b6200011063780e9d6360e01b6200011860201b60201c565b5050620002d0565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620001b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026457805160ff191683800117855562000295565b8280016001018555821562000295579182015b828111156200029457825182559160200191906001019062000277565b5b509050620002a49190620002a8565b5090565b620002cd91905b80821115620002c9576000816000905550600101620002af565b5090565b90565b612c4380620002e06000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80636352211e116100a2578063a22cb46511610071578063a22cb46514610629578063b88d4fde14610679578063c87b56dd1461077e578063cf37834314610825578063e985e9c51461091457610116565b80636352211e1461045d5780636c0360eb146104cb57806370a082311461054e57806395d89b41146105a657610116565b806318160ddd116100e957806318160ddd146102bf57806323b872dd146102dd5780632f745c591461034b57806342842e0e146103ad5780634f6ccce71461041b57610116565b806301ffc9a71461011b57806306fdde0314610180578063081812fc14610203578063095ea7b314610271575b600080fd5b6101666004803603602081101561013157600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610990565b604051808215151515815260200191505060405180910390f35b6101886109f7565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101c85780820151818401526020810190506101ad565b50505050905090810190601f1680156101f55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61022f6004803603602081101561021957600080fd5b8101908080359060200190929190505050610a99565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102bd6004803603604081101561028757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b34565b005b6102c7610c78565b6040518082815260200191505060405180910390f35b610349600480360360608110156102f357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c89565b005b6103976004803603604081101561036157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610cff565b6040518082815260200191505060405180910390f35b610419600480360360608110156103c357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d5a565b005b6104476004803603602081101561043157600080fd5b8101908080359060200190929190505050610d7a565b6040518082815260200191505060405180910390f35b6104896004803603602081101561047357600080fd5b8101908080359060200190929190505050610d9d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104d3610dd4565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105135780820151818401526020810190506104f8565b50505050905090810190601f1680156105405780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6105906004803603602081101561056457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e76565b6040518082815260200191505060405180910390f35b6105ae610f4b565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105ee5780820151818401526020810190506105d3565b50505050905090810190601f16801561061b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106776004803603604081101561063f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610fed565b005b61077c6004803603608081101561068f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156106f657600080fd5b82018360208201111561070857600080fd5b8035906020019184600183028401116401000000008311171561072a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506111a5565b005b6107aa6004803603602081101561079457600080fd5b810190808035906020019092919050505061121d565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107ea5780820151818401526020810190506107cf565b50505050905090810190601f1680156108175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6108fe6004803603604081101561083b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561087857600080fd5b82018360208201111561088a57600080fd5b803590602001918460018302840111640100000000831117156108ac57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611506565b6040518082815260200191505060405180910390f35b6109766004803603604081101561092a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061153e565b604051808215151515815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a8f5780601f10610a6457610100808354040283529160200191610a8f565b820191906000526020600020905b815481529060010190602001808311610a7257829003601f168201915b5050505050905090565b6000610aa4826115d2565b610af9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612b0c602c913960400191505060405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b3f82610d9d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612bbc6021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610be56115ef565b73ffffffffffffffffffffffffffffffffffffffff161480610c145750610c1381610c0e6115ef565b61153e565b5b610c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180612a5f6038913960400191505060405180910390fd5b610c7383836115f7565b505050565b6000610c8460026116b0565b905090565b610c9a610c946115ef565b826116c5565b610cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180612bdd6031913960400191505060405180910390fd5b610cfa8383836117b9565b505050565b6000610d5282600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206119fc90919063ffffffff16565b905092915050565b610d75838383604051806020016040528060008152506111a5565b505050565b600080610d91836002611a1690919063ffffffff16565b50905080915050919050565b6000610dcd82604051806060016040528060298152602001612ac1602991396002611a459092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e6c5780601f10610e4157610100808354040283529160200191610e6c565b820191906000526020600020905b815481529060010190602001808311610e4f57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610efd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612a97602a913960400191505060405180910390fd5b610f44600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611a64565b9050919050565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fe35780601f10610fb857610100808354040283529160200191610fe3565b820191906000526020600020905b815481529060010190602001808311610fc657829003601f168201915b5050505050905090565b610ff56115ef565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611096576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b80600560006110a36115ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166111506115ef565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6111b66111b06115ef565b836116c5565b61120b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180612bdd6031913960400191505060405180910390fd5b61121784848484611a79565b50505050565b6060611228826115d2565b61127d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612b8d602f913960400191505060405180910390fd5b6060600860008481526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113265780601f106112fb57610100808354040283529160200191611326565b820191906000526020600020905b81548152906001019060200180831161130957829003601f168201915b505050505090506000600980546001816001161561010002031660029004905014156113555780915050611501565b60008151111561142e5760098160405160200180838054600181600116156101000203166002900480156113c05780601f1061139e5761010080835404028352918201916113c0565b820191906000526020600020905b8154815290600101906020018083116113ac575b505082805190602001908083835b602083106113f157805182526020820191506020810190506020830392506113ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050611501565b600961143984611aeb565b60405160200180838054600181600116156101000203166002900480156114975780601f10611475576101008083540402835291820191611497565b820191906000526020600020905b815481529060010190602001808311611483575b505082805190602001908083835b602083106114c857805182526020820191506020810190506020830392506114a5565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150505b919050565b6000611512600a611c32565b600061151e600a611c48565b905061152a8482611c56565b6115348184611e4a565b8091505092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006115e8826002611ed490919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661166a83610d9d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116be82600001611eee565b9050919050565b60006116d0826115d2565b611725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612a33602c913960400191505060405180910390fd5b600061173083610d9d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061179f57508373ffffffffffffffffffffffffffffffffffffffff1661178784610a99565b73ffffffffffffffffffffffffffffffffffffffff16145b806117b057506117af818561153e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166117d982610d9d565b73ffffffffffffffffffffffffffffffffffffffff1614611845576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180612b646029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806129e96024913960400191505060405180910390fd5b6118d6838383611eff565b6118e16000826115f7565b61193281600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611f0490919063ffffffff16565b5061198481600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611f1e90919063ffffffff16565b5061199b81836002611f389092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611a0b8360000183611f6d565b60001c905092915050565b600080600080611a298660000186611ff0565b915091508160001c8160001c8090509350935050509250929050565b6000611a58846000018460001b84612089565b60001c90509392505050565b6000611a728260000161217f565b9050919050565b611a848484846117b9565b611a9084848484612190565b611ae5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806129b76032913960400191505060405180910390fd5b50505050565b60606000821415611b33576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611c2d565b600082905060005b60008214611b5d578080600101915050600a8281611b5557fe5b049150611b3b565b60608167ffffffffffffffff81118015611b7657600080fd5b506040519080825280601f01601f191660200182016040528015611ba95781602001600182028036833780820191505090505b50905060006001830390508593505b60008414611c2557600a8481611bca57fe5b0660300160f81b82828060019003935081518110611be457fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8481611c1d57fe5b049350611bb8565b819450505050505b919050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cf9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b611d02816115d2565b15611d75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b611d8160008383611eff565b611dd281600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611f1e90919063ffffffff16565b50611de981836002611f389092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b611e53826115d2565b611ea8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612b38602c913960400191505060405180910390fd5b80600860008481526020019081526020016000209080519060200190611ecf9291906128ef565b505050565b6000611ee6836000018360001b6123d5565b905092915050565b600081600001805490509050919050565b505050565b6000611f16836000018360001b6123f8565b905092915050565b6000611f30836000018360001b6124e0565b905092915050565b6000611f64846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b612550565b90509392505050565b600081836000018054905011611fce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806129956022913960400191505060405180910390fd5b826000018281548110611fdd57fe5b9060005260206000200154905092915050565b60008082846000018054905011612052576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612aea6022913960400191505060405180910390fd5b600084600001848154811061206357fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390612150576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121155780820151818401526020810190506120fa565b50505050905090810190601f1680156121425780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061216357fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b60006121b18473ffffffffffffffffffffffffffffffffffffffff1661262c565b6121be57600190506123cd565b606061235463150b7a0260e01b6121d36115ef565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612283578082015181840152602081019050612268565b50505050905090810190601f1680156122b05780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518060600160405280603281526020016129b7603291398773ffffffffffffffffffffffffffffffffffffffff1661263f9092919063ffffffff16565b9050600081806020019051602081101561236d57600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146124d4576000600182039050600060018660000180549050039050600086600001828154811061244357fe5b906000526020600020015490508087600001848154811061246057fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061249857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506124da565b60009150505b92915050565b60006124ec8383612657565b61254557826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061254a565b600090505b92915050565b60008084600101600085815260200190815260200160002054905060008114156125f757846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050612625565b8285600001600183038154811061260a57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600080823b905060008111915050919050565b606061264e848460008561267a565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b6060824710156126d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612a0d6026913960400191505060405180910390fd5b6126de8561262c565b612750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106127a0578051825260208201915060208101905060208303925061277d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612802576040519150601f19603f3d011682016040523d82523d6000602084013e612807565b606091505b5091509150612817828286612823565b92505050949350505050565b60608315612833578290506128e8565b6000835111156128465782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128ad578082015181840152602081019050612892565b50505050905090810190601f1680156128da5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061293057805160ff191683800117855561295e565b8280016001018555821561295e579182015b8281111561295d578251825591602001919060010190612942565b5b50905061296b919061296f565b5090565b61299191905b8082111561298d576000816000905550600101612975565b5090565b9056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a26469706673582212206ada504e4537316d961b53c1263cff2f95e637347d01f81fa85879e2106963b264736f6c63430006050033"; String abi = "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"player\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"tokenURI\",\"type\":\"string\"}],\"name\":\"awardItem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"; System.out.println(abi); String txEncode; - String txhash=""; + String txhash = ""; - // Լ + // 部署合约 txEncode = EvmUtil.createEvmContract(HexUtil.fromHexString(code), "", "evm-erc721", privateKey, paraName); try { - txhash = client.submitTransaction(txEncode); + txhash = client.submitTransaction(txEncode); } catch (IOException e) { e.printStackTrace(); Assert.fail(); @@ -64,21 +65,22 @@ public void testEvmContract() { Assert.fail(); } - // Լַ + // 计算合约地址 String contractAddress = TransactionUtil.convertExectoAddr(address + txhash.substring(2)); System.out.println(contractAddress); - // úԼ + // 调用合约 byte[] packAbi = null; try { - packAbi = EvmUtil.encodeParameter(abi, "awardItem", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", "{\"ITEM\":\"picture1\",\"price\":\"10000\",\"author\",\"Andy\"}"); - // GASԤ -// JSONObject feelog = client.queryEVMGas(paraName + "evm", HexUtil.toHexString(packAbi), ""); -// Assert.assertNotNull(feelog); -// Assert.assertNull(feelog.get("error")); -// Assert.assertNotNull(feelog.get("result")); - - txEncode = EvmUtil.callEvmContract(packAbi,"", 0, contractAddress, privateKey, paraName); + packAbi = EvmUtil.encodeParameter(abi, "awardItem", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", + "{\"ITEM\":\"picture1\",\"price\":\"10000\",\"author\",\"Andy\"}"); + // GAS费预估算 + // JSONObject feelog = client.queryEVMGas(paraName + "evm", HexUtil.toHexString(packAbi), ""); + // Assert.assertNotNull(feelog); + // Assert.assertNull(feelog.get("error")); + // Assert.assertNotNull(feelog.get("result")); + + txEncode = EvmUtil.callEvmContract(packAbi, "", 0, contractAddress, privateKey, paraName); txhash = client.submitTransaction(txEncode); } catch (Exception e) { e.printStackTrace(); @@ -86,7 +88,6 @@ public void testEvmContract() { } System.out.println(txhash); - try { Thread.sleep(3000); } catch (InterruptedException e) { @@ -94,66 +95,68 @@ public void testEvmContract() { Assert.fail(); } - // ѯ + // 查询 try { packAbi = EvmUtil.encodeParameter(abi, "symbol"); JSONObject abiResult = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbi)); - if(abiResult.get("error") != null) { + if (abiResult.get("error") != null) { Assert.fail(abiResult.get("error").toString()); } List res = EvmUtil.decodeOutput(abi, "symbol", abiResult.getJSONObject("result")); - System.out.println("symbolϢ" + res); + System.out.println("symbol信息: " + res); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - // ѯtokenӦowner + // 查询token对应的owner try { packAbi = EvmUtil.encodeParameter(abi, "ownerOf", Integer.valueOf(1)); JSONObject abiResult = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbi)); - if(abiResult.get("error") != null) { + if (abiResult.get("error") != null) { Assert.fail(abiResult.get("error").toString()); } List res = EvmUtil.decodeOutput(abi, "ownerOf", abiResult.getJSONObject("result")); - System.out.println("ownerϢ" + res); + System.out.println("owner信息: " + res); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - // ѯtoken URI + // 查询token URI try { packAbi = EvmUtil.encodeParameter(abi, "tokenURI", Integer.valueOf(1)); JSONObject abiResult = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbi)); - if(abiResult.get("error") != null) { + if (abiResult.get("error") != null) { Assert.fail(abiResult.get("error").toString()); } List res = EvmUtil.decodeOutput(abi, "tokenURI", abiResult.getJSONObject("result")); - System.out.println("tokenURIϢ" + res); + System.out.println("tokenURI信息: " + res); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - // ѯtoken + // 查询token 余额 try { packAbi = EvmUtil.encodeParameter(abi, "balanceOf", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"); JSONObject abiResult = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbi)); - if(abiResult.get("error") != null) { + if (abiResult.get("error") != null) { Assert.fail(abiResult.get("error").toString()); } List res = EvmUtil.decodeOutput(abi, "balanceOf", abiResult.getJSONObject("result")); - System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt ַϢ" + res); + System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt 地址余额信息: " + res); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - // ȫת + // 安全转账 try { - packAbi = EvmUtil.encodeParameter(abi,"safeTransferFrom", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs", 1); - txEncode = EvmUtil.callEvmContract(packAbi,"", 0, contractAddress, "CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944", paraName); + packAbi = EvmUtil.encodeParameter(abi, "safeTransferFrom", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", + "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs", 1); + txEncode = EvmUtil.callEvmContract(packAbi, "", 0, contractAddress, + "CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944", paraName); txhash = client.submitTransaction(txEncode); System.out.println(txhash); } catch (Exception e) { @@ -168,29 +171,29 @@ public void testEvmContract() { Assert.fail(); } - // ѯfrom ַµtoken + // 查询from 地址下的token 余额 try { packAbi = EvmUtil.encodeParameter(abi, "balanceOf", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"); JSONObject abiResult = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbi)); - if(abiResult.get("error") != null) { + if (abiResult.get("error") != null) { Assert.fail(abiResult.get("error").toString()); } List res = EvmUtil.decodeOutput(abi, "balanceOf", abiResult.getJSONObject("result")); - System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt ַϢ" + res); + System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt 地址余额信息: " + res); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - // ѯto ַµtoken + // 查询to 地址下的token 余额 try { packAbi = EvmUtil.encodeParameter(abi, "balanceOf", "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"); JSONObject abiResult = client.callEVMAbi(contractAddress, HexUtil.toHexString(packAbi)); - if(abiResult.get("error") != null) { + if (abiResult.get("error") != null) { Assert.fail(abiResult.get("error").toString()); } List res = EvmUtil.decodeOutput(abi, "balanceOf", abiResult.getJSONObject("result")); - System.out.println("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs ַϢ" + res); + System.out.println("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs 地址余额信息: " + res); } catch (Exception e) { e.printStackTrace(); Assert.fail(); diff --git a/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaWithholdTest.java b/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaWithholdTest.java index ab9654e..c207f14 100644 --- a/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaWithholdTest.java +++ b/src/test/java/cn/chain33/javasdk/model/paraTest/ERC721ParaWithholdTest.java @@ -16,146 +16,155 @@ import cn.chain33.javasdk.utils.TransactionUtil; /** - * ƽʹô۷ʽEVMԼ - * óǹDZƽϵнͨijtokenĵַͳһ֧ѣȥƽûȥȡtokenһ裬û顣 + * 平行链使用代扣方式调用EVM合约 适用场景:主链是公链(手续费是必需项),平行链上的所有交易通过某个有主链token的地址统一支付手续费,免去平行链上用户去获取主链token这一步骤,提升用户体验。 + * * @author fkeit * */ public class ERC721ParaWithholdTest { - // ƽIP - String ip = "ƽIP"; - // ƽ˿ - int port = 8801; + // 平行链IP + String ip = "平行链IP"; + // 平行链服务端口 + int port = 8801; RpcClient client = new RpcClient(ip, port); - - // ƽƣ̶ʽuser.p.xxxx. xxxx滻ִ֧СдӢĸ - String paraName = "user.p.evm."; - - // ԼӦ˽Կ - String privateKey = "ԼӦ˽Կ"; - - // ۽ǩ˽Կ(еĽ׶ͨ۵ַ) - String withHoldPrivateKey = "۵ַ˽Կ"; - - /** - * ƽϲ͵ERC721Լ + + // 平行链名称,固定格式user.p.xxxx. 其中xxxx可替换,支持大小写英文字母 + String paraName = "user.p.evm."; + + // 部署合约对应的私钥 + String privateKey = "部署合约对应的私钥匙"; + + // 代扣交易签名的私钥(所有的交易都通过这个代扣地址缴纳手续费) + String withHoldPrivateKey = "代扣地址的私钥"; + + /** + * 平行链上部署和调用ERC721合约 + * * @throws InterruptedException - * @throws IOException + * @throws IOException */ @Test public void testEvmContract() throws InterruptedException, IOException { - + String code = "60806040523480156200001157600080fd5b506040518060400160405280600881526020017f47616d654974656d0000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f49544d0000000000000000000000000000000000000000000000000000000000815250620000966301ffc9a760e01b6200011860201b60201c565b8160069080519060200190620000ae92919062000221565b508060079080519060200190620000c792919062000221565b50620000e06380ac58cd60e01b6200011860201b60201c565b620000f8635b5e139f60e01b6200011860201b60201c565b6200011063780e9d6360e01b6200011860201b60201c565b5050620002d0565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620001b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026457805160ff191683800117855562000295565b8280016001018555821562000295579182015b828111156200029457825182559160200191906001019062000277565b5b509050620002a49190620002a8565b5090565b620002cd91905b80821115620002c9576000816000905550600101620002af565b5090565b90565b612c4380620002e06000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80636352211e116100a2578063a22cb46511610071578063a22cb46514610629578063b88d4fde14610679578063c87b56dd1461077e578063cf37834314610825578063e985e9c51461091457610116565b80636352211e1461045d5780636c0360eb146104cb57806370a082311461054e57806395d89b41146105a657610116565b806318160ddd116100e957806318160ddd146102bf57806323b872dd146102dd5780632f745c591461034b57806342842e0e146103ad5780634f6ccce71461041b57610116565b806301ffc9a71461011b57806306fdde0314610180578063081812fc14610203578063095ea7b314610271575b600080fd5b6101666004803603602081101561013157600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610990565b604051808215151515815260200191505060405180910390f35b6101886109f7565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101c85780820151818401526020810190506101ad565b50505050905090810190601f1680156101f55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61022f6004803603602081101561021957600080fd5b8101908080359060200190929190505050610a99565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102bd6004803603604081101561028757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b34565b005b6102c7610c78565b6040518082815260200191505060405180910390f35b610349600480360360608110156102f357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c89565b005b6103976004803603604081101561036157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610cff565b6040518082815260200191505060405180910390f35b610419600480360360608110156103c357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d5a565b005b6104476004803603602081101561043157600080fd5b8101908080359060200190929190505050610d7a565b6040518082815260200191505060405180910390f35b6104896004803603602081101561047357600080fd5b8101908080359060200190929190505050610d9d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104d3610dd4565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105135780820151818401526020810190506104f8565b50505050905090810190601f1680156105405780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6105906004803603602081101561056457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e76565b6040518082815260200191505060405180910390f35b6105ae610f4b565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105ee5780820151818401526020810190506105d3565b50505050905090810190601f16801561061b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106776004803603604081101561063f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610fed565b005b61077c6004803603608081101561068f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156106f657600080fd5b82018360208201111561070857600080fd5b8035906020019184600183028401116401000000008311171561072a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506111a5565b005b6107aa6004803603602081101561079457600080fd5b810190808035906020019092919050505061121d565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107ea5780820151818401526020810190506107cf565b50505050905090810190601f1680156108175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6108fe6004803603604081101561083b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561087857600080fd5b82018360208201111561088a57600080fd5b803590602001918460018302840111640100000000831117156108ac57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611506565b6040518082815260200191505060405180910390f35b6109766004803603604081101561092a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061153e565b604051808215151515815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a8f5780601f10610a6457610100808354040283529160200191610a8f565b820191906000526020600020905b815481529060010190602001808311610a7257829003601f168201915b5050505050905090565b6000610aa4826115d2565b610af9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612b0c602c913960400191505060405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b3f82610d9d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612bbc6021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610be56115ef565b73ffffffffffffffffffffffffffffffffffffffff161480610c145750610c1381610c0e6115ef565b61153e565b5b610c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180612a5f6038913960400191505060405180910390fd5b610c7383836115f7565b505050565b6000610c8460026116b0565b905090565b610c9a610c946115ef565b826116c5565b610cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180612bdd6031913960400191505060405180910390fd5b610cfa8383836117b9565b505050565b6000610d5282600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206119fc90919063ffffffff16565b905092915050565b610d75838383604051806020016040528060008152506111a5565b505050565b600080610d91836002611a1690919063ffffffff16565b50905080915050919050565b6000610dcd82604051806060016040528060298152602001612ac1602991396002611a459092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e6c5780601f10610e4157610100808354040283529160200191610e6c565b820191906000526020600020905b815481529060010190602001808311610e4f57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610efd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612a97602a913960400191505060405180910390fd5b610f44600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611a64565b9050919050565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fe35780601f10610fb857610100808354040283529160200191610fe3565b820191906000526020600020905b815481529060010190602001808311610fc657829003601f168201915b5050505050905090565b610ff56115ef565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611096576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b80600560006110a36115ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166111506115ef565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6111b66111b06115ef565b836116c5565b61120b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180612bdd6031913960400191505060405180910390fd5b61121784848484611a79565b50505050565b6060611228826115d2565b61127d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612b8d602f913960400191505060405180910390fd5b6060600860008481526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113265780601f106112fb57610100808354040283529160200191611326565b820191906000526020600020905b81548152906001019060200180831161130957829003601f168201915b505050505090506000600980546001816001161561010002031660029004905014156113555780915050611501565b60008151111561142e5760098160405160200180838054600181600116156101000203166002900480156113c05780601f1061139e5761010080835404028352918201916113c0565b820191906000526020600020905b8154815290600101906020018083116113ac575b505082805190602001908083835b602083106113f157805182526020820191506020810190506020830392506113ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050611501565b600961143984611aeb565b60405160200180838054600181600116156101000203166002900480156114975780601f10611475576101008083540402835291820191611497565b820191906000526020600020905b815481529060010190602001808311611483575b505082805190602001908083835b602083106114c857805182526020820191506020810190506020830392506114a5565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150505b919050565b6000611512600a611c32565b600061151e600a611c48565b905061152a8482611c56565b6115348184611e4a565b8091505092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006115e8826002611ed490919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661166a83610d9d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116be82600001611eee565b9050919050565b60006116d0826115d2565b611725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612a33602c913960400191505060405180910390fd5b600061173083610d9d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061179f57508373ffffffffffffffffffffffffffffffffffffffff1661178784610a99565b73ffffffffffffffffffffffffffffffffffffffff16145b806117b057506117af818561153e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166117d982610d9d565b73ffffffffffffffffffffffffffffffffffffffff1614611845576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180612b646029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806129e96024913960400191505060405180910390fd5b6118d6838383611eff565b6118e16000826115f7565b61193281600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611f0490919063ffffffff16565b5061198481600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611f1e90919063ffffffff16565b5061199b81836002611f389092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611a0b8360000183611f6d565b60001c905092915050565b600080600080611a298660000186611ff0565b915091508160001c8160001c8090509350935050509250929050565b6000611a58846000018460001b84612089565b60001c90509392505050565b6000611a728260000161217f565b9050919050565b611a848484846117b9565b611a9084848484612190565b611ae5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806129b76032913960400191505060405180910390fd5b50505050565b60606000821415611b33576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611c2d565b600082905060005b60008214611b5d578080600101915050600a8281611b5557fe5b049150611b3b565b60608167ffffffffffffffff81118015611b7657600080fd5b506040519080825280601f01601f191660200182016040528015611ba95781602001600182028036833780820191505090505b50905060006001830390508593505b60008414611c2557600a8481611bca57fe5b0660300160f81b82828060019003935081518110611be457fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8481611c1d57fe5b049350611bb8565b819450505050505b919050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cf9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b611d02816115d2565b15611d75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b611d8160008383611eff565b611dd281600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611f1e90919063ffffffff16565b50611de981836002611f389092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b611e53826115d2565b611ea8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612b38602c913960400191505060405180910390fd5b80600860008481526020019081526020016000209080519060200190611ecf9291906128ef565b505050565b6000611ee6836000018360001b6123d5565b905092915050565b600081600001805490509050919050565b505050565b6000611f16836000018360001b6123f8565b905092915050565b6000611f30836000018360001b6124e0565b905092915050565b6000611f64846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b612550565b90509392505050565b600081836000018054905011611fce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806129956022913960400191505060405180910390fd5b826000018281548110611fdd57fe5b9060005260206000200154905092915050565b60008082846000018054905011612052576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612aea6022913960400191505060405180910390fd5b600084600001848154811061206357fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390612150576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121155780820151818401526020810190506120fa565b50505050905090810190601f1680156121425780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061216357fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b60006121b18473ffffffffffffffffffffffffffffffffffffffff1661262c565b6121be57600190506123cd565b606061235463150b7a0260e01b6121d36115ef565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612283578082015181840152602081019050612268565b50505050905090810190601f1680156122b05780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518060600160405280603281526020016129b7603291398773ffffffffffffffffffffffffffffffffffffffff1661263f9092919063ffffffff16565b9050600081806020019051602081101561236d57600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146124d4576000600182039050600060018660000180549050039050600086600001828154811061244357fe5b906000526020600020015490508087600001848154811061246057fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061249857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506124da565b60009150505b92915050565b60006124ec8383612657565b61254557826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061254a565b600090505b92915050565b60008084600101600085815260200190815260200160002054905060008114156125f757846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050612625565b8285600001600183038154811061260a57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600080823b905060008111915050919050565b606061264e848460008561267a565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b6060824710156126d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612a0d6026913960400191505060405180910390fd5b6126de8561262c565b612750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106127a0578051825260208201915060208101905060208303925061277d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612802576040519150601f19603f3d011682016040523d82523d6000602084013e612807565b606091505b5091509150612817828286612823565b92505050949350505050565b60608315612833578290506128e8565b6000835111156128465782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128ad578082015181840152602081019050612892565b50505050905090810190601f1680156128da5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061293057805160ff191683800117855561295e565b8280016001018555821561295e579182015b8281111561295d578251825591602001919060010190612942565b5b50905061296b919061296f565b5090565b61299191905b8082111561298d576000816000905550600101612975565b5090565b9056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a26469706673582212206ada504e4537316d961b53c1263cff2f95e637347d01f81fa85879e2106963b264736f6c63430006050033"; String abi = "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"player\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"tokenURI\",\"type\":\"string\"}],\"name\":\"awardItem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"; String txEncode = null; String submitTransaction = null; String execer = paraName + "evm"; - // ƽԼַ(ƽtitleǰ׺+Լ) + // 平行链合约地址计算(平行链title前缀+合约名称) String paracontractAddress = client.convertExectoAddr(execer); - - - // Լ - txEncode = EvmUtil.createEvmContractWithhold(HexUtil.fromHexString(code), "", "evm-erc721", privateKey, execer, paracontractAddress); + + // 部署合约 + txEncode = EvmUtil.createEvmContractWithhold(HexUtil.fromHexString(code), "", "evm-erc721", privateKey, execer, + paracontractAddress); String contractName = createNobalance(txEncode, paracontractAddress); System.out.println(contractName); - - // Լ + + // 合约名称 String paraExecName = paraName + "user.evm." + contractName; - // Լַļ + // 合约地址的计算 String paraExecAddress = client.convertExectoAddr(paraExecName); - - // 鿴Լ ABIϢ + + // 查看合约 的ABI信息 JSONArray abiInfo = client.queryEVMABIInfo(paraExecAddress, paraExecName); - System.out.println("Լ󶨵ABIϢ" + abiInfo); + System.out.println("合约绑定的ABI信息: " + abiInfo); - // ȡ - // úԼ + // 获取 + // 调用合约 byte[] packAbi = null; try { - packAbi = EvmUtil.encodeParameter(abi, "awardItem", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", "{\"ITEM\":\"picture1\",\"price\":\"10000\",\"author\",\"Andy\"}"); + packAbi = EvmUtil.encodeParameter(abi, "awardItem", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", + "{\"ITEM\":\"picture1\",\"price\":\"10000\",\"author\",\"Andy\"}"); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - txEncode = EvmUtil.callEvmContractWithhold(packAbi,"", 0, paraExecName, privateKey, paraExecAddress); + txEncode = EvmUtil.callEvmContractWithhold(packAbi, "", 0, paraExecName, privateKey, paraExecAddress); submitTransaction = createNobalance(txEncode, paraExecAddress); System.out.println(submitTransaction); - - // ѯ + + // 查询 JSONArray abiResult = client.queryEVMABIResult(paraExecAddress, paraExecName, "symbol()"); - System.out.println("symbolϢ" + abiResult); - - // ѯtokenӦowner + System.out.println("symbol信息: " + abiResult); + + // 查询token对应的owner JSONArray ownerResult = client.queryEVMABIResult(paraExecAddress, paraExecName, "ownerOf(1)"); - System.out.println("ownerϢ" + ownerResult); - - // ѯtoken URI + System.out.println("owner信息: " + ownerResult); + + // 查询token URI JSONArray uriResult = client.queryEVMABIResult(paraExecAddress, paraExecName, "tokenURI(1)"); - System.out.println("tokenURIϢ" + uriResult); - - // ѯtoken - JSONArray balanceResult = client.queryEVMABIResult(paraExecAddress, paraExecName, "balanceOf(14KEKbYtKKQm4wMthSK9J4La4nAiidGozt)"); - System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt ַϢ" + balanceResult); - - // ȫת + System.out.println("tokenURI信息:" + uriResult); + + // 查询token 余额 + JSONArray balanceResult = client.queryEVMABIResult(paraExecAddress, paraExecName, + "balanceOf(14KEKbYtKKQm4wMthSK9J4La4nAiidGozt)"); + System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt 地址余额信息:" + balanceResult); + + // 安全转账 try { - packAbi = EvmUtil.encodeParameter(abi,"safeTransferFrom", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs", 1); + packAbi = EvmUtil.encodeParameter(abi, "safeTransferFrom", "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", + "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs", 1); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } - txEncode = EvmUtil.callEvmContractWithhold(packAbi,"", 0, paraExecName, privateKey, paraExecAddress); + txEncode = EvmUtil.callEvmContractWithhold(packAbi, "", 0, paraExecName, privateKey, paraExecAddress); submitTransaction = createNobalance(txEncode, paraExecAddress); System.out.println(submitTransaction); Thread.sleep(10000); - - // ѯfrom ַµtoken - balanceResult = client.queryEVMABIResult(paraExecAddress, paraExecName, "balanceOf(14KEKbYtKKQm4wMthSK9J4La4nAiidGozt)"); - System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt ַϢ" + balanceResult); - - // ѯto ַµtoken - balanceResult = client.queryEVMABIResult(paraExecAddress, paraExecName, "balanceOf(1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs)"); - System.out.println("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs ַϢ" + balanceResult); - + + // 查询from 地址下的token 余额 + balanceResult = client.queryEVMABIResult(paraExecAddress, paraExecName, + "balanceOf(14KEKbYtKKQm4wMthSK9J4La4nAiidGozt)"); + System.out.println("14KEKbYtKKQm4wMthSK9J4La4nAiidGozt 地址余额信息:" + balanceResult); + + // 查询to 地址下的token 余额 + balanceResult = client.queryEVMABIResult(paraExecAddress, paraExecName, + "balanceOf(1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs)"); + System.out.println("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs 地址余额信息:" + balanceResult); + } - + /** - * ѽ - * + * 构建代扣手续费交易 + * * @param txEncode * @param contranctAddress + * * @return + * * @throws InterruptedException - * @throws IOException + * @throws IOException */ private String createNobalance(String txEncode, String contranctAddress) throws InterruptedException, IOException { String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); - // - List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); - - String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, withHoldPrivateKey); - String submitTransaction = client.submitTransaction(hexString); - - String nextString = null; - - Thread.sleep(5000); - for (int tick = 0; tick < 5; tick++){ - QueryTransactionResult result = client.queryTransaction(submitTransaction); - if(result == null) { - Thread.sleep(5000); - continue; - } - - System.out.println("next:" + result.getTx().getNext()); - QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); - System.out.println("ty:" + nextResult.getReceipt().getTyname()); - nextString = result.getTx().getNext(); - break; - } - - return nextString; + // 解析交易 + List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); + + String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, + withHoldPrivateKey); + String submitTransaction = client.submitTransaction(hexString); + + String nextString = null; + + Thread.sleep(5000); + for (int tick = 0; tick < 5; tick++) { + QueryTransactionResult result = client.queryTransaction(submitTransaction); + if (result == null) { + Thread.sleep(5000); + continue; + } + + System.out.println("next:" + result.getTx().getNext()); + QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); + System.out.println("ty:" + nextResult.getReceipt().getTyname()); + nextString = result.getTx().getNext(); + break; + } + + return nextString; } } diff --git a/src/test/java/cn/chain33/javasdk/model/paraTest/StorageParaTest.java b/src/test/java/cn/chain33/javasdk/model/paraTest/StorageParaTest.java index cefbc8d..6df3a9a 100644 --- a/src/test/java/cn/chain33/javasdk/model/paraTest/StorageParaTest.java +++ b/src/test/java/cn/chain33/javasdk/model/paraTest/StorageParaTest.java @@ -17,223 +17,233 @@ import cn.chain33.javasdk.utils.TransactionUtil; /** - * ݴ֤, ϣ֤,Ӵ֤,˽֤,˽֤ӿڣ+ƽ + * 包含内容存证, 哈希存证,链接存证,隐私存证,分享隐私存证几个接口(公链+平行链场景) + * * @author fkeit */ public class StorageParaTest { - - // ƽIP - String ip = "ƽIP"; - // ƽ˿ - int port = 8801; + + // 平行链IP + String ip = "平行链IP"; + // 平行链服务端口 + int port = 8801; RpcClient client = new RpcClient(ip, port); - - String content = "鷢NPOĻձ̻ļһһʱ3800׶ŰװֽдСԻ£ͬѡʫʳԡʫط硤¡ɰ׻˼ǡ˭˵û´ͬսȹϣʫ罻ý飬̾ձ˵ѧ衣ʵϣNPOĻһջ֯ջձҽҩҵԼع˾ɵ֯NPOĻָ߻ʱ-ߣڵһǷԻ£ͬѡǡÿԱﺣ⻪˻һҽԱͬսʤ֮ͬ飬¶ͬػ֮"; - - + + String content = "疫情发生后,NPO法人仁心会联合日本湖北总商会等四家机构第一时间向湖北捐赠3800套杜邦防护服,包装纸箱上用中文写有“岂曰无衣,与子同裳”。这句诗词出自《诗经·秦风·无衣》,翻译成白话的意思是“谁说我们没衣穿?与你同穿那战裙”。不料,这句诗词在社交媒体上引发热议,不少网民赞叹日本人的文学造诣。实际上,NPO法人仁心会是一家在日华人组织,由在日或有留日背景的医药保健从业者以及相关公司组成的新生公益组织。NPO法人仁心会事务局告诉环球时报-环球网记者,由于第一批捐赠物资是防护服,“岂曰无衣,与子同裳”恰好可以表达海外华人华侨与一线医护人员共同战胜病毒的同仇敌忾之情,流露出对同胞的守护之爱。"; + + /** + * 代扣内容存证,在需要缴纳手续费的情况下,可以采用代扣的方式, 实际的存证交易不需要缴纳手续费,全部通过代扣交易来缴纳手续费 + * + * 代扣交易模型 + * + * @throws IOException + * @throws Exception + */ + @Test + public void contentStoreNobalance() throws InterruptedException, IOException { + // 存证智能合约的名称,代扣情况下,要带上平行链前缀 + String execer = "user.p.evm.storage"; + // 实际交易签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String contranctAddress = client.convertExectoAddr(execer); + String txEncode = StorageUtil.createOnlyNotaryStorage(content.getBytes(), execer, privateKey, contranctAddress); + + String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); + // 解析交易 + List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); + // 代扣交易签名的私钥 + String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; + String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, + withHoldPrivateKey); + String submitTransaction = client.submitTransaction(hexString); + System.out.println("submitTransaction:" + submitTransaction); + + Thread.sleep(5000); + for (int tick = 0; tick < 5; tick++) { + QueryTransactionResult result = client.queryTransaction(submitTransaction); + if (result == null) { + Thread.sleep(5000); + continue; + } + + System.out.println("next:" + result.getTx().getNext()); + QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); + System.out.println("ty:" + nextResult.getReceipt().getTyname()); + break; + } + } + + /** + * 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 + * + * @throws InterruptedException + * @throws IOException + */ + @Test + public void hashStoreNobalance() throws InterruptedException, IOException { + // 存证智能合约的名称 + String execer = "user.p.evm.storage"; + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String contranctAddress = client.convertExectoAddr(execer); + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + String txEncode = StorageUtil.createHashStorage(contentHash, execer, privateKey, contranctAddress); + + String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); + // 解析交易 + List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); + // 代扣交易签名的私钥 + String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; + String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, + withHoldPrivateKey); + String submitTransaction = client.submitTransaction(hexString); + System.out.println("submitTransaction:" + submitTransaction); + + Thread.sleep(5000); + for (int tick = 0; tick < 5; tick++) { + QueryTransactionResult result = client.queryTransaction(submitTransaction); + if (result == null) { + Thread.sleep(5000); + continue; + } + + System.out.println("next:" + result.getTx().getNext()); + QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); + System.out.println("ty:" + nextResult.getReceipt().getTyname()); + break; + } + + } + /** - * ݴ֤Ҫѵ£Բô۵ķʽ ʵʵĴ֤ײҪѣȫͨ۽ + * 链接存证模型 * - * ۽ģ - * @throws IOException - * @throws Exception + * @throws InterruptedException + * @throws IOException */ - @Test - public void contentStoreNobalance() throws InterruptedException, IOException { - // ֤ܺԼƣ£Ҫƽǰ׺ - String execer = "user.p.evm.storage"; - // ʵʽǩõ˽Կ - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String contranctAddress = client.convertExectoAddr(execer); - String txEncode = StorageUtil.createOnlyNotaryStorage(content.getBytes(), execer, privateKey, contranctAddress); - - String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); - // - List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); - // ۽ǩ˽Կ - String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; - String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, withHoldPrivateKey); - String submitTransaction = client.submitTransaction(hexString); - System.out.println("submitTransaction:" + submitTransaction); - - Thread.sleep(5000); - for (int tick = 0; tick < 5; tick++){ - QueryTransactionResult result = client.queryTransaction(submitTransaction); - if(result == null) { - Thread.sleep(5000); - continue; - } - - System.out.println("next:" + result.getTx().getNext()); - QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); - System.out.println("ty:" + nextResult.getReceipt().getTyname()); - break; - } - } - - /** - * ϣ֤ģͣƼʹsha256ϣ256λժҪֵ - * @throws InterruptedException - * @throws IOException - */ - @Test - public void hashStoreNobalance() throws InterruptedException, IOException { - // ֤ܺԼ - String execer = "user.p.evm.storage"; - // ǩõ˽Կ - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String contranctAddress = client.convertExectoAddr(execer); - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - String txEncode = StorageUtil.createHashStorage(contentHash, execer, privateKey, contranctAddress); - - String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); - // - List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); - // ۽ǩ˽Կ - String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; - String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, withHoldPrivateKey); - String submitTransaction = client.submitTransaction(hexString); - System.out.println("submitTransaction:" + submitTransaction); - - Thread.sleep(5000); - for (int tick = 0; tick < 5; tick++){ - QueryTransactionResult result = client.queryTransaction(submitTransaction); - if(result == null) { - Thread.sleep(5000); - continue; - } - - System.out.println("next:" + result.getTx().getNext()); - QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); - System.out.println("ty:" + nextResult.getReceipt().getTyname()); - break; - } - - } - - - /** - * Ӵ֤ģ - * @throws InterruptedException - * @throws IOException + @Test + public void hashAndLinkStoreNobalance() throws InterruptedException, IOException { + // 存证智能合约的名称 + String execer = "user.p.evm.storage"; + String contranctAddress = client.convertExectoAddr(execer); + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + String link = "https://cs.33.cn/product?hash=13mBHrKBxGjoyzdej4bickPPPupejAGvXr"; + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + String txEncode = StorageUtil.createLinkNotaryStorage(link.getBytes(), contentHash, execer, privateKey, + contranctAddress); + + String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); + // 解析交易 + List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); + // 代扣交易签名的私钥 + String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; + String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, + withHoldPrivateKey); + String submitTransaction = client.submitTransaction(hexString); + System.out.println("submitTransaction:" + submitTransaction); + + Thread.sleep(5000); + for (int tick = 0; tick < 5; tick++) { + QueryTransactionResult result = client.queryTransaction(submitTransaction); + if (result == null) { + Thread.sleep(5000); + continue; + } + + System.out.println("next:" + result.getTx().getNext()); + QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); + System.out.println("ty:" + nextResult.getReceipt().getTyname()); + break; + } + + } + + /** + * 隐私存证模型 + * + * @throws Exception */ - @Test - public void hashAndLinkStoreNobalance() throws InterruptedException, IOException { - // ֤ܺԼ - String execer = "user.p.evm.storage"; - String contranctAddress = client.convertExectoAddr(execer); - // ǩõ˽Կ - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - String link = "https://cs.33.cn/product?hash=13mBHrKBxGjoyzdej4bickPPPupejAGvXr"; - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - String txEncode = StorageUtil.createLinkNotaryStorage(link.getBytes(), contentHash, execer, privateKey, contranctAddress); - - String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); - // - List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); - // ۽ǩ˽Կ - String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; - String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, withHoldPrivateKey); - String submitTransaction = client.submitTransaction(hexString); - System.out.println("submitTransaction:" + submitTransaction); - - Thread.sleep(5000); - for (int tick = 0; tick < 5; tick++){ - QueryTransactionResult result = client.queryTransaction(submitTransaction); - if(result == null) { - Thread.sleep(5000); - continue; - } - - System.out.println("next:" + result.getTx().getNext()); - QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); - System.out.println("ty:" + nextResult.getReceipt().getTyname()); - break; - } - - } - + @Test + public void EncryptNotaryStoreNobalance() throws Exception { + // 存证智能合约的名称 + String execer = "user.p.evm.storage"; + String contranctAddress = client.convertExectoAddr(execer); + // 签名用的私钥 + String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; + + // 生成AES加密KEY + String aesKeyHex = "ba940eabdf09ee0f37f8766841eee763"; + // 可用该方法生成 AesUtil.generateDesKey(128); + byte[] key = HexUtil.fromHexString(aesKeyHex); + System.out.println("key:" + HexUtil.toHexString(key)); + // 生成iv + byte[] iv = AesUtil.generateIv(); + // 对明文进行加密 + byte[] encrypt = AesUtil.encrypt(content, key, iv); + String decrypt = AesUtil.decrypt(encrypt, HexUtil.toHexString(key)); + System.out.println("decrypt:" + decrypt); + byte[] contentHash = TransactionUtil.Sha256(content.getBytes("utf-8")); + String txEncode = StorageUtil.createEncryptNotaryStorage(encrypt, contentHash, iv, "", "", execer, privateKey, + contranctAddress); + + String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); + // 解析交易 + List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); + // 代扣交易签名的私钥 + String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; + String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, + withHoldPrivateKey); + String submitTransaction = client.submitTransaction(hexString); + System.out.println("submitTransaction:" + submitTransaction); + + Thread.sleep(5000); + for (int tick = 0; tick < 5; tick++) { + QueryTransactionResult result = client.queryTransaction(submitTransaction); + if (result == null) { + Thread.sleep(5000); + continue; + } + + System.out.println("next:" + result.getTx().getNext()); + QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); + System.out.println("ty:" + nextResult.getReceipt().getTyname()); + break; + } + + } + /** - * ˽֤ģ - * @throws Exception + * 根据hash查询存证结果 + * + * @throws IOException */ - @Test - public void EncryptNotaryStoreNobalance() throws Exception { - // ֤ܺԼ - String execer = "user.p.evm.storage"; - String contranctAddress = client.convertExectoAddr(execer); - // ǩõ˽Կ - String privateKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - - // AESKEY - String aesKeyHex = "ba940eabdf09ee0f37f8766841eee763"; - //ø÷ AesUtil.generateDesKey(128); - byte[] key = HexUtil.fromHexString(aesKeyHex); - System.out.println("key:" + HexUtil.toHexString(key)); - // iv - byte[] iv = AesUtil.generateIv(); - // Ľм - byte[] encrypt = AesUtil.encrypt(content, key, iv); - String decrypt = AesUtil.decrypt(encrypt, HexUtil.toHexString(key)); - System.out.println("decrypt:" + decrypt); - byte[] contentHash = TransactionUtil.Sha256(content.getBytes("utf-8")); - String txEncode = StorageUtil.createEncryptNotaryStorage(encrypt,contentHash, iv, "", "", execer, privateKey, contranctAddress); - - String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); - // - List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); - // ۽ǩ˽Կ - String withHoldPrivateKey = "53a601fb5f6de0f4002397cdb7d1e0e6dc655392cacdbe36ede06353c444cfb2"; - String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, privateKey, withHoldPrivateKey); - String submitTransaction = client.submitTransaction(hexString); - System.out.println("submitTransaction:" + submitTransaction); - - Thread.sleep(5000); - for (int tick = 0; tick < 5; tick++){ - QueryTransactionResult result = client.queryTransaction(submitTransaction); - if(result == null) { - Thread.sleep(5000); - continue; - } - - System.out.println("next:" + result.getTx().getNext()); - QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); - System.out.println("ty:" + nextResult.getReceipt().getTyname()); - break; - } - - } - - - /** - * hashѯ֤ - * @throws IOException - */ - @Test - public void queryStorage() throws IOException { - // contentStore - JSONObject resultJson = client.queryStorage("0xcc4b820c86d00019e2f0c490bb6a9bcd46812321fe6d38c0b7214421d12fed29"); - - JSONObject resultArray; + @Test + public void queryStorage() throws IOException { + // contentStore + JSONObject resultJson = client + .queryStorage("0xcc4b820c86d00019e2f0c490bb6a9bcd46812321fe6d38c0b7214421d12fed29"); + + JSONObject resultArray; if (resultJson.containsKey("linkStorage")) { - // hashlinkʹ֤ - resultArray = resultJson.getJSONObject("linkStorage"); - String link = resultArray.getString("link"); - String hash = resultArray.getString("hash"); - byte[] linkByte = HexUtil.fromHexString(link); - String linkresult = new String(linkByte,"UTF-8"); - System.out.println("֤link:" + linkresult); - System.out.println("֤hash:" + hash); + // hash及link型存证 + resultArray = resultJson.getJSONObject("linkStorage"); + String link = resultArray.getString("link"); + String hash = resultArray.getString("hash"); + byte[] linkByte = HexUtil.fromHexString(link); + String linkresult = new String(linkByte, "UTF-8"); + System.out.println("存证link是:" + linkresult); + System.out.println("存证hash是:" + hash); } else if (resultJson.containsKey("hashStorage")) { - // hashʹ֤ - resultArray = resultJson.getJSONObject("hashStorage"); - String hash = resultArray.getString("hash"); - System.out.println("϶ȡhash:" + hash); - byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); - String result = HexUtil.toHexString(contentHash); - System.out.println("֤ǰhash:" + result); + // hash型存证解析 + resultArray = resultJson.getJSONObject("hashStorage"); + String hash = resultArray.getString("hash"); + System.out.println("链上读取的hash是:" + hash); + byte[] contentHash = TransactionUtil.Sha256(content.getBytes()); + String result = HexUtil.toHexString(contentHash); + System.out.println("存证前的hash是:" + result); } else if (resultJson.containsKey("encryptStorage")) { - //˽֤ + // 隐私存证 String desKey = "ba940eabdf09ee0f37f8766841eee763"; resultArray = resultJson.getJSONObject("encryptStorage"); String content = resultArray.getString("encryptContent"); @@ -241,14 +251,13 @@ public void queryStorage() throws IOException { String decrypt = AesUtil.decrypt(fromHexString, desKey); System.out.println(decrypt); } else { - // ʹ֤ - resultArray = resultJson.getJSONObject("contentStorage"); - String content = resultArray.getString("content"); - byte[] contentByte = HexUtil.fromHexString(content); - String result = new String(contentByte,"UTF-8"); - System.out.println("֤:" + result); + // 内容型存证解析 + resultArray = resultJson.getJSONObject("contentStorage"); + String content = resultArray.getString("content"); + byte[] contentByte = HexUtil.fromHexString(content); + String result = new String(contentByte, "UTF-8"); + System.out.println("存证内容是:" + result); } - } - - + } + } diff --git a/src/test/java/cn/chain33/javasdk/model/paraTest/TokenParaTest.java b/src/test/java/cn/chain33/javasdk/model/paraTest/TokenParaTest.java index f246160..b92764c 100644 --- a/src/test/java/cn/chain33/javasdk/model/paraTest/TokenParaTest.java +++ b/src/test/java/cn/chain33/javasdk/model/paraTest/TokenParaTest.java @@ -14,205 +14,211 @@ import cn.chain33.javasdk.utils.TransactionUtil; /** - * ƺֵԤУַУֲѯȽӿ - * ַв裺 - * 1. ͨǰijԱԶֵĺ(ȫãֻͨҪִһ) - * 2. ͨǰijԱԶֵ(ȫãֻͨҪִһ) - * 3. ͨԤԶ֡ - * 4. ͨʽԶ֡ + * 包含积分名称黑名单,积分的预发行,积分发行,积分增发,积分查询等接口 积分发行步骤: 1. 通过当前链的超级管理员来配置自定义积分的黑名单(全局配置:通常情况下只需要执行一次)。 2. + * 通过当前链的超级管理员来配置自定义积分的审核者(全局配置:通常情况下只需要执行一次)。 3. 通过积分审核者来预发行自定义积分。 4. 通过积分审核者来正式发行自定义积分。 + * * @author fkeit */ public class TokenParaTest { - - // ƽIP - String ip = "ƽIP"; - // ƽ˿ - int port = 8801; + // 平行链IP + String ip = "平行链IP"; + // 平行链服务端口 + int port = 8801; RpcClient client = new RpcClient(ip, port); - - // ƽƣ̶ʽuser.p.xxxx. xxxx滻ִ֧СдӢĸ - String paraName = "user.p.evm."; - - // ǰԱ˽ԿsuperManager Ӧַ 1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs - // BTYƽij£ַҪӦcoins֧ - // Ĭϲȡѣ+ƽij£ַ¿ûcoins - String superManagerPk = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; - + + // 平行链名称,固定格式user.p.xxxx. 其中xxxx可替换,支持大小写英文字母 + String paraName = "user.p.evm."; + + // 当前链超级管理员的私钥(superManager), 对应地址: 1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs + // 在BTY公链平行链的场合下,地址下需要带有相应的coins,用于支付交易手续费 + // 联盟链默认不收取手续费,所以联盟链+平行链的场合下,地址下可以没有coins + String superManagerPk = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; + /** + * + * @throws Exception * - * @throws Exception - * @description Զֵĺ + * @description 创建自定义积分的黑名单 * */ @Test public void createBlackList() throws Exception { - // Լ - String execerName = paraName + "manage"; - // Լ:úKEY - String key = "token-blacklist"; - // Լ:úVALUE - String value = "BTC"; - // Լ:ò - String op = "add"; - // 첢ǩ,ʹĹԱsuperManagerǩ - // 55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4 ӦIJԵַǣ1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 - String txEncode = TransactionUtil.createManage(key, value, op, superManagerPk, execerName); - // ͽ - String hash = client.submitTransaction(txEncode); - System.out.print(hash); + // 管理合约名称 + String execerName = paraName + "manage"; + // 管理合约:配置黑名单KEY + String key = "token-blacklist"; + // 管理合约:配置黑名单VALUE + String value = "BTC"; + // 管理合约:配置操作符 + String op = "add"; + // 构造并签名交易,使用链的管理员(superManager)进行签名, + // 55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4 对应的测试地址是:1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7 + String txEncode = TransactionUtil.createManage(key, value, op, superManagerPk, execerName); + // 发送交易 + String hash = client.submitTransaction(txEncode); + System.out.print(hash); } - + /** + * + * @throws Exception * - * @throws Exception - * @description Զֵtoken-finisher + * @description 创建自定义积分的token-finisher * */ @Test public void createTokenFinisher() throws Exception { - // Լ - String execerName = paraName + "manage";; - // Լ:KEY - String key = "token-finisher"; - // Լ:VALUEtokenĴȨԱַҲȨַ - String value = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; - // Լ:ò - String op = "add"; - String txEncode = TransactionUtil.createManage(key, value, op, superManagerPk, execerName); - // ͽ - String hash = client.submitTransaction(txEncode); - System.out.print(hash); - + // 管理合约名称 + String execerName = paraName + "manage"; + ; + // 管理合约:配置KEY + String key = "token-finisher"; + // 管理合约:配置VALUE,用于审核token的创建,可以授权超级管理员地址,也可以授权其它地址 + String value = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; + // 管理合约:配置操作符 + String op = "add"; + String txEncode = TransactionUtil.createManage(key, value, op, superManagerPk, execerName); + // 发送交易 + String hash = client.submitTransaction(txEncode); + System.out.print(hash); + + } + + /** + * 本地预创建token并提交 + * + * @throws IOException + */ + @Test + public void preCreateTokenLocal() throws IOException { + // token总额 + long total = 19900000000000000L; + // token的注释名称 + String name = "DEVELOP COINS"; + // token的名称,只支持大写字母,同一条链不允许相同symbol存在 + String symbol = "COINSDEVX"; + // token介绍 + String introduction = "开发者币"; + // 发行token愿意承担的费用,填0就行 + Long price = 0L; + // 0 为普通token, 1 可增发和燃烧 + Integer category = 0; + // 合约名称 + String execer = paraName + "token"; + // token的拥有者地址 + String owner = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; + // token-finisher地址对应的私钥(createTokenFinisher函数中配置的:value) + String managerPrivateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; + String precreateTx = TransactionUtil.createPrecreateTokenTx(execer, name, symbol, introduction, total, price, + owner, category, managerPrivateKey); + String submitTransaction = client.submitTransaction(precreateTx); + System.out.println(submitTransaction); } - - /** - * Ԥtokenύ - * @throws IOException - */ - @Test - public void preCreateTokenLocal() throws IOException { - //tokenܶ - long total = 19900000000000000L; - //tokenע - String name = "DEVELOP COINS"; - //tokenƣִֻ֧дĸͬһͬsymbol - String symbol = "COINSDEVX"; - //token - String introduction = "߱"; - //tokenԸеķã0 - Long price = 0L; - //0 Ϊͨtoken 1 ȼ - Integer category = 0; - //Լ - String execer = paraName + "token"; - //tokenӵߵַ - String owner = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; - //token-finisherַӦ˽ԿcreateTokenFinisherõģvalue - String managerPrivateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; - String precreateTx = TransactionUtil.createPrecreateTokenTx(execer, name, symbol, introduction, total, price, - owner, category, managerPrivateKey); - String submitTransaction = client.submitTransaction(precreateTx); - System.out.println(submitTransaction); - } - - /** - * شtokenɽײύ - * @throws IOException - */ - @Test - public void createTokenFinishLocal() throws IOException { - String symbol = "COINSDEVX"; - String execer = paraName + "token"; - //token-finisherַӦ˽ԿcreateTokenFinisherõģvalue - String managerPrivateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; - // tokenӵߵַ - String owner = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; - String hexData = TransactionUtil.createTokenFinishTx(symbol, execer, owner, managerPrivateKey); - String submitTransaction = client.submitTransaction(hexData); - System.out.println(submitTransaction); - } - + /** - * ƽϵת˽һͨ۵ķʽ - * @throws InterruptedException - * @throws IOException - * @description ͨ۵ķʽtokenת˽ + * 本地创建token完成交易并提交 + * + * @throws IOException + */ + @Test + public void createTokenFinishLocal() throws IOException { + String symbol = "COINSDEVX"; + String execer = paraName + "token"; + // token-finisher地址对应的私钥(createTokenFinisher函数中配置的:value) + String managerPrivateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; + // token的拥有者地址 + String owner = "1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"; + String hexData = TransactionUtil.createTokenFinishTx(symbol, execer, owner, managerPrivateKey); + String submitTransaction = client.submitTransaction(hexData); + System.out.println(submitTransaction); + } + + /** + * 平行链上的转账交易一般通过代扣的方式进行 + * + * @throws InterruptedException + * @throws IOException + * + * @description 通过代扣的方式构造token的转账交易 */ @Test public void createTokenTransfer() throws InterruptedException, IOException { - // ת˵ - String note = "ת˵"; - // token + // 转账说明 + String note = "转账说明"; + // token名 String coinToken = "COINSDEVX"; Long amount = 10000 * 100000000L;// 1 = real amount - // תĵַ + // 转到的地址 String to = "1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"; - // ǩ˽ԿҪңڽ + // 签名私钥,里面需要有主链币,用于缴纳手续费 String fromAddressPriveteKey = "55637b77b193f2c60c6c3f95d8a5d3a98d15e2d42bf0aeae8e975fc54035e2f4"; - // ִ + // 执行器名称 String execer = paraName + "token"; - String txEncode = TransactionUtil.createTokenTransferTx(fromAddressPriveteKey, to, execer, amount, coinToken, note); - + String txEncode = TransactionUtil.createTokenTransferTx(fromAddressPriveteKey, to, execer, amount, coinToken, + note); + String createNoBalanceTx = client.createNoBalanceTx(txEncode, ""); - - // - List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); - // ۽ǩ˽Կ н׵Ѷַ۳ - String withHoldPrivateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; - - String contranctAddress = client.convertExectoAddr(execer); - String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, fromAddressPriveteKey, withHoldPrivateKey); - String submitTransaction = client.submitTransaction(hexString); - System.out.println("submitTransaction:" + submitTransaction); - - Thread.sleep(5000); - for (int tick = 0; tick < 5; tick++){ - QueryTransactionResult result = client.queryTransaction(submitTransaction); - if(result == null) { - Thread.sleep(5000); - continue; - } - - System.out.println("next:" + result.getTx().getNext()); - QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); - System.out.println("ty:" + nextResult.getReceipt().getTyname()); - break; - } + + // 解析交易 + List decodeRawTransactions = client.decodeRawTransaction(createNoBalanceTx); + // 代扣交易签名的私钥 (所有交易的手续费都从这个地址扣除) + String withHoldPrivateKey = "3990969DF92A5914F7B71EEB9A4E58D6E255F32BF042FEA5318FC8B3D50EE6E8"; + + String contranctAddress = client.convertExectoAddr(execer); + String hexString = TransactionUtil.signDecodeTx(decodeRawTransactions, contranctAddress, fromAddressPriveteKey, + withHoldPrivateKey); + String submitTransaction = client.submitTransaction(hexString); + System.out.println("submitTransaction:" + submitTransaction); + + Thread.sleep(5000); + for (int tick = 0; tick < 5; tick++) { + QueryTransactionResult result = client.queryTransaction(submitTransaction); + if (result == null) { + Thread.sleep(5000); + continue; + } + + System.out.println("next:" + result.getTx().getNext()); + QueryTransactionResult nextResult = client.queryTransaction(result.getTx().getNext()); + System.out.println("ty:" + nextResult.getReceipt().getTyname()); + break; + } } - + /** + * + * @throws IOException * - * @throws IOException - * @description ѯѾtoken + * @description 查询已经创建的token * */ @Test public void queryCreateTokens() throws IOException { String execer = paraName + "token"; - //״̬ 0Ԥ 1ɹ + // 状态 0预创建的 1创建成功的 Integer status = 1; List queryCreateTokens; - queryCreateTokens = client.queryCreateTokens(status,execer); + queryCreateTokens = client.queryCreateTokens(status, execer); for (TokenResult tokenResult : queryCreateTokens) { System.out.println(tokenResult); } } - - + /** + * + * @throws IOException * - * @throws IOException - * @description ѯtoken + * @description 查询token余额 * */ @Test public void getTokenBalace() throws IOException { - // ִ + // 执行器名称 String execer = paraName + "token"; - + List addressList = new ArrayList<>(); addressList.add("1EHWKLEixvfanTHWmnF7mYMuDDXTCorZd7"); addressList.add("1CbEVT9RnM5oZhWMj4fxUrJX94VtRotzvs"); diff --git a/src/test/java/cn/chain33/javasdk/performance/Performance.java b/src/test/java/cn/chain33/javasdk/performance/Performance.java index f30e5c5..1188da4 100644 --- a/src/test/java/cn/chain33/javasdk/performance/Performance.java +++ b/src/test/java/cn/chain33/javasdk/performance/Performance.java @@ -9,176 +9,173 @@ public class Performance { - RpcClient client = null; - - Account account = new Account(); - - long txHeight = 0; - - - /** - * - */ - public void runTest(String ip, String port, String num) { - - int nThreads = Runtime.getRuntime().availableProcessors(); - System.out.println("线程数" + nThreads); - - String execer = "user.write"; - - try { - client = new RpcClient(ip, Integer.parseInt(port)); - String contractAddress = client.convertExectoAddr(execer); - String privateKey = null; - // 获取区块高度 - startthread2(client); - - for (int i = 0; i < nThreads; i++) { - privateKey = account.newAccountLocal().getPrivateKey(); - // 构造交易 - startthread1(privateKey, Integer.parseInt(num), client, execer, contractAddress); - } - - } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - } - - - /** - * 用于构造交易 - * - * @param client - * @param privateKey - * @param toaddress - */ - private void startthread1(String privateKey, int num, RpcClient client, String execer, String toaddress) { - Thread1 st = new Thread1(privateKey, num, client, execer, toaddress); - Thread t = new Thread(st); - t.start(); - } - - /** - * 获取区块高度 - * - * @param client - */ - private void startthread2(RpcClient client) { - Thread2 st = new Thread2(client); - Thread t = new Thread(st); - t.start(); - } - - - /** - * - * @author fkeit - * - */ - class Thread1 implements Runnable { - - String privateKey; - int num; - RpcClient client; - String execer; - String toaddress; - - public Thread1(String privateKey, int num, RpcClient client, String execer, String toaddress) { - this.privateKey = privateKey; - this.num = num; - this.client = client; - this.execer = execer; - this.toaddress = toaddress; - - } - - @Override - public void run() { - - String payLoad = getRamdonString(32); - String txEncode = null; - String hash = null; - int count = 0; - long start = System.currentTimeMillis(); - for (int i = 0; i < num; i++) { - try { - - txEncode = TransactionUtil.createTransferTx(privateKey, toaddress, execer, payLoad.getBytes(), - TransactionUtil.DEFAULT_FEE, txHeight); - hash = client.submitTransaction(txEncode); - if (hash != null) { - count++; - } - } catch (Exception e) { - e.printStackTrace(); - continue; - } - } - - long end = System.currentTimeMillis(); - System.out.println("构造及发送交易花费时间" + (end - start) + " 毫秒, 总共发送" + count + "笔交易"); - } - - - /** - * 获取随机值 - * - * @param length - * @return - */ - public String getRamdonString(int length) { - StringBuffer sb = new StringBuffer(); - String ALLCHAR = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; - Random random = new Random(); - for (int i = 0; i < length; i++) { - sb.append(ALLCHAR.charAt(random.nextInt(ALLCHAR.length()))); - } - - return sb.toString(); - } - - } - - /** - * 获取区块高度 - * @author fkeit - * - */ - class Thread2 implements Runnable { - - RpcClient client; - - public Thread2(RpcClient client) { - this.client = client; - } - - @Override - public void run() { - while (true) { - try { - txHeight = client.getLastHeader().getHeight(); - Thread.sleep(1000); - } catch (InterruptedException | IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - } - } - - - public static void main(String[] args) { - if (args.length < 3) { - System.out.println("请带上[IP][端口号]以及[发送的交易数目]这三个参数"); - return; - } - String ip = args[0]; - String port = args[1]; - String num = args[2]; - Performance test = new Performance(); - test.runTest(ip, port, num); - } + RpcClient client = null; + + Account account = new Account(); + + long txHeight = 0; + + /** + * + */ + public void runTest(String ip, String port, String num) { + + int nThreads = Runtime.getRuntime().availableProcessors(); + System.out.println("线程数" + nThreads); + + String execer = "user.write"; + + try { + client = new RpcClient(ip, Integer.parseInt(port)); + String contractAddress = client.convertExectoAddr(execer); + String privateKey = null; + // 获取区块高度 + startthread2(client); + + for (int i = 0; i < nThreads; i++) { + privateKey = account.newAccountLocal().getPrivateKey(); + // 构造交易 + startthread1(privateKey, Integer.parseInt(num), client, execer, contractAddress); + } + + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + } + + /** + * 用于构造交易 + * + * @param client + * @param privateKey + * @param toaddress + */ + private void startthread1(String privateKey, int num, RpcClient client, String execer, String toaddress) { + Thread1 st = new Thread1(privateKey, num, client, execer, toaddress); + Thread t = new Thread(st); + t.start(); + } + + /** + * 获取区块高度 + * + * @param client + */ + private void startthread2(RpcClient client) { + Thread2 st = new Thread2(client); + Thread t = new Thread(st); + t.start(); + } + + /** + * + * @author fkeit + * + */ + class Thread1 implements Runnable { + + String privateKey; + int num; + RpcClient client; + String execer; + String toaddress; + + public Thread1(String privateKey, int num, RpcClient client, String execer, String toaddress) { + this.privateKey = privateKey; + this.num = num; + this.client = client; + this.execer = execer; + this.toaddress = toaddress; + + } + + @Override + public void run() { + + String payLoad = getRamdonString(32); + String txEncode = null; + String hash = null; + int count = 0; + long start = System.currentTimeMillis(); + for (int i = 0; i < num; i++) { + try { + + txEncode = TransactionUtil.createTransferTx(privateKey, toaddress, execer, payLoad.getBytes(), + TransactionUtil.DEFAULT_FEE, txHeight); + hash = client.submitTransaction(txEncode); + if (hash != null) { + count++; + } + } catch (Exception e) { + e.printStackTrace(); + continue; + } + } + + long end = System.currentTimeMillis(); + System.out.println("构造及发送交易花费时间" + (end - start) + " 毫秒, 总共发送" + count + "笔交易"); + } + + /** + * 获取随机值 + * + * @param length + * + * @return + */ + public String getRamdonString(int length) { + StringBuffer sb = new StringBuffer(); + String ALLCHAR = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; + Random random = new Random(); + for (int i = 0; i < length; i++) { + sb.append(ALLCHAR.charAt(random.nextInt(ALLCHAR.length()))); + } + + return sb.toString(); + } + + } + + /** + * 获取区块高度 + * + * @author fkeit + * + */ + class Thread2 implements Runnable { + + RpcClient client; + + public Thread2(RpcClient client) { + this.client = client; + } + + @Override + public void run() { + while (true) { + try { + txHeight = client.getLastHeader().getHeight(); + Thread.sleep(1000); + } catch (InterruptedException | IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + } + } + + public static void main(String[] args) { + if (args.length < 3) { + System.out.println("请带上[IP][端口号]以及[发送的交易数目]这三个参数"); + return; + } + String ip = args[0]; + String port = args[1]; + String num = args[2]; + Performance test = new Performance(); + test.runTest(ip, port, num); + } } diff --git a/src/test/java/cn/chain33/javasdk/performance/RpcQPS.java b/src/test/java/cn/chain33/javasdk/performance/RpcQPS.java index a1a1c7a..e851589 100644 --- a/src/test/java/cn/chain33/javasdk/performance/RpcQPS.java +++ b/src/test/java/cn/chain33/javasdk/performance/RpcQPS.java @@ -3,14 +3,14 @@ import cn.chain33.javasdk.client.RpcClient; public class RpcQPS { - + static String ip = "localhost"; - static RpcClient client = new RpcClient(ip, 8801); - - public static void main(String[] args) { - for (int i = 0; i < 20; i++) { - Thread newThread = new Thread(new RpcRunner(String.valueOf(i), client)); - newThread.start(); - } - } + static RpcClient client = new RpcClient(ip, 8801); + + public static void main(String[] args) { + for (int i = 0; i < 20; i++) { + Thread newThread = new Thread(new RpcRunner(String.valueOf(i), client)); + newThread.start(); + } + } } diff --git a/src/test/java/cn/chain33/javasdk/performance/RpcRunner.java b/src/test/java/cn/chain33/javasdk/performance/RpcRunner.java index e448b26..6b5696b 100644 --- a/src/test/java/cn/chain33/javasdk/performance/RpcRunner.java +++ b/src/test/java/cn/chain33/javasdk/performance/RpcRunner.java @@ -4,34 +4,34 @@ import cn.chain33.javasdk.client.RpcClient; -public class RpcRunner implements Runnable{ - +public class RpcRunner implements Runnable { + String numberTh; RpcClient clientTh; - + public RpcRunner(String number, RpcClient client) { - numberTh =number; - clientTh = client; + numberTh = number; + clientTh = client; } - @Override - public void run() { - String hash = "0x441e91ff13f28fe104d66db4308ab12652868eaf8a0011dec2059a4be98bdfb3"; + @Override + public void run() { + String hash = "0x441e91ff13f28fe104d66db4308ab12652868eaf8a0011dec2059a4be98bdfb3"; long start = System.currentTimeMillis(); - for (int i = 0; i < 1000; i++) { - - try { - clientTh.queryTx(hash); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } + for (int i = 0; i < 1000; i++) { + + try { + clientTh.queryTx(hash); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } if (i == 999) { - long end = System.currentTimeMillis(); - long total = end - start; - System.out.println("Thread" + numberTh + " | cost time is: " + total); + long end = System.currentTimeMillis(); + long total = end - start; + System.out.println("Thread" + numberTh + " | cost time is: " + total); } - } - } + } + } }